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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8f9fc;
    color: #1a1a2e;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

body.dark {
    background: #0f0f1a;
    color: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 毛玻璃效果 */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
    background: rgba(15, 15, 26, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: linear-gradient(135deg, #6c63ff, #e94560);
    color: #fff;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(108, 99, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #6c63ff;
    color: #6c63ff;
    box-shadow: none;
}

.btn-outline:hover {
    background: #6c63ff;
    color: #fff;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

/* 通用段落 */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #6c63ff, #e94560);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark .section-title {
    background: linear-gradient(135deg, #8b83ff, #ff6b80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.dark .section-subtitle {
    color: #9ca3af;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.dark .card {
    background: #1a1a2e;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.dark .card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 网格 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 头部导航 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: all 0.3s ease;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo span {
    background: linear-gradient(135deg, #6c63ff, #e94560);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav ul {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(108, 99, 255, 0.1);
    color: #6c63ff;
}

.dark .nav-link:hover,
.dark .nav-link.active {
    background: rgba(108, 99, 255, 0.2);
    color: #8b83ff;
}

#darkModeToggle {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#darkModeToggle:hover {
    background: rgba(108, 99, 255, 0.1);
}

#mobileMenuBtn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    display: none;
    border-radius: 8px;
}

/* 首页英雄区 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(108, 99, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(233, 69, 96, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 30%, #6c63ff 70%, #e94560 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-outline {
    border-color: #fff;
    color: #fff;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6c63ff;
}

.hero-stats > div:nth-child(2) .stat-number {
    color: #e94560;
}

.hero-stats > div:nth-child(3) .stat-number {
    color: #6c63ff;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* 品牌介绍 */
#brand .dark {
    background: #0f0f1a;
    padding: 80px 0;
}

#brand .dark .card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

#brand .dark .card h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

#brand .dark .card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* 产品中心 */
#products .card svg {
    margin-bottom: 16px;
}

#products .card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

#products .card p {
    color: #6b7280;
    margin-bottom: 16px;
}

#products .card a {
    color: #6c63ff;
    font-weight: 600;
}

/* 服务支持 */
#service .card {
    text-align: center;
}

#service .card svg {
    margin: 0 auto 16px;
}

#service .card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

#service .card p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* 案例展示 */
#cases .card {
    display: flex;
    gap: 20px;
    align-items: center;
}

#cases .card svg {
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(233, 69, 96, 0.2));
}

#cases .card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
}

#cases .card p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

#cases .card a {
    color: #6c63ff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 新闻资讯 */
#news article time {
    color: #9ca3af;
    font-size: 0.8rem;
}

#news article h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 8px 0;
}

#news article p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

#news article a {
    color: #6c63ff;
    font-weight: 600;
    font-size: 0.9rem;
}

#news .more-link {
    text-align: center;
    margin-top: 40px;
}

#news .more-link a {
    color: #6c63ff;
    font-weight: 600;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question svg {
    transition: transform 0.3s;
}

.faq-answer {
    margin-top: 12px;
    color: #6b7280;
    display: none;
}

/* 新手指南 */
#howto .card {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

#howto .card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

#howto .card ul,
#howto .card ol {
    margin-bottom: 30px;
    padding-left: 20px;
    color: #6b7280;
}

#howto .card ul {
    list-style: disc;
}

#howto .card ol {
    list-style: decimal;
}

#howto .card li {
    margin-bottom: 8px;
}

#howto .card p {
    color: #6b7280;
}

/* 联系我们 */
#contact .grid-2 {
    max-width: 800px;
    margin: 0 auto;
}

#contact .card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

#contact .card ul {
    color: #6b7280;
}

#contact .card li {
    margin-bottom: 12px;
}

#contact .card input,
#contact .card textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 12px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s;
}

.dark #contact .card input,
.dark #contact .card textarea {
    background: #1a1a2e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

#contact .card input:focus,
#contact .card textarea:focus {
    outline: none;
    border-color: #6c63ff;
}

#contact .card textarea {
    resize: vertical;
}

#contact .card .btn {
    width: 100%;
}

/* 页脚 */
footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px;
}

footer .grid-4 {
    margin-bottom: 30px;
}

footer h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

footer p {
    font-size: 0.9rem;
}

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

footer ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color 0.3s;
}

footer ul li a:hover {
    color: #6c63ff;
}

footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

footer .footer-bottom p {
    margin-bottom: 6px;
}

/* 返回顶部 */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c63ff, #e94560);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform 0.3s;
}

#backToTop:hover {
    transform: scale(1.1);
}

/* 响应式 */
@media (max-width: 992px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    #cases .card {
        flex-direction: column;
        text-align: center;
    }

    #cases .card svg {
        width: 80px;
        height: 80px;
    }

    #howto .card {
        padding: 20px;
    }

    footer .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    footer .grid-4 {
        grid-template-columns: 1fr;
    }
}