:root {
    --bg: #07111d;
    --bg-soft: #0b1727;
    --panel: rgba(10, 19, 32, 0.86);
    --panel-strong: rgba(12, 24, 40, 0.96);
    --panel-soft: rgba(14, 27, 45, 0.76);
    --line: rgba(186, 212, 255, 0.12);
    --line-strong: rgba(186, 212, 255, 0.22);
    --text: #f5f7fb;
    --muted: #9eafcb;
    --muted-strong: #d5e2f6;
    --blue: #60a5fa;
    --cyan: #2dd4bf;
    --orange: #fb923c;
    --shadow: 0 24px 80px rgba(2, 10, 22, 0.45);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 24%),
        radial-gradient(circle at top right, rgba(251, 146, 60, 0.1), transparent 18%),
        linear-gradient(180deg, #06101a 0%, #0a1624 44%, #07111d 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 78%);
    pointer-events: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
    border: 0;
}

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

.site-shell {
    position: relative;
    z-index: 1;
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 64px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.brandmark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #edf3ff;
}

.brandmark-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--blue));
    box-shadow: 0 0 18px rgba(96, 165, 250, 0.65);
}

.topbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-nav a,
.footer-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(9, 18, 30, 0.65);
    color: var(--muted-strong);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(320px, 380px);
    gap: 18px;
}

.hero-main,
.service-panel,
.resource-card,
.empty-state,
.site-footer,
.preview-dialog {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-main {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: var(--radius-xl);
}

.hero-main::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -40px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.18), transparent 72%);
    pointer-events: none;
}

.eyebrow,
.section-tag,
.panel-kicker,
.dialog-kicker {
    margin: 0;
    color: var(--muted-strong);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 12px;
}

.hero-main h1 {
    position: relative;
    z-index: 1;
    margin: 18px 0 14px;
    max-width: 860px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.hero-text {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.85;
    font-size: 16px;
}

.hero-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 22px;
}

.video-hub-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
    margin-top: 22px;
}

.video-hub-banner {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(244, 114, 182, 0.24);
    background:
        radial-gradient(circle at top right, rgba(244, 114, 182, 0.16), transparent 28%),
        linear-gradient(135deg, rgba(40, 12, 33, 0.96), rgba(24, 16, 36, 0.9));
    color: #fff2f8;
    box-shadow: 0 18px 40px rgba(30, 8, 24, 0.28);
}

.video-hub-banner strong {
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.video-hub-banner span:last-child {
    color: #f8c9df;
    line-height: 1.7;
    font-size: 14px;
}

.video-hub-kicker {
    color: #ffb6d7;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.video-hub-password {
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(186, 212, 255, 0.14);
    background: rgba(11, 21, 35, 0.82);
}

.video-hub-password span {
    color: var(--muted-strong);
    font-size: 13px;
}

.video-hub-password strong {
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    letter-spacing: 0.04em;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid var(--line-strong);
    background: rgba(7, 15, 26, 0.82);
}

.search-box svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--muted);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.search-box input::placeholder {
    color: #7084a8;
}

.ghost-button,
.solid-button,
.card-button,
.card-link,
.service-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ghost-button,
.card-link,
.service-tab,
.card-button {
    border: 1px solid var(--line);
    background: rgba(10, 18, 31, 0.84);
    color: var(--muted-strong);
}

.solid-button,
.card-button.primary {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
    font-weight: 700;
}

.ghost-button:hover,
.solid-button:hover,
.card-button:hover,
.card-link:hover,
.service-tab:hover,
.topbar-nav a:hover,
.footer-link:hover,
.video-hub-banner:hover {
    transform: translateY(-1px);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.service-tab {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
}

.service-tab.active {
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(19, 38, 64, 0.96);
    color: #edf4ff;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.metric-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(186, 212, 255, 0.08);
    background: linear-gradient(180deg, rgba(15, 28, 47, 0.9), rgba(9, 18, 30, 0.88));
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.metric-card strong {
    font-size: 26px;
}

.helper-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.command-box {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(96, 165, 250, 0.15);
    background: linear-gradient(135deg, rgba(12, 28, 49, 0.92), rgba(8, 16, 27, 0.88));
}

.command-box span {
    color: var(--muted-strong);
    font-size: 14px;
}

.command-box code {
    color: #b6ebff;
    font-size: 15px;
}

.service-panel {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(10, 19, 32, 0.96), rgba(14, 27, 45, 0.88));
}

.service-panel h2 {
    margin: 14px 0 12px;
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.panel-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
}

.price-strip {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: linear-gradient(135deg, rgba(12, 24, 40, 0.92), rgba(10, 40, 72, 0.5));
}

.price-strip span {
    color: var(--muted-strong);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.price-strip strong {
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.service-tabs {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.service-card {
    display: grid;
    gap: 14px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(186, 212, 255, 0.1);
    background: rgba(7, 15, 26, 0.74);
}

.service-card img {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.service-copy h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.service-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.service-note {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(248, 113, 113, 0.28);
    background: rgba(69, 18, 24, 0.42);
    color: #ffd5d5;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

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

.service-list li {
    position: relative;
    padding-left: 22px;
    color: var(--muted-strong);
    line-height: 1.75;
}

.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.catalog-section {
    margin-top: 28px;
}

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

.section-head h2 {
    margin: 10px 0 0;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.section-side {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.section-side p {
    margin: 0;
    color: var(--muted);
    text-align: right;
    line-height: 1.8;
}

.result-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: rgba(9, 18, 31, 0.9);
    color: #dae7fb;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.resource-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 20px;
    min-height: 100%;
    border-radius: 24px;
    border: 1px solid rgba(173, 201, 255, 0.1);
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(10, 20, 34, 0.98), rgba(7, 15, 26, 0.96));
    box-shadow: 0 18px 40px rgba(1, 8, 18, 0.28);
}

.resource-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.95), rgba(45, 212, 191, 0.5), transparent 86%);
}

.resource-head {
    display: grid;
    gap: 14px;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.resource-index {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(18, 35, 58, 0.92);
    color: #cfe0f9;
    font-size: 12px;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.resource-category {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(251, 146, 60, 0.2);
    color: #ffd3ad;
    background: rgba(69, 37, 18, 0.18);
    font-size: 12px;
}

.resource-title {
    margin: 0;
    min-height: 0;
    font-size: 28px;
    line-height: 1.14;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow: hidden;
}

.resource-desc {
    margin: 16px 0 0;
    min-height: 0;
    flex: 1;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.82;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow: hidden;
}

.resource-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.card-button,
.card-link {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 14px;
}

.empty-state {
    margin-top: 10px;
    padding: 52px 24px;
    border-radius: 24px;
    text-align: center;
}

.empty-title {
    margin: 0 0 8px;
    font-size: 24px;
}

.empty-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
    padding: 20px 22px;
    border-radius: 22px;
}

.footer-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.footer-text {
    margin: 0;
    color: var(--muted);
}

.preview-modal[hidden] {
    display: none;
}

.preview-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
}

.preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 16, 0.78);
    backdrop-filter: blur(8px);
}

.preview-dialog {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(1080px, calc(100% - 24px));
    transform: translate(-50%, -50%);
    padding: 18px;
    border-radius: 28px;
    background: rgba(9, 18, 31, 0.96);
}

.preview-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 14px;
}

.preview-head h3 {
    margin: 8px 0 0;
    font-size: 28px;
}

.close-button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(14, 27, 45, 0.9);
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

.preview-frame-shell {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(186, 212, 255, 0.08);
    background: #000;
    aspect-ratio: 16 / 9;
}

.preview-frame-shell iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 1180px) {
    .hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .catalog-grid,
    .metric-row {
        grid-template-columns: 1fr;
    }

    .section-head,
    .site-footer,
    .helper-strip,
    .video-hub-row,
    .hero-toolbar {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .section-side {
        justify-items: start;
    }

    .section-side p {
        text-align: left;
    }

    .price-strip {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(100% - 18px, 1440px);
        padding-top: 16px;
    }

    .hero-main,
    .service-panel,
    .resource-card,
    .site-footer,
    .preview-dialog {
        padding: 18px;
    }

    .hero-main h1 {
        font-size: clamp(32px, 12vw, 48px);
    }

    .service-panel h2,
    .section-head h2 {
        font-size: clamp(28px, 11vw, 40px);
    }

    .topbar,
    .resource-head {
        flex-direction: column;
        align-items: stretch;
    }

    .ghost-button,
    .solid-button,
    .card-button,
    .card-link,
    .video-hub-banner,
    .footer-link {
        width: 100%;
    }
}
