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

html {
    scroll-behavior: smooth;
}

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

/* 暗色模式 */
body.dark-mode {
    background: #0a0a14;
    color: #cfcfcf;
}

a {
    color: #6c9eff;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #a8c8ff;
}

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

ul, ol {
    list-style: none;
}

/* 容器 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 30, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 20px;
    transition: background 0.3s, box-shadow 0.3s;
}

header.sticky {
    background: rgba(10, 10, 20, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 64px;
}

header nav ul {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

header nav ul li a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
    color: #c0c0d0;
    transition: color 0.25s;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #6c9eff;
    transition: width 0.3s;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #ffffff;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 100%;
}

/* Hero 区域 - 渐变Banner */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    position: relative;
    overflow: hidden;
}

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

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(108, 158, 255, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(255, 100, 150, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

#hero h1 {
    font-size: clamp(2.2rem, 7vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #f0f4ff, #a8c8ff, #6c9eff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease-out;
}

#hero p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #b0b8d0;
    max-width: 700px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s 0.2s ease-out both;
}

#hero a {
    display: inline-block;
    padding: 14px 48px;
    border-radius: 50px;
    background: linear-gradient(135deg, #6c9eff, #a855f7);
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 32px rgba(108, 158, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.8s 0.4s ease-out both;
}

#hero a:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(108, 158, 255, 0.5);
}

/* 通用section样式 */
section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.7s 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; }

h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 30px;
    color: #f0f4ff;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6c9eff, #a855f7);
    border-radius: 2px;
    margin-top: 8px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #d0d8f0;
}

p {
    margin-bottom: 16px;
    color: #b0b8d0;
}

/* 圆角卡片通用 */
article, blockquote, .card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

article:hover, .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.07);
}

/* About 区域 */
#about {
    background: linear-gradient(180deg, rgba(15, 12, 41, 0.6) 0%, transparent 100%);
}

#about p {
    font-size: 1.05rem;
}

#about p strong {
    color: #a8c8ff;
}

/* 产品区域 */
#products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

#products article {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#products article a {
    margin-top: auto;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    background: rgba(108, 158, 255, 0.15);
    color: #a8c8ff;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

#products article a:hover {
    background: #6c9eff;
    color: #fff;
}

/* 服务列表 */
#services ul,
#solutions ul,
#advantages ul,
#knowledge-center ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

#services ul li,
#solutions ul li,
#advantages ul li,
#knowledge-center ul li {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    transition: background 0.3s, transform 0.2s;
    color: #c8d0e8;
}

#services ul li:hover,
#solutions ul li:hover,
#advantages ul li:hover,
#knowledge-center ul li:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-3px);
}

#knowledge-center ul li a {
    color: #a8c8ff;
    font-weight: 500;
}

/* 用户评价 */
#testimonials blockquote {
    border-left: 4px solid #6c9eff;
    padding-left: 24px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border-left-color: #6c9eff;
}

#testimonials blockquote cite {
    display: block;
    margin-top: 8px;
    color: #8890b0;
    font-style: normal;
    font-size: 0.9rem;
}

/* 案例分享 */
#case-studies article {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 28px;
}

/* 最新资讯 */
#insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

#insights article {
    padding: 24px;
}

#insights article time {
    display: inline-block;
    font-size: 0.85rem;
    color: #7880a0;
    margin-right: 12px;
}

#insights article a {
    color: #6c9eff;
    font-weight: 500;
}

/* FAQ 区域 */
#faq details {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: background 0.3s;
    cursor: pointer;
}

#faq details:hover {
    background: rgba(255, 255, 255, 0.06);
}

#faq details summary {
    font-weight: 600;
    color: #d0d8f0;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

#faq details summary::after {
    content: '+';
    font-size: 1.3rem;
    color: #6c9eff;
    transition: transform 0.3s;
}

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

#faq details p {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* HowTo 区域 */
#howto ol {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 16px;
}

#howto ol li {
    counter-increment: step;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px 20px 20px 56px;
    position: relative;
    transition: background 0.3s, transform 0.2s;
}

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

#howto ol li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6c9eff, #a855f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

/* 联系表单 */
#contact ul {
    margin-bottom: 24px;
}

#contact ul li {
    padding: 8px 0;
    color: #b0b8d0;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 60px;
    padding: 8px 8px 8px 24px;
    max-width: 500px;
}

form label {
    font-weight: 500;
    color: #c0c8e0;
    font-size: 0.95rem;
}

form input[type="search"] {
    flex: 1;
    min-width: 180px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #e0e0e0;
    font-size: 1rem;
    outline: none;
}

form input[type="search"]::placeholder {
    color: #5a6080;
}

form button {
    padding: 10px 28px;
    border: none;
    border-radius: 40px;
    background: linear-gradient(135deg, #6c9eff, #a855f7);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

form button:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(108, 158, 255, 0.3);
}

/* 底部 */
footer {
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
}

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

footer nav ul li a {
    color: #8890b0;
    font-size: 0.9rem;
    transition: color 0.2s;
}

footer nav ul li a:hover {
    color: #a8c8ff;
}

footer p {
    font-size: 0.85rem;
    color: #5a6080;
    margin-bottom: 6px;
}

/* 返回顶部按钮 */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c9eff, #a855f7);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(108, 158, 255, 0.3);
    display: none;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 200;
}

#back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(108, 158, 255, 0.5);
}

/* 响应式 */
@media (max-width: 768px) {
    header nav ul {
        gap: 16px;
    }

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

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

    section {
        padding: 48px 0;
    }

    #products,
    #insights {
        grid-template-columns: 1fr;
    }

    #services ul,
    #solutions ul,
    #advantages ul,
    #knowledge-center ul {
        grid-template-columns: 1fr;
    }

    form {
        border-radius: 24px;
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
    }

    form input[type="search"] {
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 40px;
    }

    form button {
        width: 100%;
    }

    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

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

    header nav ul li a {
        font-size: 0.78rem;
        padding: 6px 0;
    }

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

    article, blockquote, .card {
        padding: 20px;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f0f1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6c9eff, #a855f7);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8bb4ff, #b87aff);
}

/* 选择文本 */
::selection {
    background: #6c9eff;
    color: #fff;
}

/* 暗色模式微调 */
body.dark-mode header {
    background: rgba(8, 8, 16, 0.85);
}

body.dark-mode #hero {
    background: linear-gradient(135deg, #0a0815, #1a1638, #14132a);
}

body.dark-mode article,
body.dark-mode blockquote,
body.dark-mode .card {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode footer {
    background: rgba(0, 0, 0, 0.6);
}

/* 移动菜单占位（无JS时隐藏） */
.menu-toggle {
    display: none;
}

/* 图片懒加载占位 */
img[data-src] {
    background: rgba(255, 255, 255, 0.03);
    min-height: 100px;
}

/* 额外毛玻璃细节 */
.glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* 统计数字动画（预留） */
.stat-number {
    font-weight: 700;
    color: #6c9eff;
}