/* ========== ADB 教程页（依赖 style.css 的变量与公共样式） ========== */

/* ---------- 页面主视觉 ---------- */
.guide-hero {
    padding: calc(var(--nav-height) + 64px) 24px 56px;
    text-align: center;
    background:
        radial-gradient(ellipse at 25% 20%, rgba(91, 127, 255, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 78% 80%, rgba(74, 158, 247, 0.08) 0%, transparent 55%),
        var(--bg-dark);
}

.guide-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    background: rgba(91, 127, 255, 0.12);
    border: 1px solid rgba(123, 154, 255, 0.3);
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.guide-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #FFFFFF 0%, #A0A0FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guide-hero-desc {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ---------- 概念说明卡 ---------- */
.guide-intro {
    padding: 0 0 64px;
    background: var(--bg-dark);
}

.guide-intro-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.guide-intro-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    transition: var(--transition);
}

.guide-intro-card:hover {
    transform: translateY(-3px);
    border-color: rgba(123, 154, 255, 0.55);
    box-shadow: var(--shadow-glow);
}

.guide-intro-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: var(--gradient-primary);
}

.guide-intro-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.guide-intro-card p {
    color: var(--text-gray);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ---------- 品牌快速导航 ---------- */
.guide-brands {
    padding: 56px 0 64px;
    background: var(--bg-section);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.guide-brands .container {
    max-width: var(--container-max);
}

.brand-nav-title {
    text-align: center;
    margin-bottom: 36px;
}

.brand-nav-title h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.brand-nav-title p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.brand-nav-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
}

.brand-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.brand-nav-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

.brand-badge {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.brand-nav-name {
    font-size: 0.82rem;
    color: var(--text-gray);
    font-weight: 500;
    transition: var(--transition);
}

.brand-nav-card:hover .brand-nav-name {
    color: var(--text-white);
}

/* ---------- 品牌教程区块 ---------- */
.guide-body {
    padding: 64px 0;
    background: var(--bg-dark);
}

.brand-section {
    scroll-margin-top: calc(var(--nav-height) + 18px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 34px 34px 28px;
    margin-bottom: 26px;
}

.brand-section-head {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(176, 184, 208, 0.14);
}

.brand-section-head .brand-badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.brand-section-head h2 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
}

.brand-section-head p {
    color: var(--text-gray);
    font-size: 0.88rem;
    margin-top: 4px;
}

/* ---------- 教程方法块 ---------- */
.guide-method {
    padding: 20px 0 6px;
    border-top: 1px dashed rgba(176, 184, 208, 0.16);
}

.guide-method:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.guide-method-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.guide-method-title h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-light);
}

.method-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-xl);
    background: rgba(91, 127, 255, 0.14);
    border: 1px solid rgba(123, 154, 255, 0.3);
    color: var(--primary-light);
    font-size: 0.72rem;
    font-weight: 600;
}

.step-list {
    counter-reset: step;
    display: grid;
    gap: 10px;
    padding-left: 0;
}

.step-list li {
    counter-increment: step;
    list-style: none;
    position: relative;
    padding: 10px 14px 10px 48px;
    background: rgba(26, 31, 58, 0.55);
    border: 1px solid rgba(176, 184, 208, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.7;
}

.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.step-list li strong {
    color: var(--text-white);
}

.guide-note {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 196, 66, 0.08);
    border: 1px solid rgba(255, 196, 66, 0.22);
    color: #e8cf95;
    font-size: 0.85rem;
    line-height: 1.7;
}

.guide-code {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(13, 17, 40, 0.9);
    border: 1px solid rgba(91, 127, 255, 0.25);
    font-family: Consolas, Monaco, "Courier New", monospace;
    color: #9ecbff;
    font-size: 0.85rem;
    line-height: 1.8;
    overflow-x: auto;
}

.guide-code span {
    color: #5f7096;
}

/* ---------- 型号速查网格 ---------- */
.model-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.model-card {
    padding: 12px 16px;
    background: rgba(26, 31, 58, 0.55);
    border: 1px solid rgba(176, 184, 208, 0.1);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.model-card:hover {
    border-color: rgba(123, 154, 255, 0.45);
    background: rgba(37, 43, 80, 0.75);
}

.model-card strong {
    display: block;
    color: var(--primary-light);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.model-card p {
    color: var(--text-gray);
    font-size: 0.84rem;
    line-height: 1.65;
}

/* ---------- 底部 CTA ---------- */
.guide-cta {
    padding: 72px 24px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 107, 157, 0.1) 0%, transparent 60%),
        var(--bg-section);
}

.guide-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.guide-cta p {
    color: var(--text-gray);
    margin-bottom: 28px;
    font-size: 1rem;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .brand-nav-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .guide-intro-grid { grid-template-columns: 1fr; max-width: 640px; }
    .guide-hero h1 { font-size: 2.1rem; }
    .model-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .guide-hero { padding-top: calc(var(--nav-height) + 40px); }
    .guide-hero h1 { font-size: 1.7rem; }
    .guide-hero-desc { font-size: 0.95rem; }
    .brand-nav-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
    .brand-section { padding: 24px 18px 20px; }
    .brand-section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .brand-section-head h2 { font-size: 1.3rem; }
    .guide-cta h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .brand-nav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .brand-badge { width: 52px; height: 52px; font-size: 0.85rem; }
    .brand-nav-name { font-size: 0.75rem; }
}
