@charset "UTF-8";
@import url(font-awesome.min.css);

/* CSS Document */

:root {
    --primary-color: #f56a6a;          /* 主要红色 */
    --primary-hover: #e05050;          /* 红色悬停状态 */
    --text-color: #333333;             /* 导航栏文字颜色改为深灰色 */
    --background: #ffffff;             /* 白色背景 */
    --secondary-gray: rgba(102, 102, 102, 0.1); /* 次要灰色，透明度低 */
    --nav-background: rgba(255, 255, 255, 0.95); /* 导航栏背景色改为半透明白色 */
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background);
    background-image: radial-gradient(#f5f5f5 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-color);
    overflow-x: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 3rem;
    background-color: var(--nav-background);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.95));
    border-bottom: 1px solid rgba(245, 106, 106, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(245, 106, 106, 0.05);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* 顶部导航栏图标按钮样式 */
.nav-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.75rem; /* 缩小字体 */
    position: relative;
}

.icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 34px; /* 原来是40px，缩小 */
    height: 34px; /* 原来是40px，缩小 */
    background-color: #f1f1f1;
    border-radius: 50%;
    margin-bottom: 3px;
    transition: background-color 0.3s;
}

.law-consult .icon-circle {
    background-color: #f56a6a;
    color: white;
}

.nav-icon-btn i {
    font-size: 1rem; /* 原来是1.2rem，缩小图标 */
}

.nav-icon-btn:hover .icon-circle {
    background-color: #ebebeb;
}

.law-consult:hover .icon-circle {
    background-color: #e05050;
}

.badge {
    position: absolute;
    top: -3px; /* 调整位置 */
    right: 0px;
    background-color: #f56a6a;
    color: white;
    font-size: 0.6rem;
    padding: 1px 3px; /* 微调填充 */
    border-radius: 10px;
    min-width: 14px; /* 原来是16px，稍微缩小 */
    text-align: center;
}

.logo {
    position: relative;
    width: 135px;
    height: 40px;
    margin: 0 1.5rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* 添加圆角弧度 */
}


.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    background-color: transparent;
}

.dropdown .nav-link {
    position: relative;
    padding-right: 2rem;
}


.dropdown .nav-link::after {
    content: '►';
    font-size: 0.8em;
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.dropdown:hover .nav-link::after {
    transform: translateY(-50%) rotate(90deg);/* 旋转180度 */
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(245, 106, 106, 0.1);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 0;
    width: 160px;
    background-color: var(--nav-background);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    border-radius: 4px;
    margin: 0.5rem;
}

.mobile-menu-item {
    display: block;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 106, 106, 0.1);
    transition: background-color 0.3s;
    position: relative;
    cursor: pointer;
}

.has-submenu {
    position: relative;
}

.mobile-submenu {
    display: none;
    background-color: var(--nav-background);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 0.25rem;
    padding: 0.5rem 0;
}

.has-submenu.active .mobile-submenu {
    display: block;
}

.mobile-submenu-section {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(245, 106, 106, 0.1);
}

.mobile-submenu-section:last-child {
    border-bottom: none;
}

.mobile-submenu-title {
    display: block;
    padding: 0.25rem 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.7em;
}

.mobile-submenu-content {
    padding: 0.25rem 0;
}

.mobile-submenu-item {
    display: block;
    padding: 0.25rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.5em;
    transition: all 0.2s ease;
}

.mobile-submenu-item:hover {
    background-color: rgba(245, 106, 106, 0.1);
    color: var(--primary-color);
}
    





.mobile-menu-item:hover {
    background-color: rgba(245, 106, 106, 0.1);
    color: var(--primary-color);
}

/* 确保移动端样式可以正确覆盖 */
@media screen and (max-width: 980px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .nav-menu, .nav-right .button {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .mobile-menu.active {
        display: block;
    }

    .nav-left {
        flex: 1;
        justify-content: space-between;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .logo {
        margin: 0;
        width: 135px;
    }

    .feature-section {
        flex-direction: column;
        margin: 4rem auto;
        padding: 0 1rem;
        gap: 5rem;
    }
    
    .feature-image {
    text-align: center;
    margin-top: 0rem;
}
    
    .feature-text {
        margin-top: 2rem;
        text-align: center;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .demo-gif {
        margin-left: 0;
        max-width: 100%;
    }
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    color:#f56a6a;
    padding-top: 5px;
    background-color: var(--nav-background);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(245, 106, 106, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(245, 106, 106, 0.2);
    backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0.8;
    pointer-events: none;
    transition: all 0.5s ease-out, opacity 0.5s ease-in;
}
.hover-buffer{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 25px;
    pointer-events: auto;
    z-index: 1;
}

.dropdown:hover .dropdown-content,
.dropdown:hover .hover-buffer{
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.dropdown-section {
    padding: 8px 0;
    border-bottom: 1px solid rgba(245, 106, 106, 0.1);
}

.dropdown-section:last-child {
    border-bottom: none;
}

.section-title {
    display: block;
    padding: 5px 16px;
    color: var(--primary-color);
    font-weight: 500;
    cursor: default;
    background-color: rgba(240, 240, 240, 0.95);
}

.section-content {
    padding: 4px 0;
}

.dropdown-subitem {
    color: var(--text-color);
    text-decoration: none;
    padding: 6px 24px;
    display: block;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.dropdown-subitem:hover {
    color: var(--primary-color);
    background-color: rgba(245, 106, 106, 0.1);
}

.button {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.4rem 1.2rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--primary-hover);
}

.content {
    padding-top: 80px;
    min-height: 90vh;
    padding-bottom: 50px;
}

.feature-section {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 4rem auto;  /* 增加上下外边距 */
    padding: 0 2rem; /* 增加左右内边距 */
    gap: 4rem;
    flex-wrap:nowrap;/* 防止换行 */
}

.demo-gif {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    border: 1px solid rgba(245, 106, 106, 0.15);
    box-shadow: 0 8px 30px rgba(245, 106, 106, 0.08);
    margin-left: -20px;
}

.feature-text {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.feature-text .button-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    
}

.feature-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg,#e05050, #d03b3b);
    -webkit-background-clip: text;/* 文字背景为透明 */
    -webkit-text-fill-color: transparent;/* 文字颜色为透明 */
    margin-top: -2rem;
    letter-spacing: 0px;
    position: relative;
    overflow: hidden;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.feature-text h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 200%;
    }
}

.slogan {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    text-align: left;
}

.footer {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 2px solid rgba(245, 106, 106, 0.2);
}

.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    color: #f56a6a;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1;

}
.disclaimer a {
    color: inherit;
    text-decoration: none;/* 移除下划线 */
}








.menu-wrapper {
    position: relative;
}

.menu-wrapper::after { /* 伪元素用于创建一个透明的背景 */
    content: '';
    position: absolute;
    bottom: 100%; /* 改成 bottom 而不是 top，表示在上方 */
    left: 0;
    width: 100%;
    height: 15px; /* 上方的“缓冲”区域高度 */
    background: transparent;
}

.menu-wrapper:hover .popup-menu,
.popup-menu:hover {
    display: grid;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.popup-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 15px);   /* 改成 bottom 而不是 top，表示在上方 */
    left: 50%;
    transform: translateX(-50%) translateY(-10px);/* 向上偏移，用于动画滑入*/
    background-color: rgba(248, 248, 248, 0.95);
    border: 1px solid rgba(160, 114, 114, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 16px;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    min-width: 355px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.popup-menu-section {
    padding: 8px;
}

.popup-menu-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.popup-menu-item {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.popup-menu-item:hover {
    background-color: rgba(245, 106, 106, 0.1);
    color: var(--primary-color);
}


.fagui-list {
    position: relative;
    padding-right: 1.5rem;
}

.fagui-list::after {
    content: '▼';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.has-submenu.active .fagui-list::after {
    transform: translateY(-50%) rotate(180deg);
}
    


@media screen and (max-width: 980px) {/* 调整断点 */
    .navbar {
        padding: 0.5rem 1rem;/* 调整内边距 */
    }

    .nav-menu, .nav-right .button {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .mobile-menu.active {
        display: block;
    }

    .nav-left {
        flex: 1;
        justify-content: space-between;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .logo {
        margin: 0;
        width: 135px;
    }

    .feature-section {
        flex-direction: column;
        margin: 4rem auto;
        padding: 0 1rem;
        gap: 5rem;
    }
.feature-image{
    text-align: center;
    margin-top: 0rem;

}
    .feature-text {
        margin-top: 2rem;
        text-align: center;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .demo-gif {
        margin-left: 0;
        max-width: 100%;
    }


    .popup-menu {
        min-width: 100px;
        grid-template-columns: 1fr;

    }
   .popup-menu-item {
        padding: 2px 0px;
    }

    
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    color:#f56a6a;
    padding-top: 5px;
    background-color: var(--nav-background);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(245, 106, 106, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(245, 106, 106, 0.2);
    backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0.8;
    pointer-events: none;
    transition: all 0.5s ease-out, opacity 0.5s ease-in;
}
.hover-buffer{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 25px;
    pointer-events: auto;
    z-index: 1;
}

.dropdown:hover .dropdown-content,
.dropdown:hover .hover-buffer{
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.dropdown-section {
    padding: 8px 0;
    border-bottom: 1px solid rgba(245, 106, 106, 0.1);
}

.dropdown-section:last-child {
    border-bottom: none;
}

.section-title {
    display: block;
    padding: 5px 16px;
    color: var(--primary-color);
    font-weight: 500;
    cursor: default;
    background-color: rgba(240, 240, 240, 0.95);
}

.section-content {
    padding: 4px 0;
}

.dropdown-subitem {
    color: var(--text-color);
    text-decoration: none;
    padding: 6px 24px;
    display: block;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.dropdown-subitem:hover {
    color: var(--primary-color);
    background-color: rgba(245, 106, 106, 0.1);
}

.button {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.4rem 1.2rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--primary-hover);
}

.content {
    padding-top: 80px;
    min-height: 90vh;
    padding-bottom: 50px;
}

.feature-section {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 4rem auto;  /* 增加上下外边距 */
    padding: 0 2rem; /* 增加左右内边距 */
    gap: 4rem;
    flex-wrap:nowrap;/* 防止换行 */
}

.demo-gif {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    border: 1px solid rgba(245, 106, 106, 0.15);
    box-shadow: 0 8px 30px rgba(245, 106, 106, 0.08);
    margin-left: -20px;
}

.feature-text {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.feature-text .button-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    
}

.feature-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg,#e05050, #d03b3b);
    -webkit-background-clip: text;/* 文字背景为透明 */
    -webkit-text-fill-color: transparent;/* 文字颜色为透明 */
    margin-top: -2rem;
    letter-spacing: 0px;
    position: relative;
    overflow: hidden;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.feature-text h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {/* 增加动画效果 */
    to {
        left: 200%;/* 移动到右边 */
    }
}

.slogan {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    text-align: left;
}

.footer {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 2px solid rgba(245, 106, 106, 0.2);
}

.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    color: #f56a6a;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1;

}
.disclaimer a {
    color: inherit;
    text-decoration: none;/* 移除下划线 */
}














/* 底部阅读工具栏样式 */
.reading-toolbar {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 20px; /* 调整位置 */
    right: 20px; /* 调整位置 */
    background-color: transparent; /* 改为透明背景 */
    border-radius: 12px;
    z-index: 1002;
    padding: 0; /* 移除内边距 */
    transition: opacity 0.3s ease;
    gap: 10px; /* 减小按钮间的间距 */
    width: 200px; /* 减小整体宽度 */
}

.reading-toolbar.hidden {
    opacity: 0.2;
}

/* 字号按钮容器 */
.reading-toolbar .font-size-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

/* 字号-和字号+按钮 */
.toolbar-btn.font-size-decrease,
.toolbar-btn.font-size-increase {
    flex: 1;
}

/* 页面检索和返回顶端按钮 */
.toolbar-btn.page-search,
.toolbar-btn.back-to-top {
    width: 100%;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center; /* 内容居中 */
    padding: 8px 15px; /* 减小内边距 */
    margin-bottom: 0;
    background: transparent; /* 改为透明背景 */
    border: 2px solid #d35f34; /* 橙色边框 */
    border-radius: 10px; /* 稍微减小圆角 */
    color: #d35f34; /* 橙色文字 */
    font-size: 0.9rem; /* 减小字体大小 */
    font-weight: 500; /* 稍微加粗 */
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: none; /* 移除阴影 */
}

.toolbar-btn:last-child {
    margin-bottom: 0;
}

.toolbar-btn:hover {
    background-color: rgba(211, 95, 52, 0.1); /* 略微橙色半透明背景 */
    color: #d35f34;
}

.toolbar-btn:active {
    background-color: rgba(211, 95, 52, 0.1);
}

.toolbar-btn i {
    margin-right: 8px; /* 减小图标和文字的间距 */
    width: 14px; /* 减小图标宽度 */
    text-align: center;
    color: #d35f34; /* 图标也是橙色 */
    font-size: 0.9rem; /* 减小图标大小 */
}

@media (max-width: 768px) {
    .reading-toolbar {
        bottom: 10px;
        right: 10px;
        width: calc(100% - 20px);
        max-width: 280px; /* 减小移动端最大宽度 */
        gap: 6px; /* 更小的间距 */
    }
    
    .reading-toolbar .font-size-buttons {
        gap: 6px; /* 减小字号按钮间的间距 */
        display: flex;
        width: 100%;
    }
    
    /* 确保字号按钮宽度相同 */
    .toolbar-btn.font-size-decrease,
    .toolbar-btn.font-size-increase {
        flex: 1;
        min-width: 0;
        width: calc(50% - 3px); /* 各占一半宽度，减去间距的一半 */
        box-sizing: border-box;
    }
    
    .toolbar-btn {
        padding: 5px 8px; /* 更小的内边距 */
        font-size: 0.75rem; /* 更小的字体 */
        background: transparent; /* 透明背景 */
        border-width: 1.5px; /* 更细的边框 */
        border-radius: 8px; /* 更小的圆角 */
        box-shadow: none; /* 移除阴影 */
        text-align: center;
    }
    
    .toolbar-btn i {
        margin-right: 3px; /* 更小的间距 */
        font-size: 0.75rem; /* 更小的图标 */
        width: 12px; /* 更小的图标宽度 */
    }
}

/* 简洁版搜索框样式 */
.simple-search {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    width: auto;
    max-width: 400px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.simple-search.active {
    opacity: 1;
    transform: translateY(0);
}

/* 搜索输入框和计数器一体化样式 */
.search-input-container {
    display: flex;
    align-items: center;
    border-right: 1px solid #e0e0e0;
    position: relative;
}

#search-input {
    width: 120px;
    padding: 8px 10px 8px 10px;
    border: none;
    font-size: 14px;
    outline: none;
    border-radius: 4px 0 0 4px;
    background: transparent;
    transition: width 0.3s ease;
}

#search-input:focus {
    width: 180px;
}

#search-counter {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #888;
    font-size: 13px;
    min-width: 38px;
    text-align: right;
    pointer-events: none;
}

#search-btn {
    background-color: #f56a6a;
    border: none;
    color: white;
    width: 40px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 4px 4px 0;
    transition: background-color 0.2s ease;
}

#search-btn:hover {
    background-color: #e05050;
}

.search-navigation {
    display: flex;
    align-items: center;
    padding: 5px;
}

.search-navigation button {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #555;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.search-navigation button:hover {
    background-color: #f0f0f0;
    color: #f56a6a;
}

/* 高亮文本样式 */
.highlighted-text {
    background-color: rgba(255, 255, 0, 0.4);
    padding: 0 2px;
    border-radius: 2px;
}

.active-match {
    background-color: rgba(255, 165, 0, 0.6);
    box-shadow: 0 0 5px rgba(255, 165, 0, 0.8);
}

/* 移除旧的搜索框样式 */
.search-modal,
.search-content,
.search-header,
.search-body,
.search-controls {
    display: none;
}

@media (max-width: 768px) {
    .simple-search {
        top: 60px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
    
    #search-input {
        width: 90px;
        font-size: 13px;
    }
    #search-counter {
        right: 38px;
        font-size: 12px;
        min-width: 30px;
    }
    #search-btn {
        width: 32px;
        height: 32px;
    }
}

/* 法律内容样式 */
.law-content {
    display: block;
    font-size: inherit; /* 继承父元素字体大小 */
}

#content-section {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    transition: font-size 0.3s;
}

/* 字体大小响应式调整 */
@media (max-width: 768px) {
    #content-section {
        font-size: 14px; /* 移动端默认较小字体 */
    }
}

/* 用户下拉菜单样式 */
.user-profile {
    position: relative;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px; /* 增加宽度 */
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 25px 30px;
    z-index: 1001;
    display: none;
    margin-top: 10px;
}

.user-dropdown.active {
    display: block;
}

.user-info {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.user-name, .user-role, .user-points {
    margin: 15px 0;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    color: #333;
}

.user-name span, .user-role span, .user-points span {
    text-align: right;
    font-weight: 500;
    color: #333;
    display: inline-block;
}

.user-actions {
    display: flex;
    justify-content: center;
}

.user-action-btn {
    display: inline-block;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1px solid #eee;
    background-color: white;
    color: #333;
}

.user-action-btn:hover {
    background-color: #f5f5f5;
}

.user-action-btn.logout {
    background-color: transparent;
    color: #f56a6a;
    border: 1px solid #f56a6a;
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.user-action-btn.logout:hover {
    background-color: rgba(245, 106, 106, 0.1);
}

.user-avatar {
    cursor: pointer;
}

/* 移动端用户信息框样式 */
@media (max-width: 768px) {
    .user-dropdown {
        width: 160px; /* 更小的宽度 */
        padding: 15px 20px; /* 更小的内边距 */
        right: -10px; /* 调整位置 */
        border-radius: 10px; /* 更小的圆角 */
    }
    
    .user-info {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .user-name, .user-role, .user-points {
        margin: 10px 0;
        font-size: 14px; /* 更小的字体 */
    }
    
    .user-name span, .user-role span, .user-points span {
        font-size: 14px;
    }
    
    .user-action-btn.logout {
        padding: 8px 20px; /* 更小的按钮内边距 */
        font-size: 14px; /* 更小的字体 */
        border-radius: 20px; /* 更小的圆角 */
    }
}

/* 下载按钮 */
.demo-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f56a6a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.demo-button:hover {
    background-color: #f64c4c;
}