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

:root {
    --primary: #1a1a2e;
    --primary-light: #2d2d5e;
    --accent: #e94560;
    --accent-hover: #ff6b7a;
    --gradient-start: #0f0c29;
    --gradient-mid: #302b63;
    --gradient-end: #24243e;
    --text: #f0f0f0;
    --text-muted: #b0b0c0;
    --card-bg: rgba(255,255,255,0.06);
    --card-border: rgba(255,255,255,0.10);
    --glass-bg: rgba(255,255,255,0.08);
    --glass-border: rgba(255,255,255,0.15);
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 暗色模式（默认即暗色，但保留亮色切换能力） */
body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.5s ease, color 0.3s ease;
}

/* 滚动动画基础 */
section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.7s ease forwards;
}

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

/* 延迟动画 */
section:nth-of-type(1) { animation-delay: 0.1s; }
section:nth-of-type(2) { animation-delay: 0.2s; }
section:nth-of-type(3) { animation-delay: 0.3s; }
section:nth-of-type(4) { animation-delay: 0.4s; }
section:nth-of-type(5) { animation-delay: 0.5s; }
section:nth-of-type(6) { animation-delay: 0.6s; }
section:nth-of-type(7) { animation-delay: 0.7s; }
section:nth-of-type(8) { animation-delay: 0.8s; }

/* 容器 */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* 头部导航 */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 26, 46, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    transition: background 0.3s ease;
}

nav[aria-label="主导航"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
}

nav[aria-label="主导航"] > a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

nav[aria-label="主导航"] > a:hover {
    color: var(--accent);
}

nav[aria-label="主导航"] ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav[aria-label="主导航"] ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.4rem 0.2rem;
    position: relative;
    transition: color var(--transition);
}

nav[aria-label="主导航"] ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

nav[aria-label="主导航"] ul li a:hover {
    color: var(--text);
}

nav[aria-label="主导航"] ul li a:hover::after {
    width: 100%;
}

/* Hero 区域 - 渐变Banner */
#hero {
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    background: linear-gradient(135deg, rgba(233,69,96,0.15), rgba(48,43,99,0.4));
    border-radius: var(--radius);
    margin-bottom: 3rem;
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(233,69,96,0.08), transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10%, 10%); }
}

#hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #e94560);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

#hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

#hero a {
    display: inline-block;
    padding: 0.9rem 2.4rem;
    background: var(--accent);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(233,69,96,0.3);
}

#hero a:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233,69,96,0.4);
}

/* 通用 section 标题与卡片 */
section {
    margin-bottom: 3.5rem;
    padding: 2rem 1.5rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform var(--transition), box-shadow var(--transition);
}

section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

section p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* 文章卡片（产品、资讯） */
article {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition);
    cursor: default;
}

article:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: var(--accent);
}

article h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

article p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

article time {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--accent);
    opacity: 0.8;
}

/* 服务列表 */
#services ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

#services ul li {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 1.2rem 1.4rem;
    transition: all var(--transition);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#services ul li:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

#services ul li strong {
    color: var(--accent);
    font-weight: 600;
}

/* FAQ 样式 */
details {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.4rem;
    margin-bottom: 0.8rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all var(--transition);
    cursor: pointer;
}

details:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--accent);
}

details summary {
    font-weight: 600;
    color: var(--text);
    outline: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: '▾';
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform var(--transition);
}

details[open] summary::after {
    transform: rotate(180deg);
}

details p {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* How-to 有序列表 */
#howto ol {
    padding-left: 1.5rem;
    color: var(--text-muted);
    display: grid;
    gap: 0.8rem;
}

#howto ol li {
    padding: 0.5rem 0.8rem;
    background: var(--glass-bg);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    transition: all var(--transition);
}

#howto ol li:hover {
    background: rgba(255,255,255,0.10);
    transform: translateX(4px);
}

/* 联系信息 */
#contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
}

/* 页脚 */
footer {
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

footer nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    margin-bottom: 1.2rem;
}

footer nav ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
    position: relative;
}

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

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

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

footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        padding: 0.6rem 1rem;
    }

    nav[aria-label="主导航"] {
        flex-direction: column;
        gap: 0.8rem;
    }

    nav[aria-label="主导航"] ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav[aria-label="主导航"] ul li a {
        font-size: 0.9rem;
    }

    #hero {
        padding: 4rem 1rem 3rem;
    }

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

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

    section {
        padding: 1.5rem 1rem;
    }

    section h2 {
        font-size: 1.4rem;
    }

    #services ul {
        grid-template-columns: 1fr;
    }

    footer nav ul {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 1.6rem;
    }

    #hero a {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
    }

    article {
        padding: 1rem;
    }
}