/* ===== 榴莲视频 - 专业榴莲行业内容平台 | 完整样式表 ===== */
/* ===== 主题变量 & 重置 ===== */
:root {
    --bg-primary: #f9fafb;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-footer: #182c25;
    --text-strong: #17202A;
    --text-body: #1F2937;
    --text-sub: #334155;
    --text-muted: #4b5563;
    --accent-green: #1b4332;
    --accent-green-light: #2d6a4f;
    --accent-gold: #b98a2f;
    --accent-gold-light: #f0c25e;
    --border-light: #e5e7eb;
    --nav-bg: rgba(27, 67, 50, 0.92);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(27, 67, 50, 0.15);
    --radius: 14px;
    --radius-lg: 20px;
    --max-width: 1280px;
    --transition: 0.25s ease;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.3);
    --hero-gradient: linear-gradient(135deg, #1b4332 0%, #2d6a4f 60%, #3a8b6f 100%);
    --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 暗色模式变量覆盖 */
body.dark {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-card: #1e293b;
    --bg-footer: #0f1a17;
    --text-strong: #F9FAFB;
    --text-body: #E2E8F0;
    --text-sub: #CBD5E1;
    --text-muted: #9ca3af;
    --border-light: #374151;
    --accent-green: #0f1a17;
    --accent-green-light: #4ade80;
    --accent-gold: #d4a43c;
    --accent-gold-light: #f0c25e;
    --nav-bg: rgba(15, 23, 42, 0.92);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --hero-gradient: linear-gradient(135deg, #0f1a17 0%, #1b4332 50%, #2d6a4f 100%);
}

/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-body);
    line-height: 1.7;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-strong);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.8rem 0;
}

h1 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(120deg, #ffffff 0%, #f0fdf4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.1rem;
    margin: 2.8rem 0 1.5rem;
    position: relative;
    letter-spacing: -0.01em;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green-light), var(--accent-gold-light));
    border-radius: 4px;
}

h3 {
    font-size: 1.4rem;
    margin: 1.2rem 0 0.8rem;
}

h4 {
    font-size: 1.15rem;
    margin: 1rem 0 0.5rem;
    color: var(--accent-green-light);
    font-weight: 600;
}

p {
    color: var(--text-body);
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--accent-green-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-gold-light);
    text-decoration: none;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 2rem 0;
}

::selection {
    background: var(--accent-green-light);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-green), var(--accent-green-light));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* ===== 导航栏 ===== */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 1.5rem;
}

.logo {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.logo span {
    color: var(--accent-gold-light);
    position: relative;
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gold-light);
    border-radius: 3px;
    opacity: 0.6;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.3rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold-light);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--accent-gold-light);
    text-decoration: none;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.25rem 0.25rem 0.25rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--accent-gold-light);
    box-shadow: 0 0 0 3px rgba(240, 194, 94, 0.15);
}

.search-box input {
    border: none;
    background: transparent;
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
    width: 160px;
    color: #ffffff;
    outline: none;
    transition: width 0.3s ease;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box input:focus {
    width: 200px;
}

.search-box button {
    background: var(--accent-gold-light);
    border: none;
    color: var(--accent-green);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-box button:hover {
    background: #d4a43c;
    transform: scale(1.05);
}

.dark-toggle,
.menu-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.dark-toggle:hover,
.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(10deg) scale(1.05);
}

.menu-toggle {
    display: none;
}

/* ===== Hero / Banner ===== */
.hero {
    background: var(--hero-gradient);
    color: white;
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(240, 194, 94, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1 1 350px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    max-width: 100%;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.hero .badge {
    display: inline-block;
    background: rgba(240, 194, 94, 0.2);
    color: var(--accent-gold-light);
    padding: 0.35rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.8rem;
    border: 1px solid rgba(240, 194, 94, 0.3);
    backdrop-filter: blur(8px);
    letter-spacing: 0.3px;
}

.hero-visual {
    flex: 0 1 320px;
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

.hero-visual svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.btn-group {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-gold-light), #d4a43c);
    color: #17201a;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(240, 194, 94, 0.3);
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(240, 194, 94, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold-light);
    color: var(--accent-gold-light);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(240, 194, 94, 0.15);
    box-shadow: 0 8px 25px rgba(240, 194, 94, 0.2);
}

/* ===== 卡片区域 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin: 2rem 0;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease backwards;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green-light), var(--accent-gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: transparent;
}

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

.card h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--accent-green-light);
}

.card h4 {
    color: var(--accent-green-light);
    margin-bottom: 0.8rem;
}

.card p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.8;
}

.card .more {
    font-weight: 600;
    color: var(--accent-green-light);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s ease;
}

.card .more:hover {
    gap: 0.6rem;
}

/* 为卡片添加不同的动画延迟 */
.card-grid .card:nth-child(1) { animation-delay: 0.05s; }
.card-grid .card:nth-child(2) { animation-delay: 0.1s; }
.card-grid .card:nth-child(3) { animation-delay: 0.15s; }
.card-grid .card:nth-child(4) { animation-delay: 0.2s; }

/* ===== 文章列表 ===== */
.article-row {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.article-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    transition: all 0.3s ease;
    animation: fadeInLeft 0.5s ease backwards;
}

.article-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(6px);
    border-color: var(--accent-green-light);
}

.article-item h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.article-item:hover h4 {
    color: var(--accent-gold);
}

.article-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.article-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.read-more {
    font-weight: 600;
    color: var(--accent-green-light);
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(45, 106, 79, 0.1);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.read-more:hover {
    background: var(--accent-green-light);
    color: #fff;
    text-decoration: none;
}

/* ===== FAQ ===== */
.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.2rem 1.8rem;
    border: 1px solid var(--border-light);
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease backwards;
}

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

.faq-item.open {
    border-color: var(--accent-green-light);
    background: var(--bg-secondary);
}

.faq-question {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-strong);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--accent-green-light);
}

.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    color: var(--accent-green-light);
    font-weight: 400;
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item.open .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    margin-top: 0.8rem;
    color: var(--text-body);
    display: none;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

.faq-item.open .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== 表格 ===== */
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.info-table th,
.info-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.info-table th {
    background: var(--accent-green);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.info-table td {
    color: var(--text-body);
    font-size: 0.95rem;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tbody tr {
    transition: background 0.2s ease;
}

.info-table tbody tr:hover {
    background: rgba(45, 106, 79, 0.05);
}

/* ===== HowTo 样式 ===== */
.howto-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.howto-box ol {
    margin: 1rem 0 1rem 1.5rem;
    padding: 0;
}

.howto-box ol li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
    position: relative;
    line-height: 1.8;
    counter-increment: step-counter;
}

.howto-box ol li::marker {
    color: var(--accent-green-light);
    font-weight: 700;
}

.howto-box strong {
    color: var(--accent-gold);
}

/* ===== 标签 ===== */
.tag {
    background: linear-gradient(135deg, #e0f2e9, #d1e7dd);
    color: var(--accent-green);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.3px;
}

body.dark .tag {
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent-green-light);
}

/* ===== 页脚 ===== */
footer {
    background: var(--bg-footer);
    color: #d1d5db;
    padding: 3.5rem 0 1.5rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green-light), var(--accent-gold-light), var(--accent-green-light));
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

footer h4 {
    color: #f0fdf4;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent-gold-light);
    border-radius: 3px;
}

footer a {
    color: #9ca3af;
    display: inline-block;
    margin-right: 0.8rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

footer a:hover {
    color: var(--accent-gold-light);
    transform: translateX(3px);
}

footer p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #8ba79b;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    background: rgba(240, 194, 94, 0.2);
    color: var(--accent-gold-light);
}

/* ===== 返回顶部按钮 ===== */
#backTop {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    background: var(--accent-green);
    border: none;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
    z-index: 99;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    backdrop-filter: blur(8px);
}

#backTop.show {
    opacity: 1;
    transform: translateY(0);
}

#backTop:hover {
    background: var(--accent-green-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(45, 106, 79, 0.4);
}

/* ===== 通用工具类 ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
}

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ===== 联系信息卡片 ===== */
.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    text-align: center;
}

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

.contact-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--accent-green-light);
}

.contact-card p {
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* ===== 企业信息区域 ===== */
.enterprise-info {
    background: var(--bg-card);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.enterprise-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.enterprise-info strong {
    color: var(--accent-green-light);
}

/* ===== 滚动动画 ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* 滚动进入视口动画 */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* 响应式布局 */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .nav-links {
        gap: 1.2rem;
    }

    .search-box input {
        width: 120px;
    }

    .search-box input:focus {
        width: 150px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero {
        padding: 3.5rem 0;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
        margin: 2rem 0 1.2rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    section {
        padding: 1.5rem 0;
    }

    /* 导航移动端 */
    .nav-wrap {
        padding: 0.7rem 16px;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: var(--nav-bg);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem 1.5rem;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        gap: 0.3rem;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-links.show {
        display: flex;
        animation: fadeInDown 0.3s ease;
    }

    .nav-links a {
        padding: 0.8rem 1rem;
        border-radius: 8px;
        transition: background 0.2s ease;
        font-size: 1rem;
    }

    .nav-links a:hover {
        background: rgba(240, 194, 94, 0.15);
        color: var(--accent-gold-light);
    }

    .nav-links a::after {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .search-box {
        flex: 1;
        max-width: 200px;
    }

    .search-box input {
        width: 100%;
        font-size: 0.85rem;
    }

    .search-box input:focus {
        width: 100%;
    }

    .search-box button {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .dark-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    /* Hero 移动端 */
    .hero {
        padding: 2.5rem 0;
        text-align: center;
    }

    .hero .container {
        flex-direction: column;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-visual {
        flex: 1 1 auto;
        max-width: 220px;
        margin: 0 auto;
    }

    .btn-group {
        justify-content: center;
    }

    .btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
    }

    /* 卡片网格 */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    /* 文章列表 */
    .article-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1rem;
    }

    .read-more {
        align-self: flex-start;
    }

    /* FAQ */
    .faq-item {
        padding: 1rem;
    }

    .faq-question {
        font-size: 0.95rem;
    }

    /* 页脚 */
    footer {
        padding: 2.5rem 0 1rem;
    }

    footer .container {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        padding: 0 16px;
    }

    footer h4 {
        font-size: 1.1rem;
    }

    .copyright {
        font-size: 0.8rem;
        padding: 1rem 16px;
    }

    /* 返回顶部 */
    #backTop {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.7rem 1rem;
        font-size: 1rem;
    }

    /* 表格滚动 */
    .info-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .info-table th,
    .info-table td {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
}

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

    .nav-wrap {
        padding: 0.6rem 12px;
    }

    .search-box {
        max-width: 150px;
    }

    .search-box input {
        font-size: 0.8rem;
    }

    .search-box button {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.8rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .card {
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .article-item h4 {
        font-size: 1rem;
    }

    .footer-links {
        gap: 0.3rem;
    }

    .footer-links a {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 打印样式 */
@media print {
    nav,
    footer,
    #backTop,
    .btn-group,
    .hero-visual {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    section {
        padding: 1rem 0;
    }

    .card,
    .article-item,
    .faq-item {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* 高对比度模式优化 */
@media (prefers-contrast: high) {
    :root {
        --border-light: #4b5563;
        --text-muted: #374151;
    }

    .card,
    .article-item,
    .faq-item,
    .info-table {
        border-width: 2px;
    }
}