/* ============================================
   SafeW 常见问题页面样式 - faq.css
   适用于：faq.html 常见问题页面
   主色调：深空底色 + 霓虹紫/青渐变
   设计语言：未来感、安全、纯净、大胆创意
   ============================================ */

:root {
    --bg-dark: #0a0a12;
    --bg-darker: #06060c;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-lab: linear-gradient(135deg, #0f0c1f 0%, #1a0f2e 100%);
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #06b6d4;
    --accent: #f43f5e;
    --text-main: #f1f5f9;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    --border-color: rgba(167, 139, 250, 0.2);
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    --gradient-text: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.25);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-sans: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* ---------- 导航栏 ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(167, 139, 250, 0.15);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--primary-light));
}

.logo-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-links li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-white);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    border-radius: 2px;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-download-nav {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    white-space: nowrap;
}

.btn-download-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ---------- 按钮风格 ---------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1.5px solid rgba(167, 139, 250, 0.5);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(167, 139, 250, 0.1);
    border-color: var(--primary-light);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.btn-glow {
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.6), 0 0 60px rgba(6, 182, 212, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.6);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- Hero 区域 ---------- */
.hero {
    padding: 80px 0;
    background: radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.25) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
                var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0%" stop-color="%237c3aed"/><stop offset="100%" stop-color="%2306b6d4"/></linearGradient></defs><circle cx="20" cy="20" r="2" fill="url(%23g)"/><circle cx="80" cy="40" r="1.5" fill="url(%23g)"/><circle cx="40" cy="80" r="1" fill="url(%23g)"/><circle cx="70" cy="70" r="2.5" fill="url(%23g)"/></svg>');
    animation: floatBg 20s linear infinite;
    pointer-events: none;
}

@keyframes floatBg {
    0% { transform: translate(0, 0); }
    50% { transform: translate(5%, 3%); }
    100% { transform: translate(0, 0); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 40px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(167, 139, 250, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: var(--text-white);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 36px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.hero-feature {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.check {
    color: var(--secondary);
    font-weight: bold;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---------- Hero 右侧视觉容器 ---------- */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}

.visual-orb {
    position: absolute;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, rgba(6, 182, 212, 0.15) 70%, transparent 100%);
    filter: blur(20px);
    animation: orb-pulse 4s ease-in-out infinite alternate;
}

@keyframes orb-pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

.visual-ring {
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    border: 2px dashed rgba(167, 139, 250, 0.4);
    animation: spin 20s linear infinite;
}

.visual-ring::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--secondary);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.visual-shield {
    font-size: 7rem;
    filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.8));
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

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

.visual-particle {
    position: absolute;
    font-size: 2rem;
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.6));
    animation: particle-float 5s ease-in-out infinite;
    z-index: 3;
}

.visual-particle.p1 { top: 8%; left: 12%; animation-delay: 0s; }
.visual-particle.p2 { bottom: 12%; right: 8%; animation-delay: 1s; font-size: 2.5rem; }
.visual-particle.p3 { top: 18%; right: 22%; animation-delay: 2s; }
.visual-particle.p4 { bottom: 22%; left: 18%; animation-delay: 0.5s; font-size: 1.8rem; }

@keyframes particle-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(10deg); }
    75% { transform: translateY(10px) rotate(-5deg); }
}

.visual-code {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(167, 139, 250, 0.4);
    padding: 8px 20px;
    border-radius: 30px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--secondary);
    letter-spacing: 2px;
    font-size: 1.2rem;
    z-index: 4;
    animation: code-glow 2s ease-in-out infinite alternate;
}

@keyframes code-glow {
    from { box-shadow: 0 0 10px rgba(6, 182, 212, 0.3); }
    to { box-shadow: 0 0 30px rgba(6, 182, 212, 0.8); }
}

.visual-lock {
    position: absolute;
    top: 12%;
    right: 10%;
    font-size: 1.8rem;
    animation: float 2.5s ease-in-out infinite;
    z-index: 3;
}

/* ---------- 通用 section 样式 ---------- */
.section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary-light);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- 深色背景 ---------- */
.bg-dark {
    background-color: var(--bg-darker);
    background-image: radial-gradient(circle at 10% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}

.bg-lab {
    background: var(--bg-lab);
    background-image: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
}

/* ============================================
   FAQ 页面专属样式
   ============================================ */

/* ---------- 问答分类导航 ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.category-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: rgba(6, 182, 212, 0.4);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.category-card h3 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.category-count {
    display: inline-block;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--secondary);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ---------- FAQ 手风琴 ---------- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(167, 139, 250, 0.3);
}

.faq-q {
    padding: 20px 28px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-white);
    font-size: 1.05rem;
    transition: var(--transition);
}

.faq-q:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-q .arrow {
    transition: var(--transition);
    font-size: 0.8rem;
    color: var(--primary-light);
}

.faq-item.active .faq-q .arrow {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 28px;
}

.faq-item.active .faq-a {
    max-height: 800px;
    padding: 0 28px 24px;
}

.faq-a p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ---------- 提交问题区域 ---------- */
.ask-box {
    background: var(--bg-card);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: var(--shadow-glow);
}

.ask-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.ask-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.ask-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.ask-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.ask-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text-white);
    font-size: 0.95rem;
    outline: none;
    resize: vertical;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.ask-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.ask-input::placeholder {
    color: var(--text-muted);
}

.ask-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- CTA 区域 ---------- */
.bg-cta {
    background: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 20%, rgba(124, 58, 237, 0.25) 0%, transparent 60%);
}

.cta-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 30px;
    padding: 70px 40px;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.cta-box::after {
    content: '💬';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 10rem;
    opacity: 0.05;
    transform: rotate(15deg);
}

.cta-box h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.cta-box p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 36px;
}

.cta-note {
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    margin-top: 20px;
    margin-bottom: 0 !important;
}

/* ---------- 页脚 ---------- */
.footer {
    background-color: #030308;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 70px 0 30px;
}

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

.footer-brand h3 {
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--transition);
    opacity: 0.7;
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-column h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero-visual {
        max-width: 350px;
    }
    .hero-title {
        font-size: 3rem;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 8px;
        padding: 20px 0;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .nav-actions {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-stats {
        gap: 24px;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .cta-box h2 {
        font-size: 2rem;
    }
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ask-box {
        padding: 40px 20px;
    }
    .ask-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero {
        padding: 50px 0;
    }
    .hero-title {
        font-size: 2rem;
    }
    .section {
        padding: 50px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .btn-download-nav {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .faq-q {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    .faq-a p {
        font-size: 0.9rem;
    }
}