/* ── 量子定位官网 — 暗色主题样式 ── */

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

:root {
    --bg-primary: #0F0F12;
    --bg-secondary: #1A1A20;
    --card-bg: #1E1E26;
    --card-border: #2A2A35;
    --text-primary: #F0F0F5;
    --text-secondary: #B0B0C0;
    --text-tertiary: #6E6E82;
    --accent-blue: #0A84FF;
    --accent-gold: #E8B445;
    --danger-red: #EF5B5B;
    --radius: 16px;
    --radius-lg: 24px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(160deg, #0F0F12 0%, #1A1A20 50%, #1C1C1E 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── 装饰圆 ── */
.deco-circle {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42,42,53,0.6) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.deco-circle.c1 { width: 500px; height: 500px; top: -150px; right: -120px; }
.deco-circle.c2 { width: 350px; height: 350px; bottom: -100px; left: -80px; opacity: 0.5; }
.deco-circle.c3 { width: 200px; height: 200px; top: 40%; left: -60px; opacity: 0.3; }

/* ── 导航 ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    background: rgba(15,15,18,0.75);
    border-bottom: 1px solid var(--card-border);
    padding: 0 24px; height: 60px;
    display: flex; align-items: center; justify-content: space-between;
}
.navbar .logo { font-size: 20px; font-weight: 700; letter-spacing: 1px; color: var(--text-primary); }
.navbar .logo span { color: var(--accent-blue); }
.navbar nav a {
    color: var(--text-secondary); text-decoration: none; font-size: 14px;
    margin-left: 28px; transition: color .2s;
}
.navbar nav a:hover { color: var(--accent-blue); }

/* ── 通用容器 ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ── Hero ── */
.hero {
    padding: 140px 0 80px; text-align: center;
    animation: fadeUp .8s ease-out;
}
.hero h1 { font-size: 48px; font-weight: 800; letter-spacing: 2px; margin-bottom: 16px; }
.hero h1 span { background: linear-gradient(135deg, var(--accent-blue), var(--accent-gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero .subtitle { font-size: 18px; color: var(--text-secondary); margin-bottom: 40px; line-height: 1.8; }
.hero .badge {
    display: inline-block; padding: 8px 20px; border-radius: 20px;
    background: rgba(10,132,255,0.12); color: var(--accent-blue);
    font-size: 13px; font-weight: 600; letter-spacing: 1px;
}

/* ── 功能卡片 ── */
.features { padding: 60px 0; }
.features h2 { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 48px; }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.feature-card {
    background: var(--card-bg); border: 0.5px solid var(--card-border);
    border-radius: var(--radius); padding: 28px 24px;
    transition: transform .3s, border-color .3s;
    animation: fadeUp .6s ease-out both;
}
.feature-card:nth-child(1) { animation-delay: .1s; }
.feature-card:nth-child(2) { animation-delay: .2s; }
.feature-card:nth-child(3) { animation-delay: .3s; }
.feature-card:nth-child(4) { animation-delay: .4s; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent-blue); }
.feature-card .icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-blue), #5856D6);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-tertiary); line-height: 1.6; }

/* ── 关于 ── */
.about { padding: 60px 0; }
.about-card {
    background: var(--card-bg); border: 0.5px solid var(--card-border);
    border-radius: var(--radius-lg); padding: 40px 36px;
    animation: fadeUp .6s ease-out both; animation-delay: .2s;
}
.about-card h2 { font-size: 24px; margin-bottom: 20px; }
.about-card p { font-size: 15px; color: var(--text-secondary); margin-bottom: 14px; }
.about-card .entity {
    display: inline-block; margin-top: 12px; padding: 8px 18px;
    border-radius: 10px; background: rgba(232,180,69,0.1);
    color: var(--accent-gold); font-size: 14px; font-weight: 600;
}

/* ── 页脚 ── */
.footer {
    padding: 40px 0; text-align: center;
    border-top: 1px solid var(--card-border);
    margin-top: 40px;
}
.footer .links { margin-bottom: 16px; }
.footer .links a {
    color: var(--text-tertiary); text-decoration: none; font-size: 13px;
    margin: 0 14px; transition: color .2s;
}
.footer .links a:hover { color: var(--accent-blue); }
.footer .copy { font-size: 12px; color: var(--text-tertiary); line-height: 2; }
.footer .copy .entity-name { color: var(--text-secondary); }

/* ── 法律页面 ── */
.legal-page { padding: 100px 0 60px; }
.legal-page h1 { font-size: 28px; font-weight: 700; margin-bottom: 32px; text-align: center; }
.legal-content {
    background: var(--card-bg); border: 0.5px solid var(--card-border);
    border-radius: var(--radius-lg); padding: 36px 32px;
    animation: fadeUp .6s ease-out;
}
.legal-content h2 { font-size: 18px; color: var(--accent-blue); margin: 28px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.8; }
.legal-content ul { padding-left: 20px; margin-bottom: 12px; }
.legal-content li { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 6px; }

/* ── 动画 ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── 响应式 ── */
@media (max-width: 640px) {
    .hero h1 { font-size: 32px; }
    .hero .subtitle { font-size: 15px; }
    .features h2 { font-size: 22px; }
    .features-grid { grid-template-columns: 1fr; }
    .about-card { padding: 28px 20px; }
    .legal-content { padding: 24px 18px; }
    .navbar nav a { margin-left: 16px; font-size: 13px; }
}
