/* ============================================================
   SpinMac CN — Help Center Page Styles
   Design: blue-corporate editorial (matches index.html / pricing.html)
   Nav / footer styles handled by components.js — not here.
   ============================================================ */

:root {
    --tc-blue:       #0052D9;
    --tc-blue-dark:  #003399;
    --tc-blue-pale:  #7eb3ff;
    --tc-dark:       #1A1C1F;
    --tc-dark-panel: #24272C;
    --tc-gray-bg:    #F4F5F7;
    --tc-text-main:  #111111;
    --tc-text-muted: #7A828A;
    --tc-border:     #E8EBEF;

    --font-family: 'Inter', "PingFang SC", "Microsoft YaHei",
                   -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --max-width:   1400px;
    --nav-height:  64px;
    --transition:  all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family);
    color: var(--tc-text-main);
    background-color: #fff;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a  { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ---- Layout ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ---- Scroll reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .pulse-dot::after { animation: none; }
}

/* ---- Arrow link ---- */
.link-arrow {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 300;
    color: var(--tc-blue);
}
.link-arrow::after {
    content: '→';
    margin-left: 8px;
    font-family: Arial, sans-serif;
    transition: transform 0.3s ease;
}
.link-arrow:hover::after { transform: translateX(5px); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 2px;
    font-family: var(--font-family);
    transition: var(--transition);
}
.btn-primary             { background-color: var(--tc-blue); color: #fff; }
.btn-primary:hover       { background-color: var(--tc-blue-dark); box-shadow: 0 8px 20px rgba(0,82,217,0.2); }
.btn-outline             { border-color: var(--tc-text-main); color: var(--tc-text-main); background: transparent; }
.btn-outline:hover       { background: var(--tc-text-main); color: #fff; }


/* ============================================================
   1. HERO — dark background, search-focused
   ============================================================ */
.help-hero {
    padding-top:    calc(var(--nav-height) + 100px);
    padding-bottom: 120px;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-image: url('../../resources/image/help-hero-bg.jpg');
    background-size: cover;
    background-position: 72% center;
    background-color: #080c18;
}

/* Heavy dark overlay left-aligned, revealing photo on right */
.help-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(6, 10, 28, 0.98) 0%,
        rgba(6, 10, 28, 0.94) 30%,
        rgba(6, 10, 28, 0.76) 55%,
        rgba(6, 10, 28, 0.38) 75%,
        rgba(6, 10, 28, 0.10) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Subtle blue glow bottom-left */
.help-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 48% 62% at 3% 100%,
        rgba(0, 82, 217, 0.18) 0%,
        transparent 60%
    );
    z-index: 1;
    pointer-events: none;
}

.help-hero-inner {
    position: relative;
    z-index: 2;
}

.help-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.42);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Live green dot — 24/7 indicator */
.pulse-dot {
    position: relative;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #00cc66;
    box-shadow: 0 0 8px rgba(0,204,102,0.85);
    flex-shrink: 0;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #00cc66;
    animation: pulse-expand 2.4s ease-out infinite;
}
@keyframes pulse-expand {
    0%   { transform: scale(1);   opacity: 0.55; }
    70%  { transform: scale(3.2); opacity: 0; }
    100% { transform: scale(3.2); opacity: 0; }
}

.help-h1 {
    font-size: 58px;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 680px;
}

.help-hero-lead {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.68;
    max-width: 540px;
    margin-bottom: 44px;
    line-height: 1.85;
}

/* Search field */
.help-search-wrap {
    position: relative;
    max-width: 560px;
    margin-bottom: 14px;
}

.help-search-input {
    width: 100%;
    padding: 18px 56px 18px 24px;
    font-size: 16px;
    font-weight: 300;
    font-family: var(--font-family);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    border-radius: 0;
}
.help-search-input::placeholder { color: rgba(255,255,255,0.30); }
.help-search-input:focus {
    border-color: rgba(0,82,217,0.65);
    background: rgba(255,255,255,0.11);
}

.help-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.25);
    pointer-events: none;
    line-height: 0;
}

.help-search-hint {
    font-size: 13px;
    color: rgba(255,255,255,0.28);
    font-weight: 300;
}

/* Quick stats strip */
.help-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 52px;
}
.help-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: rgba(255,255,255,0.42);
    line-height: 1.3;
}
.help-stat span {
    font-size: 22px;
    font-weight: 300;
    color: #fff;
    letter-spacing: 1px;
}
.help-stat-sep {
    width: 1px; height: 36px;
    background: rgba(255,255,255,0.14);
}


/* ============================================================
   2. CATEGORY NAV
   ============================================================ */
.cat-section {
    background: #fff;
    padding: 96px 0 80px;
    border-bottom: 1px solid var(--tc-border);
}

.cat-section-head {
    text-align: center;
    margin-bottom: 56px;
}
.cat-section-head h2 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--tc-text-main);
    margin-bottom: 12px;
}
.cat-section-head p {
    font-size: 16px;
    color: var(--tc-text-muted);
    font-weight: 300;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 20px;
    border: 1px solid var(--tc-border);
    color: var(--tc-text-main);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.cat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,82,217,0.22);
    box-shadow: 0 12px 28px rgba(0,82,217,0.05);
}

.cat-icon {
    width: 38px; height: 38px;
    background: rgba(0,82,217,0.06);
    border: 1px solid rgba(0,82,217,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tc-blue);
    margin-bottom: 18px;
    flex-shrink: 0;
}

.cat-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--tc-text-main);
    margin-bottom: 5px;
}

.cat-sub {
    font-size: 11px;
    color: var(--tc-text-muted);
    font-weight: 300;
    line-height: 1.5;
}


/* ============================================================
   3. SHARED SECTION LAYOUT
   ============================================================ */
.help-section {
    padding: 96px 0;
}
.help-section.bg-gray { background: var(--tc-gray-bg); }

.section-anchor { scroll-margin-top: 80px; }

.help-section-head {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 56px;
}

.section-marker {
    width: 44px; height: 44px;
    border: 1px solid var(--tc-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tc-blue);
    flex-shrink: 0;
    margin-top: 6px;
}

.help-section-head h2 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--tc-text-main);
    margin-bottom: 8px;
    line-height: 1.2;
}

.help-section-head p {
    font-size: 15px;
    color: var(--tc-text-muted);
    font-weight: 300;
}


/* ============================================================
   4. QUICK-START STEPS
   ============================================================ */
.steps-list {
    border-top: 1px solid var(--tc-border);
    margin-bottom: 56px;
}

.step-row {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    padding: 40px 0;
    border-bottom: 1px solid var(--tc-border);
}

.step-num {
    font-size: 52px;
    font-weight: 300;
    color: var(--tc-blue);
    line-height: 1;
    min-width: 56px;
    letter-spacing: -2px;
    flex-shrink: 0;
}

.step-body h3 {
    font-size: 20px;
    font-weight: 400;
    color: var(--tc-text-main);
    margin-bottom: 10px;
}

.step-body p {
    font-size: 15px;
    color: var(--tc-text-muted);
    line-height: 1.85;
    max-width: 680px;
    font-weight: 300;
}

.step-body a {
    color: var(--tc-blue);
    text-decoration: underline;
    text-decoration-color: rgba(0,82,217,0.28);
    text-underline-offset: 3px;
}
.step-body a:hover { text-decoration-color: var(--tc-blue); }


/* ============================================================
   5. FAQ ACCORDION
   ============================================================ */
.faq-list {
    border-top: 2px solid var(--tc-text-main);
}

.faq-item { border-bottom: 1px solid var(--tc-border); }

.faq-q {
    padding: 26px 0;
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--tc-text-main);
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-family);
    line-height: 1.5;
    gap: 20px;
}
.faq-q::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--tc-text-muted);
}
.faq-item.active .faq-q::after  { transform: rotate(45deg); }
.faq-item.active .faq-q         { color: var(--tc-blue); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: var(--tc-text-muted);
    font-size: 15px;
    line-height: 1.85;
    font-weight: 300;
}
.faq-item.active .faq-a { padding-bottom: 28px; }

.faq-a a {
    color: var(--tc-blue);
    text-decoration: underline;
    text-decoration-color: rgba(0,82,217,0.28);
    text-underline-offset: 3px;
}
.faq-a a:hover { text-decoration-color: var(--tc-blue); }

.faq-a strong { color: var(--tc-text-main); font-weight: 500; }

.code-block {
    display: block;
    margin: 16px 0;
    padding: 14px 20px;
    background: #0D1117;
    color: #E6EDF3;
    font-family: 'SF Mono', 'Consolas', 'Menlo', monospace;
    font-size: 13px;
    letter-spacing: 0.3px;
    line-height: 1.6;
    overflow-x: auto;
}


/* ============================================================
   6. SPEC TABLE CARD
   ============================================================ */
.spec-card {
    border: 1px solid var(--tc-border);
    margin-bottom: 48px;
    overflow: hidden;
}

.spec-card-head {
    padding: 16px 28px;
    background: var(--tc-dark);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr:not(:last-child) td { border-bottom: 1px solid var(--tc-border); }

.spec-table td {
    padding: 18px 28px;
    font-size: 15px;
    font-weight: 300;
    vertical-align: middle;
}

.spec-table td:first-child {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tc-text-muted);
    width: 160px;
    background: var(--tc-gray-bg);
    border-right: 1px solid var(--tc-border);
}

.spec-table td:last-child { color: var(--tc-text-main); }


/* ============================================================
   7. PRICE REFERENCE TABLE (inside FAQ answer)
   ============================================================ */
.price-ref-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}
.price-ref-table th, .price-ref-table td {
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid var(--tc-border);
}
.price-ref-table th {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tc-text-muted);
    background: var(--tc-gray-bg);
}
.price-ref-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--tc-blue);
    font-weight: 300;
}
.badge-rec {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--tc-blue);
    color: #fff;
    vertical-align: middle;
}


/* ============================================================
   8. CONTACT CTA — final dark section
   ============================================================ */
.contact-section {
    background: var(--tc-dark);
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

.contact-inner { max-width: 720px; margin: 0 auto; }

.contact-h2 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-lead {
    font-size: 16px;
    color: rgba(255,255,255,0.42);
    font-weight: 300;
    margin-bottom: 60px;
    line-height: 1.85;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 620px;
    margin: 0 auto;
}

.contact-card {
    padding: 40px 32px;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    transition: border-color 0.3s ease, background 0.3s ease;
    color: #fff;
}
.contact-card:hover {
    border-color: rgba(0,82,217,0.40);
    background: rgba(0,82,217,0.05);
}

.contact-card-icon {
    color: var(--tc-blue-pale);
    line-height: 0;
}

.contact-card-title {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
}

.contact-card-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    font-weight: 300;
    line-height: 1.65;
    flex: 1;
}

.contact-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--tc-blue-pale);
    margin-top: 4px;
}
.contact-card-cta::after {
    content: '→';
    font-family: Arial, sans-serif;
    transition: transform 0.3s ease;
}
.contact-card-cta:hover::after { transform: translateX(4px); }


/* ============================================================
   9. RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .container, .wrap { padding: 0 20px; }

    .help-hero {
        background-position: 80% center;
    }

    .help-h1           { font-size: 40px; letter-spacing: 1px; }
    .help-hero-lead    { font-size: 16px; }
    .help-stats        { flex-wrap: wrap; gap: 20px; }
    .help-stat-sep     { display: none; }

    .cat-grid          { grid-template-columns: repeat(2, 1fr); }

    .help-section-head h2 { font-size: 28px; }
    .step-row          { gap: 20px; }
    .step-num          { font-size: 38px; min-width: 44px; }

    .spec-table td:first-child { width: 110px; }
    .spec-table td             { padding: 14px 18px; }

    .contact-cards     { grid-template-columns: 1fr; }
    .contact-h2        { font-size: 36px; }
}

@media (max-width: 480px) {
    .help-h1           { font-size: 32px; }
    .help-hero         { padding-bottom: 80px; background-position: 85% center; }
    .cat-grid          { grid-template-columns: repeat(2, 1fr); }
    .faq-q             { font-size: 16px; }
}
