/* 全局变量与自定义 - 更新配色方案 */
:root {
    --primary: 34, 139, 34; /* 改为绿色 */
    --primary-light: 60, 179, 113; /* 浅绿色 */
    --secondary: 46, 125, 50; /* 深绿色 */
    --tertiary: 0, 184, 148; /* 青绿色 */
    --dark: 30, 41, 59; /* 深色文本 */
    --light: 249, 250, 251; /* 浅色背景 */
    --accent: 233, 64, 87; /* 红色强调色 */
    --card-shadow: 0 10px 25px rgba(34, 139, 34, 0.1);
    --hover-shadow: 0 20px 35px rgba(34, 139, 34, 0.15);
    --gradient-primary: linear-gradient(135deg, rgb(34, 139, 34), rgb(60, 179, 113));
    --gradient-secondary: linear-gradient(135deg, rgb(46, 125, 50), 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;
    background-color: rgb(232, 241, 218); /* 黄色背景 */
    position: relative;
    overflow-x: hidden;
}

/* 添加白色装饰效果 */
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: 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(34, 139, 34, 0.85) !important; /* 从0.7改为0.85，更深的绿色 */
}

.nav-link:hover {
    color: rgb(34, 139, 34) !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(34, 139, 34), rgb(60, 179, 113)); /* 绿色渐变 */
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

.nav-link.active {
    color: rgb(34, 139, 34) !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(34, 139, 34);
}

.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(34, 139, 34, 0.05);
    color: rgb(34, 139, 34);
    transform: translateX(2px);
    border-left: 3px solid rgb(34, 139, 34);
}

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

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

.mobile-submenu-toggle:hover {
    color: rgb(34, 139, 34);
}

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

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

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

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

.mobile-submenu a:hover {
    color: rgb(34, 139, 34);
    background-color: rgba(34, 139, 34, 0.05);
}

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

/* 移动导航 - 修复显示问题 */
#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);
}

/* 修改使用指南步骤卡片 */
.step-card {
    position: relative;
    z-index: 1;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 40px;
    border-left: 5px solid rgb(var(--primary));
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(var(--primary), 0.1);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgb(var(--primary));
    color: white;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* 评论卡片样式 */
.review-card {
    position: relative;
}

.review-card::before {
    content: "❝";
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 60px;
    line-height: 1;
    font-family: serif;
    color: rgba(var(--primary), 0.1);
    z-index: 0;
}

/* 改进的FAQ手风琴样式 */
.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(var(--primary), 0.1);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: white;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.faq-question:hover {
    color: rgb(var(--primary));
}

.faq-item.active .faq-question {
    border-left: 4px solid rgb(var(--primary));
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 25px 20px;
}

.faq-toggle {
    transition: transform 0.3s ease;
    background-color: rgba(var(--primary), 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--primary));
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background-color: rgb(var(--primary));
    color: white;
}

/* 回到顶部按钮 */
.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(34, 139, 34);
}

/* 轻微的悬停效果 */
.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);
}

/* 增强标题样式 - 移除蓝色线条 */
.section-title {
    font-size: 2.25rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    color: #1e293b;
    position: relative;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.section-description {
    font-size: 1rem;
    font-weight: 300;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* 评价轮播分页 */
.reviews-pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: #1e293b;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Hero Section 透明化 */
.hero-banner {
    background-color: transparent !important;
    padding: 2rem !important;
}

/* Hero 标题样式 - 更大更细的字体 */
.hero-title {
    font-size: 3.5rem; /* 从2.5rem改为3.5rem */
    font-weight: 200; /* 从300改为200，更细 */
    letter-spacing: 0.03em;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Hero 分隔线 - 移除或改为透明 */
.hero-separator {
    display: none;
}

/* Hero 副标题样式 */
.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    color: #64748b;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* 所有标题使用更细的字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    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) {
    .section-title {
        font-size: 1.875rem;
    }

    .hero-title {
        font-size: 2rem; /* 移动端适当缩小，与 hero.css 保持一致 */
    }

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

    /* 导航栏标题缩小 */
    .nav-brand-title {
        font-size: 1.25rem !important; /* 从 text-2xl (1.5rem) 缩小到 text-xl (1.25rem) */
    }

    .section-description {
        font-size: 0.9rem;
        padding: 0 15px;
    }

    .step-card {
        padding: 20px;
    }

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

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

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

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem; /* 从 1.75rem 调整为 1.5rem，与 hero.css 保持一致 */
    }

    .nav-link {
        font-size: 0.9rem; /* 小屏幕导航字体 */
    }

    /* 导航栏标题进一步缩小 */
    .nav-brand-title {
        font-size: 1rem !important; /* 小屏幕进一步缩小到 text-base (1rem) */
    }

    /* 导航栏图标也相应缩小 */
    .nav-brand-icon {
        width: 2rem !important; /* 从 2.5rem 缩小 */
        height: 2rem !important;
    }

    .nav-brand-icon svg {
        width: 1rem !important; /* 从 1.25rem 缩小 */
        height: 1rem !important;
    }

    .section-description {
        font-size: 0.875rem;
    }

    /* 小屏幕进一步缩小装饰元素 */
    .white-decoration {
        transform: scale(0.5);
    }

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