:root {
    --ink: #15202b;
    --muted: #647080;
    --line: #dfe7ee;
    --paper: #ffffff;
    --soft: #f5f8fb;
    --navy: #10233f;
    --teal: #0f9f9a;
    --teal-dark: #087b78;
    --amber: #f5a524;
    --red: #d94c4c;
    --shadow: 0 18px 55px rgba(16, 35, 63, .12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: var(--paper);
    line-height: 1.65;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 0 6vw;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(223, 231, 238, .9);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    border-radius: var(--radius);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 18px;
    line-height: 1.2;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #334155;
    font-size: 15px;
}

.site-nav a {
    position: relative;
    padding: 8px 0;
}

.site-nav a:hover {
    color: var(--teal-dark);
}

.nav-admin {
    padding: 8px 14px !important;
    color: #fff !important;
    background: var(--navy);
    border-radius: var(--radius);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 56px;
    align-items: center;
    min-height: calc(100vh - 74px);
    padding: 72px 6vw 64px;
    background:
        linear-gradient(90deg, rgba(245, 248, 251, 1) 0%, rgba(245, 248, 251, .9) 42%, rgba(255, 255, 255, 1) 100%),
        repeating-linear-gradient(135deg, rgba(15, 159, 154, .08) 0 1px, transparent 1px 18px);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    color: var(--navy);
    font-size: 54px;
    line-height: 1.12;
}

.hero-text {
    max-width: 680px;
    margin: 22px 0 0;
    color: #425166;
    font-size: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn.primary {
    color: #fff;
    background: var(--teal);
    box-shadow: 0 12px 28px rgba(15, 159, 154, .24);
}

.btn.primary:hover {
    background: var(--teal-dark);
}

.btn.ghost {
    color: var(--navy);
    background: #fff;
    border-color: var(--line);
}

.btn.light {
    color: var(--navy);
    background: #fff;
}

.btn.danger {
    color: #fff;
    background: var(--red);
}

.btn.full {
    width: 100%;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 42px;
}

.hero-stats span {
    min-width: 138px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(16, 35, 63, .07);
}

.hero-stats strong {
    display: block;
    color: var(--navy);
    font-size: 24px;
    line-height: 1.1;
}

.hero-media {
    position: relative;
}

.hero-media img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section {
    padding: 84px 6vw;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 34px;
}

.section-heading.split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    max-width: none;
}

.section-heading h2,
.contact-band h2,
.admin-shell h1 {
    margin: 0;
    color: var(--navy);
    font-size: 36px;
    line-height: 1.2;
}

.section-heading p:not(.eyebrow),
.contact-band p {
    margin: 12px 0 0;
    color: var(--muted);
}

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

.service-card,
.work-card,
.timeline article,
.admin-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 34px rgba(16, 35, 63, .07);
}

.service-card {
    padding: 28px;
}

.service-card .icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    color: var(--teal-dark);
    font-weight: 900;
    background: #e7f7f6;
    border-radius: var(--radius);
}

.service-card h3,
.work-card h3,
.timeline h3 {
    margin: 0;
    color: var(--navy);
    font-size: 20px;
}

.service-card p,
.work-card p,
.timeline p {
    margin: 10px 0 0;
    color: var(--muted);
}

.works {
    background: var(--soft);
}

.text-link {
    color: var(--teal-dark);
    font-weight: 800;
}

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

.work-card {
    overflow: hidden;
}

.work-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #dfe7ee;
}

.work-body {
    padding: 22px;
}

.work-body span,
.admin-work-item span {
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 800;
}

.work-body a {
    display: inline-flex;
    margin-top: 16px;
    color: var(--teal-dark);
    font-weight: 800;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 34px;
    background: #fff;
    border: 1px dashed #b9c6d4;
    border-radius: var(--radius);
}

.empty-state h3,
.empty-state p {
    margin: 0;
}

.empty-state p {
    color: var(--muted);
}

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

.timeline article {
    padding: 26px;
}

.timeline span {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--amber);
    font-size: 28px;
    font-weight: 900;
}

.contact-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 6vw 84px;
    padding: 42px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(16, 35, 63, .98), rgba(8, 123, 120, .96)),
        url("../img/contact-texture.png");
    background-size: cover;
    border-radius: var(--radius);
}

.contact-band h2,
.contact-band .eyebrow,
.contact-band p {
    color: #fff;
}

.contact-band p {
    max-width: 720px;
    opacity: .84;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 28px 6vw;
    color: #667085;
    background: #0d1726;
}

.site-footer span {
    color: rgba(255, 255, 255, .74);
}

.admin-page {
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(245, 248, 251, 1), rgba(232, 244, 243, .9)),
        repeating-linear-gradient(90deg, rgba(16, 35, 63, .05) 0 1px, transparent 1px 22px);
}

.admin-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0;
}

.admin-shell.compact {
    display: grid;
    place-items: center;
    min-height: 100vh;
}

.admin-topbar,
.admin-actions,
.admin-layout {
    display: flex;
    gap: 18px;
}

.admin-topbar {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.admin-layout {
    align-items: flex-start;
}

.admin-panel {
    padding: 28px;
}

.compact .admin-panel {
    width: min(430px, 100%);
}

.upload-panel {
    width: 390px;
    flex: 0 0 390px;
}

.list-panel {
    flex: 1;
}

.admin-panel h1,
.admin-panel h2,
.admin-work-item h3 {
    margin: 0;
    color: var(--navy);
}

.admin-panel p,
.admin-panel small {
    color: var(--muted);
}

.admin-back {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--teal-dark);
    font-weight: 800;
}

label {
    display: block;
    margin-top: 16px;
}

label span {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    font: inherit;
    background: #fff;
    border: 1px solid #cdd8e3;
    border-radius: var(--radius);
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(15, 159, 154, .12);
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-weight: 800;
}

.alert.success {
    color: #08645f;
    background: #ddf7f5;
}

.alert.error {
    color: #a22f2f;
    background: #ffe5e5;
}

.admin-work-list {
    display: grid;
    gap: 14px;
}

.admin-work-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 42px;
    gap: 16px;
    align-items: center;
    padding: 12px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-work-item img {
    width: 112px;
    height: 76px;
    object-fit: cover;
    border-radius: var(--radius);
}

.admin-work-item h3 {
    font-size: 17px;
}

.admin-work-item p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    background: var(--red);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
}

@media (max-width: 980px) {
    .hero,
    .service-grid,
    .work-grid,
    .timeline {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-media {
        grid-column: 1 / -1;
    }

    .admin-layout {
        flex-direction: column;
    }

    .upload-panel {
        width: 100%;
        flex-basis: auto;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding: 0 18px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 73px;
        right: 18px;
        left: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px;
    }

    .hero,
    .service-grid,
    .work-grid,
    .timeline {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 32px;
        padding: 48px 20px;
    }

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

    .hero-text {
        font-size: 17px;
    }

    .section {
        padding: 58px 20px;
    }

    .section-heading.split,
    .contact-band,
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-heading h2,
    .contact-band h2,
    .admin-shell h1 {
        font-size: 30px;
    }

    .contact-band {
        margin: 0 20px 58px;
        padding: 28px;
    }

    .site-footer {
        padding: 24px 20px;
    }

    .admin-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-actions .btn {
        flex: 1;
    }

    .admin-work-item {
        grid-template-columns: 86px minmax(0, 1fr) 38px;
        gap: 12px;
    }

    .admin-work-item img {
        width: 86px;
        height: 66px;
    }
}

@media (max-width: 420px) {
    .brand small {
        display: none;
    }

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

    .btn {
        width: 100%;
    }

    .hero-stats span {
        width: 100%;
    }

    .admin-work-item {
        grid-template-columns: 1fr 38px;
    }

    .admin-work-item img {
        grid-column: 1 / -1;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

