/* Common styles for sub-pages (privacy, etc.) */
:root {
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --accent: #00CEFF;
    --bg-primary: #06070A;
    --bg-secondary: #0D0F14;
    --bg-tertiary: #13161D;
    --text-primary: #F0F0F5;
    --text-secondary: #9CA3B4;
    --text-muted: #5A6178;
    --gradient-primary: linear-gradient(135deg, #6C5CE7 0%, #00CEFF 100%);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* Header */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0;
    background: rgba(6, 7, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.1);
    transition: all 0.3s ease;
}
.header .container {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    display: flex; align-items: center; gap: 12px;
    z-index: 101;
}
.logo-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; color: #fff; font-size: 18px;
}
.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem; font-weight: 800; color: var(--text-primary);
}
.logo-text .dot { color: var(--primary); }
.header a.back-link {
    color: var(--text-secondary); font-size: 0.95rem;
    display: flex; align-items: center; gap: 6px;
}
.header a.back-link:hover { color: var(--primary-light); }

/* 汉堡菜单按钮 */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
    padding: 8px;
    background: none;
    border: none;
}
.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端菜单 */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(6,7,10,0.98);
    backdrop-filter: blur(24px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition);
}
.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.mobile-nav a {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 16px 32px;
    border-radius: 16px;
    transition: var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--accent);
    background: rgba(108,92,231,0.08);
}

/* Page Hero */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
}
.page-hero::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(108,92,231,0.12), transparent 70%);
    pointer-events: none;
}
.page-hero h1 {
    font-size: 2.5rem; font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.page-hero p {
    color: var(--text-secondary); font-size: 1.05rem;
}

/* Content - Privacy & sub-pages */
.content-section {
    max-width: 860px; margin: 0 auto;
    padding: 40px 40px 100px;
}
.content-section h2 {
    font-size: 1.4rem; font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(108, 92, 231, 0.3);
    display: flex; align-items: center; gap: 10px;
}
.content-section h2 .num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--gradient-primary);
    color: #fff; font-size: 0.85rem; font-weight: 700;
    flex-shrink: 0;
}
.content-section p, .content-section li {
    color: var(--text-secondary); font-size: 1rem;
    margin-bottom: 12px; line-height: 1.9;
}
.content-section ul, .content-section ol {
    padding-left: 24px; margin-bottom: 20px;
}
.content-section li { margin-bottom: 8px; }
.content-section strong { color: var(--text-primary); }
.content-section a { color: var(--primary-light); }
.content-section a:hover { color: var(--accent); text-decoration: underline; }

.update-info {
    background: var(--bg-tertiary);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 40px;
    display: flex; gap: 24px; flex-wrap: wrap;
}
.update-info span {
    color: var(--text-muted); font-size: 0.9rem;
}
.update-info span strong {
    color: var(--text-secondary); margin-left: 6px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(108, 92, 231, 0.1);
    padding: 30px 0;
    text-align: center;
}
.footer p {
    color: var(--text-muted); font-size: 0.85rem;
    padding: 0 20px;
    overflow-wrap: break-word;
}
.footer a {
    color: var(--primary-light);
}
.footer a:hover { color: var(--accent); }
.footer-bottom-links {
    display: flex; gap: 24px; justify-content: center; margin-top: 8px;
    flex-wrap: wrap;
}
.footer-bottom-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom-links a:hover { color: var(--primary-light); }

/* ==========================================
   响应式
   ========================================== */
@media (max-width: 768px) {
    .header .container { padding: 0 20px; }
    .header a.desktop-back { display: none; }
    .mobile-toggle { display: flex; }
    .logo-text { font-size: 1.1rem; }
    .logo-icon { width: 36px; height: 36px; font-size: 16px; }
    .page-hero { padding: 110px 0 40px; }
    .page-hero h1 { font-size: 1.8rem; }
    .page-hero p { font-size: 0.92rem; }
    .content-section { padding: 30px 20px 80px; }
    .update-info { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
    .header .container { padding: 0 16px; }
    .page-hero { padding: 100px 0 32px; }
    .page-hero h1 { font-size: 1.5rem; }
    .page-hero p { font-size: 0.85rem; }
    .footer { padding: 24px 0; }
    .footer p { padding: 0 16px; font-size: 0.8rem; }
    .footer-bottom-links { flex-direction: column; gap: 8px; align-items: center; }
    .content-section { padding: 24px 16px 60px; }
    .content-section h2 { font-size: 1.2rem; margin: 36px 0 16px; flex-wrap: wrap; }
    .content-section h2 .num { width: 28px; height: 28px; font-size: 0.78rem; border-radius: 6px; }
    .content-section p, .content-section li { font-size: 0.9rem; margin-bottom: 10px; }
    .content-section ul, .content-section ol { padding-left: 20px; }
    .update-info { padding: 16px 20px; }
}

@media (max-width: 375px) {
    .content-section h2 { font-size: 1.1rem; }
    .content-section p, .content-section li { font-size: 0.85rem; line-height: 1.7; }
    .page-hero h1 { font-size: 1.35rem; }
    .page-hero p { font-size: 0.8rem; }
    .footer p { font-size: 0.75rem; }
}
