/* ========== 全局变量与重置 ========== */
:root {
    --primary-blue: #2b6ef0;
    --text-main: #1f2937;
    --gradient-blue: linear-gradient(45deg, #2b6ef0, #5b8af7);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
body {
    color: var(--text-main);
    background: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
}

/* 导航栏 (与首页蓝色版完全一致) */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    height: 80px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: radial-gradient(circle at 10% 20%, rgba(43, 110, 240, 0.03) 0%, rgba(255, 255, 255, 1) 50%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f3f4f6;
}
.nav-left { display: flex; align-items: center; }
.logo { margin-right: 40px; }
.logo img { height: 30px; width: 158px; }
.nav-links { display: flex; list-style: none; }
.nav-links li {
    display: flex; align-items: center; gap: 4px; position: relative;
    margin: 0 15px; border-bottom: 3px solid transparent; transition: 0.3s;
}
.nav-links li:hover { border-bottom: 3px solid #D6E4FF; }
.nav-links a {
    text-decoration: none; color: var(--text-main); font-size: 15px; font-weight: 500;
    display: flex; align-items: center;
}
.nav-links-svg { width: 12px; height: 12px; }
.nav-right { display: flex; align-items: center; }
.btn-link {
    text-decoration: none; color: var(--primary-blue); padding: 10px 24px;
    border: 2px solid var(--primary-blue); border-radius: 6px; font-weight: 600; font-size: 14px;
    margin-left: 12px; transition: 0.3s;
}
.btn-link:hover { background: var(--primary-blue); color: #fff; }
.btn-outline {
    text-decoration: none; color: #fff; background: var(--primary-blue); padding: 11px 24px;
    border-radius: 6px; font-weight: 600; font-size: 14px; transition: 0.3s;
}
.btn-outline:hover { background: #1e5acf; }

/* FAQ 头部 */
.faq-hero {
    padding: 160px 8% 60px;
    background: radial-gradient(circle at 50% 0%, rgba(43, 110, 240, 0.04) 0%, rgba(255, 255, 255, 1) 70%);
    text-align: center;
}
.faq-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}
.faq-hero h1 span {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.faq-hero p {
    font-size: 1.2rem;
    color: #4b5563;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
}

/* 兼容性速查表 (创意版块) */
.compat-table-wrap {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 4%;
}
.compat-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1f2937;
}
.compat-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(43, 110, 240, 0.06);
}
.compat-table th {
    background: var(--primary-blue);
    color: #fff;
    font-weight: 700;
    padding: 16px 20px;
    text-align: left;
    font-size: 0.95rem;
}
.compat-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f4ff;
    font-size: 0.95rem;
    color: #374151;
}
.compat-table tr:last-child td {
    border-bottom: none;
}
.compat-table tr:hover td {
    background: #f8faff;
}

/* FAQ 容器 */
.faq-container {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 4%;
}
.faq-group {
    margin-bottom: 50px;
}
.faq-group-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 25px;
    padding-left: 12px;
    border-left: 5px solid var(--primary-blue);
}
.faq-item {
    background: #ffffff;
    border: 1px solid #eef3ff;
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item:hover {
    border-color: #b0c9ff;
    box-shadow: 0 10px 25px rgba(43, 110, 240, 0.04);
}

.faq-checkbox {
    display: none;
}
.faq-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    cursor: pointer;
    user-select: none;
}
.faq-trigger h3 {
    font-size: 1.15rem;
    color: #1f2937;
    font-weight: 700;
    padding-right: 20px;
    line-height: 1.5;
}
.faq-icon {
    width: 16px;
    height: 16px;
    position: relative;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: #9ca3af;
    transition: background-color 0.3s;
}
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after { top: 0; left: 7px; width: 2px; height: 16px; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafcff;
}
.faq-answer-content {
    padding: 0 30px 24px;
}
.faq-answer-content p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 12px;
}
.faq-answer-content p strong {
    font-weight: 700;
    color: #000;
}
.faq-answer-content code {
    background: #eef3ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--primary-blue);
}

/* 手风琴展开状态 */
.faq-checkbox:checked ~ .faq-answer {
    max-height: 2000px;
    border-top: 1px solid #f0f4ff;
}
.faq-checkbox:checked ~ .faq-trigger .faq-icon {
    transform: rotate(45deg);
}
.faq-checkbox:checked ~ .faq-trigger .faq-icon::before,
.faq-checkbox:checked ~ .faq-trigger .faq-icon::after {
    background-color: var(--primary-blue);
}
.faq-checkbox:checked ~ .faq-trigger h3 {
    color: var(--primary-blue);
}

/* 创意版块：历史版本工具箱 */
.archive-section {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 4%;
    background: linear-gradient(135deg, #f8faff 0%, #fff 100%);
    border-radius: 24px;
    border: 1px solid #d6e4ff;
    padding: 50px 40px;
}
.archive-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
}
.archive-content h2 span {
    color: var(--primary-blue);
}
.archive-content > p {
    font-size: 1.05rem;
    color: #4b5563;
    margin-bottom: 30px;
}
.archive-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}
.archive-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.step-marker {
    width: 36px;
    height: 36px;
    background: var(--primary-blue);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.archive-step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}
.archive-step p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
}
.archive-step code {
    background: #eef3ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--primary-blue);
}
.btn-archive {
    display: inline-block;
    background: var(--primary-blue);
    color: #fff;
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}
.btn-archive:hover {
    background: #1e5acf;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(43, 110, 240, 0.3);
}

/* 页脚 (与首页蓝色版一致) */
footer {
    background: #111111;
    color: #ffffff;
    padding: 80px 8% 40px;
    font-family: 'Noto Sans', sans-serif;
}
.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-logo-section img { height: 35px; margin-bottom: 20px; }
.footer-logo-section p { color: #999; font-size: 14px; margin-bottom: 10px; }
.footer-tagline { color: #777 !important; font-size: 13px !important; }
.footer-column h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}
.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #333;
}
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: #cccccc; text-decoration: none; font-size: 14px; transition: 0.3s; }
.footer-column ul li a:hover { color: var(--primary-blue); }
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { color: #666; text-decoration: none; transition: 0.3s; }
.footer-socials a:hover { color: #fff; }

/* 响应式 */
@media (max-width: 1024px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-logo-section { grid-column: span 2; text-align: center; margin-bottom: 40px; }
    .compat-table-wrap { overflow-x: auto; }
    .compat-table { min-width: 700px; }
}
@media (max-width: 768px) {
    .faq-hero h1 { font-size: 2.4rem; }
    .faq-trigger { padding: 20px; }
    .faq-answer-content { padding: 0 20px 20px; }
    .archive-section { padding: 30px 20px; }
    .archive-steps { gap: 15px; }
}