/* ===================================
   Shadowrocket FAQ 避坑指南样式
   鲜艳活力 · 创意分类 · 快速索引
   =================================== */

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

body {
    font-family: 'Inter', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #fffaf5;
    color: #1f2129;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.bg-accent {
    position: fixed;
    top: -15vh;
    right: -10vw;
    width: 70vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(255,140,80,0.06) 0%, rgba(255,200,120,0.01) 80%);
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
}

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

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 3px solid #ff8a5c;
}
.logo {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(130deg, #E64A2E, #FF8A4C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-links { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: #3f4156;
    transition: color 0.15s;
}
.nav-links a:hover, .nav-links .active { color: #E64A2E; }

.btn-outline {
    background: white;
    border: 2px solid #FF8A4C;
    color: #E64A2E;
    font-weight: 700;
    padding: 8px 22px;
    border-radius: 60px;
    text-decoration: none;
    transition: 0.2s;
}
.btn-outline:hover { background: #fff0e0; border-color: #E64A2E; transform: translateY(-2px); }
.btn-primary {
    display: inline-block;
    background: linear-gradient(105deg, #E64A2E, #FF7F3F);
    color: white;
    font-weight: 700;
    padding: 14px 34px;
    border-radius: 60px;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(230,74,46,0.2);
    transition: 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background: linear-gradient(105deg, #D23F24, #F06A2E); transform: translateY(-3px); }

/* 头部 */
.faq-header {
    text-align: center;
    padding: 50px 0 20px;
}
.faq-header h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 16px; }
.highlight {
    background: linear-gradient(120deg, #FFAE5E, #FF7640);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.faq-header p { color: #4b4e65; max-width: 600px; margin: 0 auto; }

/* 快速诊断卡片 */
.quick-diagnose {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    margin: 40px 0 30px;
}
.diagnose-card {
    background: white;
    border-radius: 32px;
    padding: 24px 18px;
    text-align: center;
    border: 1px solid #ffd9bc;
    box-shadow: 0 8px 16px rgba(0,0,0,0.02);
    transition: 0.15s;
}
.diagnose-card:hover { transform: translateY(-4px); border-color: #FF9F66; }
.diagnose-icon { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.diagnose-card h4 { font-size: 1.2rem; margin-bottom: 8px; color: #D94F2A; }
.diagnose-card p { font-size: 0.9rem; color: #5a5e78; margin-bottom: 16px; }
.diagnose-link {
    color: #E64A2E;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

/* 主布局 */
.faq-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px 0 50px;
}
.faq-sidebar {
    flex: 1;
    min-width: 240px;
    background: white;
    border-radius: 40px;
    padding: 32px 24px;
    border: 1px solid #ffd9bc;
    height: fit-content;
    position: sticky;
    top: 20px;
}
.faq-sidebar h3 { font-size: 1.3rem; margin-bottom: 24px; color: #B3411C; }
.category-list { list-style: none; }
.category-list li { margin-bottom: 10px; }
.category-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 12px 18px;
    font-size: 1rem;
    font-weight: 600;
    color: #4e5268;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.15s;
    font-family: inherit;
}
.category-btn:hover { background: #FFEFE2; color: #E64A2E; }
.category-btn.active {
    background: #E64A2E;
    color: white;
    box-shadow: 0 6px 12px rgba(230,74,46,0.2);
}

/* 误区小贴士 */
.myth-buster {
    margin-top: 32px;
    background: #FFF3E9;
    border-radius: 28px;
    padding: 20px 18px;
}
.myth-title { font-weight: 800; color: #B3411C; margin-bottom: 16px; }
.myth-list { list-style: none; }
.myth-list li { margin: 12px 0; font-size: 0.9rem; color: #3f4156; }

/* 内容区 */
.faq-content { flex: 2.5; }
.faq-category-section { display: none; }
.faq-category-section.active-section { display: block; }
.category-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 28px;
    color: #1f2129;
    padding-left: 16px;
    border-left: 6px solid #FF8A4C;
}
.faq-accordion { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
    background: white;
    border-radius: 24px;
    border: 1px solid #ffd9bc;
    overflow: hidden;
}
.faq-question {
    padding: 20px 24px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FEFCF8;
}
.faq-question .arrow { color: #FF8A4C; transition: transform 0.2s; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.2s;
    color: #4b4e65;
    border-top: 0 solid #FFE9D2;
}
.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 0 24px 22px 24px;
    border-top-width: 1px;
}

/* 警示框 */
.warning-box {
    background: #FFEEE5;
    border-radius: 24px;
    padding: 18px 22px;
    margin-top: 24px;
    display: flex;
    gap: 16px;
    border-left: 6px solid #E64A2E;
}
.warn-icon { font-size: 1.8rem; }
.tip-box {
    background: #FFF7F0;
    border-radius: 24px;
    padding: 16px 22px;
}

/* 下载号召区域 (创意) */
.download-cta {
    background: linear-gradient(125deg, #FFE7D4, #FFF1E5);
    border-radius: 56px;
    padding: 44px 40px;
    margin: 40px 0 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    border: 1px solid #FFCC99;
}
.cta-content { flex: 2; }
.cta-content h2 { font-size: 2rem; color: #BF4E2E; margin-bottom: 12px; }
.cta-content p { color: #5a6075; margin-bottom: 28px; }
.cta-badges { display: flex; gap: 20px; margin-top: 20px; }
.cta-badges span {
    background: white;
    padding: 6px 20px;
    border-radius: 40px;
    font-weight: 600;
    color: #E64A2E;
    font-size: 0.9rem;
}
.cta-illustration { flex: 1; text-align: center; }

/* 联系横幅 */
.contact-banner {
    background: #FFF3E6;
    border-radius: 40px;
    padding: 36px 32px;
    margin: 30px 0 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ffcc99;
}
.contact-banner h3 { color: #B3411C; margin-bottom: 6px; }

/* 页脚 */
.footer {
    background: #FFE8DB;
    padding: 36px 0 24px;
    border-radius: 48px 48px 0 0;
    text-align: center;
    color: #9A4B2E;
    margin-top: 40px;
}
.footer a { color: #C04E28; text-decoration: none; margin: 0 12px; }

/* 响应式 */
@media (max-width: 800px) {
    .quick-diagnose { grid-template-columns: repeat(2,1fr); }
    .faq-layout { flex-direction: column; }
    .faq-sidebar { position: static; text-align: center; }
    .category-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
    .category-btn { width: auto; padding: 8px 18px; }
    .download-cta { flex-direction: column; text-align: center; }
    .cta-badges { justify-content: center; }
}
@media (max-width: 500px) {
    .quick-diagnose { grid-template-columns: 1fr; }
    .navbar { flex-direction: column; align-items: flex-start; }
    .faq-header h1 { font-size: 2rem; }
}