/* 全局变量与自定义 - 更新配色方案 */
:root {
    --primary: 13, 78, 21; /* 改为更深的森林绿 */
    --primary-light: 46, 125, 50; /* 深绿色 */
    --secondary: 27, 94, 32; /* 更深的森林绿 */
    --tertiary: 0, 184, 148; /* 青绿色 */
    --dark: 30, 41, 59; /* 深色文本 */
    --light: 249, 250, 251; /* 浅色背景 */
    --accent: 233, 64, 87; /* 红色强调色 */
    --card-shadow: 0 10px 25px rgba(13, 78, 21, 0.1);
    --hover-shadow: 0 20px 35px rgba(13, 78, 21, 0.15);
    --gradient-primary: linear-gradient(135deg, rgb(13, 78, 21), rgb(46, 125, 50));
    --gradient-secondary: linear-gradient(135deg, rgb(27, 94, 32), rgb(0, 184, 148));
    --orange-accent: 255, 107, 0; /* 橙色强调色 */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 添加白色装饰效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

/* 白色装饰元素容器 */
.decorative-elements {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* 白色圆形装饰 - 现代化云朵效果 */
.white-decoration {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 70%, transparent 100%);
    border-radius: 50%;
    filter: blur(3px);
    animation: floatSlow 10s ease-in-out infinite;
    z-index: 1;
}

.white-decoration-1 {
    width: 100px;
    height: 100px;
    top: 5%;
    right: 5%;
    animation-delay: 0s;
}

.white-decoration-2 {
    width: 80px;
    height: 80px;
    top: 75%;
    left: 3%;
    animation-delay: 2s;
}

.white-decoration-3 {
    width: 90px;
    height: 90px;
    top: 50%;
    right: 8%;
    animation-delay: 4s;
}

/* 小圆点装饰 */
.white-dot {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: sparkle 6s ease-in-out infinite;
    z-index: 1;
}

.white-dot-1 {
    width: 6px;
    height: 6px;
    top: 20%;
    left: 10%;
    animation-delay: 1s;
}

.white-dot-2 {
    width: 8px;
    height: 8px;
    top: 85%;
    right: 15%;
    animation-delay: 3s;
}

/* 现代化动画效果 */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-10px) translateX(5px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-5px) translateX(-8px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-15px) translateX(3px);
        opacity: 0.7;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* 白色圆形装饰 - 类似云朵 */
.white-decoration {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    filter: blur(8px);
    animation: float 6s ease-in-out infinite;
}

.white-decoration-1 {
    width: 160px;
    height: 80px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.white-decoration-3 {
    width: 128px;
    height: 64px;
    top: 5%;
    left: 20%;
    animation-delay: 2s;
}

.white-decoration-4 {
    width: 200px;
    height: 100px;
    top: 60%;
    left: 5%;
    animation-delay: 3s;
}

.white-decoration-5 {
    width: 180px;
    height: 90px;
    top: 70%;
    right: 15%;
    animation-delay: 4s;
}

.white-decoration-6 {
    width: 120px;
    height: 60px;
    top: 40%;
    left: 80%;
    animation-delay: 5s;
}

/* 彩色背景装饰 */
.color-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: floatSlow 8s ease-in-out infinite;
}

.color-decoration-1 {
    width: 256px;
    height: 256px;
    background: rgba(167, 199, 231, 0.6);
    top: 0;
    right: 0;
    margin-right: -80px;
    margin-top: -80px;
    animation-delay: 0s;
}

.color-decoration-2 {
    width: 320px;
    height: 320px;
    background: rgba(245, 214, 171, 0.6);
    bottom: 0;
    left: 0;
    margin-left: -80px;
    margin-bottom: -80px;
    animation-delay: 2s;
}

/* 动画定义 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(-5px) translateX(10px);
    }
    75% {
        transform: translateY(-15px) translateX(-5px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-20px) translateX(20px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 确保主要内容在装饰之上 */
.main-container {
    position: relative;
    z-index: 10;
}

nav {
    position: relative;
    z-index: 100;
}

.font-serif {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* 导航栏样式 - 更新为更大更深的字体 */
.nav-link {
    position: relative;
    font-weight: 500; /* 从400改为500 */
    font-size: 1.1rem; /* 增加字体大小 */
    color: rgba(13, 78, 21, 0.85) !important; /* 更深的森林绿 */
}

.nav-link:hover {
    color: rgb(13, 78, 21) !important; /* 悬停时更深的森林绿 */
}

nav.bg-white {
    --tw-bg-opacity:1;
    background-color: rgba(232, 241, 218, 0.74) !important; /* Yellow background */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(to right, rgb(13, 78, 21), rgb(46, 125, 50)); /* 更深的森林绿渐变 */
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: rgb(13, 78, 21) !important; /* 选中状态更深的森林绿 */
}

.nav-link.active::after {
    width: 100%;
}

/* 二级导航下拉菜单样式 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .nav-link svg {
    transform: rotate(180deg);
    color: rgb(13, 78, 21);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #4B5563;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: rgba(13, 78, 21, 0.05);
    color: rgb(13, 78, 21);
    transform: translateX(2px);
    border-left: 3px solid rgb(13, 78, 21);
}

/* 移动端二级导航样式 */
.mobile-nav-item {
    margin-bottom: 8px;
}

.mobile-submenu-toggle {
    transition: transform 0.2s ease;
    color: rgba(13, 78, 21, 0.7);
}

.mobile-submenu-toggle:hover {
    color: rgb(13, 78, 21);
}

.mobile-submenu-toggle.active svg {
    transform: rotate(180deg);
    color: rgb(13, 78, 21);
}

.mobile-submenu {
    background-color: #F8FAFC;
    border-radius: 8px;
    border-left: 3px solid rgb(13, 78, 21);
    transition: all 0.3s ease;
}

.mobile-submenu.show {
    display: block !important;
}

.mobile-submenu a {
    position: relative;
    font-size: 14px;
    color: rgba(13, 78, 21, 0.7);
}

.mobile-submenu a:hover {
    color: rgb(13, 78, 21);
    background-color: rgba(13, 78, 21, 0.05);
}

.mobile-submenu a::before {
    content: '•';
    position: absolute;
    left: -8px;
    color: rgb(13, 78, 21);
}

/* 移动导航 - 修复显示问题 */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.show {
    display: block;
}

/* 卡片悬浮效果 */
.card-hover {
    transition: all 0.3s ease;
    transform: translateY(0);
}

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

/* 改进的渐变按钮 */
.btn-gradient {
    background-image: var(--gradient-primary);
    box-shadow: 0 5px 15px rgba(var(--primary), 0.3), 0 3px 8px rgba(var(--secondary), 0.2);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    box-shadow: 0 8px 25px rgba(var(--primary), 0.4), 0 5px 15px rgba(var(--secondary), 0.3);
    filter: brightness(1.05);
}

/* 艺术风格的文字装饰 - 移除 */
.art-title {
    position: relative;
}

/* 微妙的阴影效果 */
.shadow-soft {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 5px 10px rgba(0, 0, 0, 0.07);
}

.shadow-accent {
    box-shadow: 0 10px 25px rgba(var(--primary), 0.08), 0 5px 10px rgba(var(--primary), 0.1);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(var(--primary), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--primary), 0.4);
}

.back-to-top svg {
    color: rgb(13, 78, 21);
}

/* 轻微的悬停效果 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 添加导航栏大气效果 */
.nav-container {
    background: linear-gradient(120deg, #ffffff, #f8f9ff);
    border-bottom: 1px solid rgba(var(--primary), 0.08);
    box-shadow: 0 4px 20px rgba(var(--primary), 0.06);
}


/* 悬浮动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

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

/* 选择文字颜色 */
::selection {
    background-color: rgba(102, 187, 106, 0.3);
    color: #1b5e20;
}

/* 彩虹渐变动画 */
@keyframes rainbow-slide {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .glass-effect {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .modern-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    /* 移动端装饰元素优化 */
    .white-decoration {
        opacity: 0.6;
        filter: blur(2px);
    }
    
    .white-decoration-1 {
        width: 60px !important;
        height: 60px !important;
        top: 8% !important;
        right: 2% !important;
    }
    
    .white-decoration-2 {
        width: 50px !important;
        height: 50px !important;
        top: 82% !important;
        left: 2% !important;
    }
    
    .white-decoration-3 {
        display: none; /* 移动端隐藏第三个装饰元素 */
    }
    
    .white-dot {
        opacity: 0.5;
    }
    
    .white-dot-1 {
        width: 4px !important;
        height: 4px !important;
        top: 25% !important;
        left: 5% !important;
    }
    
    .white-dot-2 {
        width: 5px !important;
        height: 5px !important;
        top: 90% !important;
        right: 8% !important;
    }
}

.pagination-btn:hover {
    background-color: rgba(var(--primary), 0.1);
    box-shadow: 0 4px 10px rgba(var(--primary), 0.2);
    transform: translateY(-2px);
}


/* 所有标题使用更细的字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.02em;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid rgb(var(--primary));
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 图片懒加载占位符 */
.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 导航栏标题响应式样式 */
.nav-brand-title {
    transition: all 0.3s ease;
}

/* 响应式布局 */
@media (max-width: 768px) {
    /* 移动端内容区域边距调整，使内容更窄 */
    .main-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .nav-link {
        font-size: 1rem; /* 移动端导航字体适当缩小 */
    }

    /* 导航栏标题适当增大 */
    .nav-brand-title {
        font-size: 1.375rem !important; /* 从 1.25rem 增大到 1.375rem */
    }

    /* 移动端下拉菜单隐藏 */
    .dropdown-menu {
        display: none;
    }

    /* 移动端装饰元素尺寸调整 */
    .white-decoration {
        transform: scale(0.7);
    }

    .color-decoration {
        transform: scale(0.8);
    }
}

/* 页脚徽章区域样式 */
.footer-badges-container {
    transform: scale(0.6) scaleY(0.8);
    transform-origin: center;
    padding: 1rem 0; /* 调整上下边距 */
}