/* 古竹官网 — 与客户端一致的 teal 深色主题 */

:root {
    --bg: #0b1e21;
    --sidebar: #152c2e;
    --text: #f7fff7;
    --text-muted: #708d81;
    --card: #1a3336;
    --border: #264653;
    --accent: #4ecdc4;
    --accent-dim: rgba(78, 205, 196, 0.12);
    --accent-glow: rgba(78, 205, 196, 0.35);
    --header-h: 4rem;
    --radius: 12px;
    --radius-lg: 20px;
    --font: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.container {
    width: min(1120px, 92vw);
    margin-inline: auto;
}

.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;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.text-accent {
    color: var(--accent);
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    width: min(1120px, 92vw);
    margin-inline: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    color: var(--text);
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
}

.brand-sub {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--text);
    text-decoration: none;
}

.nav-cta {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--sidebar);
    color: var(--text) !important;
}

.nav-cta:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
    box-shadow: 0 0 0 1px var(--accent-dim);
}

@media (max-width: 640px) {
    .nav-links a:not(.nav-cta) {
        display: none;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: min(100vh, 900px);
    padding: calc(var(--header-h) + 3rem) 0 4rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.22;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 20%, transparent 70%);
}

.hero::before {
    content: "";
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 100vw);
    height: min(900px, 100vw);
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 55%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 1rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    margin: 0 0 1.25rem;
    max-width: 15ch;
}

.hero-lead {
    margin: 0 0 2rem;
    max-width: 36rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.hero-lead strong {
    font-weight: 700;
    color: var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--border);
    max-width: 52rem;
}

.metric dt {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.metric dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* Bands */
.band {
    padding: 2.25rem 0;
}

.band-muted {
    background: var(--sidebar);
    border-block: 1px solid var(--border);
}

.band-inner {
    margin-inline: auto;
}

.trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 768px) {
    .trust-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.trust-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Sections */
.section {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-tight {
    padding-top: 2rem;
}

.band-card {
    background: linear-gradient(180deg, var(--sidebar) 0%, var(--bg) 100%);
    border-top: 1px solid var(--border);
}

.section-head {
    text-align: center;
    max-width: 36rem;
    margin-inline: auto;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin: 0 0 0.75rem;
}

.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.25;
}

.section-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

/* Capability cards + screenshots */
.cap-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vw, 3rem);
}

.cap-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cap-card:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.cap-card-top {
    padding: clamp(1.5rem, 4vw, 2rem);
    padding-bottom: 1.25rem;
}

.cap-index {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.cap-title {
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    margin: 0 0 0.65rem;
}

.cap-body {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 52rem;
}

.cap-tag {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: color-mix(in srgb, var(--text-muted) 85%, var(--accent));
}

.browser-shot {
    margin: 0;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 65%, black);
}

.browser-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.65rem 1rem;
    background: var(--sidebar);
    border-bottom: 1px solid var(--border);
}

.browser-chrome span:nth-child(-n + 3) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text-muted) 35%, transparent);
}

.chrome-title {
    flex: 1;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.browser-body {
    padding: 0.75rem;
}

.browser-body img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* Workflow */
.workflow-steps {
    list-style: none;
    margin: 0;
    padding: clamp(1.5rem, 4vw, 2rem);
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.workflow-steps > li:not(.workflow-arrow) {
    flex: 1 1 180px;
    max-width: 280px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.workflow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 300;
    padding: 0 0.25rem;
}

@media (max-width: 700px) {
    .workflow-arrow {
        display: none;
    }
}

.step-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.step-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.step-desc {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Feature tiles */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.feature-tile {
    padding: 1.35rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.feature-tile-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--text);
}

.feature-tile p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Final CTA */
.cta-final {
    padding: clamp(3rem, 7vw, 4.5rem) 0;
    border-top: 1px solid var(--border);
    background: radial-gradient(ellipse 80% 80% at 50% 100%, var(--accent-dim), transparent 55%);
}

.cta-final-inner {
    text-align: center;
}

.cta-final-title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    margin: 0 0 0.75rem;
    font-weight: 700;
}

.cta-final-desc {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    background: var(--sidebar);
    border-top: 1px solid var(--border);
    padding: 3rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-logo span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-left: 0.35rem;
}

.footer-desc {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 28rem;
}

.footer-heading {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-disclaimer p {
    margin: 0;
    font-size: 0.78rem;
    color: color-mix(in srgb, var(--text-muted) 90%, var(--text));
    line-height: 1.65;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-bottom-inner p {
    margin: 0;
}

.footer-geo {
    opacity: 0.85;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.06s;
}

.reveal-delay-2 {
    transition-delay: 0.12s;
}

.reveal-delay-3 {
    transition-delay: 0.18s;
}

.reveal-delay-4 {
    transition-delay: 0.24s;
}
