:root {
    --bg: #081224;
    --bg-soft: #0d1b33;
    --surface: rgba(17, 31, 56, 0.88);
    --surface-strong: #ffffff;
    --surface-soft: rgba(10, 20, 38, 0.94);
    --surface-dark: #081224;
    --text: #f5f8ff;
    --muted: #97a8c3;
    --line: rgba(99, 170, 255, 0.16);
    --line-strong: rgba(99, 170, 255, 0.3);
    --primary: #4c9dff;
    --primary-deep: #2b78eb;
    --primary-soft: rgba(76, 157, 255, 0.14);
    --success: #0b8f5d;
    --danger: #da4c4c;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.22);
    --shadow-hover: 0 26px 72px rgba(0, 0, 0, 0.34);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.site-body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(73, 138, 255, 0.22), transparent 28%),
        radial-gradient(circle at 100% 0%, rgba(73, 138, 255, 0.16), transparent 24%),
        linear-gradient(180deg, #081224 0%, #0a1529 42%, #09111f 100%);
    color: var(--text);
    min-height: 100vh;
}

.site-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 32%),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 30%);
    opacity: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(8, 18, 36, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
}

.home-header {
    position: fixed;
    inset: 0 0 auto 0;
    background: linear-gradient(180deg, rgba(4, 10, 21, 0.58), rgba(4, 10, 21, 0));
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
}

.header-shell,
.footer-grid,
.stats-grid,
.grid-2,
.card-grid,
.contact-grid,
.admin-stats,
.list-grid {
    display: grid;
}

.header-shell {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 14px 0;
}

.home-header .header-shell {
    grid-template-columns: auto 1fr auto;
    padding: 24px 0;
}

.home-header .brand-mark small {
    display: none;
}

.brand-mark,
.admin-brand {
    display: inline-flex;
    gap: 14px;
    align-items: center;
}

.brand-mark strong,
.admin-brand strong {
    display: block;
    font-size: 17px;
    letter-spacing: 0.01em;
}

.brand-mark small,
.admin-brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #7ab6ff);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(76, 157, 255, 0.3);
}

.brand-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: contain;
}

.site-nav {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

.site-nav {
    justify-self: center;
    align-items: center;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-nav {
    justify-self: end;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.home-nav a,
.header-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.header-link {
    justify-self: end;
}

.site-nav a {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--muted);
    transition: 0.25s ease;
    font-size: 14px;
}

.site-nav a:hover,
.site-nav a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    font-weight: 400;
    white-space: nowrap;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #7db8ff);
    box-shadow: 0 16px 34px rgba(76, 157, 255, 0.28);
}

.button-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.button-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.hero {
    padding: 18px 0 36px;
}

.hero-home {
    padding: 0;
}

.hero-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 28px;
    padding: 78px 58px 54px;
    background:
        radial-gradient(circle at 72% 12%, rgba(76, 157, 255, 0.24), transparent 18%),
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.06), transparent 18%),
        linear-gradient(180deg, rgba(15, 28, 52, 0.98), rgba(8, 18, 36, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.34);
}

.hero-panel-home {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 120px 32px 88px;
    border: none;
    border-radius: 0;
    background:
        radial-gradient(circle at 60% 38%, rgba(183, 220, 255, 0.16), transparent 8%),
        radial-gradient(circle at 77% 32%, rgba(138, 193, 255, 0.2), transparent 5%),
        radial-gradient(circle at 18% 34%, rgba(102, 154, 255, 0.14), transparent 18%),
        linear-gradient(180deg, #040a15 0%, #071224 58%, #040914 100%);
    box-shadow: none;
}

.hero-panel::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -100px;
    top: -180px;
    border-radius: 50%;
    background: rgba(76, 157, 255, 0.14);
    filter: blur(30px);
    z-index: -1;
}

.hero-panel-home::before {
    width: 720px;
    height: 720px;
    right: auto;
    left: 50%;
    top: 18%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(108, 171, 255, 0.16), rgba(108, 171, 255, 0));
    filter: blur(44px);
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.hero-panel-home::after {
    inset: 0;
    border-radius: 0;
    border: none;
    background:
        radial-gradient(circle at 50% 78%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 22%);
    opacity: 0.72;
}

.hero-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.86) 0 1px, transparent 1.8px),
        radial-gradient(circle at 22% 58%, rgba(255, 255, 255, 0.54) 0 1px, transparent 1.8px),
        radial-gradient(circle at 44% 18%, rgba(255, 255, 255, 0.72) 0 1.2px, transparent 2px),
        radial-gradient(circle at 58% 42%, rgba(255, 255, 255, 0.62) 0 1px, transparent 2px),
        radial-gradient(circle at 76% 30%, rgba(255, 255, 255, 0.92) 0 1.6px, transparent 2.4px),
        radial-gradient(circle at 84% 58%, rgba(255, 255, 255, 0.62) 0 1px, transparent 2px),
        radial-gradient(circle at 66% 20%, rgba(140, 194, 255, 0.96) 0 2px, transparent 6px),
        radial-gradient(circle at 77% 37%, rgba(150, 202, 255, 0.92) 0 2px, transparent 8px);
    opacity: 0.92;
    pointer-events: none;
}

.hero-center {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    place-items: center;
    text-align: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    gap: 48px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--primary);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-eyebrow {
    margin: 0 auto 18px;
    text-align: center;
    width: fit-content;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.2;
}

h1 {
    font-size: clamp(28px, 3.8vw, 44px);
    max-width: 26ch;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

h2 {
    font-size: clamp(28px, 3vw, 38px);
}

p {
    margin: 0;
    line-height: 1.75;
    color: var(--muted);
    font-size: 15px;
}

.hero p {
    max-width: 56ch;
    font-size: 16px;
}

.hero-copy {
    padding-top: 8px;
    max-width: 560px;
}

.hero-copy-home {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    padding-top: 0;
}

.hero-description {
    margin-top: 20px;
    max-width: 34em;
}

.hero-copy-home .hero-description {
    margin: 20px auto 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 15px;
}

.hero-actions,
.tags,
.meta-list,
.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions {
    margin-top: 28px;
    align-items: center;
    gap: 18px;
}

.hero-actions-home {
    justify-content: center;
}

.hero-tags {
    margin-top: 22px;
}

.tags span,
.pill,
.badge {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dce8ff;
    font-size: 12px;
}

.hero-visual {
    display: grid;
    gap: 18px;
}

.hero-text-link {
    color: #d9e8ff;
    font-size: 15px;
}

.hero-note {
    margin-top: 18px;
    color: #b8c7dd;
    font-size: 14px;
    max-width: 34em;
}

.hero-download-button {
    min-height: 56px;
    padding: 0 14px 0 18px;
    gap: 10px;
    background: linear-gradient(180deg, #66b2ff 0%, #4b9dff 100%);
    box-shadow: 0 12px 34px rgba(76, 157, 255, 0.28);
}

.button-version {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    font-size: 12px;
    line-height: 1;
}

.hero-floor {
    position: absolute;
    left: -6%;
    right: -6%;
    bottom: -4%;
    height: 28vh;
    min-height: 180px;
    background:
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0) 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(157, 180, 212, 0.1) 60%, rgba(100, 118, 148, 0.16) 100%);
    filter: blur(6px);
    transform: perspective(680px) rotateX(78deg);
    transform-origin: center bottom;
    opacity: 0.86;
    pointer-events: none;
}

.hero-scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 1;
    width: 28px;
    height: 42px;
    margin-left: -14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.02);
}

.hero-scroll-indicator::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 10px;
    margin-left: -2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.glass-card,
.content-card,
.info-card,
.admin-card,
.stat-card,
.case-card,
.service-card,
.testimonial-card,
.faq-card {
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.glass-card {
    padding: 22px;
    backdrop-filter: blur(16px);
}

.content-card {
    padding: 28px;
}

.service-card,
.case-card,
.testimonial-card,
.faq-card,
.info-card,
.content-card,
.stat-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-card:hover,
.case-card:hover,
.testimonial-card:hover,
.faq-card:hover,
.info-card:hover,
.content-card:hover,
.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(22, 119, 255, 0.18);
    box-shadow: var(--shadow-hover);
}

.hero-figure {
    padding: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(76, 157, 255, 0.05));
}

.hero-figure img,
.service-card img,
.case-card img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 18px;
}

.hero-downloads {
    display: grid;
    gap: 16px;
}

.hero-downloads-head .eyebrow {
    margin-bottom: 0;
    color: #dce8ff;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.download-card {
    position: relative;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.featured-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
}

.download-copy {
    display: grid;
    gap: 8px;
}

.download-card h3 {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
}

.download-card p {
    color: #e3edff;
    font-size: 14px;
    line-height: 1.5;
}

.download-card span {
    display: inline-flex;
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}

.download-badge {
    align-self: start;
    margin-top: 0;
    padding: 8px 12px;
    border-radius: 999px;
    color: #eef5ff;
    background: rgba(76, 157, 255, 0.14);
    border: 1px solid rgba(76, 157, 255, 0.22);
}

.download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: #ffffff;
    color: #081224;
    font-size: 14px;
}

.download-arrow {
    position: absolute;
    right: 18px;
    bottom: 16px;
    font-size: 18px;
    font-weight: 400;
    color: #dce8ff;
}

.section {
    padding: 52px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.section-head > div {
    display: grid;
    gap: 6px;
}

.section-head p {
    max-width: 58ch;
    margin: 10px 0 0;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    padding: 24px;
}

.stat-card strong {
    font-size: 36px;
    color: var(--primary);
}

.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.service-card,
.case-card,
.testimonial-card,
.faq-card,
.info-card,
.admin-card {
    overflow: hidden;
}

.service-card .card-body,
.case-card .card-body,
.testimonial-card .card-body,
.faq-card .card-body,
.info-card,
.admin-card {
    padding: 22px;
}

.card-body h3,
.info-card h3,
.faq-card h3 {
    margin-bottom: 10px;
}

.card-body p + p,
.info-card p + p {
    margin-top: 8px;
}

.card-body strong,
.info-card strong,
.section h3,
.section h4 {
    color: #ffffff;
}

.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.price-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(76, 157, 255, 0.12);
    color: #d6e7ff;
    font-size: 13px;
}

.number-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: start;
}

.number-card .number {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #89c0ff);
    color: #081224;
    font-size: 20px;
    box-shadow: 0 16px 28px rgba(76, 157, 255, 0.22);
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 22px;
}

.list-grid {
    gap: 18px;
}

.page-title {
    font-size: clamp(24px, 3vw, 34px);
    max-width: none;
}

.page-banner-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(76, 157, 255, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(14, 28, 50, 0.96), rgba(9, 19, 36, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-banner-card h1 + p {
    margin-top: 14px;
}

.page-banner-card::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: calc(var(--radius-lg) - 6px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.panel-sm {
    padding: 24px;
}

.panel-md {
    padding: 26px;
}

.cta-panel {
    padding: 32px;
    background:
        radial-gradient(circle at 100% 0%, rgba(76, 157, 255, 0.18), transparent 24%),
        linear-gradient(180deg, rgba(14, 28, 50, 0.96), rgba(9, 19, 36, 0.96));
}

.stack-md {
    margin-top: 18px;
}

.stack-lg {
    margin-top: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field,
.field-full {
    display: grid;
    gap: 8px;
}

.field-full {
    grid-column: 1 / -1;
}

.service-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-type-chip {
    position: relative;
    cursor: pointer;
}

.service-type-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-type-chip span {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    transition: 0.2s ease;
    user-select: none;
}

.service-type-chip input:checked + span {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.service-type-chip input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.2);
}

label {
    font-size: 14px;
    color: var(--text);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 14px 16px;
    color: var(--text);
    outline: none;
    transition: 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.12);
}

textarea {
    min-height: 136px;
    resize: vertical;
}

.helper {
    font-size: 12px;
    color: var(--muted);
}

.flash {
    margin: 20px auto 0;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid transparent;
}

.flash-success {
    background: rgba(11, 143, 93, 0.1);
    border-color: rgba(11, 143, 93, 0.2);
    color: var(--success);
}

.flash-error {
    background: rgba(218, 76, 76, 0.1);
    border-color: rgba(218, 76, 76, 0.2);
    color: var(--danger);
}

.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 52px;
    padding: 40px 0 28px;
    background: linear-gradient(180deg, #07101f 0%, #060d19 100%);
    color: rgba(255, 255, 255, 0.82);
}

.site-footer::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    top: -120px;
    border-radius: 50%;
    background: rgba(92, 168, 255, 0.12);
}

.site-footer p,
.site-footer h3,
.site-footer h4,
.footer-bottom a,
.footer-bottom span {
    color: inherit;
}

.footer-grid {
    grid-template-columns: 1.2fr 0.9fr 1fr;
    gap: 24px;
    padding-bottom: 18px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
}

.page-banner {
    padding: 28px 0 10px;
}

.page-banner .content-card {
    padding: 34px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.filter-chip {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--muted);
    transition: 0.22s ease;
}

.filter-chip:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.filter-chip.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #7db8ff);
}

.admin-body {
    background: linear-gradient(180deg, #f0f4fa 0%, #e8eef7 100%);
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    padding: 22px 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.9));
    border-right: 1px solid rgba(22, 119, 255, 0.08);
    backdrop-filter: blur(20px);
    box-shadow: 2px 0 30px rgba(18, 35, 61, 0.04);
}

.admin-brand {
    padding: 6px 8px 18px;
    border-bottom: 1px solid rgba(22, 119, 255, 0.08);
    margin-bottom: 6px;
}

.admin-nav {
    display: grid;
    gap: 4px;
    margin: 14px 0;
    flex: 1;
    align-content: start;
}

.admin-nav a {
    padding: 12px 16px;
    border-radius: 14px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-nav a:hover {
    color: var(--text);
    background: rgba(22, 119, 255, 0.06);
}

.admin-nav a.active {
    color: var(--primary);
    background: rgba(22, 119, 255, 0.1);
    font-weight: 500;
}

.admin-nav a.active::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--primary);
}

.admin-logout {
    width: 100%;
    min-height: 42px;
    margin-top: 6px;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
    font-size: 14px;
    border-radius: 14px;
}

.admin-logout:hover {
    color: var(--danger);
    background: rgba(218, 76, 76, 0.06);
    border-color: rgba(218, 76, 76, 0.12);
}

.admin-logout + .admin-logout {
    margin-top: 4px;
}

.admin-main {
    padding: 28px;
}

.admin-topbar {
    margin-bottom: 20px;
}

.admin-card + .admin-card {
    margin-top: 20px;
}

.admin-card h3 {
    margin-bottom: 14px;
}

.admin-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(18, 35, 61, 0.08);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.table-actions form {
    margin: 0;
}

.button-small {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
}

.login-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
}

.login-card {
    width: min(480px, 100%);
    padding: 28px;
}

.login-title {
    font-size: clamp(30px, 3vw, 34px);
    max-width: none;
}

.hint-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .hero-grid,
    .card-grid,
    .contact-grid,
    .grid-2,
    .footer-grid,
    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.75);
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy-home {
        max-width: 760px;
    }
}

@media (max-width: 780px) {
    .container {
        width: min(var(--container), calc(100% - 24px));
    }

    .header-shell,
    .hero-grid,
    .card-grid,
    .grid-2,
    .contact-grid,
    .stats-grid,
    .footer-grid,
    .admin-stats,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .header-shell {
        justify-items: start;
    }

    .home-header .header-shell {
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }

    .site-nav {
        overflow-x: auto;
        width: 100%;
        justify-self: stretch;
        padding-bottom: 6px;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .hero-panel,
    .page-banner .content-card {
        padding: 26px;
        border-radius: 28px;
    }

    .hero-panel-home {
        min-height: 100svh;
        padding: 110px 22px 86px;
        border-radius: 0;
    }

    h1 {
        font-size: 36px;
    }

    .hero-copy-home h1 {
        max-width: 10ch;
        margin: 0 auto;
        font-size: clamp(34px, 8vw, 48px);
    }

    .header-cta {
        width: 100%;
    }

    .header-link {
        width: auto;
    }

    .button {
        min-height: 44px;
    }

    .section {
        padding: 42px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .featured-download {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-note {
        max-width: none;
    }

    .hero-floor {
        height: 24vh;
    }
}
