/* 基本样式 */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden; /* 只隐藏水平滚动条 */
}


        /* 屏幕宽度 ≥1920px 时，内容容器最大宽度限制为 1600px（覆盖 Tailwind 默认 container 的 1536px） */
        @media (min-width: 1920px) {
            .container {
                max-width: 1600px !important;
            }
        }
  

/* 导航栏滚动效果 */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}
.nav-scrolled .nav-link {
    color: #212529;
}
.nav-scrolled .nav-link:hover {
    color: #FF9800;
}

/* 导航下划线动画 */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #FF9800;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    background-color: #e63946;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
    margin-top: 20px;
    transition: opacity 0.3s ease, visibility 0.3s ease 0.2s;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: #3E4C59;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid #F5F7FA;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #F5F7FA;
    color: #e63946;
}

/* 下拉菜单三角形符号样式 */
.dropdown a span {
    transition: transform 0.3s ease, color 0.3s ease;
}

.dropdown:hover a span {
    transform: translateY(-1px);
    color: #e63946;
}

/* 移动端子菜单样式 */
.mobile-submenu {
    display: none;
    padding-left: 20px;
    border-top: 1px solid #F5F7FA;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu a {
    display: block;
    padding: 10px 0;
    color: #616E7C;
    font-size: 0.9rem;
}

.mobile-submenu a:hover {
    color: #e63946;
}

.mobile-dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
}

.mobile-dropdown-btn i {
    transition: transform 0.3s ease;
}

.mobile-dropdown-btn.active i {
    transform: rotate(180deg);
}

/* 页脚样式 */
footer {
    background-color: #1E293B;
    color: white;
}

footer h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: #94A3B8;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

footer .border-t {
    border-top-color: #334155;
}

footer p {
    color: #64748B;
}

/* 返回顶部按钮样式 */
#backToTop {
    background-color: #334155;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 50;
}

#backToTop:hover {
    background-color: #475569;
}


/* 分页 */

.pagination {
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px; }
.pagination > li {
    display: inline; }
.pagination > li > a,
.pagination > li > span {
    position: relative;
    float: left;
    padding: 6px 12px;
    line-height: 1.42857;
    text-decoration: none;
    color: #337ab7;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-left: -1px; }
.pagination > li:first-child > a,
.pagination > li:first-child > span {
    margin-left: 0;
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px; }
.pagination > li:last-child > a,
.pagination > li:last-child > span {
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px; }
.pagination > li > a:hover, .pagination > li > a:focus,
.pagination > li > span:hover,
.pagination > li > span:focus {
    z-index: 2;
    color: #337ab7;
    background-color: #eeeeee;
    border-color: #ddd; }
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus,
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus {
    z-index: 3;
    color: #fff;
    background-color: #FF9800;
    border-color: #FF9800;
    cursor: default; }
/* 分页结束 */

/* 自定义工具类（原 header.html 内联 text/tailwindcss 块迁移） */
.content-auto {
    content-visibility: auto;
}
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}
.transition-transform-opacity {
    transition-property: transform, opacity;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 顶部信息条：下拉时自动收起隐藏（原 header.html 内联 style 块迁移） */
#top-bar {
    max-height: 44px;
    opacity: 1;
    overflow: hidden;
    transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
}
#top-bar.is-hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}
/* 信息条显示时正文同步下移，避免被固定头部遮挡 */
body {
    padding-top: 44px;
    transition: padding-top .3s ease;
}
body.topbar-hidden {
    padding-top: 0;
}
