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

:root {
    --primary: #e94560;
    --primary-dark: #c73a4f;
    --secondary: #0f3460;
    --bg-dark: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.08);
    --text-light: #eaeaea;
    --text-muted: #b0b0b0;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --transition: 0.3s ease;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a:hover {
    color: #ff7b8a;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #ff7b8a);
    margin-top: 0.5rem;
    border-radius: 4px;
}

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

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
}

nav > div:first-child a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.3rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

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

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

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

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

/* Hero 区域 - 渐变Banner */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

#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), transparent 60%),
                radial-gradient(circle at 70% 30%, rgba(15, 52, 96, 0.2), transparent 50%);
    animation: heroGlow 12s ease-in-out infinite alternate;
}

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

#hero > div {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #e94560, #ff7b8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

#hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1.2s ease;
}

#hero div > div {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

#hero a[role="button"] {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    animation: fadeInUp 1.4s ease;
}

#hero a[role="button"]:first-child {
    background: linear-gradient(135deg, var(--primary), #ff7b8a);
    color: #fff;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

#hero a[role="button"]:first-child:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.6);
}

#hero a[role="button"]:last-child {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text-light);
}

#hero a[role="button"]:last-child:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

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

/* 通用 section 样式 */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section:nth-child(even) {
    background: rgba(15, 52, 96, 0.15);
    border-radius: var(--radius);
    margin: 2rem auto;
}

/* 毛玻璃卡片组 */
#about > div:not(:first-of-type),
#products > div,
#services > div,
#solutions > div,
#testimonials > div,
#features ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 圆角卡片 + 毛玻璃 */
article, blockquote, #features ul li, #about > div:not(:first-of-type) > div {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

article:hover, blockquote:hover, #features ul li:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

article h3, #about h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

article p, blockquote p, #about p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* 关于我们特殊样式 */
#about > div:first-of-type p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

#about > div:not(:first-of-type) > div {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
}

/* 核心优势列表 */
#features ul {
    list-style: none;
    padding: 0;
}

#features ul li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1.5rem 2rem;
}

#features ul li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    font-size: 1.4rem;
    background: rgba(233, 69, 96, 0.15);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* 客户评价 */
blockquote {
    font-style: italic;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    opacity: 0.3;
    font-family: Georgia, serif;
}

blockquote p {
    padding-left: 1.5rem;
}

/* FAQ 常见问题 */
#faq > div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

details {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.2rem 1.8rem;
    transition: all var(--transition);
    cursor: pointer;
}

details[open] {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.2);
}

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

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform var(--transition);
}

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

details p {
    margin-top: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 联系我们 */
#contact address {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    font-style: normal;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#contact address p {
    color: var(--text-muted);
    font-size: 1rem;
}

#contact address a {
    color: var(--primary);
    font-weight: 500;
}

/* 页脚 */
footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

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

footer h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

footer p, footer li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

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

footer ul li a {
    color: var(--text-muted);
    transition: color var(--transition);
}

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

footer > div:last-child {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 暗色模式支持 (默认即为暗色) */
@media (prefers-color-scheme: light) {
    :root {
        --bg-dark: #f0f2f5;
        --bg-card: rgba(0, 0, 0, 0.04);
        --text-light: #1a1a2e;
        --text-muted: #555;
        --glass-bg: rgba(255, 255, 255, 0.7);
        --glass-border: rgba(0, 0, 0, 0.1);
        --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    }
    header {
        background: rgba(240, 242, 245, 0.9);
    }
    #hero {
        background: linear-gradient(135deg, #e8ecf1 0%, #f0f2f5 50%, #dce1e8 100%);
    }
    #hero h1 {
        background: linear-gradient(135deg, #1a1a2e, #e94560, #c73a4f);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    #hero a[role="button"]:last-child {
        border-color: var(--primary);
        color: var(--primary);
    }
    #hero a[role="button"]:last-child:hover {
        color: #fff;
    }
    footer {
        background: rgba(0, 0, 0, 0.05);
    }
}

/* 响应式 - 手机 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem 1rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem 1.2rem;
    }
    #hero h1 {
        font-size: 2.2rem;
    }
    #hero p {
        font-size: 1rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    section {
        padding: 3rem 1.2rem;
    }
    #about > div:not(:first-of-type),
    #products > div,
    #services > div,
    #solutions > div,
    #testimonials > div,
    #features ul {
        grid-template-columns: 1fr;
    }
    #contact address {
        grid-template-columns: 1fr;
    }
    footer > div:first-child {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 1.8rem;
    }
    #hero a[role="button"] {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }
    nav ul li a {
        font-size: 0.85rem;
    }
    footer > div:first-child {
        grid-template-columns: 1fr;
    }
}

/* 滚动动画 (渐进增强) */
@media (prefers-reduced-motion: no-preference) {
    section {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    section.visible {
        opacity: 1;
        transform: translateY(0);
    }
    #hero {
        opacity: 1;
        transform: none;
    }
}

/* 小工具 - 滚动检测 (利用 Intersection Observer 在 JS 中实现，这里仅提供样式占位) */
/* 实际滚动动画由 JS 控制 class "visible" */