/* Nplus - 青綠 + 珊瑚玫紅配色 */

:root {
    --primary: #4f8d93;
    --primary-light: #6ba8ad;
    --accent: #4f8d93;
    --accent-hover: #3d757b;
    --gold: #f0b429;
    --header-bg: #dfe8ea;
    --bg: #dceef0;
    --bg-card: #ffffff;
    --text: #1e3a40;
    --text-light: #5f848c;
    --border: #b8d4d8;
    --shadow: 0 4px 20px rgba(79, 141, 147, 0.1);
    --radius: 8px;
    --header-h: 96px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang TC", "PingFang SC", "Helvetica Neue", Helvetica, Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* 固定 header 占位，各頁面子元素勿再額外 padding-top */
    padding-top: var(--header-h);
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Header */

.site-header {
    background: var(--header-bg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(79, 141, 147, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    flex-shrink: 0;
}

.logo-text {
    color: #334c72;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-text span {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #334c72;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    gap: 4px;
}

.main-nav a {
    color: var(--text);
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 17px;
    transition: all 0.25s;
}

.main-nav a:hover {
    background: rgba(79, 141, 147, 0.08);
    color: var(--primary);
}

.main-nav a.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.main-nav a.active:hover {
    background: var(--primary);
    color: #fff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}


/* Hero Swiper */

.hero-swiper-wrap {
    position: relative;
    overflow: hidden;
}

.hero-swiper {
    position: relative;
    width: 100%;
    height: 520px;
}

.hero-swiper .swiper-slide {
    position: relative;
}

.hero-swiper .swiper-slide[data-link] {
    cursor: pointer;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-swiper .swiper-pagination {
    bottom: 18px !important;
    z-index: 5;
    line-height: 1;
}

.hero-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 5px !important;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.8);
    opacity: 1;
    cursor: pointer;
    transition: all 0.25s;
}

.hero-swiper .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 6px;
    background: #4f8d93;
    border-color: #4f8d93;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: #fff;
    width: 44px;
    height: 44px;
    background: rgba(79, 141, 147, 0.45);
    border-radius: 50%;
    transition: background 0.25s;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
    background: rgba(79, 141, 147, 0.7);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}

body[data-page="home"] .hero-swiper-captions {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

body[data-page="home"] .hero-swiper-caption {
    position: absolute;
    top: auto;
    bottom: 20px;
    transform: none;
    z-index: 2;
    background: rgba(79, 141, 147, 0.75);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    width: fit-content;
    max-width: calc(100% - 32px);
}

body[data-page="home"] .hero-swiper-caption--right {
    right: 0;
    padding: 20px 40px 20px 56px;
    clip-path: polygon(48px 0, 100% 0, 100% 100%, 0 100%);
}

body[data-page="home"] .hero-swiper-caption--left {
    left: 0;
    padding: 20px 56px 20px 40px;
    clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 100%, 0 100%);
}

.hero-swiper-caption-text {
    color: #fff;
    font-size: 30px;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 1px;
    white-space: nowrap;
    text-shadow: 5px 5px 5px #0e1219;
}


/* Cars page swiper captions */

body[data-page="cars"] .hero-swiper-captions {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

body[data-page="cars"] .hero-swiper-caption-col {
    position: absolute;
    top: auto;
    bottom: 20px;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body[data-page="cars"] .hero-swiper-caption-col--left {
    left: 0;
    align-items: flex-start;
}

body[data-page="cars"] .hero-swiper-caption-col--right {
    right: 0;
    align-items: flex-end;
}

body[data-page="cars"] .hero-swiper-caption-text {
    display: block;
    box-sizing: border-box;
    background: rgba(79, 141, 147, 0.75);
    padding: 14px 20px;
    font-size: 22px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

body[data-page="cars"] .hero-swiper-caption-col--left .hero-swiper-caption-text {
    padding-right: 56px;
    -webkit-clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 100%, 0 100%);
    clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 100%, 0 100%);
}

body[data-page="cars"] .hero-swiper-caption-col--right .hero-swiper-caption-text {
    padding-left: 56px;
    -webkit-clip-path: polygon(48px 0, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(48px 0, 100% 0, 100% 100%, 0 100%);
}

body[data-page="cars"] .hero-swiper-caption-text--1 {
    width: 360px;
}

body[data-page="cars"] .hero-swiper-caption-text--2 {
    width: 480px;
}

body[data-page="cars"] .hero-swiper-caption-text--3 {
    width: 600px;
}


/* Hero */

.hero {
    background: linear-gradient( 135deg, var(--primary) 0%, var(--primary-light) 50%, #3d757b 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 700;
}

.hero p {
    font-size: 16px;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

.hero--compact {
    padding: 40px 0;
}


/* Section */

.section {
    padding: 48px 0;
}

.section--home-cars {
    padding-top: 0;
}

.home-search-band {
    background: #4f8d93;
    padding: 32px 0 28px;
    margin-bottom: 32px;
}

.home-search-band .section-title {
    color: #fff;
    border-bottom-color: var(--gold);
}

.home-search-band .filter-search-btn {
    background: #4f8d93 !important;
    color: #fff !important;
}

.home-search-band .filter-search-btn:hover {
    background: #3d757b !important;
    opacity: 1;
}

.section-title {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 14px;
}


/* Car Grid */

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.car-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.car-card:hover {
    background: #4f8d93;
    box-shadow: 0 6px 20px rgba(79, 141, 147, 0.35);
}

.car-card:hover .car-card-title,
.car-card:hover .car-card-specs,
.car-card:hover .car-card-price {
    color: #fff;
}

.car-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #b8e0e4 0%, #7ec8d0 100%);
    position: relative;
    overflow: hidden;
}

.car-card-img .brand-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease;
}

.car-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-card-body {
    padding: 16px;
}

.car-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    transition: color 0.25s ease;
}

.car-card-brand-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
}

.car-card-brand-name {
    flex-shrink: 0;
    white-space: nowrap;
}

.car-card-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.car-card-specs {
    font-size: 13px;
    color: #000;
    margin-bottom: 12px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.car-card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #334c72;
    transition: color 0.25s ease;
}

.car-card-vin {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.25s ease;
}

.car-card:hover .car-card-vin {
    color: rgba(255, 255, 255, 0.85);
}


/* Filter */

.filter-bar {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filter-fields {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 16px;
    min-width: 0;
}

.filter-field {
    flex: 1;
    min-width: 180px;
}

.filter-field label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.filter-field .layui-form-select {
    width: 100%;
}

.filter-search-btn {
    background: linear-gradient(135deg, var(--accent), var(--gold)) !important;
    border: none !important;
    height: 38px;
    line-height: 38px;
    padding: 0 32px !important;
    border-radius: var(--radius) !important;
    font-size: 15px;
    flex-shrink: 0;
}

.filter-search-btn:hover {
    opacity: 0.9;
}

body[data-page="cars"] .filter-search-btn {
    background: #4f8d93 !important;
    color: #fff !important;
}

body[data-page="cars"] .filter-search-btn:hover {
    background: #3d757b !important;
    opacity: 1;
}

.car-pagination-wrap {
    margin-top: 40px;
    text-align: center;
}

.car-pagination-wrap .layui-laypage {
    margin: 0;
}

.car-pagination-wrap .layui-laypage a {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--bg-card);
    margin: 0 4px;
    padding: 0 14px;
    height: 36px;
    line-height: 36px;
    font-size: 14px;
    transition: all 0.25s;
}

.car-pagination-wrap .layui-laypage a:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    background: var(--bg);
}

.car-pagination-wrap .layui-laypage .layui-laypage-curr {
    position: relative;
    display: inline-block;
    border: none;
    margin: 0 4px;
    padding: 0 14px;
    height: 36px;
    line-height: 36px;
    font-size: 14px;
    background: transparent;
    vertical-align: middle;
}

.car-pagination-wrap .layui-laypage .layui-laypage-curr .layui-laypage-em {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
}

.car-pagination-wrap .layui-laypage .layui-laypage-curr em {
    position: relative;
    z-index: 1;
    color: #fff;
    font-style: normal;
    font-weight: 600;
}

.car-pagination-wrap .layui-laypage .layui-disabled {
    color: var(--text-light);
    background: var(--bg);
    border-color: var(--border);
    opacity: 0.6;
}

.car-pagination-wrap .layui-laypage .layui-laypage-count {
    border: none;
    background: transparent;
    color: var(--text-light);
    margin: 0 4px;
    padding: 0 8px;
    height: 36px;
    line-height: 36px;
    font-size: 14px;
}


/* Detail Page */

.section.detail-page {
    padding: 0 0 48px;
}

.detail-title-bar {
    background: #334c72;
    color: #fff;
    padding: 20px 0 16px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-title-bar-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.detail-back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.detail-back-btn:hover {
    opacity: 1;
}

.detail-back-btn img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.detail-title-bar h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    color: #fff;
    margin: 0;
    padding: 0 48px;
}

.detail-hero {
    background: #4f8d93;
    padding: 16px 0 24px;
    margin-bottom: 28px;
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    align-items: start;
    width: 100%;
}

.detail-hero-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.detail-main-img {
    aspect-ratio: 1 / 1;
    width: 100%;
    background: #0a1e3a;
    overflow: hidden;
    flex-shrink: 0;
    min-width: 0;
    cursor: pointer;
}

.detail-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.detail-lightbox[hidden] {
    display: none;
}

.detail-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

.detail-lightbox-inner {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 92vh;
}

.detail-lightbox-img {
    display: block;
    max-width: 92vw;
    max-height: 92vh;
    border: 8px solid #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    object-fit: contain;
    background: #000;
}

.detail-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #111;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.detail-lightbox-close:hover {
    background: #333;
}

.detail-img-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #24518d;
    color: #fff;
    padding: 12px 16px;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    min-width: 0;
}

.detail-img-price {
    font-weight: 700;
}

.detail-img-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-nav-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.detail-nav-btn:hover {
    opacity: 0.8;
}

.detail-img-count {
    font-size: 18px;
    font-weight: 700;
    min-width: 42px;
    text-align: center;
}

.detail-thumb-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

.detail-thumb {
    background: #0a1e3a;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    transition: border-color 0.25s;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.detail-thumb.is-empty {
    cursor: default;
    opacity: 0.35;
    pointer-events: none;
}

.detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.detail-thumb.active {
    border-color: var(--gold);
}

.detail-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.detail-block {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.detail-block-head {
    background: #4f8d93;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 16px;
}

.detail-block-body {
    padding: 16px 20px 20px;
}

.detail-spec-grid .spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.detail-spec-grid .spec-row:last-child {
    border-bottom: none;
}

.detail-spec-grid .spec-row--full {
    grid-template-columns: 1fr;
}

.detail-spec-grid .spec-pair--full {
    width: 100%;
}

.detail-spec-grid .spec-pair--full .spec-value {
    flex: 1;
    white-space: pre-line;
}

.spec-pair {
    display: flex;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
    min-width: 0;
}

.spec-label {
    color: var(--text-light);
    flex-shrink: 0;
}

.spec-value {
    color: var(--text);
    font-weight: 600;
    word-break: break-word;
}

.detail-spec-grid .spec-pair--first-reg {
    flex: 1;
}

.detail-spec-grid .spec-pair--first-reg .detail-vin {
    margin-left: auto;
    flex-shrink: 0;
}

.detail-desc-text {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text);
}

.detail-block-body.detail-related-list {
    padding: 0;
}

.detail-share-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.detail-share-btn {
    width: 44px;
    height: 44px;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    transition: opacity 0.25s;
}

.detail-share-btn:hover {
    opacity: 0.88;
}

.detail-share-whatsapp {
    background: #25d366;
}

.detail-share-wechat {
    background: #07c160;
}

.detail-share-link {
    background: #9aa5ad;
}

.detail-share-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.detail-copy-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 58, 64, 0.92);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    z-index: 210;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.detail-copy-toast[hidden] {
    display: none;
}

.detail-wechat-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

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

.detail-wechat-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

.detail-wechat-inner {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 28px 32px 32px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.detail-wechat-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.detail-wechat-qrcode {
    width: 240px;
    height: 240px;
    max-width: 70vw;
    max-height: 70vw;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.detail-wechat-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.detail-wechat-close:hover {
    background: #e0e0e0;
}

.related-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.25s;
    text-decoration: none;
    color: inherit;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item:hover {
    background: var(--bg);
}

.related-thumb {
    width: 88px;
    height: 66px;
    flex-shrink: 0;
    background: #b8e0e4;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-title {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-specs {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.related-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.spec-table tr {
    border-bottom: 1px solid var(--border);
}

.spec-table td {
    padding: 10px 0;
    font-size: 14px;
}

.spec-table td:first-child {
    color: var(--text-light);
    width: 120px;
    font-weight: 500;
}

.spec-table td:last-child {
    color: var(--text);
    font-weight: 600;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.25s;
}

.back-link:hover {
    color: var(--accent-hover);
}


/* About */

.about-page .section-title {
    margin-bottom: 16px;
}

.about-intro {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.about-intro-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 14px;
}

.about-intro-text img {
    width: 100% !important;
    height: auto !important;
}

.about-intro-text:last-child {
    margin-bottom: 0;
}


/* Contact */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.contact-info-card,
.contact-map-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.contact-info-card {
    position: relative;
}

.contact-info-card h2,
.contact-map-card h2 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.contact-map-card {
    display: flex;
    flex-direction: column;
}

.contact-info-body {
    position: relative;
    min-height: 280px;
}

.contact-info-list {
    width: 100%;
}

.contact-wechat-qrcode {
    position: absolute;
    right: 0;
    bottom: 0;
    text-align: center;
}

.contact-wechat-qrcode img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
    border-radius: 6px;
    display: block;
    margin: 0 auto 8px;
    box-shadow: 0 2px 8px rgba(79, 141, 147, 0.1);
}

.contact-wechat-qrcode p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.contact-map {
    flex: 1;
    min-height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--border);
}

.contact-map.contact-map--leaflet,
.contact-map.contact-map--leaflet .leaflet-container {
    width: 100%;
    height: 100%;
    min-height: 420px;
}

.contact-map-iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: #4f8d93;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.info-item h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.info-item p,
.info-item a {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}

.info-item a:hover {
    color: var(--accent);
}

.contact-showroom-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-showroom-item {
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.contact-showroom-item:not(:last-child)::after {
    content: "";
    display: block;
    width: 95%;
    height: 1px;
    margin-top: 12px;
    background: var(--border);
}

.contact-showroom-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

.contact-showroom-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.contact-showroom-address {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.6;
}

.contact-banners {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 48px;
}

.contact-banner-item img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-code {
    background: var(--primary);
    color: var(--gold);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    user-select: none;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    background: #4f8d93;
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
    font-family: inherit;
}

.btn-submit:hover {
    background: #3d757b;
    transform: translateY(-1px);
}

.btn-more {
    display: inline-block;
    margin-top: 32px;
    padding: 12px 32px;
    background: #4f8d93;
    color: #fff;
    border-radius: var(--radius);
    font-size: 15px;
    transition: background 0.25s;
}

.btn-more:hover {
    background: #3d757b;
    color: #fff;
}


/* Footer */

.site-footer {
    --gold: #f5a200;
    background: #4f8d93;
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
    padding: 40px 0 0;
}

.site-footer .container {
    max-width: 1500px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr minmax(110px, 0.65fr) minmax(180px, 1.25fr) auto;
    gap: 32px 40px;
    align-items: start;
    margin-bottom: 32px;
}

.footer-section-title,
.footer-contact-item h4 {
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-showroom-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-showroom-item {
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.footer-showroom-item:not(:last-child)::after {
    content: "";
    display: block;
    width: 95%;
    height: 1px;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.4);
}

.footer-showroom-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

.footer-showroom-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.95);
}

.footer-showroom-address {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item p,
.footer-contact-item a {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item a:hover {
    color: var(--gold);
}

.footer-contact-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-contact-item {
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.footer-contact-item:not(:last-child)::after {
    content: "";
    display: block;
    width: 65%;
    height: 1px;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.4);
}

.footer-contact-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

.footer-qrcode {
    text-align: center;
    justify-self: stretch;
    align-self: center;
    width: 100%;
}

.footer-qrcode img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #fff;
    /*padding: 6px;*/
    border-radius: 6px;
    display: block;
    margin: 0 auto 8px;
}

.footer-qrcode p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
}

.footer-cert {
    text-align: center;
    justify-self: center;
    align-self: center;
    max-width: none;
}

.footer-cert img {
    display: block;
    max-width: 300px;
    width: 100%;
    height: auto;
}

.footer-item h4 {
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-item p,
.footer-item a {
    font-size: 14px;
    line-height: 1.8;
}

.footer-item a:hover {
    color: var(--gold);
}

.footer-bottom {
    background: #3d757b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}


/* Empty state */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary);
}


/* Back to top */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.25s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-light);
}

.back-to-top-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}


/* Responsive */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--header-bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 12px;
        box-shadow: 0 4px 12px rgba(79, 141, 147, 0.08);
    }
    .main-nav.open {
        display: flex;
    }
    .main-nav a {
        padding: 12px 16px;
        font-size: 16px;
    }
    .hero h1 {
        font-size: 26px;
    }
    .hero-swiper {
        height: 160px;
    }
    body[data-page="cars"] .hero-swiper {
        height: 208px;
    }
    body[data-page="home"] .hero-swiper-caption {
        top: auto;
        bottom: 20px;
        transform: none;
    }
    body[data-page="home"] .hero-swiper-caption--right {
        padding: 12px 20px 12px 36px;
        clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%);
    }
    body[data-page="home"] .hero-swiper-caption--left {
        padding: 12px 36px 12px 20px;
        clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 100%, 0 100%);
    }
    .hero-swiper-caption-text {
        font-size: 18px;
    }
    body[data-page="cars"] .hero-swiper-caption-col {
        gap: 6px;
    }
    body[data-page="cars"] .hero-swiper-caption-text {
        font-size: 10px;
        padding: 6px 8px;
    }
    body[data-page="cars"] .hero-swiper-caption-col--left .hero-swiper-caption-text {
        padding-right: 24px;
        -webkit-clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
        clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
    }
    body[data-page="cars"] .hero-swiper-caption-col--right .hero-swiper-caption-text {
        padding-left: 24px;
        -webkit-clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
        clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
    }
    body[data-page="cars"] .hero-swiper-caption-text--1 {
        width: 122px;
    }
    body[data-page="cars"] .hero-swiper-caption-text--2 {
        width: 158px;
    }
    body[data-page="cars"] .hero-swiper-caption-text--3 {
        width: 194px;
    }
    .detail-hero-inner,
    .detail-body,
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-info-list {
        padding-right: 0;
        padding-bottom: 150px;
    }
    .contact-wechat-qrcode img {
        width: 100px;
        height: 100px;
    }
    .detail-hero-inner {
        gap: 8px;
    }
    .detail-thumb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(4, minmax(0, auto));
        height: auto !important;
        overflow: visible;
    }
    .detail-thumb {
        aspect-ratio: 1 / 1;
        height: auto;
    }
    .detail-title-bar h1 {
        font-size: 20px;
    }
    .detail-spec-grid .spec-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-qrcode {
        justify-self: center;
    }
    .footer-cert {
        max-width: none;
        justify-self: center;
        text-align: center;
    }
    .footer-cert img {
        width: auto;
        max-width: min(300px, 100%);
        margin-left: auto;
        margin-right: auto;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-fields {
        flex-direction: column;
    }
    .filter-field {
        min-width: 0;
    }
    .filter-search-btn {
        width: 100%;
    }
}