/* ============================================================
   SpinMac CN — Index Page Styles
   New editorial design (Tencent-Cloud-inspired corporate style)
   Nav / footer styles are handled by components.js — not here.
   ============================================================ */

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

    /* Use Inter (loaded via ../resources/libs/fonts/inter.css) as first choice,
       then fall back to CJK system fonts for Chinese rendering. */
    --font-family: 'Inter', "PingFang SC", "Microsoft YaHei",
                   -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --max-width:   1400px;

    /* Match the height of the component nav-bar (.nav-bar { height: 64px }) */
    --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;
}

/* ---- Arrow text link ---- */
.link-arrow {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 300;
    color: var(--tc-text-main);
    margin-top: 16px;
    position: relative;
}
.link-arrow::after {
    content: '→';
    margin-left: 8px;
    font-family: Arial, sans-serif;
    transition: transform 0.3s ease;
}
.link-arrow:hover            { color: var(--tc-blue); }
.link-arrow:hover::after     { transform: translateX(5px); }
.link-arrow.light            { color: #fff; }
.link-arrow.light:hover      { color: rgba(255,255,255,0.7); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    border-radius: 2px;
}
.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; }
.btn-outline-light       { border: 1px solid rgba(255,255,255,0.5); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--tc-blue); }

/* ---- Section header ---- */
.section-header    { margin-bottom: 80px; text-align: center; }
.section-header h2 { font-size: 42px; font-weight: 300; letter-spacing: 2px; margin-bottom: 16px; }
.section-header p  { font-size: 18px; color: var(--tc-text-muted); font-weight: 300; }

/* ============================================================
   1. HERO — datacenter background image, split layout
   ============================================================ */
.hero {
    padding-top:    calc(var(--nav-height) + 110px);
    padding-bottom: 240px;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-image: url('../../resources/image/hero-bg.jpg');
    background-size: cover;
    background-position: 70% center;
    background-color: #080c18;
}

/* Dark gradient: heavy on left for readability, fades to reveal photo on right */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(6, 10, 28, 0.97) 0%,
        rgba(6, 10, 28, 0.92) 30%,
        rgba(6, 10, 28, 0.70) 52%,
        rgba(6, 10, 28, 0.30) 72%,
        rgba(6, 10, 28, 0.08) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Blue brand accent glow on lower-left */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 55% 70% at 5% 100%,
        rgba(0, 82, 217, 0.22) 0%,
        transparent 60%
    );
    z-index: 1;
    pointer-events: none;
}

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

.hero-content {
    max-width: 640px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.hero h1 {
    font-size: 64px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 28px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.80;
    max-width: 520px;
    margin-bottom: 48px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 64px;
}

/* Quick-stats strip below CTAs */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.3;
}

.hero-stat span {
    font-size: 22px;
    font-weight: 300;
    color: #fff;
    letter-spacing: 1px;
}

.hero-stat-div {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.18);
}

/* ============================================================
   2. HERO OVERLAP — white card floating over hero bottom
   ============================================================ */
.hero-overlap-wrap { position: relative; }

.hero-overlap {
    max-width: 1200px;
    margin: -120px auto 0;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}
.overlap-title {
    font-size: 14px;
    color: var(--tc-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.overlap-subtitle {
    font-size: 24px;
    font-weight: 300;
}
.nodes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    gap: 16px 32px;
}
.node-item    { font-size: 18px; font-weight: 400; display: flex; align-items: center; gap: 10px; }
.node-item::before {
    content: '';
    width: 6px; height: 6px;
    background: #00A870;
    border-radius: 50%;
}

/* ============================================================
   3. DARK SHOWCASE — core features, near-black background
   ============================================================ */
.dark-showcase  { background-color: var(--tc-dark); color: #fff; padding: 160px 0; }

.showcase-inner { display: flex; gap: 80px; }

.showcase-left {
    flex: 1;
    position: sticky;
    top: 200px;
    height: max-content;
}
.showcase-left h2 { font-size: 48px; font-weight: 300; line-height: 1.2; margin-bottom: 24px; }
.showcase-left p  { color: #8B949E; font-size: 18px; margin-bottom: 40px; max-width: 400px; }

.showcase-right {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    background-color: var(--tc-dark-panel);
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    transition: var(--transition);
}
.feature-card:hover          { transform: translateY(-5px); background-color: #2D3136; }
.feature-card h3             { font-size: 24px; font-weight: 400; margin-bottom: 12px; z-index: 2; position: relative; }
.feature-card p              { font-size: 14px; color: #8B949E; z-index: 2; position: relative; }
.feature-card img {
    position: absolute;
    bottom: 0; right: 0;
    width: 80%;
    opacity: 0.6;
    transition: var(--transition);
}
.feature-card:hover img      { opacity: 1; transform: scale(1.05); }
/* Staggered layout — even cards shift down */
.feature-card:nth-child(even)       { transform: translateY(60px); }
.feature-card:nth-child(even):hover { transform: translateY(55px); }

/* ============================================================
   4. SPLIT SECTION — alternating text + image rows
   ============================================================ */
.split-section { padding: 160px 0; background: #fff; }

.split-row {
    display: flex;
    align-items: center;
    margin-bottom: 120px;
    gap: 100px;
}
.split-row:nth-child(even) { flex-direction: row-reverse; }

.split-text    { flex: 1; }
.split-text p  { font-size: 16px; color: var(--tc-text-muted); margin-bottom: 30px; max-width: 480px; }

.split-image {
    flex: 1.2;
    background: var(--tc-gray-bg);
    aspect-ratio: 4/3;
    position: relative;
}
.split-image img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   5. STATS — key numbers strip
   ============================================================ */
.stats-wrap {
    border-top: 1px solid var(--tc-border);
    border-bottom: 1px solid var(--tc-border);
    padding: 100px 0;
    background: #FAFBFC;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px; }

.stat-item h4 { font-size: 56px; font-weight: 300; color: var(--tc-blue); margin-bottom: 10px; line-height: 1; }
.stat-item p  { font-size: 16px; color: var(--tc-text-muted); }

/* ============================================================
   6. PRICING — clean line-list (no cards)
   ============================================================ */
.pricing-section { padding: 160px 0; background: #fff; }

.pricing-list {
    max-width: 1000px;
    margin: 0 auto;
    border-top: 2px solid var(--tc-text-main);
}
.pricing-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
    border-bottom: 1px solid var(--tc-border);
    transition: var(--transition);
}
.pricing-item:hover { background-color: var(--tc-gray-bg); padding-left: 20px; padding-right: 20px; }

.p-location { font-size: 24px; font-weight: 400; width: 200px; }
.p-desc     { font-size: 15px; color: var(--tc-text-muted); flex: 1; padding: 0 40px; }
.p-price    { font-size: 32px; font-weight: 300; color: var(--tc-blue); width: 200px; text-align: right; }
.p-price span { font-size: 16px; color: var(--tc-text-muted); }

/* ============================================================
   7. FAQ — minimal accordion
   ============================================================ */
.faq-section { padding: 100px 0 160px; background: var(--tc-gray-bg); }

.faq-list { max-width: 800px; margin: 0 auto; }

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

.faq-q {
    padding: 30px 0;
    font-size: 20px;
    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);
}
.faq-q::after           { content: '+'; font-size: 24px; font-weight: 300; transition: transform 0.3s; }
.faq-item.active .faq-q::after { transform: rotate(45deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: var(--tc-text-muted);
    font-size: 16px;
}
.faq-item.active .faq-a { padding-bottom: 30px; }

/* ============================================================
   8. CTA — final call to action
   ============================================================ */
.cta-section { text-align: center; padding: 120px 0; background: #fff; }
.cta-section h2 { font-size: 48px; font-weight: 300; margin-bottom: 40px; }

/* ============================================================
   9. SPECS — hardware parameters grid
   ============================================================ */
.specs-section {
    padding: 140px 0;
    background: var(--tc-gray-bg);
    border-top: 1px solid var(--tc-border);
}

.specs-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.specs-intro h2 {
    font-size: 40px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.specs-intro p {
    font-size: 16px;
    color: var(--tc-text-muted);
    max-width: 420px;
    margin-bottom: 40px;
}

.specs-product-img {
    width: 100%;
    max-width: 400px;
    opacity: 0.92;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--tc-border);
    border: 1px solid var(--tc-border);
}

.spec-item {
    background: #fff;
    padding: 32px 28px;
}

.spec-item dt {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--tc-text-muted);
    margin-bottom: 12px;
}

.spec-item dd {
    font-size: 22px;
    font-weight: 300;
    line-height: 1.4;
    margin: 0;
}

.spec-item dd span {
    display: block;
    font-size: 14px;
    color: var(--tc-text-muted);
    margin-top: 6px;
    font-weight: 300;
}

/* ============================================================
   10. STEPS — three-step onboarding
   ============================================================ */
.steps-section {
    padding: 140px 0;
    background: #fff;
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    list-style: none;
    counter-reset: none;
    margin-bottom: 56px;
}

.step-card {
    border: 1px solid var(--tc-border);
    padding: 40px 32px;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--tc-blue);
    box-shadow: 0 12px 32px rgba(0, 82, 217, 0.08);
}

.step-num {
    display: block;
    font-size: 48px;
    font-weight: 300;
    color: var(--tc-blue);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 14px;
}

.step-card p {
    font-size: 15px;
    color: var(--tc-text-muted);
    line-height: 1.75;
}

.steps-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

/* ============================================================
   11. COMPARE — physical vs virtualized table
   ============================================================ */
.compare-section {
    padding: 140px 0;
    background: var(--tc-dark);
    color: #fff;
}

.compare-section .section-header h2 { color: #fff; }
.compare-section .section-header p  { color: #8B949E; }

.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.compare-table th,
.compare-table td {
    padding: 22px 24px;
    text-align: left;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

.compare-table thead th {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.compare-table thead th:nth-child(2) {
    color: #fff;
    background: rgba(0, 82, 217, 0.18);
}

.compare-table tbody th[scope="row"] {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    width: 18%;
}

.compare-table tbody td:nth-child(2) {
    background: rgba(0, 82, 217, 0.10);
    color: #fff;
}

.compare-table tbody td:nth-child(3),
.compare-table tbody td:nth-child(4) {
    color: #8B949E;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   12. SECURITY — trust & compliance split
   ============================================================ */
.security-section {
    padding: 140px 0;
    background: #FAFBFC;
    border-top: 1px solid var(--tc-border);
    border-bottom: 1px solid var(--tc-border);
}

.security-layout {
    display: flex;
    align-items: center;
    gap: 80px;
}

.security-text {
    flex: 1;
}

.security-text h2 {
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 20px;
}

.security-text > p {
    font-size: 16px;
    color: var(--tc-text-muted);
    max-width: 480px;
    margin-bottom: 36px;
}

.security-points {
    list-style: none;
    margin-bottom: 32px;
}

.security-points li {
    padding: 20px 0;
    border-bottom: 1px solid var(--tc-border);
}

.security-points li:first-child {
    border-top: 1px solid var(--tc-border);
}

.security-points strong {
    display: block;
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 6px;
}

.security-points span {
    font-size: 15px;
    color: var(--tc-text-muted);
    line-height: 1.7;
}

.security-visual {
    flex: 1;
    background: var(--tc-gray-bg);
    aspect-ratio: 4/3;
    overflow: hidden;
}

.security-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   13. CLUSTER — Thunderbolt 5 band
   ============================================================ */
.cluster-section {
    padding: 120px 0;
    background: #fff;
}

.cluster-layout {
    display: flex;
    align-items: center;
    gap: 80px;
}

.cluster-visual {
    flex: 1.1;
    background: var(--tc-gray-bg);
    aspect-ratio: 4/3;
    overflow: hidden;
}

.cluster-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cluster-text {
    flex: 1;
}

.cluster-eyebrow {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tc-blue);
    margin-bottom: 16px;
}

.cluster-text h2 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.3;
}

.cluster-text > p {
    font-size: 16px;
    color: var(--tc-text-muted);
    margin-bottom: 36px;
    max-width: 460px;
}

.cluster-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.cluster-stats dt {
    font-size: 13px;
    color: var(--tc-text-muted);
    margin-bottom: 6px;
}

.cluster-stats dd {
    font-size: 28px;
    font-weight: 300;
    color: var(--tc-blue);
    margin: 0;
}

.cluster-stats dd span {
    font-size: 14px;
    color: var(--tc-text-muted);
}

/* Split section inner headings — h3 under section h2 */
.split-text h3 {
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 24px;
    color: var(--tc-text-main);
}

/* FAQ footer link */
.faq-more {
    text-align: center;
    margin-top: 48px;
    font-size: 15px;
    color: var(--tc-text-muted);
}

.faq-more a {
    color: var(--tc-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-a a {
    color: var(--tc-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================================
   14. Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .hero {
        background-position: 80% center;
    }
    .hero h1 { font-size: 48px; }
    .hero-content { max-width: 100%; }

    .hero-overlap {
        margin-top: -60px;
        padding: 40px;
    }
    .nodes-grid { grid-template-columns: repeat(3, 1fr); }

    .showcase-inner   { flex-direction: column; }
    .showcase-left    { position: static; }
    .feature-card:nth-child(even)       { transform: none; }
    .feature-card:nth-child(even):hover { transform: translateY(-5px); }

    .split-row, .split-row:nth-child(even) { flex-direction: column; gap: 40px; }
    .split-image { width: 100%; }

    .stats-grid   { grid-template-columns: repeat(2, 1fr); }
    .pricing-item { flex-direction: column; align-items: flex-start; gap: 16px; }
    .p-price      { text-align: left; }

    .specs-layout    { grid-template-columns: 1fr; gap: 48px; }
    .steps-list      { grid-template-columns: 1fr; }
    .security-layout { flex-direction: column; gap: 40px; }
    .cluster-layout  { flex-direction: column; gap: 40px; }
}

@media (max-width: 768px) {
    .nodes-grid { grid-template-columns: repeat(2, 1fr); }
    .container        { padding: 0 20px; }
    .hero h1          { font-size: 38px; letter-spacing: 2px; }
    .hero-desc        { font-size: 16px; }
    .hero-stats       { flex-wrap: wrap; gap: 20px; }
    .hero-stat-div    { display: none; }
    .showcase-right   { grid-template-columns: 1fr; }
    .stats-grid       { grid-template-columns: 1fr; }
    .specs-grid       { grid-template-columns: 1fr; }
    .cluster-stats    { gap: 24px; }
    .section-header h2 { font-size: 32px; }
    .split-text h3    { font-size: 28px; }
}
