:root {
    --ink: #1d2b3a;
    --muted: #637184;
    --line: #d8e2ed;
    --soft: #f4f8fc;
    --blue: #1955b3;
    --deep: #0d2f72;
    --cyan: #1aa6ba;
    --orange: #f59b23;
    --red: #c9423a;
    --shadow: 0 18px 44px rgba(28, 65, 124, .14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.rent-header,
.admin-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 14px clamp(18px, 6vw, 82px);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(25, 72, 145, .07);
    backdrop-filter: blur(10px);
}

.rent-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--deep);
    font-size: 20px;
    font-weight: 900;
}

.rent-brand img {
    width: auto;
    height: 42px;
    object-fit: contain;
}

.rent-brand span {
    white-space: nowrap;
}

.rent-header nav,
.admin-header nav,
.rent-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #21324a;
    font-weight: 900;
}

.rent-header nav a,
.admin-header nav a,
.rent-footer nav a {
    padding: 8px 10px;
    border-radius: 6px;
}

.rent-header nav a:hover,
.admin-header nav a:hover {
    color: var(--deep);
    background: #edf4ff;
}

.rent-hero {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(340px, 1fr);
    min-height: 620px;
    align-items: center;
    gap: clamp(30px, 6vw, 84px);
    padding: clamp(56px, 8vw, 96px) clamp(18px, 6vw, 82px);
    color: #fff;
    background:
        linear-gradient(130deg, rgba(13, 47, 114, .98), rgba(25, 85, 179, .9) 55%, rgba(26, 166, 186, .78));
}

.hero-copy {
    min-width: 0;
    max-width: 660px;
}

.rent-hero > *,
.detail-top > *,
.detail-body > *,
.wechat-section > * {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.16;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(38px, 5vw, 62px);
}

h2 {
    color: var(--deep);
    font-size: clamp(28px, 4vw, 44px);
}

h3 {
    color: var(--deep);
    font-size: 21px;
}

h1,
h2,
h3,
.rent-brand span,
.car-card p,
.rent-hero p,
.detail-top p,
.section-heading p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

h1 {
    word-break: break-all;
}

.rent-hero p:not(.eyebrow),
.detail-top p:not(.eyebrow) {
    max-width: 680px;
    color: rgba(255, 255, 255, .88);
    font-size: 18px;
}

.search-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px;
    width: min(560px, 100%);
    margin-top: 28px;
    padding: 6px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(4, 20, 61, .18);
}

.search-bar input {
    min-width: 0;
    border: 0;
    padding: 12px 14px;
    outline: 0;
}

.search-bar button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 900;
}

.search-bar button {
    color: #221404;
    background: var(--orange);
}

.rent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.btn {
    padding: 11px 18px;
}

.btn.warm {
    color: #221404;
    background: var(--orange);
}

.btn.light {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .38);
}

.hero-stats {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 8px 10px;
    align-items: baseline;
    width: min(520px, 100%);
    margin-top: 26px;
    color: rgba(255, 255, 255, .82);
}

.hero-stats strong {
    color: #fff;
    font-size: 34px;
    line-height: 1;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    min-height: 360px;
    border: 8px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 28px 70px rgba(3, 20, 64, .28);
}

.hero-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .5s ease, transform 1.8s ease;
}

.hero-slider img.active {
    opacity: 1;
    transform: scale(1);
}

.category-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 20px clamp(18px, 6vw, 82px);
    background: #eef5fb;
    border-bottom: 1px solid var(--line);
}

.category-tabs a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: #27405d;
    font-weight: 900;
}

.category-tabs a.active {
    color: #fff;
    border-color: var(--deep);
    background: var(--deep);
}

.fleet,
.process,
.recommend,
.wechat-section,
.detail-body,
.compact {
    padding: clamp(58px, 8vw, 96px) clamp(18px, 6vw, 82px);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 30px;
}

.section-heading p:not(.eyebrow),
.wechat-section p:not(.eyebrow),
.promise-band p {
    color: var(--muted);
    font-size: 17px;
}

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

.car-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(35, 69, 124, .09);
}

.car-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #edf2f7;
}

.car-card div {
    padding: 18px;
}

.car-card span {
    display: inline-flex;
    margin-bottom: 9px;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--deep);
    background: #edf4ff;
    font-size: 13px;
    font-weight: 900;
}

.car-card p,
.empty {
    color: var(--muted);
}

.text-link,
.car-card a.text-link {
    color: #b96500;
    font-weight: 900;
}

.promise-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(42px, 7vw, 74px) clamp(18px, 6vw, 82px);
    background:
        linear-gradient(90deg, rgba(245, 155, 35, .16), rgba(25, 85, 179, .08)),
        #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

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

.process-grid article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(35, 69, 124, .08);
}

.process-grid strong {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 50%;
    color: #fff;
    background: var(--cyan);
}

.process-grid p {
    color: var(--muted);
}

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

.recommend-grid article {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(35, 69, 124, .08);
}

.recommend-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.recommend-grid h3 {
    padding: 14px 16px 18px;
    font-size: 18px;
}

.wechat-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    background:
        linear-gradient(135deg, #fff8ec, #edf6ff);
}

.wechat-card,
.qr-button {
    display: grid;
    gap: 13px;
    justify-items: center;
    width: 100%;
    padding: 24px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;
    text-align: center;
}

.wechat-card img,
.qr-button img {
    width: min(250px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.wechat-card strong,
.qr-button span {
    color: var(--deep);
    font-size: 18px;
    font-weight: 900;
}

.detail-top {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(360px, 1fr);
    gap: clamp(28px, 6vw, 76px);
    align-items: center;
    padding: clamp(54px, 8vw, 92px) clamp(18px, 6vw, 82px);
    color: #fff;
    background: linear-gradient(135deg, #0d2f72, #1955b3);
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, .86);
    font-weight: 900;
}

.detail-gallery {
    display: grid;
    gap: 12px;
}

.detail-main-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(3, 20, 64, .28);
}

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

.thumbs button {
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .38);
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
}

.thumbs img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 5px;
}

.detail-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 28px;
    align-items: start;
}

.content-panel,
.wechat-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(35, 69, 124, .08);
}

.content-panel {
    padding: clamp(22px, 4vw, 34px);
}

.wechat-box {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.rich-content {
    color: #334155;
}

.rich-content img {
    height: auto;
    margin: 16px 0;
    border-radius: 8px;
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 22px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(9, 24, 58, .72);
    cursor: pointer;
}

.modal-panel {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 12px;
    width: min(420px, 100%);
    padding: 28px;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .32);
}

.modal-panel img {
    width: min(320px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.modal-panel strong {
    color: var(--deep);
    font-size: 23px;
}

.modal-panel span {
    color: var(--muted);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    background: #edf4ff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.rent-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px clamp(18px, 6vw, 82px);
    color: rgba(255, 255, 255, .84);
    background: #101827;
}

.rent-footer strong,
.rent-footer a {
    color: #fff;
}

.admin-body {
    background: #f4f8ff;
}

.admin-header strong {
    color: var(--deep);
    font-size: 22px;
}

.login-card,
.admin-panel,
.admin-stats article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.login-card {
    width: min(440px, calc(100% - 32px));
    margin: 10vh auto;
    padding: 28px;
}

.admin-wrap {
    display: grid;
    gap: 22px;
    padding: 28px clamp(18px, 6vw, 82px) 70px;
}

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

.admin-stats article {
    padding: 20px;
}

.admin-stats strong {
    display: block;
    color: var(--deep);
    font-size: 34px;
    line-height: 1;
}

.admin-stats span {
    color: var(--muted);
    font-weight: 900;
}

.admin-panel {
    padding: 24px;
}

.admin-form,
.login-card form {
    display: grid;
    gap: 14px;
}

.admin-form.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form .wide {
    grid-column: 1 / -1;
}

.admin-form label,
.login-card label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-weight: 900;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.login-card input,
.row-form input {
    width: 100%;
    border: 1px solid #cad5df;
    border-radius: 7px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
}

.check {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.check input {
    width: auto;
}

.message {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 900;
}

.message.success {
    color: #0f5132;
    background: #dff6e8;
}

.message.error {
    color: #842029;
    background: #f8d7da;
}

.category-admin,
.admin-cars {
    display: grid;
    gap: 12px;
}

.row-form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 110px 90px 90px;
    gap: 10px;
    align-items: center;
}

.row-form button,
.admin-cars button,
.admin-cars a {
    display: inline-grid;
    min-height: 40px;
    place-items: center;
    padding: 8px 12px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--blue);
    cursor: pointer;
    font-weight: 900;
}

.admin-cars article {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 74px 74px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.admin-cars img {
    width: 96px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    background: #edf2f7;
}

.admin-cars span {
    display: block;
    color: var(--muted);
}

@media (max-width: 1060px) {
    .rent-hero,
    .detail-top,
    .detail-body,
    .wechat-section {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 300px;
    }

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

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

    .wechat-box {
        position: static;
    }
}

@media (max-width: 760px) {
    .rent-header,
    .admin-header,
    .rent-footer,
    .promise-band {
        display: block;
    }

    .rent-header nav,
    .admin-header nav,
    .rent-footer nav {
        margin-top: 12px;
    }

    .rent-brand span {
        white-space: normal;
    }

    .rent-hero {
        min-height: 0;
    }

    h1 {
        max-width: 10em;
        font-size: 30px;
    }

    .rent-hero p:not(.eyebrow),
    .detail-top p:not(.eyebrow),
    .section-heading p:not(.eyebrow) {
        max-width: 19em;
    }

    .search-bar {
        grid-template-columns: 1fr;
    }

    .hero-stats,
    .process-grid,
    .car-grid,
    .recommend-grid,
    .admin-stats,
    .admin-form.two-col,
    .row-form,
    .admin-cars article {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 220px;
    }
}
