/* =========================================================
   战备商行 · 桌面端首页
   按桌面截图重做：三栏 Hero、快捷服务、个人卡片、特价账号
   ========================================================= */

:root {
  --page-bg: #eaf3fc;
  --shell-bg: #f4f9ff;
  --surface: #ffffff;
  --soft: #f7fbff;
  --ink: #0c1a31;
  --text: #3d4d63;
  --muted: #8795a8;
  --dim: #a6b2c1;
  --line: #dfeaf6;
  --line-strong: #d3e1f0;
  --navy: #0a1c3a;
  --navy-2: #122849;
  --blue: #2d6cff;
  --blue-soft: #eef5ff;
  --pink: #ff3f78;
  --pink-deep: #e42d65;
  --pink-soft: #ffe8f1;
  --gold: #d7a53e;
  --gold-bright: #f0be4d;
  --gold-soft: #fff8e8;
  --green: #159b70;
  --red: #e25252;
  --shadow: 0 4px 16px rgba(29, 58, 94, 0.055);
  --shadow-hover: 0 10px 26px rgba(29, 58, 94, 0.1);
  --sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --display: "Bahnschrift", "DIN Alternate", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background-color: var(--page-bg);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

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

button {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-shell {
  width: min(100%, 1341px);
  min-height: 100vh;
  margin: 0 auto;
  border-right: 1px solid #dbe8f6;
  border-left: 1px solid #dbe8f6;
  background: var(--shell-bg);
}

/* =========================================================
   Header
   ========================================================= */

.topbar {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
}

.brand i {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.85;
}

.brand strong {
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

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

.btn--navy {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 10px rgba(10, 28, 58, 0.13);
}

.btn--navy:hover {
  background: var(--navy-2);
}

.btn--awm {
  border-color: #d9aa4f;
  box-shadow: 0 0 0 2px rgba(217, 170, 79, 0.08), 0 4px 10px rgba(10, 28, 58, 0.13);
}

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

.btn--ghost:hover {
  border-color: #b9cfe8;
  background: #f9fcff;
}

/* =========================================================
   Notice + navigation
   ========================================================= */

.notice-bar {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 10px;
  margin: 4px 30px 0;
  padding: 0 12px;
  border: 1px solid #f1dfc1;
  border-radius: 4px;
  background: linear-gradient(90deg, #fff8ec, #fffdf8 48%, #fff8ee);
  color: #b47b37;
  font-size: 12.5px;
  line-height: 1.4;
}

.notice-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #efa51b;
}

.notice-icon .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.2;
}

.notice-item {
  min-width: 0;
  overflow: hidden;
  flex: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-item:last-child {
  flex: 0.9;
  color: #b68d5e;
}

.notice-sep {
  width: 1px;
  height: 15px;
  flex: 0 0 auto;
  background: #ead8bc;
}

.main-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 60px;
  margin: 4px 30px 0;
  border: 1px solid #dbe8f6;
  border-bottom: 0;
  background: #f3f9ff;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid transparent;
  color: #4a5a70;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.55);
}

.nav-link.is-active {
  border-bottom-color: var(--blue);
  background: rgba(255, 255, 255, 0.7);
  color: var(--blue);
  font-weight: 600;
}

/* =========================================================
   Hero
   ========================================================= */

.home-main {
  padding: 12px 30px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr) 326px;
  align-items: stretch;
  gap: 12px;
}

.quick-card,
.promo-banner,
.user-card {
  min-height: 423px;
}

/* Quick services */

.quick-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quick-row {
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-top: 1px solid #edf2f8;
  background: transparent;
  text-align: left;
  transition: background 0.2s;
}

.quick-row:first-child {
  border-top: 0;
}

.quick-row:hover {
  background: #f9fcff;
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(150deg, #132d55, #07172f);
  color: #f5c85a;
  box-shadow: 0 4px 10px rgba(9, 25, 53, 0.17);
}

.quick-icon .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.quick-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.quick-copy strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.quick-copy small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.quick-chevron {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #9dabbc;
}

/* Promo */

.promo-banner {
  position: relative;
  overflow: hidden;
  padding: 24px 28px;
  border: 1px solid #f2dce7;
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.75), transparent 30%),
    linear-gradient(125deg, #ffe9f2 0%, #ffe1ed 52%, #ffd7e6 100%);
}

.promo-banner::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(228, 122, 172, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.13), 0 0 0 90px rgba(255, 255, 255, 0.1);
}

.promo-banner::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -60px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(236, 156, 193, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.11);
}

.promo-brand {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4c2c36;
}

.promo-logo {
  display: block;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
}

.promo-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.promo-brand > div {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.promo-brand strong {
  color: #32212e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.promo-brand span span,
.promo-brand > div > span {
  margin-top: 2px;
  color: #956071;
  font-family: var(--display);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.promo-copy {
  position: relative;
  z-index: 4;
  width: 56%;
  margin-top: 18px;
}

.promo-copy h1 {
  color: #2c192d;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.promo-copy h1 em {
  color: var(--pink);
  font-style: normal;
}

.promo-features {
  display: flex;
  max-width: 375px;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.feature-chip {
  display: inline-flex;
  height: 33px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid #f7cedd;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
  color: #4c2e3d;
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
}

.feature-chip .icon {
  width: 14px;
  height: 14px;
  color: var(--pink);
}

.promo-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.promo-consult {
  display: inline-flex;
  height: 41px;
  align-items: center;
  gap: 4px;
  padding: 0 17px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff4e84, #ff326f);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 7px 16px rgba(255, 64, 120, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.promo-consult:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(255, 64, 120, 0.26);
}

.promo-consult .icon {
  width: 16px;
  height: 16px;
}

.promo-consult .icon:last-child {
  width: 12px;
  height: 12px;
  opacity: 0.8;
}

.promo-actions > span {
  color: #966071;
  font-size: 11px;
  line-height: 1.5;
}

.promo-foot {
  position: absolute;
  bottom: 15px;
  left: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9a6174;
  font-size: 10px;
  line-height: 1.3;
}

.promo-hearts {
  display: flex;
  gap: 1px;
  font-size: 14px;
  line-height: 1;
}

.promo-hearts span:nth-child(1) { color: #ee6b84; }
.promo-hearts span:nth-child(2) { color: #f2a04c; }
.promo-hearts span:nth-child(3) { color: #63bfa0; }
.promo-hearts span:nth-child(4) { color: #65a0df; }
.promo-hearts span:nth-child(5) { color: #ce8bda; }

.promo-user {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: #d75b9e;
  box-shadow: 0 2px 6px rgba(125, 66, 111, 0.1);
}

.promo-user .icon {
  width: 13px;
  height: 13px;
}

.promo-spark {
  position: absolute;
  z-index: 3;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--display);
  line-height: 1;
  pointer-events: none;
}

.promo-spark--1 {
  top: 90px;
  left: 47%;
  color: #fff2b5;
  font-size: 18px;
}

.promo-spark--2 {
  top: 54px;
  right: 10%;
  color: #fff;
  font-size: 13px;
}

.promo-spark--3 {
  bottom: 50px;
  left: 48%;
  color: #f4c7dd;
  font-size: 11px;
}

.promo-spark--4 {
  top: 150px;
  left: 51%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff1b4;
}

.promo-sign {
  position: absolute;
  right: 29px;
  bottom: 53px;
  z-index: 5;
  padding: 4px 8px;
  border: 1px solid #f4b7cd;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: #e34077;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  transform: rotate(-6deg);
  box-shadow: 0 4px 10px rgba(178, 74, 120, 0.13);
}

.promo-mascot {
  position: absolute;
  right: 5px;
  bottom: -5px;
  z-index: 2;
  width: 43%;
  max-width: 292px;
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(94, 48, 105, 0.15));
  pointer-events: none;
}

/* User card */

.user-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 17px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.user-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.user-head h2 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.user-mini {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-pill {
  display: inline-flex;
  height: 20px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #cfe1f6;
  border-radius: 10px;
  color: #4a7fb6;
  font-size: 9px;
  line-height: 1;
}

.user-logout {
  display: inline-flex;
  height: 22px;
  align-items: center;
  gap: 3px;
  padding: 0 7px;
  border: 1px solid #f0c8c8;
  border-radius: 4px;
  color: #d35d5d;
  font-size: 9px;
  line-height: 1;
}

.user-logout .icon {
  width: 11px;
  height: 11px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 0 2px;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #173858, #0a1d38);
  color: #d9e9ff;
}

.user-avatar .icon {
  width: 21px;
  height: 21px;
}

.user-profile > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.user-profile strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.user-profile span {
  color: var(--muted);
  font-size: 9.5px;
}

.balance-list {
  display: grid;
  gap: 6px;
}

.balance-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid #e4eef9;
  border-radius: 6px;
  background: #f9fcff;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.balance-row:hover {
  border-color: #bed6ee;
  background: #f4faff;
}

.balance-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  color: var(--navy);
}

.balance-icon .icon {
  width: 21px;
  height: 21px;
}

.balance-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0;
}

.balance-copy small {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.35;
}

.balance-copy strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.balance-chevron {
  width: 13px;
  height: 13px;
  color: #aab6c4;
}

.user-enter {
  display: flex;
  height: 39px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  transition: background 0.2s;
}

.user-enter:hover {
  background: var(--navy-2);
}

.user-enter .icon {
  width: 12px;
  height: 12px;
}

.user-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.user-tile {
  position: relative;
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  overflow: hidden;
}

.user-tile--rent {
  border-color: #e5daf8;
  background: linear-gradient(135deg, #f4edff, #fbf8ff);
}

.user-tile--list {
  border-color: #f1dfc5;
  background: linear-gradient(135deg, #fff3e3, #fffaf2);
}

.user-tile .tile-icon {
  position: absolute;
  top: 8px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #7651c8;
}

.user-tile--list .tile-icon {
  color: #d09a37;
}

.tile-icon .icon {
  width: 23px;
  height: 23px;
}

.user-tile strong {
  color: #3a2e50;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.user-tile--list strong {
  color: #5d442a;
}

.tile-go {
  display: inline-flex;
  width: fit-content;
  height: 20px;
  align-items: center;
  padding: 0 8px;
  margin-top: 4px;
  border-radius: 10px;
  background: #7859d2;
  color: #fff;
  font-family: var(--display);
  font-size: 9px;
  line-height: 1;
}

.user-tile--list .tile-go {
  background: #e6ae43;
}

/* =========================================================
   Deal section
   ========================================================= */

.deal-section {
  margin-top: 25px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 10px 13px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.section-title .icon {
  width: 23px;
  height: 23px;
  color: #ff8b00;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.2;
}

.section-heading p {
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.more-link {
  display: inline-flex;
  height: 33px;
  align-items: center;
  gap: 4px;
  padding: 0 11px;
  border: 1px solid #cfe2f4;
  border-radius: 5px;
  background: #fff;
  color: var(--blue);
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}

.more-link:hover {
  border-color: #a9c8e8;
  background: #f7fbff;
}

.more-link .icon {
  width: 12px;
  height: 12px;
}

.more-link .icon:first-child {
  color: #8fa7bf;
}

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

.deal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.deal-card:hover {
  border-color: #cddfef;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.deal-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: #0a1521;
}

.deal-thumb .scene,
.deal-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(142, 185, 226, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(142, 185, 226, 0.055) 1px, transparent 1px);
  background-size: 27px 27px;
  opacity: 0.6;
  pointer-events: none;
}

.discount-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 4px;
  background: #ffd33d;
  color: #25200d;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.online-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--green);
  font-size: 9.5px;
  line-height: 1.3;
  backdrop-filter: blur(4px);
}

.online-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.deal-refund {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-top: 1px solid #f6ead3;
  border-bottom: 1px solid #f6ead3;
  background: var(--gold-soft);
  color: #ae8230;
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
}

.deal-refund > .icon {
  width: 13px;
  height: 13px;
  color: #cf9f3e;
}

.deal-refund-sub {
  color: #a18d6f;
  font-size: 9.5px;
}

.deal-bolt {
  display: inline-flex;
  margin-left: auto;
  color: #eda300;
}

.deal-bolt .icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.2;
}

.deal-body {
  padding: 12px 15px 14px;
}

.deal-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.deal-title a:hover {
  color: var(--blue);
}

.deal-tags {
  display: flex;
  overflow: hidden;
  max-height: 27px;
  flex-wrap: nowrap;
  gap: 5px;
  margin: 7px 0 9px;
}

.deal-tag {
  display: inline-flex;
  height: 21px;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 8px;
  border: 1px solid;
  border-radius: 11px;
  font-size: 9.5px;
  line-height: 1;
  white-space: nowrap;
}

.deal-tag--gold {
  border-color: #e8d19d;
  background: #fffaf0;
  color: #a47a2b;
}

.deal-tag--blue {
  border-color: #cfe2f8;
  background: #f2f8ff;
  color: #4f82bc;
}

.deal-tag--purple {
  border-color: #dccaf7;
  background: #f8f4ff;
  color: #7c54c4;
}

.deal-tag--red {
  border-color: #f0caca;
  background: #fff4f4;
  color: #be5b5b;
}

.deal-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 10px 0 0;
  border-top: 1px solid #edf2f8;
  padding-top: 8px;
}

.deal-spec {
  min-width: 0;
  padding: 0 10px;
  border-left: 1px solid #edf2f8;
}

.deal-spec:first-child {
  padding-left: 0;
  border-left: 0;
}

.deal-spec span {
  display: block;
  overflow: hidden;
  color: #9aa7b6;
  font-size: 9.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-spec b {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: #243650;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-spec b small {
  margin-left: 1px;
  color: #9aa7b6;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 400;
}

.deal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.deal-price {
  color: #0b1838;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.deal-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-confirm,
.btn-rent {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 10px;
  border-radius: 5px;
  font-size: 10.5px;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-confirm {
  border: 1px solid #dcc07a;
  background: #fffdf8;
  color: #89661d;
}

.btn-confirm .icon {
  width: 11px;
  height: 11px;
  color: #b7923a;
}

.btn-confirm:hover {
  border-color: #c8a44f;
  background: #fff8e8;
}

.btn-rent {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
}

.btn-rent:hover {
  background: var(--navy-2);
}

/* =========================================================
   Benefits / FAQ / Footer
   ========================================================= */

.benefits,
.faq {
  margin: 28px 10px 0;
}

.subsection-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 10px;
}

.subsection-head h2 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.subsection-head span {
  color: var(--muted);
  font-size: 10.5px;
}

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

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
}

.benefit-icon .icon {
  width: 16px;
  height: 16px;
}

.benefit-card strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.benefit-card p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}

.faq-list {
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--muted);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding-bottom: 11px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.site-footer {
  margin-top: 25px;
  padding: 18px 10px 22px;
  border-top: 1px solid var(--line);
  color: #94a2b3;
  font-size: 9.5px;
  line-height: 1.8;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 4px;
}

.footer-links a:hover {
  color: var(--blue);
}

/* =========================================================
   Dialog
   ========================================================= */

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 23, 43, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, visibility 0.22s;
}

.dialog-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.home-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 110;
  width: min(460px, calc(100vw - 32px));
  max-height: 82vh;
  overflow-y: auto;
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(13, 31, 56, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-50% + 12px)) scale(0.985);
  transition: opacity 0.22s, visibility 0.22s, transform 0.22s;
}

.home-dialog.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dialog-head h2 {
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}

.dialog-close:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.dialog-close .icon {
  width: 13px;
  height: 13px;
}

.dialog-body {
  color: var(--text);
  font-size: 11.5px;
  line-height: 1.75;
}

.dialog-body p + p {
  margin-top: 7px;
}

.dialog-note {
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.7;
}

.dialog-list {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.dialog-row {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 11px;
  text-align: left;
}

.dialog-row:first-child {
  border-top: 0;
}

.dialog-row strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
}

.dialog-row .icon {
  width: 13px;
  height: 13px;
  color: var(--dim);
}

.dialog-cta {
  display: flex;
  width: 100%;
  height: 39px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
}

.dialog-cta:hover {
  background: var(--navy-2);
}

.dialog-cta .icon {
  width: 12px;
  height: 12px;
}

.dialog-phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
}

.dialog-phone strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.dialog-phone span {
  color: var(--muted);
  font-size: 9px;
}

.dialog-steps {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.dialog-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.dialog-step b {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 600;
}

.dialog-step strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.dialog-step span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

/* Toast */

.home-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 120;
  max-width: min(360px, calc(100vw - 32px));
  padding: 9px 15px;
  border-radius: 18px;
  background: rgba(10, 23, 43, 0.92);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  pointer-events: none;
}

.home-toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 255px minmax(0, 1fr) 300px;
  }

  .promo-copy h1 {
    font-size: 37px;
  }

  .promo-features {
    max-width: 340px;
  }

  .promo-actions > span {
    display: none;
  }

  .deal-grid {
    gap: 14px;
  }

  .deal-bottom {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
  }

  .deal-actions {
    width: 100%;
  }

  .btn-confirm,
  .btn-rent {
    flex: 1;
  }
}

@media (max-width: 1024px) {
  .topbar,
  .notice-bar,
  .main-nav,
  .home-main {
    padding-right: 18px;
    padding-left: 18px;
  }

  .notice-bar,
  .main-nav {
    margin-right: 18px;
    margin-left: 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .promo-banner {
    grid-column: 1 / -1;
    order: -1;
    min-height: 380px;
  }

  .quick-card,
  .user-card {
    min-height: auto;
  }

  .quick-row {
    min-height: 80px;
  }

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

  .deal-bottom {
    align-items: center;
    flex-direction: row;
  }

  .deal-actions {
    width: auto;
  }

  .btn-confirm,
  .btn-rent {
    flex: none;
  }
}

@media (max-width: 840px) {
  .site-shell {
    border: 0;
  }

  .notice-item:last-child,
  .notice-sep {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .promo-banner {
    min-height: 360px;
  }

  .promo-copy {
    width: 58%;
  }

  .promo-copy h1 {
    font-size: 34px;
  }

  .promo-mascot {
    width: 45%;
  }

  .quick-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .quick-row {
    min-height: 74px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .quick-row:nth-child(2n) {
    border-right: 0;
  }

  .quick-row:first-child,
  .quick-row:nth-child(2) {
    border-top: 0;
  }

  .quick-row:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .user-card {
    min-height: auto;
  }

  .user-tiles {
    margin-top: 9px;
  }

  .deal-grid {
    grid-template-columns: 1fr;
  }

  .deal-bottom {
    flex-direction: row;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .main-nav {
    height: 54px;
  }

  .nav-link {
    font-size: 13px;
  }
}

@media (max-width: 620px) {
  .topbar {
    height: 58px;
    padding: 0 13px;
  }

  .brand strong {
    font-size: 21px;
    letter-spacing: 0.11em;
  }

  .brand i {
    width: 12px;
  }

  .topbar-actions {
    gap: 5px;
  }

  .btn {
    height: 32px;
    padding: 0 9px;
    font-size: 10.5px;
  }

  .btn--ghost {
    padding: 0 8px;
  }

  .notice-bar {
    min-height: 35px;
    margin: 4px 13px 0;
    padding: 0 8px;
    font-size: 10.5px;
  }

  .notice-icon {
    width: 16px;
    height: 16px;
  }

  .notice-icon .icon {
    width: 15px;
    height: 15px;
  }

  .main-nav {
    height: 50px;
    margin: 4px 13px 0;
  }

  .nav-link {
    font-size: 12px;
  }

  .home-main {
    padding: 10px 13px 0;
  }

  .promo-banner {
    min-height: 340px;
    padding: 19px 18px;
  }

  .promo-copy {
    width: 62%;
    margin-top: 14px;
  }

  .promo-copy h1 {
    font-size: 29px;
  }

  .promo-features {
    gap: 5px;
    margin-top: 12px;
  }

  .feature-chip {
    height: 29px;
    padding: 0 7px;
    font-size: 9.5px;
  }

  .promo-actions {
    margin-top: 13px;
  }

  .promo-consult {
    height: 37px;
    padding: 0 12px;
    font-size: 11px;
  }

  .promo-foot {
    bottom: 11px;
    left: 18px;
    font-size: 8.5px;
  }

  .promo-hearts {
    font-size: 11px;
  }

  .promo-brand strong {
    font-size: 11px;
  }

  .promo-mascot {
    width: 43%;
  }

  .promo-sign {
    right: 16px;
    bottom: 40px;
    font-size: 8px;
  }

  .quick-card {
    display: flex;
  }

  .quick-row {
    min-height: 68px;
    border-right: 0;
  }

  .quick-row:first-child {
    border-top: 0;
  }

  .quick-row:nth-child(2) {
    border-top: 1px solid var(--line);
  }

  .quick-row:last-child {
    grid-column: auto;
  }

  .quick-icon {
    width: 38px;
    height: 38px;
  }

  .quick-icon .icon {
    width: 19px;
    height: 19px;
  }

  .quick-copy strong {
    font-size: 13px;
  }

  .quick-copy small {
    font-size: 9px;
  }

  .user-card {
    padding: 14px;
  }

  .user-head h2 {
    font-size: 17px;
  }

  .deal-section {
    margin-top: 20px;
  }

  .section-head {
    margin: 0 2px 10px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-title .icon {
    width: 20px;
    height: 20px;
  }

  .section-heading p {
    font-size: 10px;
    white-space: normal;
  }

  .more-link {
    height: 30px;
    padding: 0 9px;
    font-size: 10px;
  }

  .deal-grid {
    margin: 0 2px;
  }

  .deal-bottom {
    align-items: center;
    flex-direction: row;
  }

  .deal-price {
    font-size: 23px;
  }

  .deal-actions {
    width: auto;
  }

  .btn-confirm,
  .btn-rent {
    flex: none;
    height: 32px;
    padding: 0 8px;
    font-size: 9.5px;
  }

  .deal-spec b {
    font-size: 13px;
  }

  .benefits,
  .faq {
    margin-right: 2px;
    margin-left: 2px;
  }

  .subsection-head {
    flex-wrap: wrap;
    gap: 1px 7px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .home-dialog {
    padding: 18px;
  }
}

@media (max-width: 400px) {
  .brand strong {
    font-size: 18px;
  }

  .brand i {
    display: none;
  }

  .btn {
    padding: 0 7px;
    font-size: 9.5px;
  }

  .promo-copy {
    width: 64%;
  }

  .promo-copy h1 {
    font-size: 26px;
  }

  .promo-features {
    max-width: 200px;
  }

  .feature-chip {
    height: 27px;
    font-size: 8.5px;
  }

  .feature-chip .icon {
    width: 12px;
    height: 12px;
  }

  .promo-mascot {
    width: 42%;
  }

  .promo-sign {
    display: none;
  }

  .deal-title {
    font-size: 15px;
  }

  .deal-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .deal-actions {
    width: 100%;
  }

  .btn-confirm,
  .btn-rent {
    flex: 1;
  }
}
