/* 全局重置与基础 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #e94560;
    --accent2: #0f3460;
    --gold: #f5a623;
    --bg: #f0f2f5;
    --card-bg: rgba(255, 255, 255, 0.7);
    --text: #1a1a2e;
    --text-light: #555;
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius: 20px;
    --transition: 0.3s ease;
    --nav-height: 70px;
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d0d1a;
        --card-bg: rgba(30, 30, 50, 0.75);
        --text: #e0e0e0;
        --text-light: #aaa;
        --glass-border: rgba(255, 255, 255, 0.1);
        --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        --primary: #0d0d1a;
        --primary-light: #1a1a30;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 滚动动画 */
section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }
section:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 头部导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background var(--transition);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

nav > a {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    gap: 28px;
    align-items: center;
}

nav ul li a {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

nav ul li a:hover {
    color: var(--gold);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero 区域 */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #e94560 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(233, 69, 96, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 70% 30%, rgba(245, 166, 35, 0.1) 0%, transparent 50%);
    animation: heroGlow 12s infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

#hero h1 {
    font-size: clamp(2.4rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--gold), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

#hero p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    max-width: 680px;
    margin: 0 auto 40px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

#hero div {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

#hero div a {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    cursor: pointer;
}

#hero div a:first-child {
    background: var(--gold);
    color: #1a1a2e;
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.4);
}

#hero div a:first-child:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.6);
}

#hero div a:last-child {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
}

#hero div a:last-child:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-4px);
}

/* 通用section */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

section h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--accent));
    border-radius: 4px;
    margin-top: 8px;
}

section > p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 720px;
    margin-bottom: 40px;
}

/* 卡片通用 */
section ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

section ul li {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: default;
}

section ul li:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    border-color: var(--gold);
}

section ul li h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text);
}

section ul li p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* About 特殊 */
#about {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    padding: 60px 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

#about p {
    margin-bottom: 16px;
    font-size: 1.02rem;
}

/* 资讯文章 */
#insights article {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

#insights article:hover {
    transform: translateX(6px);
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

#insights article h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

#insights article p {
    color: var(--text-light);
    margin-bottom: 8px;
}

#insights article time {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

/* FAQ */
#faq > div {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

#faq > div:hover {
    transform: translateX(4px);
    border-color: var(--gold);
}

#faq h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text);
}

#faq p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 联系 */
#contact address {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow);
    font-style: normal;
    line-height: 2;
    transition: all var(--transition);
}

#contact address:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

#contact address a {
    color: var(--accent);
    font-weight: 600;
}

#contact address a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--primary);
    color: #ccc;
    padding: 48px 24px 32px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 32px;
    margin-bottom: 24px;
}

footer nav ul li a {
    color: #aaa;
    font-size: 0.9rem;
    transition: color var(--transition);
}

footer nav ul li a:hover {
    color: var(--gold);
}

footer p {
    font-size: 0.85rem;
    margin-bottom: 6px;
    opacity: 0.7;
}

/* 响应式 */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    nav ul {
        gap: 14px;
    }

    nav ul li a {
        font-size: 0.85rem;
    }

    nav > a {
        font-size: 1.3rem;
    }

    section {
        padding: 60px 16px;
    }

    #hero {
        padding: 100px 16px 60px;
    }

    #about {
        padding: 40px 20px;
    }

    section ul {
        grid-template-columns: 1fr;
    }

    #hero div {
        flex-direction: column;
        align-items: center;
    }

    #hero div a {
        width: 80%;
        text-align: center;
    }

    footer nav ul {
        gap: 12px 20px;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 10px;
    }

    nav ul li a {
        font-size: 0.75rem;
    }

    nav > a {
        font-size: 1.1rem;
    }

    #hero h1 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 1.6rem;
    }

    #contact address {
        padding: 20px;
    }
}