/* ============================
   芭芭客™ BP — v2
   柔和深色 + 自然绿
   全屏吸附 · 手机优先 · 大字
   ============================ */

:root {
    --green: #4ade80;
    --green-dim: #22c55e;
    --green-soft: rgba(74, 222, 128, 0.12);
    --green-border: rgba(74, 222, 128, 0.2);
    --bg: #1c1f26;
    --bg-alt: #232730;
    --bg-card: #2a2e38;
    --bg-card-hover: #323844;
    --text: #eef0f4;
    --text-sub: #9ca3af;
    --text-dim: #6b7280;
    --border: rgba(255,255,255,0.06);
    --radius: 14px;
    --radius-sm: 8px;
}

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

html {
    font-size: 18px;
    scroll-behavior: auto; /* snap handles scrolling */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', 'Noto Sans SC', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    height: 100vh;
    height: 100dvh;
}

/* === NAV === */
.nav {
    position: fixed;
    top: 0;
    left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(28, 31, 38, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-brand {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green);
}
.nav-brand sup {
    font-size: 0.5em;
    color: var(--text-dim);
}

.nav-dots {
    display: flex;
    gap: 8px;
}
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    opacity: 0.4;
    transition: 0.3s;
    cursor: pointer;
}
.dot.active {
    background: var(--green);
    opacity: 1;
    transform: scale(1.3);
}

/* === SNAP CONTAINER === */
.snap-container {
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.page {
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px 24px;
    position: relative;
}

.page:nth-child(even) {
    background: var(--bg-alt);
}

.page-inner {
    width: 100%;
    max-width: 480px;
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === HERO (Page 1) === */
.hero-badge {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid var(--green-border);
    border-radius: 100px;
    font-size: 0.65rem;
    color: var(--green);
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    background: var(--green-soft);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--green);
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}
.hero-title sup {
    font-size: 0.3em;
    color: var(--text-dim);
    vertical-align: super;
}

.hero-slogan {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.hero-sub {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 32px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.stat {
    text-align: center;
    padding: 14px 8px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--green);
}
.stat-label {
    font-size: 0.6rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.scroll-hint {
    text-align: center;
    opacity: 0.5;
}
.scroll-hint span {
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}
.scroll-arrow {
    width: 14px; height: 14px;
    margin: 8px auto 0;
    border-right: 2px solid var(--text-dim);
    border-bottom: 2px solid var(--text-dim);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%,100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(4px); }
}

/* === SECTION COMMON === */
.section-label {
    font-size: 0.6rem;
    color: var(--green);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.section-desc {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 24px;
}

/* === PAGE 2: PROBLEM === */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.col-card {
    padding: 16px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.col-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.col-card h3 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.col-card p {
    font-size: 0.7rem;
    color: var(--text-sub);
    line-height: 1.5;
}

.insight-box {
    padding: 16px;
    background: var(--green-soft);
    border-left: 3px solid var(--green);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.insight-box p {
    font-size: 0.85rem;
    line-height: 1.6;
}

.insight-box .small {
    font-size: 0.75rem;
    color: var(--text-sub);
    margin-top: 8px;
}

.insight-box strong {
    color: var(--green);
}

/* === PAGE 3: INSIGHT === */
.quote-block {
    padding: 20px 16px;
    border-left: 3px solid var(--green);
    margin-bottom: 24px;
    background: var(--green-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.quote-block p {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
}

.shift-list {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.shift-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.shift-before {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-decoration: line-through;
    text-align: right;
}

.shift-arrow {
    color: var(--green);
    font-weight: 700;
    font-size: 0.9rem;
}

.shift-after {
    font-size: 0.7rem;
    color: var(--text);
    font-weight: 600;
}

.bottom-note {
    font-size: 0.8rem;
    color: var(--text-sub);
    line-height: 1.7;
    text-align: center;
}
.bottom-note strong {
    color: var(--green);
    font-size: 0.9rem;
}

/* === PAGE 4: SOLUTION === */
.module-list {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: 0.2s;
}

.module-item:active {
    background: var(--bg-card-hover);
}

.module-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.module-item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.module-item p {
    font-size: 0.7rem;
    color: var(--text-sub);
}

.philosophy-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-style: italic;
    padding: 12px;
}

/* === PAGE 5: PRICING === */
.pricing-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.price-card {
    padding: 18px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
}

.price-card.featured {
    border-color: var(--green-border);
    background: var(--green-soft);
}

.price-badge {
    position: absolute;
    top: 0; right: 16px;
    background: var(--green);
    color: var(--bg);
    font-size: 0.55rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 0 0 6px 6px;
    letter-spacing: 0.5px;
}

.price-tier {
    font-size: 0.65rem;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 900;
}
.price-amount span {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-dim);
}

.price-hook {
    font-size: 0.7rem;
    color: var(--green);
    margin-bottom: 6px;
}

.price-desc {
    font-size: 0.7rem;
    color: var(--text-sub);
}

.metrics-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.metric-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-card);
    border-radius: 100px;
    border: 1px solid var(--border);
}

.metric-val {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--green);
}

.metric-lbl {
    font-size: 0.6rem;
    color: var(--text-dim);
}

/* === PAGE 6: TEAM === */
.team-list {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.team-role-tag {
    flex-shrink: 0;
    padding: 4px 10px;
    background: var(--green-soft);
    border: 1px solid var(--green-border);
    border-radius: 100px;
    font-size: 0.55rem;
    color: var(--green);
    font-weight: 700;
    white-space: nowrap;
}

.team-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.team-info p {
    font-size: 0.65rem;
    color: var(--text-sub);
    line-height: 1.4;
}

.team-edge {
    padding: 16px;
    background: var(--green-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--green-border);
}

.team-edge h4 {
    font-size: 0.75rem;
    color: var(--green);
    margin-bottom: 6px;
    font-weight: 700;
}

.team-edge p {
    font-size: 0.75rem;
    color: var(--text-sub);
    line-height: 1.6;
}

.team-edge strong {
    color: var(--text);
}

/* === PAGE 7: PROGRESS + CTA === */
.progress-list {
    display: grid;
    gap: 8px;
    margin-bottom: 28px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-sub);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.progress-item.done {
    color: var(--text);
}

.progress-item.active {
    border-color: var(--green-border);
    background: var(--green-soft);
    color: var(--green);
    font-weight: 600;
}

.check {
    font-size: 0.8rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.progress-item.done .check { color: var(--green); }
.progress-item.active .check { color: var(--green); }

.cta-block {
    text-align: center;
    padding: 24px 16px;
    border: 1px solid var(--green-border);
    border-radius: var(--radius);
    background: var(--green-soft);
}

.cta-brand {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--green);
    margin-bottom: 4px;
}
.cta-brand sup {
    font-size: 0.35em;
    color: var(--text-dim);
}

.cta-line {
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 12px;
}

.cta-divider {
    width: 30px;
    height: 2px;
    background: var(--green);
    margin: 0 auto 12px;
    opacity: 0.6;
}

.cta-contact {
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.cta-email {
    font-size: 0.9rem;
    color: var(--green);
    font-weight: 600;
}

.footer {
    margin-top: 20px;
    text-align: center;
}
.footer p {
    font-size: 0.55rem;
    color: var(--text-dim);
}

/* === TABLET+ === */
@media (min-width: 768px) {
    html { font-size: 18px; }
    .page-inner { max-width: 580px; }
    .hero-title { font-size: 4rem; }
    .section-title { font-size: 1.8rem; }
    .two-col { gap: 16px; }
    .col-card h3 { font-size: 0.9rem; }
    .col-card p { font-size: 0.8rem; }
    .pricing-stack { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .page-inner { max-width: 700px; }
    .hero-title { font-size: 5rem; }
    .section-title { font-size: 2.2rem; }
}

/* === PAGE 4: CaaS三层引擎 === */
.paradigm-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.paradigm-item {
    flex: 1;
    text-align: center;
}

.paradigm-item.old {
    opacity: 0.45;
}

.paradigm-label {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.paradigm-item.new .paradigm-label {
    color: var(--green);
}

.paradigm-flow {
    font-size: 0.65rem;
    color: var(--text-sub);
    line-height: 1.5;
}

.paradigm-item.new .paradigm-flow {
    color: var(--text);
    font-weight: 600;
}

.paradigm-vs {
    font-size: 1.3rem;
    color: var(--text-dim);
    opacity: 0.4;
    flex-shrink: 0;
}

.caas-layers {
    margin-bottom: 16px;
}

.caas-layer {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.caas-connector {
    text-align: center;
    color: var(--green);
    font-size: 1rem;
    padding: 3px 0;
    opacity: 0.5;
}

.layer-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green-soft);
    border: 1px solid var(--green-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--green);
    margin-top: 2px;
}

.layer-body {
    flex: 1;
}

.layer-body h4 {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.layer-tag {
    font-size: 0.52rem;
    padding: 2px 8px;
    background: var(--green-soft);
    border: 1px solid var(--green-border);
    color: var(--green);
    border-radius: 100px;
    font-weight: 600;
    white-space: nowrap;
}

.layer-body p {
    font-size: 0.68rem;
    color: var(--text-sub);
    line-height: 1.55;
    margin-bottom: 6px;
}

.layer-keyword {
    display: inline-block;
    font-size: 0.6rem;
    color: var(--green);
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.85;
}
