:root {
    --canvas-bg: #f8fafc;
    --surface-bg: rgba(255, 255, 255, 0.45);
    --surface-border: rgba(255, 255, 255, 0.7);
    --stroke-color: rgba(15, 23, 42, 0.04);
    --accent-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-accent: #4f46e5;
    --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ed64a6 100%);
    --card-radius: 18px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--canvas-bg);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: -15%;
    left: -8%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.10) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* ========== 导航栏（与首页一致） ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.78);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    height: 72px;
    animation: fadeIn 0.7s ease both;
}
.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
}
.nav-brand a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 19px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.4px;
}
.nav-brand img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.nav-right-zone {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-menu {
    display: flex;
    gap: 4px;
}
.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 9px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-item:hover {
    color: var(--text-accent);
    background: rgba(79, 70, 229, 0.05);
}
.nav-item.active {
    color: #fff;
    background: var(--text-main);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14);
}
.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: all 0.25s ease;
}
.btn-github:hover {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.14);
    transform: translateY(-1px);
}
.btn-github svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* ========== 页面头部 ========== */
.page-header {
    max-width: 1400px;
    margin: 64px auto 36px auto;
    padding: 0 48px;
    text-align: center;
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 15px;
    background: #fff;
    border: 1px solid var(--surface-border);
    border-radius: 28px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-accent);
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
}
.badge-dot {
    width: 5px;
    height: 5px;
    background: var(--text-accent);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.6); }
}
.page-title {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #0f172a 30%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 28px auto;
    line-height: 1.7;
}

/* 搜索栏（装饰性） */
.search-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 12px 20px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    cursor: not-allowed;
    opacity: 0.9;
}
.search-bar svg {
    color: var(--text-muted);
    flex-shrink: 0;
}
.search-bar input {
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-main);
    flex: 1;
    outline: none;
}
.search-bar input::placeholder {
    color: var(--text-muted);
}
.search-hint {
    font-size: 12px;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
}

/* ========== 通用区块标题 ========== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--text-accent);
    margin-bottom: 8px;
    display: block;
}
.section-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.8px;
    color: var(--text-main);
    margin-bottom: 12px;
}
.section-desc {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}
.section-desc a {
    color: var(--text-accent);
    font-weight: 600;
    text-decoration: none;
}

/* ========== 快速步骤 (HowTo) ========== */
.quick-steps {
    max-width: 1400px;
    margin: 0 auto 100px auto;
    padding: 0 48px;
}
.steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.step-card {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    background: #fff;
    border: 1px solid var(--surface-border);
    border-radius: var(--card-radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.02);
    transition: transform 0.3s ease;
}
.step-card:hover {
    transform: translateY(-4px);
}
.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.step-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}
.step-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}
.step-card a {
    color: var(--text-accent);
    font-weight: 600;
    text-decoration: none;
}
.step-connector {
    display: flex;
    align-items: center;
    padding-top: 60px;
    color: rgba(15, 23, 42, 0.2);
    flex-shrink: 0;
}

/* ========== 配置示例展示 ========== */
.config-showcase {
    max-width: 1400px;
    margin: 0 auto 100px auto;
    padding: 0 48px;
}
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.config-card {
    background: #fff;
    border: 1px solid var(--surface-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.config-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
.config-visual {
    position: relative;
    background: #f1f5f9;
    height: 180px;
    overflow: hidden;
}
.config-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.config-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 14px;
    backdrop-filter: blur(6px);
}
.config-text {
    padding: 22px 20px;
}
.config-text h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}
.config-text p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}
.config-snippet {
    display: block;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    color: var(--text-accent);
    border: 1px solid rgba(15, 23, 42, 0.05);
    overflow-x: auto;
}

/* ========== FAQ 手风琴 ========== */
.faq-section {
    max-width: 1400px;
    margin: 0 auto 100px auto;
    padding: 0 48px;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.02);
    transition: box-shadow 0.2s ease;
}
.faq-item[open] {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.faq-question {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question::after {
    content: "+";
    font-size: 20px;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}
.faq-item[open] .faq-question::after {
    content: "−";
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 24px 20px 24px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    animation: fadeIn 0.3s ease;
}
.faq-answer p {
    margin: 0;
}

/* ========== 故障处理卡片 ========== */
.troubleshooting {
    max-width: 1400px;
    margin: 0 auto 100px auto;
    padding: 0 48px;
}
.trouble-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.trouble-card {
    background: #fff;
    border: 1px solid var(--surface-border);
    border-radius: var(--card-radius);
    padding: 28px 24px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.02);
    transition: transform 0.3s ease;
}
.trouble-card:hover {
    transform: translateY(-3px);
}
.trouble-card--warn {
    border-left: 4px solid #f59e0b;
}
.trouble-card--info {
    border-left: 4px solid #3b82f6;
}
.trouble-icon {
    font-size: 28px;
    margin-bottom: 12px;
}
.trouble-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}
.trouble-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== 底部 CTA ========== */
.bottom-cta {
    max-width: 1400px;
    margin: 0 auto 100px auto;
    padding: 0 48px;
    text-align: center;
}
.bottom-cta h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 12px;
}
.bottom-cta p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 11px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 7px 26px rgba(79, 70, 229, 0.24);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 32px rgba(79, 70, 229, 0.34);
}

/* ========== 页脚（与首页一致） ========== */
.footer {
    background-color: #fff;
    color: var(--text-muted);
    padding: 64px 48px;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    position: relative;
    z-index: 2;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 52px;
}
.footer-brand-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-brand-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
}
.footer-text {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
}
.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.4px;
}
.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}
.footer-links-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    transition: color 0.2s ease;
}
.footer-links-list a:hover {
    color: var(--text-accent);
}

/* ========== 动画 ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .page-title { font-size: 38px; }
    .section-title { font-size: 28px; }
    .steps-row { gap: 20px; }
    .step-connector { display: none; }
}
@media (max-width: 768px) {
    .navbar-container { padding: 0 20px; }
    .nav-menu { display: none; }
    .page-header { padding: 0 20px; margin: 40px auto 24px auto; }
    .page-title { font-size: 30px; }
    .quick-steps, .config-showcase, .faq-section, .troubleshooting { padding: 0 20px; margin-bottom: 60px; }
    .steps-row { flex-direction: column; align-items: center; }
    .config-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 28px; }
    .footer { padding: 48px 24px; }
    .bottom-cta { padding: 0 20px; }
    .search-bar { max-width: 100%; }
    .search-hint { display: none; }
}