/* ========================================
   Cordyceps (虫草识别) Page Styles
   ======================================== */

.hero,
.scene-section,
.about-section,
.highlight-section,
.terminal-section,
.dashboard-section {
    padding-left: 24px;
    padding-right: 24px;
}

.hero {
    padding-top: 30px;
    padding-bottom: 72px;
    background:
        radial-gradient(circle at 84% 14%, rgba(251, 191, 36, 0.12), transparent 20%),
        linear-gradient(180deg, #f4f7f6 0%, #f8fafc 100%);
}

.hero-shell,
.scene-shell,
.about-content,
.highlight-shell,
.dashboard-shell {
    max-width: 1120px;
    margin: 0 auto;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 28px;
    align-items: center;
}

.hero-copy {
    padding: 8px 0;
}

.hero-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0f766e;
}

.hero-title {
    margin-top: 14px;
    color: #0f172a;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    margin-top: 20px;
    max-width: 620px;
    color: #475569;
    font-size: 17px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
    margin-top: 28px;
}

.hero-buttons .btn {
    flex: 0 1 260px;
    min-width: 0;
    padding-left: 18px;
    padding-right: 18px;
    white-space: nowrap;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.hero-metric {
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.hero-metric strong {
    display: block;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
}

.hero-metric span {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
}

.hero-visual {
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 30px 56px -40px rgba(15, 23, 42, 0.45);
    background: #ffffff;
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.section-head {
    max-width: 760px;
    margin-bottom: 22px;
}

.section-head h2 {
    margin-top: 12px;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-head p {
    margin-top: 12px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
}

.section-head-left {
    margin-bottom: 28px;
}

.scene-section {
    padding-top: 0;
    padding-bottom: 70px;
    background: #f8fafc;
}

.scene-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.scene-card {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 24px 48px -40px rgba(15, 23, 42, 0.42);
}

.scene-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.scene-body {
    padding: 20px 20px 22px;
}

.scene-body h3 {
    color: #0f172a;
    font-size: 22px;
    line-height: 1.2;
}

.scene-body p {
    margin-top: 10px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.about-section {
    padding-top: 12px;
    padding-bottom: 70px;
    background: #ffffff;
}

.about-content {
    padding: 34px;
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 24px 48px -40px rgba(15, 23, 42, 0.35);
}

.about-content p {
    font-size: 15px;
    color: #475569;
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-action {
    display: flex;
    justify-content: flex-start;
    margin-top: 24px;
}

.highlight-section {
    padding-top: 0;
    padding-bottom: 84px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.highlight-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 32px;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.96));
    box-shadow: 0 24px 48px -40px rgba(15, 23, 42, 0.35);
}

.highlight-copy h2 {
    margin-top: 12px;
    color: #0f172a;
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.highlight-copy p {
    margin-top: 12px;
    max-width: 700px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
}

.highlight-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.terminal-section {
    padding-top: 0;
    padding-bottom: 52px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.dashboard-section {
    padding-top: 72px;
    padding-bottom: 72px;
    background: #ffffff;
    overflow: hidden;
}

.terminal-shell {
    max-width: 1120px;
    margin: 0 auto;
}

.dashboard-preview {
    overflow: hidden;
    max-width: 980px;
    margin: 28px auto 0;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #ffffff;
    box-shadow: 0 28px 54px -42px rgba(15, 23, 42, 0.48);
}

.dashboard-head {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.dashboard-head h2 {
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1.08;
    letter-spacing: 0;
}

.dashboard-head p {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    font-size: 17px;
}

.dashboard-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.terminal-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 380px);
    gap: 26px;
    align-items: stretch;
    padding: 34px;
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.96));
    box-shadow: 0 24px 48px -40px rgba(15, 23, 42, 0.35);
}

.terminal-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.terminal-copy h2 {
    margin-top: 12px;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.terminal-copy p {
    margin-top: 14px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.85;
}

.terminal-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.terminal-feature {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.terminal-feature strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.2;
}

.terminal-feature span {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.terminal-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.terminal-visual img {
    width: min(100%, 280px);
    max-height: 560px;
    height: auto;
    display: block;
    filter: drop-shadow(0 26px 44px rgba(15, 23, 42, 0.2));
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 158px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #ffffff;
    box-shadow: 0 20px 36px -22px rgba(15, 118, 110, 0.82);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.24);
}

.btn-dark {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 16px 32px -22px rgba(15, 23, 42, 0.72);
}

@media (max-width: 980px) {
    .hero-shell,
    .scene-grid,
    .terminal-card {
        grid-template-columns: 1fr;
    }

    .hero-visual img {
        aspect-ratio: 16 / 10;
    }

    .highlight-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .terminal-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero,
    .scene-section,
    .about-section,
    .highlight-section,
    .terminal-section,
    .dashboard-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        padding-top: 24px;
        padding-bottom: 56px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .dashboard-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .about-content,
    .highlight-card,
    .terminal-card {
        padding: 24px;
    }

    .highlight-copy h2 {
        font-size: 28px;
    }

    .terminal-feature-grid {
        grid-template-columns: 1fr;
    }

    .terminal-visual {
        padding: 16px;
    }
}

@media (max-width: 560px) {
    .btn {
        width: 100%;
    }

    .highlight-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .hero-buttons {
        width: 100%;
        gap: 8px;
    }

    .hero-buttons .btn {
        width: auto;
        padding-left: 8px;
        padding-right: 8px;
        font-size: 13px;
    }

    .hero-title {
        font-size: 34px;
    }

    .scene-body h3 {
        font-size: 20px;
    }
}
