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

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #0d0d1a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

/* 暗色模式（默认） */
:root {
    --bg-primary: #0d0d1a;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(26, 26, 46, 0.85);
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --accent: #e94560;
    --accent-hover: #ff6b81;
    --gradient: linear-gradient(135deg, #e94560, #0f3460, #16213e);
    --glass-bg: rgba(26, 26, 46, 0.6);
    --glass-border: rgba(233, 69, 96, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --radius-sm: 10px;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

/* 头部导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 26, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
    flex-wrap: wrap;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

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

nav ul li a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

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

nav button {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

nav button:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
}

/* 主内容 */
main {
    padding-top: 80px;
}

/* 通用 section */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease forwards;
}

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

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }
section:nth-child(8) { animation-delay: 0.7s; }
section:nth-child(9) { animation-delay: 0.8s; }
section:nth-child(10) { animation-delay: 0.9s; }
section:nth-child(11) { animation-delay: 1.0s; }
section:nth-child(12) { animation-delay: 1.1s; }
section:nth-child(13) { animation-delay: 1.2s; }
section:nth-child(14) { animation-delay: 1.3s; }
section:nth-child(15) { animation-delay: 1.4s; }
section:nth-child(16) { animation-delay: 1.5s; }
section:nth-child(17) { animation-delay: 1.6s; }
section:nth-child(18) { animation-delay: 1.7s; }
section:nth-child(19) { animation-delay: 1.8s; }

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--accent), #ff8c94, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-top: 8px;
    border-radius: 2px;
}

h3 {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 12px;
}

p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1rem;
}

/* Hero 横幅 */
#hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 80px 24px;
    background: var(--gradient);
    border-radius: var(--radius);
    margin: 20px auto;
    max-width: 1200px;
    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, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
    animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#hero div:first-child {
    flex: 1;
    z-index: 1;
}

#hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

#hero a {
    display: inline-block;
    padding: 12px 32px;
    margin: 8px 8px 0 0;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
}

#hero a:first-of-type {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

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

#hero a:last-of-type {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

#hero a:last-of-type:hover {
    background: #fff;
    color: var(--accent);
    transform: translateY(-3px);
}

#hero div:last-child {
    flex: 1;
    z-index: 1;
}

#hero svg {
    width: 100%;
    height: auto;
    max-width: 600px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

/* 卡片通用 */
#about > div:last-child,
#products > div,
#solutions > div,
#features > div,
#team > div,
#case-studies > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.4s;
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.3);
}

/* 应用到所有卡片 */
#about > div:last-child > div,
#products > div > div,
#solutions > div > div,
#features > div > div,
#team > div > div,
#case-studies > div > div {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.4s;
    box-shadow: var(--shadow);
}

#about > div:last-child > div:hover,
#products > div > div:hover,
#solutions > div > div:hover,
#features > div > div:hover,
#team > div > div:hover,
#case-studies > div > div:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.3);
}

/* 团队头像 */
#team svg {
    display: block;
    margin: 0 auto 16px;
    transition: transform 0.3s;
}

#team div:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* 列表样式 */
ul, ol {
    padding-left: 24px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

li {
    margin-bottom: 8px;
    transition: color 0.3s;
}

li:hover {
    color: var(--accent);
}

/* 引用 */
blockquote {
    background: var(--glass-bg);
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
    transition: transform 0.3s;
}

blockquote:hover {
    transform: translateX(8px);
}

blockquote p {
    font-style: italic;
    color: var(--text-primary);
}

/* 文章 */
article {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

article:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

article time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* details / FAQ */
details {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    padding: 12px 16px;
    transition: all 0.3s;
    cursor: pointer;
}

details:hover {
    border-color: var(--accent);
}

details summary {
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

details summary::before {
    content: '▶';
    color: var(--accent);
    transition: transform 0.3s;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details p {
    margin-top: 12px;
    padding-left: 24px;
    color: var(--text-secondary);
}

/* 地址 */
address p {
    margin-bottom: 8px;
}

address a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

address a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* 知识中心链接 */
#knowledge-center a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

#knowledge-center a::after {
    content: ' →';
    opacity: 0;
    transition: opacity 0.3s;
}

#knowledge-center a:hover::after {
    opacity: 1;
}

#knowledge-center a:hover {
    color: var(--accent-hover);
    padding-left: 4px;
}

/* footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 40px 24px 20px;
    margin-top: 40px;
}

footer > div:first-child {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

footer h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--accent);
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 8px;
}

footer ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

footer ul li a:hover {
    color: var(--accent);
    padding-left: 4px;
}

footer p:last-child {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 响应式 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
    }

    nav ul {
        justify-content: center;
        gap: 12px;
    }

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

    nav button {
        align-self: flex-end;
    }

    #hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 16px;
    }

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

    #hero a {
        display: block;
        margin: 8px auto;
        width: fit-content;
    }

    section {
        padding: 40px 16px;
    }

    h2 {
        font-size: 1.6rem;
    }

    #about > div:last-child,
    #products > div,
    #solutions > div,
    #features > div,
    #team > div,
    #case-studies > div {
        grid-template-columns: 1fr;
    }

    footer > div:first-child {
        grid-template-columns: 1fr 1fr;
    }
}

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

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

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

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

    footer > div:first-child {
        grid-template-columns: 1fr;
    }
}

/* 毛玻璃效果增强 */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

/* 滚动动画增强（通过 Intersection Observer 模拟，这里用初始动画） */
/* 所有 section 已有 fadeInUp 动画，滚动时自动触发 */