:root {
  --navy: #102033;
  --orange: #f0a500;
  --light: #f5f7fa;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #dce2e9;
  --white: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, 92%); margin: 0 auto; }
.topbar { background: #0a1624; color: #dbe4ef; font-size: 14px; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-size: 24px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.logo span:last-child { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 20px; font-weight: 600; }
.nav-links > a:hover, .nav-links > a.active { color: var(--orange); }
.language-switch {
  display: inline-flex; align-items: center; padding: 3px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--light);
}
.lang-btn {
  border: 0; border-radius: 999px; background: transparent; padding: 7px 10px;
  cursor: pointer; font-weight: 800; color: var(--muted); line-height: 1;
}
.lang-btn.active { background: var(--navy); color: white; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; padding: 12px 18px;
  background: var(--orange); color: #111827; font-weight: 800;
  cursor: pointer;
}
.btn:hover { filter: brightness(.96); transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: white; }
.btn-outline { background: white; border: 1px solid var(--border); color: var(--navy); }
.hero {
  min-height: 560px;
  display: grid; align-items: center;
  background: linear-gradient(100deg, rgba(9,22,37,.94), rgba(16,32,51,.76)),
              url("assets/cat-320d.svg") center/cover;
  color: white;
}
.hero-content { max-width: 760px; padding: 84px 0; }
.eyebrow { color: #ffc447; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
html[lang="zh-CN"] .eyebrow { letter-spacing: .12em; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.12; margin: 14px 0 18px; }
.hero p { font-size: 20px; color: #dce5ef; max-width: 680px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.section { padding: 72px 0; }
.section-light { background: var(--light); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-title h2 { margin: 0; font-size: 36px; color: var(--navy); }
.section-title p { margin: 6px 0 0; color: var(--muted); max-width: 680px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: white; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(16,32,51,.06);
}
.card-body { padding: 18px; }
.product-card img { aspect-ratio: 16/10; object-fit: cover; background: #eef2f7; }
.product-card h3 { margin: 4px 0 8px; color: var(--navy); font-size: 22px; }
.meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; color: var(--muted); font-size: 14px; }
.price { font-size: 22px; color: var(--navy); font-weight: 800; margin: 14px 0; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.feature { padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: white; }
.feature .num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); font-weight: 900; }
.feature h3 { color: var(--navy); margin-bottom: 6px; }
.brand-pill {
  border: 1px solid var(--border); background: white; border-radius: 12px;
  padding: 22px 12px; font-weight: 800; text-align: center; color: var(--navy);
}
.cta { background: var(--navy); color: white; border-radius: 18px; padding: 42px; display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.cta h2 { margin: 0 0 8px; font-size: 34px; }
.page-hero { background: var(--navy); color: white; padding: 72px 0; }
.page-hero h1 { font-size: 46px; margin: 0 0 10px; }
.page-hero p { color: #dce5ef; max-width: 720px; }
.inventory-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filters {
  border: 1px solid var(--border); border-radius: 14px; padding: 20px; background: white;
  position: sticky; top: 96px;
}
.filters h3 { margin-top: 0; color: var(--navy); }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
input, select, textarea {
  width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; background: white;
}
textarea { min-height: 140px; resize: vertical; }
.inventory-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.product-list { display: grid; gap: 18px; }
.list-card {
  display: grid; grid-template-columns: 290px 1fr;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: white;
}
.list-card img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; background: #eef2f7; }
.list-card .content { padding: 22px; }
.list-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 26px; }
.badge { display: inline-block; border-radius: 999px; background: #eef7e8; color: #2f6e29; padding: 4px 10px; font-size: 12px; font-weight: 800; }
.detail-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: start; }
.detail-image { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #eef2f7; }
.specs { width: 100%; border-collapse: collapse; margin-top: 22px; }
.specs th, .specs td { padding: 13px; border-bottom: 1px solid var(--border); text-align: left; }
.specs th { width: 42%; color: var(--muted); font-weight: 700; }
.quote-box { border: 1px solid var(--border); border-radius: 16px; padding: 24px; background: white; position: sticky; top: 96px; }
.quote-box h2 { color: var(--navy); margin-top: 0; }
.content-page { max-width: 850px; }
.content-page h2 { color: var(--navy); margin-top: 34px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; }
.contact-card { padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: white; }
.notice { padding: 14px; border-radius: 10px; background: #fff7dd; border: 1px solid #f3d26c; margin-bottom: 18px; font-size: 14px; }
footer { background: #0a1624; color: #d3dce7; padding: 48px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer h4 { color: white; margin-top: 0; }
footer a { display: block; margin: 7px 0; color: #c7d1dc; }
.copyright { border-top: 1px solid #26384c; margin-top: 32px; padding-top: 18px; font-size: 14px; color: #93a4b6; }
.mobile-toggle { display: none; background: none; border: 0; font-size: 26px; }
.empty { padding: 40px; text-align: center; border: 1px dashed var(--border); border-radius: 14px; color: var(--muted); }

@media (max-width: 980px) {
  .nav-links { gap: 12px; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .inventory-layout, .detail-layout, .contact-grid { grid-template-columns: 1fr; }
  .filters, .quote-box { position: static; }
  .list-card { grid-template-columns: 1fr; }
  .list-card img { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: white; padding: 18px 4%; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: 500px; }
  .hero h1 { font-size: 42px; }
  .section { padding: 54px 0; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .cta { padding: 28px; flex-direction: column; align-items: flex-start; }
  .page-hero h1 { font-size: 38px; }
}

/* Database/admin upgrade additions */
.image-wrap { position: relative; overflow: hidden; background: #eef2f7; }
.product-card .image-wrap img { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.list-card .image-wrap img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 900; }
.image-wrap > .status-badge { position: absolute; left: 12px; top: 12px; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.status-available { background: #e8f7e5; color: #276b28; }
.status-reserved { background: #fff2c7; color: #875d00; }
.status-sold { background: #ffe1e1; color: #9b2525; }
.is-sold .image-wrap img { filter: grayscale(.45); }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0 4px; }
.gallery-thumb { width: 94px; min-width: 94px; height: 68px; padding: 3px; border: 2px solid transparent; border-radius: 9px; background: white; cursor: pointer; }
.gallery-thumb.active { border-color: var(--orange); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.product-title { font-size: 42px; color: var(--navy); margin-bottom: 8px; }
.product-status-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.product-description { font-size: 18px; }
.sold-notice { margin: 18px 0; padding: 14px; border-radius: 10px; background: #fff1f1; border: 1px solid #efb3b3; color: #8b2525; font-weight: 700; }
.quote-box hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.form-note { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .list-card .image-wrap img { min-height: 0; aspect-ratio: 16/10; } }
