:root {
  --navy-950: #081523;
  --navy-900: #0d2136;
  --navy-800: #142f4b;
  --ink: #162437;
  --muted: #68778a;
  --soft: #f3f6f9;
  --soft-blue: #edf6ff;
  --line: #dfe7ef;
  --blue: #0879e8;
  --blue-dark: #0062c3;
  --cyan: #4cb9dc;
  --red: #e5483f;
  --green: #17885e;
  --white: #fff;
  --shadow-sm: 0 8px 28px rgba(21, 51, 82, .08);
  --shadow-lg: 0 24px 72px rgba(12, 37, 62, .15);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shell: 1180px;
}

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

html {
  min-height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-padding-top: 144px;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  overflow-y: visible;
  color: var(--ink);
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(8, 121, 232, .42);
  outline-offset: 3px;
}

::selection {
  color: #fff;
  background: var(--blue);
}

.page-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  border-radius: 9px;
  color: var(--blue-dark);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transform: translateY(-180%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header and page navigation */
.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - var(--shell)) / 2));
  border-bottom: 1px solid rgba(219, 229, 239, .92);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 14px rgba(15, 39, 63, .04);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  grid-template-columns: 38px auto;
  grid-template-rows: 20px 14px;
  column-gap: 10px;
  align-items: center;
  min-width: 172px;
}

.brand > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), #1752ad);
  box-shadow: 0 7px 18px rgba(8, 121, 232, .25);
  font-size: 21px;
  font-weight: 900;
}

.brand strong {
  align-self: end;
  color: var(--navy-900);
  font-size: 16px;
  letter-spacing: .02em;
}

.brand small {
  align-self: start;
  color: #8391a2;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
}

.site-header > nav {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 3vw, 46px);
}

.site-header > nav a {
  position: relative;
  padding: 27px 0 25px;
  color: #546378;
  font-size: 14px;
  font-weight: 650;
}

.site-header > nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -1px;
  left: 50%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
  transition: right .2s ease, left .2s ease;
}

.site-header > nav a:hover,
.site-header > nav a.active {
  color: var(--blue);
}

.site-header > nav a:hover::after,
.site-header > nav a.active::after {
  right: 0;
  left: 0;
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.header-action,
.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 9px 22px rgba(8, 121, 232, .2);
}

.header-action:hover,
.button-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 12px 28px rgba(8, 99, 195, .27);
  transform: translateY(-1px);
}

.button-secondary {
  border-color: #cad8e7;
  color: #2f465f;
  background: #fff;
}

.button-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--soft-blue);
}

.data-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 36px;
  padding: 7px 24px;
  color: #c8d7e6;
  background: var(--navy-900);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.data-banner strong {
  padding-right: 13px;
  border-right: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
}

.section-nav {
  position: sticky;
  z-index: 70;
  top: 76px;
  display: flex;
  justify-content: center;
  gap: clamp(22px, 3vw, 44px);
  overflow-x: auto;
  overflow-y: clip;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 5px 20px rgba(18, 45, 73, .05);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  backdrop-filter: blur(18px);
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 15px 0 14px;
  color: #617086;
  font-size: 13px;
  font-weight: 650;
}

.section-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -1px;
  left: 50%;
  height: 3px;
  border-radius: 4px 4px 0 0;
  background: var(--blue);
  transition: right .2s ease, left .2s ease;
}

.section-nav a:hover,
.section-nav a.active,
.section-nav a[aria-current="true"] {
  color: var(--blue);
}

.section-nav a.active::after,
.section-nav a[aria-current="true"]::after {
  right: 0;
  left: 0;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
  gap: clamp(38px, 5vw, 76px);
  align-items: center;
  min-height: 620px;
  padding-top: 58px;
  padding-bottom: 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 38px;
  color: #97a2b1;
  font-size: 12px;
}

.breadcrumb a {
  color: #627185;
}

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

.eyebrow,
.section-kicker {
  display: block;
  margin: 0 0 11px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .18em;
}

.hero h1 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(54px, 6.1vw, 86px);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.07em;
}

.hero-subtitle {
  margin: 18px 0 28px;
  color: #637287;
  font-size: 16px;
  font-weight: 600;
}

.price-card {
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
  border: 1px solid #d9e5f0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fbff, #eef6fd);
}

.price-card::after {
  content: "";
  position: absolute;
  top: -75px;
  right: -55px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(69, 183, 220, .11);
}

.price-card span,
.price-card p,
.price-card small {
  display: block;
  position: relative;
  z-index: 1;
}

.price-card span {
  margin-bottom: 4px;
  color: #61738a;
  font-size: 12px;
  font-weight: 700;
}

.price-card strong {
  display: block;
  position: relative;
  z-index: 1;
  color: var(--red);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.25;
  letter-spacing: -.04em;
}

.price-card p {
  margin: 4px 0 0;
  color: #3f5066;
  font-size: 13px;
  font-weight: 650;
}

.price-card small {
  margin-top: 9px;
  color: #8794a5;
  font-size: 10px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 11px;
  margin-top: 22px;
}

.service-boundary {
  margin: 17px 0 0;
  color: #8794a4;
  font-size: 11px;
  line-height: 1.75;
}

.hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #eaf0f5, #f8fafc);
  box-shadow: var(--shadow-lg);
}

.hero-media::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: inherit;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1440 / 850;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.hero-media:hover img {
  transform: scale(1.018);
}

.hero-media figcaption {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  color: #fff;
  background: rgba(9, 25, 41, .68);
  font-size: 11px;
  backdrop-filter: blur(12px);
}

.hero-media figcaption a {
  color: #caeaff;
  font-weight: 700;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  margin-top: -12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.fact-strip > div {
  min-width: 0;
  padding: 22px 20px;
  border-right: 1px solid var(--line);
}

.fact-strip > div:last-child {
  border-right: 0;
}

.fact-strip span,
.fact-strip strong,
.fact-strip small {
  display: block;
}

.fact-strip span {
  color: #8491a1;
  font-size: 11px;
}

.fact-strip strong {
  margin: 7px 0 5px;
  color: #263950;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.fact-strip small {
  color: #9ca7b4;
  font-size: 10px;
  line-height: 1.45;
}

/* Shared sections */
.content-section {
  padding-top: 104px;
  padding-bottom: 104px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
}

.section-heading h2,
.advisor-intro h2,
.calculator-layout h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(31px, 3.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.section-heading > p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  text-align: right;
}

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

.choice-grid article {
  display: flex;
  flex-direction: column;
  min-height: 272px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 36px rgba(23, 53, 82, .055);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.choice-grid article:hover {
  border-color: #b9d8f3;
  box-shadow: 0 18px 45px rgba(21, 63, 101, .1);
  transform: translateY(-4px);
}

.choice-grid article.featured {
  color: #fff;
  border-color: var(--navy-800);
  background: linear-gradient(145deg, var(--navy-900), #1b4669);
  box-shadow: 0 18px 45px rgba(16, 47, 75, .2);
}

.choice-grid article > span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.choice-grid .featured > span {
  color: #86d8f2;
}

.choice-grid h3 {
  margin: 19px 0 13px;
  color: var(--navy-900);
  font-size: 32px;
  letter-spacing: -.04em;
}

.choice-grid .featured h3 {
  color: #fff;
}

.choice-grid p {
  margin: 0 0 24px;
  color: #718095;
  font-size: 13px;
  line-height: 1.8;
}

.choice-grid .featured p {
  color: #c5d6e4;
}

.choice-grid a {
  margin-top: auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.choice-grid .featured a {
  color: #90def5;
}

/* Gallery */
.gallery-section {
  color: #fff;
  background: var(--navy-950);
}

.gallery-section .section-heading h2 {
  color: #fff;
}

.gallery-section .section-heading > p {
  color: #9eb0c2;
}

.gallery-section .section-kicker {
  color: #58c6e5;
}

.gallery-toolbar,
.trim-toolbar,
.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.gallery-toolbar button,
.trim-toolbar button,
.calc-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #dbe4ed;
  border-radius: 999px;
  color: #53647a;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: all .2s ease;
}

.gallery-toolbar button {
  border-color: rgba(255, 255, 255, .18);
  color: #becbd8;
  background: rgba(255, 255, 255, .06);
}

.gallery-toolbar button:hover,
.gallery-toolbar button.active {
  border-color: #56c2e3;
  color: #061826;
  background: #62c9e7;
}

.gallery-toolbar b {
  margin-left: 4px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  padding: 0;
  color: #fff;
  background: #142638;
  text-align: left;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item.gallery-wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, opacity .25s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(3, 13, 23, .79) 100%);
  transition: background .25s ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.gallery-item:hover::after {
  background: linear-gradient(180deg, rgba(30, 131, 190, .08), rgba(3, 13, 23, .86));
}

.gallery-item > span {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
}

.gallery-item > span b {
  font-size: 18px;
  font-weight: 400;
}

.media-credit {
  margin: 18px 0 0;
  color: #8499ad;
  font-size: 11px;
  line-height: 1.7;
}

/* Official configuration */
.upgrade-grid {
  margin-bottom: 28px;
}

.upgrade-grid article {
  padding: 25px 26px;
  border: 1px solid var(--line);
  border-top: 3px solid #b8d9f3;
  border-radius: 4px 4px var(--radius) var(--radius);
  background: #fff;
}

.upgrade-grid span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.upgrade-grid h3 {
  margin: 10px 0 9px;
  color: #263a51;
  font-size: 17px;
}

.upgrade-grid p {
  margin: 0;
  color: #728196;
  font-size: 12px;
  line-height: 1.8;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: clip;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  scrollbar-color: #b9cadb #eef3f7;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}

.config-table {
  width: 100%;
  min-width: 840px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.config-table th,
.config-table td {
  padding: 15px 13px;
  border-right: 1px solid #e8edf3;
  border-bottom: 1px solid #e8edf3;
  text-align: center;
  white-space: nowrap;
}

.config-table th:last-child,
.config-table td:last-child {
  border-right: 0;
}

.config-table tr:last-child th,
.config-table tr:last-child td {
  border-bottom: 0;
}

.config-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-top: 17px;
  padding-bottom: 17px;
  color: #304359;
  background: #eef4f8;
  font-size: 11px;
  font-weight: 800;
}

.config-table th:first-child {
  position: sticky;
  z-index: 3;
  left: 0;
  min-width: 116px;
  color: #5c6d82;
  background: #f8fafc;
  text-align: left;
}

.config-table thead th:first-child {
  z-index: 4;
  background: #e8f0f6;
}

.config-table tbody tr:nth-child(even) td {
  background: #fbfcfd;
}

.source-footnote {
  margin: 17px 0 0;
  padding-left: 12px;
  border-left: 3px solid #9bc9ed;
  color: #7d8999;
  font-size: 11px;
  line-height: 1.8;
}

/* Trims and compare */
.market-section {
  background: var(--soft);
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.trim-toolbar button:hover,
.trim-toolbar button.active,
.calc-tabs button:hover,
.calc-tabs button.active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.trim-list {
  display: grid;
  gap: 10px;
}

.trim-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 170px;
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid #e0e7ee;
  border-radius: 15px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.trim-card:hover {
  border-color: #bdd8ef;
  box-shadow: 0 12px 30px rgba(24, 62, 96, .08);
  transform: translateY(-2px);
}

.trim-card[hidden] {
  display: none;
}

.trim-name,
.trim-price {
  min-width: 0;
}

.trim-name > span {
  display: inline-block;
  margin-bottom: 5px;
  padding: 3px 7px;
  border-radius: 5px;
  color: #9c5a10;
  background: #fff3dc;
  font-size: 9px;
  font-weight: 750;
}

.trim-name h3 {
  margin: 0 0 6px;
  color: #263950;
  font-size: 15px;
  line-height: 1.45;
}

.trim-name p,
.trim-price span,
.trim-price small {
  margin: 0;
  color: #8a96a5;
  font-size: 10px;
  line-height: 1.55;
}

.trim-price strong {
  display: block;
  margin: 4px 0 3px;
  color: var(--red);
  font-size: 18px;
  line-height: 1.3;
}

.trim-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.trim-actions button {
  min-height: 38px;
  border: 1px solid #c9d8e6;
  border-radius: 8px;
  color: #476078;
  background: #fff;
  font-size: 11px;
  font-weight: 750;
  transition: all .2s ease;
}

.trim-actions button:hover,
.trim-actions button[aria-pressed="true"] {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--soft-blue);
}

.trim-actions button:last-child {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.trim-actions button:last-child:hover {
  background: var(--blue-dark);
}

.compare-drawer {
  position: sticky;
  top: 146px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid #d9e4ed;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.compare-drawer > div:first-child > span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .17em;
}

.compare-drawer h3 {
  margin: 7px 0 6px;
  color: #283b51;
  font-size: 18px;
}

.compare-drawer p {
  margin: 0;
  color: #8390a0;
  font-size: 11px;
  line-height: 1.65;
}

#compare-items {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

#compare-items > :not(.compare-placeholder) {
  padding: 12px;
  border: 1px solid #e2e9ef;
  border-radius: 10px;
  background: #f8fafc;
}

.compare-placeholder {
  padding: 23px 10px;
  border: 1px dashed #cbd7e2;
  border-radius: 10px;
  text-align: center;
}

#clear-compare {
  width: 100%;
  min-height: 39px;
  margin-top: 12px;
  border: 1px solid #d5dfe8;
  border-radius: 8px;
  color: #66768a;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

#clear-compare:hover {
  border-color: #e39a95;
  color: #bd3e37;
  background: #fff7f6;
}

.empty-state {
  padding: 34px;
  border: 1px dashed #cad5df;
  border-radius: 14px;
  color: #758396;
  background: rgba(255, 255, 255, .68);
  text-align: center;
}

/* Local advisor */
.advisor-section {
  display: grid;
  grid-template-columns: .78fr 1fr;
  gap: clamp(36px, 6vw, 78px);
  align-items: start;
  margin-top: 104px;
  margin-bottom: 104px;
  padding: clamp(38px, 5vw, 64px);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 96% 10%, rgba(77, 189, 222, .24), transparent 30%),
    linear-gradient(145deg, var(--navy-950), #173e5f);
  box-shadow: var(--shadow-lg);
}

.advisor-intro {
  grid-row: span 2;
}

.advisor-intro .section-kicker {
  color: #63c9e6;
}

.advisor-intro h2 {
  color: #fff;
}

.advisor-intro > p {
  margin: 18px 0 24px;
  color: #bacbd9;
  font-size: 14px;
  line-height: 1.8;
}

.advisor-intro ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.advisor-intro li {
  color: #d3e0e9;
  font-size: 12px;
}

.advisor-intro li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 9px;
  border-radius: 50%;
  color: #072237;
  background: #65cae6;
  font-size: 11px;
  font-weight: 900;
}

#advisor-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(8px);
}

#advisor-form label,
.calc-fields label {
  color: #d4e0e9;
  font-size: 11px;
  font-weight: 650;
}

#advisor-form label:first-child,
#advisor-form .button {
  grid-column: 1 / -1;
}

#advisor-form input,
#advisor-form select,
.calc-fields input,
.calc-fields select {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 7px;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 9px;
  padding: 0 13px;
  color: #172a3e;
  background: #fff;
  outline: 0;
  font-size: 13px;
}

#advisor-form input:focus,
#advisor-form select:focus,
.calc-fields input:focus,
.calc-fields select:focus {
  border-color: #6dccef;
  box-shadow: 0 0 0 4px rgba(92, 199, 234, .17);
}

#advisor-form .button {
  width: 100%;
  margin-top: 3px;
  border: 0;
  background: #57c2df;
  color: #062034;
  box-shadow: none;
}

#advisor-form .button:hover {
  background: #78d5ed;
}

.advisor-result {
  min-height: 134px;
  padding: 21px 22px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  background: rgba(5, 21, 35, .34);
}

.advisor-result strong,
.advisor-result h3 {
  color: #fff;
}

.advisor-result p,
.advisor-result small {
  color: #aebfce;
  font-size: 11px;
  line-height: 1.7;
}

.advisor-result button {
  min-height: 36px;
  border: 1px solid rgba(105, 205, 233, .6);
  border-radius: 8px;
  color: #83daf0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

/* Calculator */
.calculator-section {
  background: linear-gradient(180deg, #f7f9fb, #eef3f7);
}

.calculator-layout {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: clamp(48px, 7vw, 92px);
  align-items: start;
}

.calculator-layout > div:first-child > p {
  margin: 18px 0 25px;
  color: #718095;
  font-size: 14px;
  line-height: 1.8;
}

.calc-tabs button {
  min-width: 84px;
}

#calculator-form {
  padding: 28px;
  border: 1px solid #dce5ed;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.calc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calc-fields label {
  color: #65758a;
}

.calc-fields input,
.calc-fields select {
  border-color: #d5e0ea;
  background: #f9fbfc;
}

.calc-output {
  margin-top: 22px;
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eaf5ff, #f6fbff);
}

.calc-output span,
.calc-output strong,
.calc-output p {
  display: block;
}

.calc-output span {
  color: #597089;
  font-size: 11px;
  font-weight: 700;
}

.calc-output strong {
  margin: 7px 0 6px;
  color: var(--blue-dark);
  font-size: clamp(27px, 3vw, 36px);
  letter-spacing: -.04em;
}

.calc-output p {
  margin: 0;
  color: #7f8d9e;
  font-size: 11px;
  line-height: 1.7;
}

/* Editorial, sources and FAQ */
.editorial-grid article {
  position: relative;
  min-height: 250px;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.editorial-grid article > span {
  color: #dce8f2;
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
}

.editorial-grid h3 {
  margin: 19px 0 11px;
  color: #273a50;
  font-size: 17px;
  line-height: 1.55;
}

.editorial-grid p {
  margin: 0;
  color: #718095;
  font-size: 12px;
  line-height: 1.85;
}

.sources-section {
  border-top: 1px solid #dde6ee;
  border-bottom: 1px solid #dde6ee;
  background: #f5f8fa;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #dbe4ec;
  border-radius: var(--radius);
  background: #fff;
}

.source-grid article {
  display: flex;
  flex-direction: column;
  min-height: 258px;
  padding: 25px;
  border-right: 1px solid #e2e8ee;
}

.source-grid article:last-child {
  border-right: 0;
}

.source-grid article > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.source-grid h3 {
  margin: 12px 0 10px;
  color: #2b3d52;
  font-size: 16px;
  line-height: 1.45;
}

.source-grid p {
  margin: 0 0 22px;
  color: #738196;
  font-size: 11px;
  line-height: 1.8;
}

.source-grid a {
  margin-top: auto;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
}

.source-grid a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-note {
  margin: 18px 0 0;
  color: #8491a1;
  font-size: 10px;
  line-height: 1.8;
}

.faq-section {
  padding-bottom: 120px;
}

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

.faq-section details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-section summary {
  position: relative;
  padding: 22px 54px 22px 2px;
  color: #2e4056;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

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

.faq-section summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--soft-blue);
  font-size: 22px;
  font-weight: 400;
}

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

.faq-section details > p {
  max-width: 880px;
  margin: -4px 0 24px;
  color: #708095;
  font-size: 13px;
  line-height: 1.85;
}

/* Footer and mobile actions */
.site-footer {
  padding: 54px 0;
  color: #acbbc9;
  background: var(--navy-950);
}

.site-footer .page-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px 50px;
  align-items: end;
}

.footer-brand {
  color: #fff;
  font-size: 21px;
  font-weight: 850;
}

.site-footer p {
  margin: 10px 0 0;
  color: #8396a8;
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

.site-footer nav a {
  color: #b6c5d2;
  font-size: 12px;
}

.site-footer nav a:hover,
.site-footer small a:hover {
  color: #78d0ea;
}

.site-footer small {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #6e8295;
  font-size: 10px;
}

.mobile-actions {
  display: none;
}

/* Gallery dialog */
#gallery-dialog {
  width: min(1040px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  margin: auto;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  padding: 0;
  color: #fff;
  background: #07131f;
  box-shadow: 0 32px 120px rgba(0, 0, 0, .55);
}

#gallery-dialog::backdrop {
  background: rgba(4, 12, 20, .82);
  backdrop-filter: blur(5px);
}

.dialog-header,
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
}

.dialog-header strong {
  font-size: 14px;
}

.dialog-header button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  font-size: 25px;
}

#dialog-image {
  width: 100%;
  height: min(68vh, 680px);
  object-fit: contain;
  background: #0c1926;
}

.dialog-footer button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  padding: 0 15px;
  color: #dbe7f0;
  background: rgba(255, 255, 255, .07);
  font-size: 11px;
  font-weight: 700;
}

.dialog-footer span {
  color: #8fa4b7;
  font-size: 11px;
}

#toast {
  position: fixed;
  z-index: 150;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 17px;
  border-radius: 10px;
  color: #fff;
  background: rgba(10, 31, 49, .94);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

#toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Common classes used by client-rendered advisor and comparison content */
.advisor-result-heading {
  margin-bottom: 4px;
}

.advisor-result-heading strong,
.advisor-result-heading p {
  display: block;
  margin: 0;
}

.advisor-result-heading p {
  margin-top: 5px;
}

.advisor-result article,
.advisor-match {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.advisor-result article:first-child,
.advisor-match:first-child {
  padding-top: 0;
  border-top: 0;
}

.advisor-result article:last-child,
.advisor-match:last-child {
  padding-bottom: 0;
}

.advisor-result .result-actions,
.advisor-result article > div:last-child,
.advisor-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.advisor-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 12px;
}

.advisor-rank {
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #092239;
  background: #66cee8;
  font-size: 10px;
  font-weight: 850;
}

.advisor-card h3,
.advisor-card p,
.advisor-card-actions {
  grid-column: 2;
  margin-top: 0;
}

.advisor-card h3 {
  margin-bottom: 4px;
  font-size: 14px;
}

.advisor-card p {
  margin: 0;
}

.advisor-card-actions button {
  padding: 0 12px;
}

.compare-item {
  position: relative;
}

.compare-item-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.compare-item-heading h4 {
  margin: 0;
  color: #2f4156;
  font-size: 12px;
  line-height: 1.5;
}

.compare-item dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 8px;
  margin: 10px 0 0;
  font-size: 10px;
}

.compare-item dt {
  color: #8995a4;
}

.compare-item dd {
  margin: 0;
  color: #344b63;
  font-weight: 700;
  text-align: right;
}

.compare-item-heading button {
  flex: 0 0 auto;
  border: 0;
  padding: 2px 0;
  color: #7d8c9d;
  background: transparent;
  font-size: 9px;
}

@media (max-width: 1080px) {
  .site-header {
    padding-inline: 24px;
  }

  .hero {
    grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr);
    gap: 34px;
  }

  .fact-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .fact-strip > div:nth-child(3) {
    border-right: 0;
  }

  .fact-strip > div:nth-child(-n+3) {
    border-bottom: 1px solid var(--line);
  }

  .fact-strip > div:nth-child(4) {
    grid-column: span 1;
  }

  .fact-strip > div:last-child {
    grid-column: span 2;
  }

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

  .source-grid article {
    min-height: 220px;
    border-bottom: 1px solid #e2e8ee;
  }

  .source-grid article:nth-child(2n) {
    border-right: 0;
  }

  .source-grid article:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 132px;
  }

  .site-header > nav {
    gap: 20px;
  }

  .site-header > nav a:nth-child(3),
  .site-header > nav a:nth-child(4) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .breadcrumb {
    margin-bottom: 30px;
  }

  .hero-media {
    width: 100%;
  }

  .hero-media img {
    aspect-ratio: 1.65 / 1;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 170px;
  }

  .market-layout {
    grid-template-columns: 1fr;
  }

  .compare-drawer {
    position: static;
  }

  #compare-items {
    grid-template-columns: repeat(3, 1fr);
  }

  .advisor-section {
    grid-template-columns: 1fr;
  }

  .advisor-intro {
    grid-row: auto;
  }

  .advisor-intro > p {
    max-width: 680px;
  }

  .calculator-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  :root {
    --radius: 15px;
  }

  html {
    scroll-padding-top: 120px;
  }

  .page-shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 64px;
    padding-inline: 16px;
  }

  .brand {
    grid-template-columns: 34px auto;
    min-width: 0;
  }

  .brand > span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 18px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 7px;
  }

  .site-header > nav {
    display: none;
  }

  .header-action {
    min-height: 38px;
    padding: 0 15px;
    font-size: 12px;
    box-shadow: none;
  }

  .data-banner {
    align-items: flex-start;
    gap: 5px;
    min-height: 0;
    padding: 8px 16px;
    flex-direction: column;
    text-align: left;
  }

  .data-banner strong {
    padding-right: 0;
    border-right: 0;
    font-size: 10px;
  }

  .data-banner span {
    font-size: 9px;
  }

  .section-nav {
    top: 64px;
    justify-content: flex-start;
    gap: 25px;
    padding-inline: 16px;
  }

  .section-nav a {
    padding: 13px 0 12px;
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 42px;
  }

  .breadcrumb {
    margin-bottom: 23px;
  }

  .hero h1 {
    font-size: clamp(48px, 16vw, 66px);
  }

  .hero-subtitle {
    margin: 13px 0 22px;
    font-size: 14px;
  }

  .price-card {
    padding: 18px;
  }

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

  .button {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .hero-media {
    border-radius: 20px;
  }

  .hero-media img {
    aspect-ratio: 1.55 / 1;
  }

  .hero-media figcaption {
    right: 9px;
    bottom: 9px;
    left: 9px;
    padding: 9px 11px;
    font-size: 9px;
  }

  .fact-strip {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
  }

  .fact-strip > div,
  .fact-strip > div:nth-child(3),
  .fact-strip > div:nth-child(4) {
    grid-column: auto;
    padding: 17px 15px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .fact-strip > div:nth-child(2n) {
    border-right: 0;
  }

  .fact-strip > div:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .fact-strip strong {
    font-size: 13px;
  }

  .content-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-heading {
    display: block;
    margin-bottom: 27px;
  }

  .section-heading > p {
    max-width: none;
    margin-top: 12px;
    font-size: 12px;
    text-align: left;
  }

  .section-heading h2,
  .advisor-intro h2,
  .calculator-layout h2 {
    font-size: 31px;
  }

  .choice-grid,
  .upgrade-grid,
  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .choice-grid article {
    min-height: 230px;
    padding: 23px;
  }

  .gallery-toolbar,
  .trim-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: clip;
    padding: 3px 2px 7px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-toolbar button,
  .trim-toolbar button {
    flex: 0 0 auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 145px;
    gap: 8px;
  }

  .gallery-item.gallery-wide {
    grid-column: 1 / -1;
    grid-row: span 2;
  }

  .gallery-item > span {
    right: 11px;
    bottom: 10px;
    left: 11px;
    font-size: 10px;
  }

  .upgrade-grid article {
    padding: 21px;
  }

  .table-scroll::after {
    content: "左右滑动查看完整配置";
    position: sticky;
    right: 10px;
    bottom: 8px;
    float: right;
    margin: 8px;
    padding: 5px 8px;
    border-radius: 6px;
    color: #62758a;
    background: rgba(239, 245, 250, .94);
    font-size: 9px;
    pointer-events: none;
  }

  .trim-card {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 18px;
  }

  .trim-actions {
    grid-column: 1 / -1;
  }

  #compare-items {
    grid-template-columns: 1fr;
  }

  .advisor-section {
    width: calc(100% - 32px);
    margin-top: 72px;
    margin-bottom: 72px;
    padding: 30px 22px;
    border-radius: 22px;
  }

  #advisor-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  #advisor-form label:first-child,
  #advisor-form .button {
    grid-column: auto;
  }

  .calc-fields {
    grid-template-columns: 1fr;
  }

  #calculator-form {
    padding: 20px;
  }

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

  .source-grid article,
  .source-grid article:nth-child(2n),
  .source-grid article:nth-last-child(-n+2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #e2e8ee;
  }

  .source-grid article:last-child {
    border-bottom: 0;
  }

  .source-grid p {
    margin-bottom: 17px;
  }

  .site-footer {
    padding: 44px 0 105px;
  }

  .site-footer .page-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer nav {
    justify-content: flex-start;
    gap: 15px 20px;
  }

  .site-footer small {
    grid-column: auto;
  }

  .mobile-actions {
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 8px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid #dce5ed;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -8px 26px rgba(12, 35, 58, .13);
    backdrop-filter: blur(16px);
  }

  .mobile-actions a {
    display: grid;
    place-items: center;
    min-height: 44px;
    border: 1px solid var(--blue);
    border-radius: 9px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-actions a:last-child {
    color: #fff;
    background: var(--blue);
  }

  #toast {
    right: 14px;
    bottom: 76px;
    left: 14px;
    max-width: none;
  }

  #gallery-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 15px;
  }

  #dialog-image {
    height: min(64vh, 560px);
  }
}

@media (max-width: 420px) {
  .eyebrow {
    font-size: 9px;
  }

  .hero-actions {
    gap: 8px;
  }

  .service-boundary {
    font-size: 10px;
  }

  .hero-media figcaption span {
    max-width: 55%;
  }

  .gallery-grid {
    grid-auto-rows: 126px;
  }

  .gallery-item.gallery-wide {
    grid-row: span 2;
  }

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

  .trim-price,
  .trim-actions {
    grid-column: auto;
  }

  .trim-actions button {
    min-height: 42px;
  }

  .compare-drawer {
    padding: 20px;
  }

  .editorial-grid article {
    min-height: 0;
    padding: 24px;
  }

  .faq-section summary {
    font-size: 14px;
  }

  .dialog-footer {
    gap: 8px;
  }

  .dialog-footer button {
    padding-inline: 10px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .data-banner,
  .section-nav,
  .hero-actions,
  .gallery-toolbar,
  .trim-toolbar,
  .trim-actions,
  .mobile-actions,
  dialog,
  #toast {
    display: none !important;
  }

  .page-shell,
  .advisor-section {
    width: 100%;
  }

  .content-section,
  .advisor-section {
    padding-block: 28px;
  }

  .hero {
    min-height: 0;
  }

  .gallery-section,
  .advisor-section,
  .site-footer {
    color: #111;
    background: #fff;
    box-shadow: none;
  }
}
