/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 暖色调配色方案 */
    --primary-color: #2d1b1b;
    --secondary-color: #3d2525;
    --accent-color: #ff8c42;
    --accent-hover: #ff6b35;
    --accent-secondary: #ff6b6b;
    --accent-tertiary: #ffa726;
    
    /* 文字颜色 - 高对比度确保可读性 */
    --text-color: #ffffff;
    --text-light: #f5f5f5;
    --text-muted: #d4c4c4;
    --text-accent: #ff8c42;
    
    /* 背景色 - 暖色深色主题 */
    --bg-color: #1a0f0f;
    --bg-light: #2d1b1b;
    --bg-card: #3d2525;
    --bg-card-hover: #4a2d2d;
    --bg-gradient: linear-gradient(135deg, #1a0f0f 0%, #2d1b1b 50%, #3d2525 100%);
    
    /* 边框和阴影 */
    --border-color: #5a3a3a;
    --border-accent: #ff8c42;
    --shadow: 0 4px 20px rgba(255, 140, 66, 0.15);
    --shadow-hover: 0 8px 30px rgba(255, 140, 66, 0.25);
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.4);
    
    /* 状态颜色 */
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --info-color: #ff8c42;
    
    /* 其他 */
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #ff8c42 0%, #ffa726 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #ff9800 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-gradient);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 2px solid var(--accent-color);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* 防止换行 */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    border: 2px solid var(--accent-color);
}

.logo-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(1.1);
}

.logo-text h1 {
    font-size: 1.6rem; /* 略微调小标题 */
    margin-bottom: 0.2rem;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 1.2rem; /* 缩小菜单间距 */
}

/* 汉堡按钮样式 */
.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* 垂直堆叠三条线 */
    gap: 5px; /* 控制条纹间距 */
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-color);
    margin: 0; /* 使用容器 gap 控制间距 */
    border-radius: 2px;
    transition: var(--transition);
}

/* 展开时变为 X */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.4rem 0.8rem; /* 缩小内边距，整体更紧凑 */
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: var(--gradient-primary);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

/* 引流按钮（CTA）样式 */
.nav-cta {
    background: var(--gradient-primary);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
    font-weight: 700;
}

.nav-cta:hover {
    background: var(--gradient-secondary);
    border-color: var(--accent-hover);
}

/* 保证 header 单行且在极端情况下收缩文字而不是换行 */
.header .logo-text h1,
.header .logo-text p,
.nav {
    white-space: nowrap;
}

/* 在可用空间不足时优先压缩 logo 文本与导航的间距 */
.logo-text {
    min-width: 0;
}

.nav {
    flex: 0 1 auto;
}

.header-content {
    gap: 0.75rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    color: var(--text-color);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 140, 66, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 167, 38, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.deer-illustration {
    width: 400px;
    height: 400px;
    background-image: url("assets/images/PlantsVsBrainrots.webp");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7));
    animation: menacingGlow 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.deer-illustration:hover {
    animation-play-state: paused;
    transform: scale(1.15);
    filter: drop-shadow(0 20px 40px rgba(255, 140, 66, 0.6)) brightness(1.3);
}

@keyframes menacingGlow {
    0% { 
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)) brightness(1);
    }
    25% { 
        transform: scale(1.08) rotate(2deg);
        filter: drop-shadow(0 15px 30px rgba(255, 140, 66, 0.4)) brightness(1.15);
    }
    50% { 
        transform: scale(1.12) rotate(0deg);
        filter: drop-shadow(0 20px 40px rgba(255, 140, 66, 0.5)) brightness(1.25);
    }
    75% { 
        transform: scale(1.08) rotate(-2deg);
        filter: drop-shadow(0 15px 30px rgba(255, 140, 66, 0.4)) brightness(1.15);
    }
    100% { 
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)) brightness(1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 140, 66, 0.3);
    letter-spacing: 2px;
}

.hero-subhead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    font-weight: 500;
}

.hero-bullets {
    list-style: none;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-bullets li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-bullets li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-secondary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Search Section */
.search-section {
    padding: 2rem 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto 2rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: var(--text-color);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    padding: 1rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.search-btn:hover {
    background: var(--gradient-secondary);
    transform: scale(1.05);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--gradient-primary);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Scripts Section */
.scripts-section {
    padding: 3rem 0;
}

.scripts-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.script-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.script-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
    background: var(--bg-card-hover);
}

.script-header {
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: var(--primary-color);
}

.script-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.script-category {
    font-size: 0.9rem;
    opacity: 0.9;
    background-color: rgba(26, 26, 26, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    display: inline-block;
}

.script-content {
    padding: 1.5rem;
}

.script-description {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.5;
}

.script-code {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow-x: auto;
    margin-bottom: 1rem;
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--gradient-primary);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
    font-weight: 600;
}

.copy-btn:hover {
    background: var(--gradient-secondary);
    transform: scale(1.05);
}

.script-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.action-btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-color);
    font-weight: 600;
}

.action-btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
}

.action-btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.action-btn-secondary:hover {
    background: var(--gradient-primary);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    padding: 3rem 0;
    background: var(--bg-light);
}

.features-section.py-12 {
    padding: 3rem 0;
}

.features-section.bg-green-50 {
    background: var(--bg-light);
}

.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.features-section .text-3xl {
    font-size: 1.875rem;
}

.features-section .font-bold {
    font-weight: 700;
}

.features-section .text-center {
    text-align: center;
}

.features-section .mb-10 {
    margin-bottom: 2.5rem;
}

.features-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-section .mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.features-section .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.features-section .text-gray-800 {
    color: var(--text-color);
}

.features-section .bg-white {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.features-section .bg-white:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.features-section .shadow-md {
    box-shadow: var(--shadow-card);
}

.features-section .rounded-2xl {
    border-radius: 1rem;
}

.features-section .p-6 {
    padding: 1.5rem;
}

.features-section .mb-6 {
    margin-bottom: 1.5rem;
}

.features-section .mb-3 {
    margin-bottom: 0.75rem;
}

.features-section .mb-2 {
    margin-bottom: 0.5rem;
}

.features-section .text-2xl {
    font-size: 1.5rem;
}

.features-section .font-semibold {
    font-weight: 600;
}

.features-section .text-sm {
    font-size: 0.875rem;
}

.features-section .text-center {
    text-align: center;
}

.features-section .text-gray-500 {
    color: var(--text-muted);
}

.features-section .mt-8 {
    margin-top: 2rem;
}

.features-section strong {
    font-weight: 600;
    color: var(--accent-color);
}

.features-section em {
    font-style: italic;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
    background: var(--bg-card-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 3rem 0;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.about-text {
    text-align: center;
    max-width: 100%;
    width: 100%;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-light);
}

.about-features {
    text-align: center;
    max-width: 600px;
}

.about-features h3 {
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.about-features ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.about-features li {
    color: var(--text-light);
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    flex: 0 0 auto;
    white-space: nowrap;
}

.about-features li:hover {
    background: var(--gradient-primary);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Tips Section */
.tips-section {
    padding: 3rem 0;
    background: var(--bg-light);
}

.tips-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tip-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tip-card:hover::before {
    transform: scaleX(1);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
    background: var(--bg-card-hover);
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
    filter: drop-shadow(0 4px 8px rgba(255, 140, 66, 0.3));
}

.tip-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-align: center;
    font-weight: 600;
}

.tip-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tip-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.tip-card li {
    color: var(--text-light);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.tip-card li:before {
    content: "✓";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tip-card li:last-child {
    border-bottom: none;
}

.tip-card strong {
    color: var(--accent-color);
    font-weight: 600;
}

.tips-conclusion {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    text-align: center;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.tips-conclusion:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.tips-conclusion h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tips-conclusion p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
    padding: 3rem 0;
    background: var(--bg-light);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--bg-card));
    transition: var(--transition);
}

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

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    transition: var(--transition);
    min-width: 30px;
    text-align: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--bg-card);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-light);
}

.faq-answer ol,
.faq-answer ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.code-block {
    background-color: #2d3748;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-block code {
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-all;
}

/* Promotion Cards Section */
.promotion-cards-section {
    background: linear-gradient(135deg, #1a0f0f 0%, #2d1b1b 50%, #1a0f0f 100%);
    padding: 2rem 0;
    border-top: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    overflow: hidden;
    position: relative;
    box-shadow: 
        inset 0 2px 10px rgba(255, 140, 66, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.2);
}

.promotion-cards-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 140, 66, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(255, 167, 38, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.promotion-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
}

.promotion-content {
    display: flex;
    align-items: center;
    animation: cardScroll 30s linear infinite;
    white-space: nowrap;
    will-change: transform;
    gap: 30px;
}

/* Base promotion card styles */
.promotion-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 560px;
    width: 560px;
    background: rgba(26, 26, 26, 0.8);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.promotion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.promotion-card:hover::before {
    left: 100%;
}

.promotion-card:hover {
    background: rgba(77, 37, 37, 0.6);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.4);
}

/* Active promotion card styles */
.promotion-card.active {
    background: rgba(45, 27, 27, 0.9);
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.3);
}

.promotion-card.active:hover {
    background: rgba(77, 37, 37, 0.8);
    border-color: var(--accent-hover);
    box-shadow: 0 12px 35px rgba(255, 140, 66, 0.5);
}

/* Coming Soon card styles */
.promotion-card.coming-soon {
    background: rgba(15, 15, 15, 0.6);
    border: 2px dashed rgba(76, 175, 80, 0.5);
    opacity: 0.7;
    cursor: default;
}

.promotion-card.coming-soon:hover {
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(76, 175, 80, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.2);
}

/* Card image styles */
.card-image {
    position: relative;
    width: 200px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    border: 4px solid var(--accent-color);
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.4);
    transition: all 0.3s ease;
}

.promotion-card:hover .card-image {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.5);
}

.promotion-card.coming-soon .card-image {
    filter: grayscale(50%);
    opacity: 0.8;
    border-color: rgba(76, 175, 80, 0.5);
}

.promotion-card.coming-soon:hover .card-image {
    transform: scale(1.05);
    filter: grayscale(30%);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.promotion-card:hover .card-img {
    transform: scale(1.1);
}

/* Card overlay styles */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 140, 66, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promotion-card:hover .card-overlay {
    opacity: 1;
}

.card-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9));
}

/* Card text styles */
.card-text {
    text-align: center;
}

.card-title {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
    line-height: 1.3;
}

.promotion-card:hover .card-title {
    color: var(--accent-color);
}

.promotion-card.coming-soon .card-title {
    color: rgba(255, 255, 255, 0.8);
}

.promotion-card.coming-soon:hover .card-title {
    color: var(--accent-color);
}

.card-description {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.promotion-card:hover .card-description {
    color: var(--accent-hover);
    opacity: 1;
}

.promotion-card.coming-soon .card-description {
    color: rgba(179, 179, 179, 0.6);
    font-style: italic;
}

.promotion-card.coming-soon:hover .card-description {
    color: rgba(179, 179, 179, 0.8);
}

/* Animation styles */
@keyframes cardScroll {
    0% {
        transform: translateX(20%);
    }
    100% {
        transform: translateX(-80%);
    }
}

/* Pause animation on hover */
.promotion-container:hover .promotion-content {
    animation-play-state: paused;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    padding: 3rem 0 1rem;
    border-top: 2px solid var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-primary);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    transform: translateX(400px);
    transition: var(--transition);
    z-index: 10000;
    font-weight: 600;
    border: 2px solid var(--accent-color);
}

.toast.show {
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-toggle {
        display: inline-flex;
        align-self: flex-end;
    }

    /* 折叠行为：默认隐藏菜单，点击展示 */
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color);
    }

    .nav.open {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .deer-illustration {
        width: 300px;
        height: 300px;
    }

    .scripts-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        gap: 2rem;
    }

    .about-features ul {
        flex-direction: column;
        align-items: center;
    }

    .about-features li {
        white-space: normal;
        text-align: center;
        min-width: 200px;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 1rem;
    }

    .filter-tabs {
        gap: 0.5rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tip-card {
        padding: 1.5rem;
    }

    .tip-icon {
        font-size: 2.5rem;
    }

    .tip-card h3 {
        font-size: 1.3rem;
    }

    .filter-tab {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .script-actions {
        flex-direction: column;
    }

    .toast {
        right: 1rem;
        left: 1rem;
        transform: translateY(100px);
    }

    .toast.show {
        transform: translateY(0);
    }

    /* Promotion Cards mobile styles */
    .promotion-cards-section {
        padding: 1.5rem 0;
    }
    
    .promotion-container {
        height: 200px;
    }
    
    .promotion-card {
        min-width: 300px;
        width: 300px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .card-image {
        width: 150px;
        height: 90px;
        margin-bottom: 12px;
        border: 3px solid var(--accent-color);
        border-radius: 12px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-description {
        font-size: 1rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .scripts-section h2,
    .features-section h2,
    .about-section h2 {
        font-size: 2rem;
    }

    .script-code {
        font-size: 0.8rem;
        padding: 0.8rem;
    }

    .tips-section h2 {
        font-size: 2rem;
    }

    .tip-card {
        padding: 1rem;
    }

    .tip-icon {
        font-size: 2rem;
    }

    .tip-card h3 {
        font-size: 1.2rem;
    }

    .tips-conclusion {
        padding: 1.5rem;
    }

    .tips-conclusion h3 {
        font-size: 1.5rem;
    }

    .tips-conclusion p {
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Promotion Cards extra small screens */
@media (max-width: 480px) {
    .promotion-cards-section {
        padding: 1rem 0;
    }
    
    .promotion-container {
        height: 180px;
    }
    
    .promotion-card {
        min-width: 250px;
        width: 250px;
        padding: 16px;
        border-radius: 12px;
    }
    
    .card-image {
        width: 120px;
        height: 75px;
        margin-bottom: 10px;
        border: 3px solid var(--accent-color);
        border-radius: 10px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
    
    .card-icon {
        font-size: 1.8rem;
    }
}

/* Enhanced How to Use Section Styles */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.step-container {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    margin-bottom: 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    flex: 1;
    min-width: 0;
    height: fit-content;
    display: flex;
    flex-direction: column;
}

.step-container:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: var(--shadow-card);
}

.step-header h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.3;
}

.executor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.6rem;
    margin: 0.8rem 0;
}

.executor-item {
    background: var(--bg-light);
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.executor-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.executor-item strong {
    display: block;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.executor-item span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.download-sources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.6rem;
    margin: 0.8rem 0;
}

.source-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem;
    background: var(--bg-light);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.source-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.source-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.source-item strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.source-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

.execution-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.6rem;
    margin: 0.8rem 0;
}

.execution-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem;
    background: var(--bg-light);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.execution-step:hover {
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.step-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.execution-step span:last-child {
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.6rem;
    margin: 0.8rem 0;
}

.feature-category {
    background: var(--bg-light);
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-category:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.feature-category h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-category ul {
    list-style: none;
    padding: 0;
}

.feature-category li {
    color: var(--text-light);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.feature-category li:before {
    content: "✓";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.feature-category li:last-child {
    border-bottom: none;
}

.note {
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1rem;
    text-align: center;
}

/* Responsive Design for Enhanced Styles */
@media (max-width: 1200px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .step-container {
        padding: 1.5rem;
    }
    
    .executor-grid,
    .download-sources,
    .execution-steps,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .step-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .source-item {
        flex-direction: column;
        text-align: center;
    }
    
    .execution-step {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .step-container {
        padding: 1rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step-header h3 {
        font-size: 1.3rem;
    }
}


