/* ============================================
   音迪创客 - 全局样式
   设计风格：深蓝紫渐变 AI 科技感
   ============================================ */

:root {
    /* 主色调 - 深蓝紫渐变 */
    --primary-deep: #0a0e27;
    --primary-dark: #1a1a4e;
    --primary-mid: #2d1b69;
    --primary-light: #4f46e5;
    --accent-purple: #7c3aed;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;

    /* 文字色 */
    --text-primary: #ffffff;
    --text-secondary: #c7d2fe;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;

    /* 渐变 */
    --gradient-main: linear-gradient(135deg, #0a0e27 0%, #1a1a4e 35%, #2d1b69 70%, #4f46e5 100%);
    --gradient-accent: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    --gradient-card: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);

    /* 阴影 */
    --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 20px 60px rgba(79, 70, 229, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* 背景动画粒子层 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* 网格背景 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(79, 70, 229, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   导航栏
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 0;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(79, 70, 229, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 4px 30px rgba(79, 70, 229, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.logo-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

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

.nav-cta {
    padding: 10px 24px;
    background: var(--gradient-accent);
    border-radius: 24px;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.nav-cta::after {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* 移动端菜单展开（由 JS 切换 mobile-open class） */
@media (max-width: 768px) {
    .nav-menu.mobile-open {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        padding: 20px;
        gap: 20px;
        border-top: 1px solid rgba(79, 70, 229, 0.2);
        backdrop-filter: blur(20px);
    }
}

/* ============================================
   通用区块
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
}

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

.section-title .eyebrow {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-card);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 20px;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-title h2 .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 640px;
    margin: 0 auto;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(79, 70, 229, 0.5);
}

.btn-secondary:hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--accent-purple);
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background: rgba(5, 8, 20, 0.8);
    border-top: 1px solid rgba(79, 70, 229, 0.2);
    padding: 60px 0 24px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--accent-blue);
}

.contact-info li {
    display: flex;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.contact-info .icon {
    color: var(--accent-purple);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(79, 70, 229, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-bottom a {
    color: var(--text-muted);
}

.footer-bottom a:hover {
    color: var(--accent-blue);
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .section-title h2 { font-size: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-toggle { display: block; }
    .section { padding: 70px 0; }
    .section-title h2 { font-size: 28px; }
    .container { padding: 0 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
