/* CSS 变量定义 */
:root {
    /* 主色调 - 绿色系 */
    --primary-green: #1a5c3a;
    --secondary-green: #2d8f5f;
    --light-green: #4ade80;
    --dark-green: #0f4229;

    /* 辅助色 */
    --accent-red: #e31e24;
    --accent-gold: #d4af37;
    --warm-yellow: #fbbf24;

    /* 功能模块色彩 */
    --module-blue: #1e40af;
    --module-red: #b91c1c;
    --module-teal: #0d9488;
    --module-orange: #ea580c;

    /* 中性色 */
    --white: #ffffff;
    --light-gray: #f3f4f6;
    --medium-gray: #6b7280;
    --dark-gray: #1f2937;
    --border-gray: #e5e7eb;

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* 全局样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[v-cloak] {
    display: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* 确保 #app 不影响 sticky 定位 */
#app {
    /* 移除 position: relative，因为它会影响 sticky 定位 */
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 链接样式 */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1240px !important;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* 顶部背景图 */
.header-back {
    position: relative;
    background-image: url("/static/content/img/header-backgrounp-img.jpg");
    background-repeat: no-repeat;
    background-position: right -10% top 15%;
    background-size: 500px auto;
}

@media (max-width: 1024px) {
    .header-back {
        background: 0;
    }
}

/* Banner 轮播样式 */
.banner-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    z-index: 0;
}

.banner-item.active {
    opacity: 1;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-subtitle {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.banner-cta {
    padding: 0.75rem 2rem;
    background-color: white;
    color: var(--primary-green);
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.banner-cta:hover {
    background-color: var(--light-green);
    color: white;
    transform: scale(1.05);
}

.banner-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 20;
}

.banner-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background-color: white;
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    width: 2rem;
    opacity: 1;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    font-size: 1.5rem;
    font-weight: bold;
    border: none;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-arrow:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.banner-arrow-left {
    left: 1rem;
}

.banner-arrow-right {
    right: 1rem;
}

/* 招生专题 */
.special > a:nth-child(4n+1) {
    border-color: #3b82f6;
}

.special > a:nth-child(4n+1) .svg-style {
    background-color: #3b82f633;
    color: #3b82f6;
}

.special > a:nth-child(4n+2) {
    border-color: #10b981;
}

.special > a:nth-child(4n+2) .svg-style {
    background-color: #10b98133;
    color: #10b981;
}

.special > a:nth-child(4n+3) {
    border-color: #8b5cf6;
}

.special > a:nth-child(4n+3) .svg-style {
    background-color: #8b5cf633;
    color: #8b5cf6;
}

.special > a:nth-child(4n) {
    border-color: #f59e0b;
}

.special > a:nth-child(4n) .svg-style {
    background-color: #f59e0b33;
    color: #f59e0b;
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.2s ease;
}

.card-hover:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* 响应式 */
@media (max-width: 768px) {
    .banner {
        height: 240px !important;
    }

    .banner-title {
        font-size: 1.5rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .banner-cta {
        padding: 0.5rem 1.5rem;
        font-size: 0.875rem;
    }

    .banner-arrow {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 隐藏滚动条但保持滚动功能 */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Header 导航样式 */
/* Sticky 定位支持 - 确保导航栏粘性定位正常工作 */
/*nav.sticky,*/
/*.sticky {*/
/*    position: -webkit-sticky !important;*/
/*    position: sticky !important;*/
/*    top: 0 !important;*/
/*    z-index: 50 !important;*/
/*}*/

/* SideBar 侧边栏样式 */
.sidebar-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar-tooltip {
    position: absolute;
    right: 100%;
    margin-right: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: #111827;
    color: white;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.group:hover .sidebar-tooltip {
    opacity: 1;
}

.qrcode-popup {
    position: absolute;
    right: 100%;
    margin-right: 0.75rem;
    bottom: 0;
}

.nav-item {
    display: inline-block;
    padding: 0.875rem 1.25rem;
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
}

.nav-item:hover {
    background-color: rgba(15, 66, 41, 0.5);
}

.nav-dropdown {
    display: inline-block;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    min-width: 12rem;
    z-index: 50;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

/* 填充下拉菜单和按钮之间的间隙，防止鼠标移动时菜单关闭 */
.dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f9fafb;
    color: #1a5c3a;
}

.mobile-nav-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-item:hover {
    background-color: #f9fafb;
    color: #1a5c3a;
}

.mobile-nav-subitem {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

.mobile-nav-subitem:hover {
    color: #1a5c3a;
}

/* Header 滚动动画优化 */
header {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

header > div:first-child {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* 增加的触发器选择器，提升动画性能 */
.header-hidden {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar-tooltip {
    position: absolute;
    right: 100%;
    margin-right: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: #111827;
    color: white;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.group:hover .sidebar-tooltip {
    opacity: 1;
}

.qrcode-popup {
    position: absolute;
    right: 100%;
    margin-right: 0.75rem;
    bottom: 0;
}

.stats-grid > div:nth-child(4n+1) .tt-color {
    color: var(--primary-green);
}

.stats-grid > div:nth-child(4n+2) .tt-color {
    color: #2563eb; /* Tailwind blue-600 */
}

.stats-grid > div:nth-child(4n+3) .text-2xl {
    color: #7c3aed; /* Tailwind purple-600 */
}

.stats-grid > div:nth-child(4n) .tt-color {
    color: #ea580c; /* Tailwind orange-600 */
}

.html-container img{
    display: inline-block !important;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.pagination li a, .pagination li span {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: none;
    background-color: #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pagination li:hover a {
    background-color: #e5e7eb;
}

.pagination .active span {
    background-color: #1a5c3a;
    color: white;
}

@media (max-width: 768px) {

    /* 移动端极简模式：只显示"上一页/下一页" */
    .pagination li {
        display: none;
    }

    .pagination li:first-child,
    .pagination li:last-child {
        display: block;
    }

}

