/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #d946ef;
    --bg-dark: #0a0a12;
    --bg-card: rgba(30, 30, 45, 0.9);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== 背景效果 ===== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
    animation: float 12s ease-in-out infinite;
}

.orb-1 {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    top: -150px;
    right: -150px;
}

.orb-2 {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    bottom: -150px;
    left: -150px;
    animation-delay: -6s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.05); }
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

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

.nav-links a {
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.15);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    flex-direction: column;
    gap: 10px;
    z-index: 99;
    border-bottom: 1px solid var(--border);
}

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

.mobile-menu a {
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.15);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ===== Hero 区域 ===== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 40px 100px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
}

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

/* Hero 视觉效果 */
.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 500;
    animation: floatCard 6s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.floating-card .card-icon {
    font-size: 1.5rem;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 5%;
    animation-delay: -2s;
}

.card-3 {
    bottom: 15%;
    left: 20%;
    animation-delay: -4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== 区域标题 ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ===== 产品预览区域 ===== */
.products-preview {
    padding: 120px 40px 100px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.products-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

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

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.product-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.product-icon.purple {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s;
}

.product-link:hover {
    gap: 12px;
}

/* ===== 特性区域 ===== */
.features {
    padding: 120px 40px 100px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

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

.feature-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== 页脚 ===== */
.footer {
    padding: 60px 40px 40px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== 页面头部 ===== */
.page-header {
    padding: 140px 40px 60px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
}

/* ===== 产品列表页 ===== */
.products-list {
    padding: 0 40px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-detail-card {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    margin-bottom: 40px;
}

.product-detail-card.reverse {
    flex-direction: row-reverse;
}

.product-info {
    flex: 1;
}

.product-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 16px;
}

.product-badge.purple {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.product-info h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.product-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 16px;
}

.product-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    margin-bottom: 24px;
}

.product-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.product-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
}

/* 预览窗口 */
.product-preview {
    flex: 1;
    display: flex;
    justify-content: center;
}

.preview-window {
    width: 280px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.window-header {
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.window-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.window-content {
    padding: 50px 30px;
    text-align: center;
}

.preview-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.preview-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

.preview-window.purple {
    border-color: rgba(139, 92, 246, 0.2);
}

/* ===== 关于我们页面 ===== */
.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s;
}

.about-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-3px);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 价值观区域 */
.values-section {
    padding: 60px 40px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.values-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

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

.value-item {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.value-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.value-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.value-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-visual {
        height: 300px;
        width: 100%;
    }

    .features-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-card,
    .product-detail-card.reverse {
        flex-direction: column;
        text-align: center;
    }
}

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

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

    .features-grid,
    .values-grid,
    .about-content {
        grid-template-columns: 1fr;
    }

    .page-header,
    .products-preview,
    .features,
    .products-list,
    .about-content,
    .values-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .product-detail-card {
        padding: 30px 24px;
    }
}
