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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e0e0e0;
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

body.light-mode {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #1a1a2e;
}

/* 链接样式 */
a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #c4b5fd;
}

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

/* 毛玻璃效果 */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-light {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

/* 卡片 */
.card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.4s, box-shadow 0.4s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-light {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* 标题 */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #a78bfa, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 网格布局 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

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

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

/* 头部导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 20px;
    transition: background 0.3s, box-shadow 0.3s;
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(20px);
}

header.scrolled {
    background: rgba(15, 12, 41, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

body.light-mode header {
    background: rgba(245, 247, 250, 0.85);
}

body.light-mode header.scrolled {
    background: rgba(245, 247, 250, 0.95);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

body.light-mode .logo {
    color: #1a1a2e;
}

.logo svg {
    width: 48px;
    height: 48px;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: #e0e0e0;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

body.light-mode .nav-links a {
    color: #1a1a2e;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #a78bfa;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: #a78bfa;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

body.light-mode .menu-toggle span {
    background: #1a1a2e;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(15, 12, 41, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .mobile-menu {
    background: rgba(245, 247, 250, 0.98);
}

.mobile-menu a {
    color: #e0e0e0;
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .mobile-menu a {
    color: #1a1a2e;
}

.mobile-menu.open {
    display: flex;
}

.dark-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
}

body.light-mode .dark-toggle {
    color: #1a1a2e;
}

.dark-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Banner 区域 */
.banner-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    text-align: center;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
}

.banner-content h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #a78bfa, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.banner-content p {
    font-size: 20px;
    color: #c4b5fd;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.banner-nav {
    position: absolute;
    bottom: 40px;
    display: flex;
    gap: 12px;
    z-index: 3;
}

.banner-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.banner-dot.active {
    background: #a78bfa;
    transform: scale(1.3);
}

/* 通用区域 */
.section {
    padding: 100px 0;
}

/* 关于我们 */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

body.light-mode .about-text h2 {
    color: #1a1a2e;
}

.about-text p {
    font-size: 17px;
    color: #b0b0b0;
    margin-bottom: 16px;
}

body.light-mode .about-text p {
    color: #333;
}

.about-image {
    text-align: center;
}

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

ul li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #a78bfa;
}

/* 团队成员 */
.team-member {
    text-align: center;
    padding: 20px;
}

.team-member img {
    border-radius: 50%;
    margin-bottom: 15px;
    width: 120px;
    height: 120px;
    object-fit: cover;
    background: #a78bfa;
}

.team-member h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #fff;
}

body.light-mode .team-member h4 {
    color: #1a1a2e;
}

.team-member p {
    color: #a78bfa;
    font-size: 14px;
}

/* 产品卡片 */
.product-card {
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
    background: #302b63;
}

.product-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

body.light-mode .product-card h3 {
    color: #1a1a2e;
}

.product-card p {
    color: #b0b0b0;
    font-size: 15px;
}

body.light-mode .product-card p {
    color: #555;
}

/* 服务卡片 */
.service-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

body.light-mode .service-card h3 {
    color: #1a1a2e;
}

.service-card p {
    color: #b0b0b0;
}

body.light-mode .service-card p {
    color: #555;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    cursor: pointer;
}

body.light-mode .faq-item {
    border-color: rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

body.light-mode .faq-question {
    color: #1a1a2e;
}

.faq-question span {
    font-size: 24px;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    color: #b0b0b0;
    padding-top: 0;
}

body.light-mode .faq-answer {
    color: #555;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-top: 12px;
}

.faq-item.open .faq-question span {
    transform: rotate(45deg);
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .footer {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #fff;
}

body.light-mode .footer h4 {
    color: #1a1a2e;
}

.footer a {
    color: #b0b0b0;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

body.light-mode .footer a {
    color: #555;
}

.footer a:hover {
    color: #a78bfa;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: #888;
}

body.light-mode .footer-bottom {
    border-color: rgba(0, 0, 0, 0.05);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #7c3aed;
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-box input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}

body.light-mode .search-box input {
    background: rgba(255, 255, 255, 0.6);
    color: #1a1a2e;
    border-color: rgba(0, 0, 0, 0.1);
}

.search-box input:focus {
    border-color: #a78bfa;
}

.search-box button {
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    background: #7c3aed;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #6d28d9;
}

/* 新闻卡片 */
.news-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    background: #302b63;
}

.news-card h3 {
    font-size: 20px;
    color: #fff;
}

body.light-mode .news-card h3 {
    color: #1a1a2e;
}

.news-card p {
    color: #b0b0b0;
    font-size: 14px;
}

body.light-mode .news-card p {
    color: #555;
}

.news-card .date {
    font-size: 12px;
    color: #888;
}

/* 教程步骤 */
.howto-steps {
    counter-reset: step;
}

.howto-step {
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid #a78bfa;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 16px 16px 0;
}

body.light-mode .howto-step {
    background: rgba(255, 255, 255, 0.3);
}

.howto-step h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
}

body.light-mode .howto-step h4 {
    color: #1a1a2e;
}

.howto-step p {
    color: #b0b0b0;
}

body.light-mode .howto-step p {
    color: #555;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0;
    font-size: 14px;
    color: #888;
}

.breadcrumb a {
    color: #a78bfa;
}

.breadcrumb span {
    margin: 0 4px;
}

/* 合作伙伴 */
.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: background 0.3s;
}

body.light-mode .partner-logo {
    background: rgba(0, 0, 0, 0.03);
}

.partner-logo:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 数字 */
.counter-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.counter-label {
    font-size: 16px;
    color: #b0b0b0;
    margin-top: 8px;
}

body.light-mode .counter-label {
    color: #555;
}

/* 地图占位 */
.map-placeholder {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #888;
}

body.light-mode .map-placeholder {
    background: rgba(0, 0, 0, 0.03);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-inner {
        gap: 10px;
    }

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

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

    .section {
        padding: 60px 0;
    }

    .counter-number {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 26px;
    }

    .banner-content p {
        font-size: 14px;
    }

    .container {
        padding: 0 16px;
    }
}