* {
    box-sizing: border-box;
}

:root {
    --cases-text: #13243b;
    --cases-text-soft: #243750;
    --cases-muted: #66768e;
    --cases-line: rgba(223, 231, 242, 0.94);
    --cases-surface: #ffffff;
    --cases-surface-soft: #f8fbff;
    --cases-primary: #175cd3;
    --cases-primary-deep: #1249a8;
    --cases-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    --cases-shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.05);
}

html {
    scroll-behavior: smooth;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.1), transparent 24%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #f4f8fd 36%, #f7faff 100%);
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--cases-text);
    letter-spacing: 0;
    --scroll-progress: 0%;
}

body.is-scrolled .cases-header {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

a {
    color: inherit;
    text-decoration: none;
}

.page-wrap {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.cases-topbar {
    background: rgba(15, 23, 42, 0.94);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    color: #d4dceb;
}

.cases-topbar-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cases-topbar-inner > a:not(.cases-topbar-notice) {
    display: none;
}

.cases-topbar-notice,
.cases-topbar-notice:hover {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 700;
}

.cases-topbar-notice::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #fde68a 0 36%, transparent 40%),
        linear-gradient(135deg, #f59e0b 0%, #facc15 100%);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
    flex: 0 0 16px;
}

.cases-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cases-topbar-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.cases-topbar-actions a.action-register {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
}

.cases-topbar-actions a:hover {
    transform: translateY(-1px);
    border-color: rgba(147, 197, 253, 0.46);
    background: rgba(37, 99, 235, 0.18);
    color: #fff;
}

.cases-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(203, 213, 225, 0.78);
    backdrop-filter: blur(18px);
}

.cases-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: var(--scroll-progress);
    height: 2px;
    background: linear-gradient(90deg, #38bdf8 0%, #2563eb 50%, #7dd3fc 100%);
}

.cases-header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cases-brand {
    color: var(--cases-text);
    font-size: 22px;
    font-weight: 900;
}

.cases-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: 4px;
    min-width: 0;
    padding: 5px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.92);
}

.cases-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 9px;
    color: #4a5b73;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cases-nav a.active,
.cases-nav a:hover {
    color: var(--cases-primary);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.cases-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.primary-btn,
.ghost-btn,
.preview-link,
.build-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.small-btn {
    min-height: 40px;
    padding: 0 16px;
    font-size: 13px;
}

.primary-btn,
.build-link {
    border: 1px solid var(--cases-primary);
    background: linear-gradient(135deg, var(--cases-primary) 0%, var(--cases-primary-deep) 100%);
    color: #fff;
    box-shadow: 0 12px 26px rgba(23, 92, 211, 0.22);
}

.ghost-btn,
.preview-link {
    border: 1px solid rgba(203, 213, 225, 0.92);
    background: rgba(255, 255, 255, 0.94);
    color: var(--cases-text);
}

.ghost-light {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.primary-btn:hover,
.ghost-btn:hover,
.preview-link:hover,
.build-link:hover {
    transform: translateY(-1px);
}

.cases-hero {
    padding: 34px 0 12px;
}

.cases-hero-shell,
.cases-filter-bar,
.featured-case,
.case-card,
.strength-card,
.cases-bottom-cta {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 100%);
    box-shadow: var(--cases-shadow);
}

.cases-hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 20px;
    padding: 34px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 26%),
        linear-gradient(135deg, #0f53c7 0%, #1966da 50%, #4fb5f6 100%);
    border-color: rgba(191, 219, 254, 0.34);
    color: #fff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.cases-hero-copy h1 {
    margin: 18px 0 14px;
    max-width: 720px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
}

.cases-hero-copy p {
    margin: 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.9;
}

.cases-hero-actions,
.featured-actions,
.case-actions,
.bottom-cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.cases-hero-actions {
    margin-top: 24px;
}

.cases-hero-side {
    display: grid;
    gap: 16px;
}

.hero-stat-panel,
.hero-note-card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--cases-text);
    box-shadow: var(--cases-shadow-soft);
}

.hero-stat-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.hero-stat-head span,
.hero-stat-grid span,
.hero-note-card span,
.featured-meta span,
.device-pill {
    color: var(--cases-primary);
    font-size: 12px;
    font-weight: 800;
}

.hero-stat-head strong {
    font-size: 42px;
    line-height: 1;
}

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

.hero-stat-grid article {
    min-height: 102px;
    padding: 16px;
    border: 1px solid var(--cases-line);
    border-radius: 18px;
    background: #fff;
}

.hero-stat-grid strong,
.hero-note-card strong {
    display: block;
    margin-top: 10px;
    color: var(--cases-text-soft);
    font-size: 22px;
    line-height: 1.28;
}

.hero-note-card p {
    margin: 10px 0 0;
    color: var(--cases-muted);
    font-size: 14px;
    line-height: 1.85;
}

.cases-main {
    padding: 18px 0 88px;
}

.cases-filter-bar,
.cases-featured-section,
.cases-grid-section,
.cases-strength-section {
    margin-top: 22px;
}

.cases-filter-bar,
.cases-bottom-cta {
    padding: 28px;
}

.filter-copy h2,
.section-head h2,
.bottom-cta-copy h2 {
    margin: 0;
    color: var(--cases-text-soft);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.18;
}

.filter-copy p,
.section-head p,
.bottom-cta-copy p {
    margin: 10px 0 0;
    color: var(--cases-muted);
    font-size: 15px;
    line-height: 1.85;
}

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

.device-switch a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 108px;
    padding: 20px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 20px;
    background: #fff;
    color: #44546b;
    box-shadow: var(--cases-shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.device-switch a span {
    font-size: 18px;
    font-weight: 900;
}

.device-switch a em {
    color: var(--cases-muted);
    font-size: 13px;
    font-style: normal;
}

.device-switch a.active,
.device-switch a:hover {
    border-color: rgba(23, 92, 211, 0.2);
    background: #eff6ff;
    color: var(--cases-primary);
    transform: translateY(-2px);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-head a {
    color: var(--cases-primary);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.featured-case {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 24px;
    padding: 28px;
}

.case-window {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    background: linear-gradient(180deg, #eff5ff 0%, #ffffff 100%);
    box-shadow: 0 20px 36px rgba(27, 71, 150, 0.12);
}

.case-window-top {
    height: 26px;
    background: linear-gradient(90deg, #1c56dd, #8ecbff);
}

.case-window-hero {
    height: 178px;
    background: linear-gradient(135deg, #63b6ff 0%, #1f5fff 100%);
}

.case-window-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}

.case-window-grid span {
    display: block;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #ecf3ff 100%);
}

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

.featured-meta,
.case-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.featured-meta em,
.device-pill,
.theme-id {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--cases-primary);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.featured-content h3,
.case-card-body h3 {
    margin: 16px 0 0;
    color: var(--cases-text-soft);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
}

.featured-content p,
.case-summary,
.strength-card p {
    margin: 12px 0 0;
    color: var(--cases-muted);
    font-size: 14px;
    line-height: 1.9;
}

.featured-points {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.featured-points li {
    position: relative;
    padding-left: 18px;
    color: var(--cases-muted);
    font-size: 14px;
    line-height: 1.85;
}

.featured-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
}

.case-grid,
.strength-grid {
    display: grid;
    gap: 20px;
}

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

.strength-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
    overflow: hidden;
}

.case-card-visual {
    padding: 18px;
    background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
}

.compact-window .case-window-hero {
    height: 132px;
}

.case-card-body {
    padding: 0 20px 20px;
}

.case-card-body h3 {
    font-size: 24px;
}

.case-industry {
    margin: 12px 0 0;
    color: var(--cases-text-soft);
    font-size: 14px;
    font-weight: 700;
}

.case-actions {
    margin-top: 18px;
}

.strength-card {
    padding: 24px;
}

.strength-card h3 {
    margin: 0;
    color: var(--cases-text-soft);
    font-size: 22px;
    line-height: 1.32;
}

.cases-bottom-cta {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.bottom-cta-copy {
    max-width: 760px;
}

.bottom-cta-copy span {
    color: var(--cases-primary);
    font-size: 12px;
    font-weight: 800;
}

.accent-blue .case-window-top,
.accent-blue::before { background: linear-gradient(90deg, #38bdf8 0%, #2563eb 100%); }
.accent-gold .case-window-top,
.accent-gold::before { background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%); }
.accent-sky .case-window-top,
.accent-sky::before { background: linear-gradient(90deg, #22d3ee 0%, #0284c7 100%); }
.accent-green .case-window-top,
.accent-green::before { background: linear-gradient(90deg, #34d399 0%, #059669 100%); }
.accent-purple .case-window-top,
.accent-purple::before { background: linear-gradient(90deg, #a78bfa 0%, #7c3aed 100%); }
.accent-violet .case-window-top,
.accent-violet::before { background: linear-gradient(90deg, #c084fc 0%, #9333ea 100%); }
.accent-orange .case-window-top,
.accent-orange::before { background: linear-gradient(90deg, #fb923c 0%, #ea580c 100%); }
.accent-stone .case-window-top,
.accent-stone::before { background: linear-gradient(90deg, #94a3b8 0%, #475569 100%); }
.accent-cyan .case-window-top,
.accent-cyan::before { background: linear-gradient(90deg, #22d3ee 0%, #0891b2 100%); }
.accent-red .case-window-top,
.accent-red::before { background: linear-gradient(90deg, #f87171 0%, #dc2626 100%); }
.accent-pink .case-window-top,
.accent-pink::before { background: linear-gradient(90deg, #f472b6 0%, #db2777 100%); }
.accent-steel .case-window-top,
.accent-steel::before { background: linear-gradient(90deg, #60a5fa 0%, #334155 100%); }

.cases-footer {
    padding: 56px 0 24px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 28%),
        linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
    color: #cbd5e1;
}

.cases-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.cases-footer h4 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 17px;
}

.cases-footer a,
.cases-footer span,
.cases-footer em,
.cases-footer p {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.9;
    font-style: normal;
}

.footer-contact strong {
    display: block;
    margin: 12px 0 4px;
    color: #fff;
    font-size: 26px;
    line-height: 1.2;
}

.footer-copy {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #64748b;
    font-size: 13px;
}

.reveal,
.reveal-card,
.reveal-delay-1,
.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1180px) {
    .cases-hero-shell,
    .featured-case,
    .case-grid,
    .strength-grid,
    .cases-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .cases-header-inner {
        min-height: auto;
        padding: 16px 0;
        flex-wrap: wrap;
    }

    .cases-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .device-switch {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .page-wrap {
        width: min(100%, calc(100% - 24px));
    }

    .cases-topbar-inner {
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .cases-topbar-actions {
        width: 100%;
    }

    .cases-hero-shell,
    .cases-filter-bar,
    .featured-case,
    .case-card,
    .strength-card,
    .cases-bottom-cta {
        padding: 24px;
        border-radius: 24px;
    }

    .cases-hero-copy h1 {
        font-size: 30px;
    }

    .hero-stat-grid,
    .strength-grid,
    .case-grid,
    .cases-footer-grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .cases-bottom-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .cases-topbar-actions a,
    .cases-header-actions .primary-btn,
    .cases-header-actions .ghost-btn,
    .cases-hero-actions .primary-btn,
    .cases-hero-actions .ghost-btn,
    .featured-actions a,
    .case-actions a,
    .bottom-cta-actions a {
        width: 100%;
    }

    .cases-header-actions,
    .cases-hero-actions,
    .featured-actions,
    .case-actions,
    .bottom-cta-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}
