/* 智通金融科技 - Main Styles */
:root {
  --yellow: #FFDB31;
  --yellow-grad: linear-gradient(90deg, #FFF7A8 0%, #FFF100 50%, #FFD700 100%);
  --pill-grad: linear-gradient(90deg, #E8F3DD 0%, #D5E8BB 50%, #D1E398 100%);
  --black: #221E1F;
  --gray: #808080;
  --gray-light: #9E9E9E;
  --white: #FFFFFF;
  --input-bg: rgba(255, 219, 49, 0.08);
  --green: #8CC63F;
  --card-dark: #484343;
  --footer-bg: #111111;
  --calc-bg: rgba(243, 239, 232, 0.5);
  --helper-bg: rgba(217, 245, 237, 0.3);
  --cases-bg: #EDF2FF;
  --faq-bg: #F8F8F8;
  --tagline-pill-bg: #ECF7F3;
  --green-grad: linear-gradient(90deg, #E3F2E7 0%, #B1DCC2 100%);
  --mortgage-payment-bg: #FEFBEF;
  --mortgage-afford-bg: #ECF7F3;
  --mortgage-valuation-bg: #EFF3F9;
  --mortgage-input-width: 700px;
  --max-width: 1400px;
  --nav-height: 148px;
  --faq-item-bg: #FEFBEF;
  --btn-height: 48px;
  --font-primary: 'PingFang HK', 'PingFang SC', 'PingFang TC', 'PingFang', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'PingFang HK', 'PingFang SC', 'PingFang TC', 'PingFang', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-primary);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea, option {
  font-family: inherit;
}
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px clamp(20px, 5vw, 220px) 14px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-height);
  padding: 0 32px;
  background: var(--yellow-grad);
  color: var(--black);
  border: 1px solid var(--black);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.0195em;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.85; }

/* Tagline Component */
.tagline-block {
  text-align: center;
}
.tagline-static {
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
  color: #616263;
  margin-bottom: 28px;
}
.tagline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 21px;
  background: var(--pill-grad);
  border-radius: 35px;
  white-space: nowrap;
  color: var(--black);
}
.tagline-static .highlight { color: #616263; font-weight: 500; }
.tagline-static .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border-radius: 50%;
  margin: 0 8px;
  vertical-align: middle;
}
.tagline-rotating {
  font-size: 56px;
  font-weight: 300;
  color: var(--black);
  overflow: hidden;
}
.tagline-rotating .highlight { color: inherit; }
.tagline-rotating.right-align { text-align: right; }
.tagline-rotating.left-align { text-align: left; }
.tagline-rotating-viewport {
  overflow: hidden;
  height: auto;
  min-height: 56px;
}
.tagline-rotating-track {
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.tagline-rotating-item {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}
.tagline-block-right {
  flex-shrink: 0;
  width: min(1020px, 68vw);
  text-align: right;
  overflow: visible;
}
.tagline-block-right .tagline-rotating {
  overflow: hidden;
  width: 100%;
  font-size: clamp(36px, 3.8vw, 56px);
}
.tagline-block-right .tagline-rotating-viewport {
  overflow: hidden;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: 0;
}
.tagline-block-right .tagline-rotating-item {
  text-align: right;
}
.tagline-block-right .tagline-rotating.right-align,
.tagline-block-right .tagline-rotating {
  text-align: right;
}
.tagline-block-right .tagline-static {
  white-space: nowrap;
  width: 100%;
  text-align: right;
}
.tagline-rotating-centered {
  width: 100%;
  text-align: center;
}
.tagline-rotating-centered .tagline-rotating-viewport {
  margin: 0 auto;
}
.tagline-rotating-centered .tagline-rotating-item {
  text-align: center;
  white-space: nowrap;
}
.tagline-rotating.left-align .tagline-rotating-item { text-align: left; }
.banner-copy-rotating .tagline-rotating-item { text-align: center; }

/* ========== NAVIGATION ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.02);
  overflow: visible;
}
.nav-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 10px clamp(20px, 5vw, 220px) 14px;
  min-height: var(--nav-height);
}
.nav-main-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(16px, 2.5vw, 48px);
  min-height: 112px;
}
.nav-logo {
  width: clamp(148px, 13.5vw, 252px);
  align-self: end;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  line-height: 0;
}
.nav-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left bottom;
}
.nav-content {
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 4px;
  align-content: end;
  align-items: stretch;
  min-width: 0;
  min-height: 112px;
}
.nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
  flex-shrink: 0;
  width: fit-content;
  margin-top: -6px;
  margin-bottom: 25px
}
.nav-right-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
}
.nav-top-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: fit-content;
}
.nav-apply-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  flex-shrink: 0;
  font-size: 18px;
  width: 100%;
}
.lang-switch {
  font-size: clamp(16px, 1.25vw, 24px);
  color: var(--gray-light);
  line-height: var(--btn-height);
  letter-spacing: -0.0063em;
  padding-top: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.lang-switch .active { color: var(--black); font-weight: 600; }
.lang-switch span { cursor: pointer; transition: color 0.2s; }
.lang-switch span:hover { color: var(--black); }
.nav-apply-btn {
  height: var(--btn-height);
  min-width: clamp(100px, 5.5vw, 163px);
  padding: 0 clamp(12px, 1vw, 24px);
  font-size: clamp(14px, 1.04vw, 20px);
  font-family: var(--font-secondary);
  border-radius: 50px;
  flex-shrink: 0;
  margin-left: 24px;
}
.nav-phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 0.55vw, 10px);
  width: 100%;
  color: var(--green);
  text-decoration: none;
  font-family: var(--font-secondary);
  font-size: clamp(18px, 1.6vw, 28px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.0063em;
  white-space: nowrap;
}
.nav-phone-link:hover { opacity: 0.85; }
.nav-phone-hours,
.nav-phone-number {
  flex-shrink: 0;
}
.nav-phone-whatsapp {
  width: clamp(20px, 1.5vw, 28px);
  height: clamp(20px, 1.5vw, 28px);
  fill: currentColor;
  flex-shrink: 0;
}
.nav-phone-whatsapp path {
  fill: currentColor;
}
.nav-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: clamp(8px, 2vw, 66px);
  width: 100%;
  min-width: 0;
  overflow: visible;
  scrollbar-width: none;
  padding-bottom: 0;
  margin-top: 0;
}
.nav-bottom::-webkit-scrollbar { display: none; }
.nav-link-badge-wrap {
  position: relative;
  display: inline-block;
  line-height: 1.2;
  vertical-align: baseline;
}
.nav-link-badge-wrap .nav-link-text {
  display: inline-block;
  line-height: 1.2;
}
.nav-new-badge {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  width: clamp(40px, 3.6vw, 69px);
  height: auto;
  pointer-events: none;
}
.nav-link {
  font-size: clamp(16px, 1.25vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.0068em;
  color: var(--black);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
.nav-link:hover,
.nav-dropdown.hover .nav-link-dropdown,
.nav-dropdown.hover > .nav-link {
  color: var(--gray);
}
.nav-dropdown.hover .nav-link-dropdown::after,
.nav-dropdown.hover > .nav-link::after,
.nav-link:not(.nav-link-badge-wrap):hover::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--yellow);
  border-radius: 20px 20px 0 0;
}
.nav-link {
  position: relative;
}
.nav-mega-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  width: min(1078px, 92vw);
  z-index: 30;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 30, 31, 0.25) transparent;
  border-radius: 16px;
}
.nav-mega-panel.open {
  display: block;
  background: var(--white);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.06);
}
.nav-mega-panel::-webkit-scrollbar {
  width: 6px;
}
.nav-mega-panel::-webkit-scrollbar-thumb {
  background: rgba(34, 30, 31, 0.25);
  border-radius: 3px;
}
.nav-mega-panel.nav-mega-panel--tools-featured {
  width: 677px;
}
.nav-mega-inner {
  display: grid;
  grid-template-columns: 270px 1fr 400px;
  gap: 24px;
  background: var(--white);
  border-radius: 16px;
  padding: 24px 22px;
  min-height: 520px;
}
.nav-mega-inner--tools-featured {
  grid-template-columns: 213px 400px;
  gap: 0;
  padding: 28px 32px 24px;
  min-height: auto;
}
.nav-mega-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mega-product {
  display: block;
  padding: 8px 16px;
  font-size: 18px;
  font-weight: 600;
  line-height: 40px;
  color: rgba(34, 30, 31, 0.6);
  border-radius: 8px;
}
.nav-mega-product:hover,
.nav-mega-product.active {
  background: rgba(34, 30, 31, 0.03);
  color: var(--black);
}
.nav-mega-tools {
  padding-top: 4px;
}
.nav-mega-start {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 20px;
  font-weight: 600;
  line-height: 40px;
  margin-bottom: 8px;
}
.nav-mega-inner--tools-featured .nav-mega-tools-label {
  color: #808080;
}
.nav-mega-inner--tools-featured .nav-mega-featured-body h3 {
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0;
}
.nav-mega-inner--tools-featured .nav-mega-featured-desc {
  font-weight: 400;
  color: var(--black);
}
.nav-mega-tools-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 8px;
}
.nav-mega-tool {
  display: block;
  font-size: 22px;
  font-weight: 400;
  line-height: 48px;
  color: var(--black);
}
.nav-mega-featured {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nav-mega-featured-image {
  border-radius: 16px;
  overflow: hidden;
  background: var(--mortgage-payment-bg);
  height: 280px;
}
.nav-mega-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-mega-featured-body h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 40px;
  margin-bottom: 8px;
}
.nav-mega-featured-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 40px;
  color: rgba(34, 30, 31, 0.6);
  margin-bottom: 16px;
}
.nav-content { position: relative; }
.nav-dropdown { position: relative; display: flex; align-items: baseline; z-index: 20; }
.nav-link-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}
.nav-link-dropdown svg { width: 16px; height: 8px; flex-shrink: 0; stroke: var(--gray); stroke-width: 2; fill: none; transition: transform 0.2s; }
.nav-dropdown.open .nav-link-dropdown svg { transform: rotate(180deg); }
.nav-dropdown[data-simple-dropdown].open .nav-link-dropdown svg,
.nav-dropdown[data-simple-dropdown].hover .nav-link-dropdown svg {
  transform: none;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 148px;
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 1200;
  max-height: min(70vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
}
.nav-dropdown-menu-wide {
  left: auto;
  right: 0;
  transform: none;
  min-width: 320px;
  max-width: min(420px, 90vw);
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-item {
  display: block;
  padding: 12px 20px;
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-dropdown-menu-wide .nav-dropdown-item {
  font-size: 18px;
  font-weight: 500;
  white-space: normal;
  line-height: 1.35;
}
.nav-dropdown-item:hover { background: var(--input-bg); color: var(--black); }
.nav-dropdown--simple .nav-dropdown-menu {
  min-width: 180px;
  top: 100%;
  border: none;
  border-radius: 16px;
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 12px 0 8px;
  overflow: visible;
}
.nav-dropdown--simple .nav-dropdown-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 16px;
}
.nav-dropdown--simple .nav-dropdown-item {
  padding: 12px 22px;
  font-size: 18px;
  font-weight: 600;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  margin-left: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== BANNER ========== */
.banner-section {
  padding: 40px 0 0;
  overflow: visible;
  background: transparent;
}
.banner-carousel {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 560px;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
}
.banner-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.banner-card {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  will-change: transform;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform-origin: center center;
  backface-visibility: hidden;
}
.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}
.banner-copy {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: visible;
}
.banner-copy-taglines {
  position: absolute;
  left: 50%;
  /* Orbit apex y=80 + half card 85 + 80px gap */
  top: 245px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(920px, 92%);
  text-align: center;
}
.banner-copy-static {
  position: static;
  width: auto;
  text-align: center;
  overflow: visible;
}
.banner-copy-rotating {
  position: static;
  width: 100%;
  transform: none;
  text-align: center;
  overflow: visible;
}
.banner-copy-rotating .tagline-rotating {
  overflow: hidden;
}
.banner-copy-rotating .tagline-rotating-viewport {
  height: auto;
  min-height: 56px;
  overflow: hidden;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.banner-copy-rotating .tagline-rotating-item {
  text-align: center;
}
.banner-copy-rotating .highlight { color: inherit; }

.banner-edge-fade {
  position: relative;
  max-width: 1400px;
  height: 100px;
  margin: -138px auto 0;
  z-index: 8;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 45%,
    rgba(255, 255, 255, 0.5) 75%,
    rgba(255, 255, 255, 0.92) 100%
  );
  mask-image: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.6) 70%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.6) 70%, #000 100%);
}
.banner-dots {
  display: none;
}

/* ========== QUICK ENTRY ========== */
.quick-entry-section {
  position: relative;
  z-index: 10;
  margin-top: -162px;
  padding: 56px 0 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.95) 60px, #fff 140px, #fff 100%);
}
.quick-entry-section::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 0;
  right: 0;
  height: 150px;
  pointer-events: none;
  z-index: 0;
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.12) 25%,
    rgba(255, 255, 255, 0.55) 55%,
    rgba(255, 255, 255, 0.92) 85%,
    rgba(255, 255, 255, 1) 100%
  );
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 20%, rgba(0, 0, 0, 0.65) 50%, #000 80%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 20%, rgba(0, 0, 0, 0.65) 50%, #000 80%);
}
.quick-entry-section::after {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 48px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
.quick-entry-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quick-entry-panel {
  width: 100%;
  max-width: 588px;
  text-align: center;
}
.quick-entry-details {
  width: 100%;
  max-width: 1160px;
  align-self: stretch;
  text-align: left;
}
.quick-entry-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.quick-option-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 588px;
}
.quick-option-row .option-pill {
  flex: 1;
  max-width: 500px;
  margin: 0 auto;
}
.option-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 588px;
  height: 64px;
  padding: 0 24px;
  background: var(--input-bg);
  border: 1px solid var(--black);
  border-radius: 100px;
  font-size: 24px;
  line-height: 36px;
  color: var(--black);
  cursor: pointer;
  transition: transform 0.25s;
}
.option-pill-sm {
  max-width: 100%;
  height: 64px;
}
.option-pill:not(.quick-option).selected,
.purpose-pill.selected,
.option-pill-sm.selected {
  background: var(--input-bg);
}
.purpose-pill .indicator-double,
.option-pill-sm .indicator-double { display: none; }
.purpose-pill.selected .indicator-single,
.option-pill-sm.selected .indicator-single { display: none; }
.purpose-pill.selected .indicator-double,
.option-pill-sm.selected .indicator-double { display: block; }
.purpose-pill,
.option-pill-sm.has-indicator {
  justify-content: space-between;
}
.quick-option.selected {
  background: var(--input-bg);
}
.quick-option .indicator-double { display: none; }
.quick-option.selected .indicator-single { display: none; }
.quick-option.selected .indicator-double { display: block; }
.option-indicator { flex-shrink: 0; }
.option-submit-external {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.2s;
}
.option-submit-external:hover { transform: scale(1.05); }
.option-submit-external img { display: block; width: 64px; height: 64px; }
.quick-entry-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: max-height 0.65s ease, opacity 0.5s ease, transform 0.55s ease, margin 0.5s ease;
  margin-top: 0;
}
.quick-entry-details.visible {
  max-height: none;
  overflow: visible;
  opacity: 1;
  transform: translateY(0);
  margin-top: 40px;
}
.quick-form-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 72px 48px;
  width: 100%;
  max-width: 660px;
  margin: 0 auto 40px;
  overflow: visible;
}
.quick-form-panel.active {
  display: grid;
}
.quick-form-col {
  min-width: 0;
  overflow: visible;
}
.purpose-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.purpose-pill { max-width: 500px; }
.quick-form-footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 660px;
  margin: 0 auto 32px;
}
.quick-form-footer-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px 48px;
}
.quick-entry-details .form-label,
.quick-entry-details .slider-label {
  font-size: 28px;
  line-height: 36px;
}
.section-title-lg {
  font-size: 40px;
  font-weight: 600;
  line-height: 50px;
  letter-spacing: -0.0038em;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 40px;
  font-weight: 600;
  line-height: 50px;
  margin-bottom: 16px;
}
.form-input-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 500px;
  height: 64px;
  padding: 0 24px;
  background: var(--input-bg);
  border: 1px solid var(--black);
  border-radius: 100px;
}
.form-input-wrap .prefix {
  font-size: 24px;
  color: var(--gray);
  margin-right: 8px;
}
.form-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 24px;
  color: var(--black);
  outline: none;
  min-width: 0;
}
.form-input::placeholder { color: var(--gray); }
.date-picker {
  position: relative;
  width: 100%;
  max-width: 500px;
  z-index: 5;
}
.date-picker.is-open {
  z-index: 50;
}
.date-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 72px;
  height: 72px;
  padding: 0 28px;
  background: var(--input-bg);
  border: 1px solid var(--black);
  border-radius: 100px;
  font-family: inherit;
  font-size: 24px;
  line-height: 1.2;
  color: var(--black);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.date-picker-trigger:hover,
.date-picker.is-open .date-picker-trigger {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(255, 219, 49, 0.35);
}
.date-picker-value {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.date-picker-value.is-placeholder {
  color: var(--gray);
}
.date-picker-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--black);
}
.date-picker-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 60;
  width: 500px;
  min-width: 500px;
  box-sizing: border-box;
  padding: 20px 18px 18px;
  background: var(--white);
  border: 1px solid #E5E5E5;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}
.date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
}
.date-picker-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--black);
}
.date-picker-nav {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--input-bg);
  color: var(--black);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.date-picker-nav:hover {
  background: var(--yellow);
  transform: scale(1.04);
}
.date-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}
.date-picker-weekdays span {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #8A8A8A;
  line-height: 28px;
}
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.date-picker-day {
  aspect-ratio: 1;
  min-height: 40px;
  height: auto;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--black);
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.date-picker-day:hover:not(:disabled):not(.is-selected) {
  background: #F5F5F5;
}
.date-picker-day.is-outside {
  color: #C4C4C4;
}
.date-picker-day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1.5px var(--yellow);
}
.date-picker-day.is-selected {
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
}
.date-picker-day:disabled {
  color: #D0D0D0;
  cursor: not-allowed;
}
.form-row-2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 500px;
}
.form-row-2 .option-pill-sm {
  width: 100%;
  max-width: 100%;
}
.phone-row {
  display: flex;
  gap: 16px;
  max-width: 588px;
}
.phone-row .form-input-wrap { flex: 1; max-width: 344px; }
.btn-verify {
  height: 64px;
  min-width: 140px;
  padding: 0 33px;
  background: var(--yellow-grad);
  border: 1px solid var(--black);
  border-radius: 34px;
  font-size: 24px;
  color: var(--black);
  white-space: nowrap;
}
.checkbox-group { margin-top: 8px; max-width: 1160px; }
.checkbox-item {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.checkbox-item input[type="checkbox"],
.apply-check-row input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--yellow);
  border-radius: 4px;
}
.checkbox-item label {
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.0094em;
}
.checkbox-item label .link { color: var(--green); font-weight: 500; }
.checkbox-item.marketing label { line-height: 28px; font-weight: 500; }
.mortgage-valuation-form .checkbox-item {
  align-items: center;
}
.mortgage-valuation-form .checkbox-item input[type="checkbox"] {
  margin-top: 0;
}
@media (max-width: 768px) {
  .quick-form-panel,
  .quick-form-footer-fields { grid-template-columns: 1fr; gap: 24px; }
  .phone-row { flex-direction: column; }
  .phone-row .form-input-wrap { max-width: 100%; }
  .section-title-lg, .form-label { font-size: 28px; line-height: 36px; }
  .option-pill, .form-input { font-size: 18px; }
}

/* ========== CALCULATOR ========== */
.calculator-section {
  padding: 80px 0;
  background: var(--calc-bg);
}
.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 32px;
  align-items: start;
}
.calculator-tagline { margin-bottom: 40px; }
.calculator-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
}
.calculator-card h2 {
  font-size: 42px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.0074em;
}
.calculator-card h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.0112em;
  margin-bottom: 8px;
}
.calculator-desc {
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.0174em;
  margin: 24px 0 32px;
}
.slider-group { margin-bottom: 32px; }
.slider-label {
  font-size: 18px;
  color: var(--gray);
  line-height: 20px;
  margin-bottom: 8px;
}
.slider-input-row {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid #CCCCCC;
  border-radius: 100px;
  background: var(--white);
  margin-bottom: 8px;
}
.slider-input-row .prefix { font-size: 20px; color: var(--gray); margin-right: auto; }
.slider-input-row .value { font-size: 20px; font-weight: 600; }
.slider-input-row .suffix { font-size: 18px; color: var(--gray); margin-left: 4px; }
.slider-value-input {
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  text-align: right;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}
.slider-value-input--rate {
  margin-left: auto;
  width: auto;
  max-width: 5em;
  flex: 0 1 auto;
}
.slider-value-input::-webkit-outer-spin-button,
.slider-value-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Figma circular slider with house thumb */
.figma-slider {
  position: relative;
  height: 50px;
  margin: 4px 0 8px;
}
.figma-slider-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 50px;
  pointer-events: none;
}
.figma-slider-track-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;
  height: 10px;
  background: #F5F5F5;
  border-radius: 5px;
}
.figma-slider-track-fill {
  position: absolute;
  left: 0;
  top: 20px;
  height: 10px;
  width: 50%;
  background: var(--yellow);
  border-radius: 5px;
  transition: width 0.05s linear;
}
.figma-slider-thumb {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50px;
  height: 50px;
  margin-left: -25px;
  background: url('../assets/images/slider-track-1.svg') no-repeat;
  background-size: 800px 50px;
  background-position: -545px 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
  pointer-events: none;
  transition: left 0.05s linear, transform 0.2s ease;
  transform-origin: center center;
}
.figma-slider:hover .figma-slider-thumb,
.figma-slider:focus-within .figma-slider-thumb {
  transform: scale(1.18);
}
.figma-slider-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 50px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.slider-minmax {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  color: var(--gray);
  line-height: 16px;
}
.select-input-row {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid #CCCCCC;
  border-radius: 100px;
  background: var(--white);
}
.select-input-row select {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 20px;
  font-weight: 600;
  outline: none;
  appearance: none;
}
.select-input-row svg { width: 16px; height: 8px; stroke: var(--gray); fill: none; }

.calculator-sidebar {}
.result-card {
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--yellow);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.result-card:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}
.result-card.active { background: var(--yellow); }
.result-card:not(.active) { background: var(--white); }
.result-card h4 {
  font-size: 36px;
  font-weight: 600;
  line-height: 50px;
  margin-bottom: 8px;
}
.result-card.active h4 { color: var(--black); }
.result-card:not(.active) h4 { color: #5F5F5F; }
.result-card p { font-size: 24px; font-weight: 600; line-height: 50px; }
.result-amount {
  font-size: 48px;
  font-weight: 600;
  line-height: 50px;
  margin-top: 16px;
}
.calculator-notes {
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 16px;
}
.calculator-notes li { margin-bottom: 8px; padding-left: 8px; }
.calculator-disclaimer {
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 24px;
}
.calculator-sidebar .btn-primary { width: 100%; }

/* ========== MORTGAGE HELPER ========== */
.mortgage-helper-section {
  background: var(--white);
}
.mortgage-helper {
  position: relative;
}
.section-header-row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 28px;
  align-items: end;
  margin-bottom: 48px;
}
.section-header-row.mortgage-helper-header {
  margin-bottom: 24px;
}
.section-header-row .mortgage-helper-title,
.section-header-row .section-title {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  align-self: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.section-header-row .tagline-static {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin-bottom: 0;
  text-align: right;
}
.section-header-row .tagline-rotating {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  text-align: right;
  width: min(1020px, 68vw);
  font-size: clamp(36px, 3.8vw, 56px);
  overflow: hidden;
}
.section-header-row .tagline-rotating-viewport {
  overflow: hidden;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: 0;
}
.section-header-row .tagline-rotating-item {
  text-align: right;
}
.mortgage-helper-title {
  font-size: 42px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.0074em;
}
.mortgage-helper-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 0;
}
.mortgage-helper-tab {
  min-width: 180px;
  padding: 16px 32px;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--black);
  border: none;
  border-radius: 16px 16px 0 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mortgage-helper-tab[data-tab="payment"] {
  background: var(--mortgage-payment-bg);
}
.mortgage-helper-tab[data-tab="affordability"] {
  background: var(--mortgage-afford-bg);
}
.mortgage-helper-tab[data-tab="valuation"] {
  background: var(--mortgage-valuation-bg);
}
.mortgage-helper-tab.active {
  color: var(--black);
}
.mortgage-helper-panels {
  position: relative;
  border-radius: 0 16px 16px 16px;
  overflow: hidden;
}
.mortgage-helper-panel {
  display: none;
  position: relative;
  border-radius: 0;
  padding: 40px 32px;
}
.mortgage-helper-panel.active {
  display: block;
}
.mortgage-helper-panel--payment {
  background: var(--mortgage-payment-bg);
}
.mortgage-helper-panel--affordability {
  background: var(--mortgage-afford-bg);
}
.mortgage-helper-panel--affordability.active,
.mortgage-helper-panel--valuation.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mortgage-helper .figma-slider-track-bg {
  background: #D9D9D9;
}
.mortgage-helper .slider-input-row,
.mortgage-helper .select-input-row,
.mortgage-helper .figma-slider,
.mortgage-affordability-form .form-input-wrap,
.mortgage-valuation-form .form-input-wrap {
  width: 100%;
  max-width: var(--mortgage-input-width);
}
.mortgage-affordability-form {
  width: 100%;
  max-width: var(--mortgage-input-width);
  margin: 0 auto;
}
.mortgage-affordability-form .form-label {
  font-size: 18px;
  font-weight: 400;
  line-height: 20px;
  color: var(--gray);
  margin-bottom: 8px;
}
.mortgage-affordability-form .form-input-wrap {
  max-width: 100%;
  width: 100%;
  height: 48px;
  background: var(--white);
  border: 1px solid #CCCCCC;
  border-radius: 100px;
}
.mortgage-affordability-form .form-input {
  font-size: 20px;
}
.mortgage-affordability-submit {
  width: 100%;
  margin-top: 16px;
  letter-spacing: 0.08em;
}
.mortgage-valuation-form {
  width: 100%;
  max-width: var(--mortgage-input-width);
  margin: 0 auto;
}
.mortgage-valuation-form .form-label {
  font-size: 18px;
  font-weight: 400;
  line-height: 20px;
  color: var(--gray);
  margin-bottom: 8px;
}
.mortgage-valuation-form .form-input-wrap {
  max-width: 100%;
  width: 100%;
  height: 48px;
  background: var(--white);
  border: 1px solid #CCCCCC;
  border-radius: 100px;
}
.mortgage-valuation-form .form-input {
  font-size: 20px;
}
.mortgage-valuation-form .checkbox-group {
  margin-top: 16px;
  max-width: 100%;
}
.mortgage-helper-panel--valuation {
  background: var(--mortgage-valuation-bg);
}
.mortgage-valuation-terms {
  margin: 24px 0;
}
.mortgage-valuation-terms-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.mortgage-valuation-terms-text {
  font-size: 14px;
  line-height: 22px;
  color: var(--gray);
  margin-bottom: 16px;
  white-space: pre-line;
}
.mortgage-valuation-submit {
  width: 100%;
  max-width: var(--mortgage-input-width);
  margin-top: 16px;
  align-self: stretch;
  letter-spacing: 0.08em;
}
.mortgage-helper-panel--payment .calculator-sidebar .result-card {
  border-radius: 999px;
  padding: 28px 32px;
  margin-bottom: 0;
  border: 1px solid var(--yellow);
}
.mortgage-helper-panel--payment .calculator-sidebar .result-card-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}
.mortgage-helper-panel--payment .calculator-sidebar .result-card-text {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0 8px;
}
.mortgage-helper-panel--payment .calculator-sidebar .result-card.active {
  background: var(--yellow-grad);
  border-color: var(--yellow);
}
.mortgage-helper-panel--payment .calculator-sidebar .result-card:not(.active) {
  background: var(--white);
  border-color: var(--yellow);
}
.mortgage-helper-panel--payment .calculator-sidebar .result-card h4 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 4px;
  text-align: center;
}
.mortgage-helper-panel--payment .calculator-sidebar .result-card.active h4,
.mortgage-helper-panel--payment .calculator-sidebar .result-card.active p,
.mortgage-helper-panel--payment .calculator-sidebar .result-card.active .result-amount {
  color: var(--black);
}
.mortgage-helper-panel--payment .calculator-sidebar .result-card:not(.active) h4,
.mortgage-helper-panel--payment .calculator-sidebar .result-card:not(.active) p,
.mortgage-helper-panel--payment .calculator-sidebar .result-card:not(.active) .result-amount {
  color: #5F5F5F;
}
.mortgage-helper-panel--payment .calculator-sidebar .result-card p {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  text-align: center;
}
.mortgage-helper-panel--payment .calculator-sidebar .result-amount {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  margin-top: 8px;
  text-align: center;
}
.mortgage-helper-panel--payment .result-card-radio {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid var(--black);
  background: var(--white);
  flex-shrink: 0;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
}
.mortgage-helper-panel--payment .result-card.active .result-card-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--black);
  border-radius: 50%;
}
.mortgage-helper-panel--payment .result-card-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mortgage-helper-panel--payment .result-card-group .result-card {
  width: 100%;
}
.mortgage-helper-panel--payment .result-card-group + .result-card-group {
  margin-top: 8px;
}
.mortgage-helper-panel--payment .result-card-note {
  font-size: 16px;
  line-height: 22px;
  margin: 16px 0 32px;
  padding: 0 24px;
  color: var(--gray-light);
  white-space: pre-line;
  text-align: center;
  width: 100%;
}
.mortgage-helper-panel--payment .result-card-group:has(.result-card.active) .result-card-note {
  color: var(--black);
}
.mortgage-helper-panel--payment .mortgage-payment-submit {
  width: 100%;
  margin-bottom: 16px;
}
.mortgage-helper-panel--payment .calculator-card {
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.nav-mega-panel.nav-mega-panel--all-products {
  width: 1078px;
  max-width: min(1078px, 96vw);
}
.nav-mega-inner--all-products {
  grid-template-columns: 270px 282px 400px;
  gap: 0;
  padding: 24px 22px;
  min-height: 758px;
}
.nav-mega-sidebar--all {
  gap: 0;
  max-height: 710px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 30, 31, 0.2) transparent;
}
.nav-mega-sidebar--all::-webkit-scrollbar {
  width: 4px;
}
.nav-mega-sidebar--all::-webkit-scrollbar-thumb {
  background: rgba(34, 30, 31, 0.2);
  border-radius: 2px;
}
.nav-mega-inner--all-products .nav-mega-product {
  font-size: 20px;
  font-weight: 600;
  line-height: 48px;
  padding: 2px 16px;
  margin: 0 8px;
  color: var(--black);
  border-bottom: 1px solid #D9D9D9;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-mega-inner--all-products .nav-mega-product:last-child {
  border-bottom: none;
}
.nav-mega-inner--all-products .nav-mega-product:hover,
.nav-mega-inner--all-products .nav-mega-product.active {
  background: rgba(34, 30, 31, 0.03);
  color: var(--black);
}
.nav-mega-inner--all-products .nav-mega-tools {
  padding: 4px 0 0 32px;
}
.nav-mega-inner--all-products .nav-mega-tools-label {
  color: #808080;
}
.nav-mega-inner--all-products .nav-mega-featured-body h3 {
  font-weight: 600;
  color: var(--black);
}
.nav-mega-inner--all-products .nav-mega-featured-desc {
  font-weight: 400;
  color: var(--black);
}
.nav-mega-inner--no-tools {
  grid-template-columns: 270px 1fr;
}
.nav-dropdown.hover .nav-link-badge-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--yellow);
  border-radius: 20px 20px 0 0;
}
.quick-form-panel--stacked {
  display: none;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 660px;
  margin: 0 auto 40px;
}
.quick-form-panel--stacked.active {
  display: flex;
}
.quick-form-panel--stacked .slider-label,
.quick-form-panel--stacked .form-label {
  display: block;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  margin-bottom: 12px;
  color: var(--black);
}
.quick-form-panel--stacked .slider-input-row {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: 56px;
  padding: 0 20px;
  background: var(--input-bg);
  border: 1px solid var(--black);
  border-radius: 100px;
  margin-bottom: 8px;
}
.quick-form-panel--stacked .slider-input-row .prefix {
  font-size: 20px;
  color: var(--gray);
  margin-right: auto;
}
.quick-form-panel--stacked .slider-input-row .value,
.quick-form-panel--stacked .slider-value-input {
  font-size: 20px;
  font-weight: 400;
  color: var(--black);
}
.quick-form-panel--stacked .form-input-wrap {
  max-width: 100%;
  width: 100%;
  height: 56px;
  padding: 0 20px;
}
.quick-form-panel--stacked .form-input {
  font-size: 20px;
}
.quick-form-panel--stacked .quick-form-inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}
.quick-form-panel--stacked .quick-form-inline-fields .form-group {
  width: 100%;
  margin-bottom: 0;
}
.quick-reduce-submit,
.quick-cash-submit {
  width: 100%;
  max-width: 100%;
  height: 48px;
  margin-top: 8px;
  padding: 0 24px;
  font-size: 16px;
  letter-spacing: 0.08em;
}

/* ========== PRODUCTS ========== */
.products-section {
  padding: 40px 0 80px;
}
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  flex-wrap: nowrap;
  gap: 24px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 48px;
  align-items: stretch;
}
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.product-card-image {
  flex-shrink: 0;
  height: auto;
  background: #D9D9D9;
  overflow: hidden;
  position: relative;
  border-radius: 16px 16px 0 0;
}
.product-card-image img.product-card-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
}
.product-card-logo {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}
.product-card-body {
  background: var(--card-dark);
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  border-radius: 0 0 16px 16px;
}
.product-card-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 56px;
  color: var(--yellow);
  margin-bottom: 8px;
}
.product-card-desc {
  font-size: 22px;
  line-height: 38px;
  color: var(--white);
  flex: 1;
  white-space: pre-line;
}
.product-card .btn-primary {
  margin-top: auto;
  width: 100%;
}

/* ========== HELPER ========== */
.helper-section {
  padding: 80px 0;
  background: linear-gradient(var(--helper-bg), var(--helper-bg)), var(--white);
  position: relative;
}
.helper-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--helper-bg);
  z-index: 0;
}
.helper-section .container { position: relative; z-index: 1; }
.helper-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: nowrap;
  gap: 24px;
}
.helper-header .section-title {
  flex-shrink: 0;
}
.section-title {
  font-size: 56px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.0056em;
}
.helper-desc {
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.0174em;
  max-width: 1400px;
  margin-bottom: 48px;
}
.helper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.helper-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 0 16px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 392px;
}
.helper-card-icon {
  width: 80px;
  height: 80px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.helper-card-icon img {
  width: 80px;
  height: auto;
  display: block;
}
.helper-card h3 {
  font-size: 32px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.0098em;
  margin-bottom: 16px;
}
.helper-card p {
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.0174em;
  margin-bottom: auto;
  padding-bottom: 24px;
}
.helper-card .btn-primary { width: 100%; max-width: 387px; margin-top: auto; }

/* ========== VIDEO ========== */
.video-section {
  padding: 48px 0;
}
.video-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 562px;
  gap: 48px;
  align-items: center;
}
.video-content {
  padding-left: 72px;
  display: flex;
  justify-content: center;
}
.video-brand {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 720px;
}
.video-brand-image {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.video-brand-title {
  width: 100%;
  max-width: 560px;
  margin: 0;
  font-family: var(--font-secondary);
  font-size: clamp(44px, 4.5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
}
.video-brand-title-dark {
  color: var(--black);
}
.video-brand-title-accent {
  color: var(--yellow);
}
/* 「Why agicredit?」個 credit? 字用漸變黃（同立即申請掣一致） */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .video-brand-title-accent {
    background: var(--yellow-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.video-brand-graphic {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.video-player {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 562/700;
}
.video-player video,
.video-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-player video { display: block; }
.video-player img { display: none; }
.video-player video:fullscreen,
.video-player video:-webkit-full-screen {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* ========== CASES ========== */
.cases-section {
  padding: 80px 0;
  background: var(--cases-bg);
  position: relative;
}
.cases-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(237, 242, 255, 0.5);
}
.cases-section .container { position: relative; z-index: 1; }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  align-items: stretch;
}
.case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(0,0,0,0.2);
}
.case-card-image {
  flex-shrink: 0;
  height: 240px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}
.case-card-image img { width: 100%; height: 100%; object-fit: cover; }
.case-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.case-card-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 40px;
  margin-bottom: 8px;
}
.case-card-title-line {
  display: block;
  white-space: nowrap;
}
.case-card-author {
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
  margin-bottom: 16px;
}
.case-card-text {
  font-size: 16px;
  line-height: 28px;
  flex: 1;
  margin-bottom: 24px;
}
.case-card .btn-primary {
  margin-top: auto;
  width: 100%;
  border: 1px solid var(--black);
}

/* ========== FAQ ========== */
.faq-section {
  padding: 80px 0;
  background: var(--white);
}
.faq-list { max-width: 1400px; }
.faq-item {
  background: var(--faq-item-bg);
  border-radius: 8px;
  margin-bottom: 32px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  gap: 16px;
}
.faq-toggle {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background: var(--black);
  transition: transform 0.3s;
}
.faq-toggle::before {
  width: 18px;
  height: 2px;
  top: 8px;
  left: 0;
  border-radius: 90px;
}
.faq-toggle::after {
  width: 2px;
  height: 18px;
  top: 0;
  left: 8px;
  border-radius: 90px;
}
.faq-item.open .faq-toggle::after { transform: rotate(90deg); opacity: 0; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s;
  padding: 0 32px;
  font-size: 18px;
  line-height: 1.6;
  background: var(--faq-item-bg);
}
.faq-item.open .faq-answer {
  max-height: 480px;
  padding: 0 32px 24px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 80px 0 40px;
}
.footer-logo img {
  width: 152px;
  margin-bottom: 40px;
  filter: brightness(0) invert(1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}
.footer-col h4 {
  font-family: var(--font-secondary);
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.0183em;
  margin-bottom: 16px;
}
.footer-col h4.extra-bold { font-weight: 800; }
.footer-col p, .footer-col a {
  font-family: var(--font-secondary);
  font-size: 18px;
  line-height: 30px;
  letter-spacing: -0.0084em;
  white-space: pre-line;
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--yellow); }
.footer-col a.footer-social-link:hover { color: inherit; }
.footer-phone img { height: 18px; margin: 8px 0 16px; }
.footer-address-label {
  font-family: var(--font-secondary);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.0084em;
  color: var(--white);
  margin: 16px 0 4px;
}
.footer-address {
  display: block;
  font-family: var(--font-secondary);
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  line-height: 28px;
  letter-spacing: -0.0084em;
  color: var(--white);
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}
.footer-address span {
  display: block;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 70px;
  margin-bottom: 8px;
  margin-left: 0;
  position: relative;
  z-index: 2;
}
.footer-col a.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  overflow: visible;
  border-radius: 50%;
  background: transparent;
  margin-bottom: 0;
  white-space: normal;
  line-height: 0;
  z-index: 1;
}
.footer-col a.footer-social-link::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: -1;
}
.footer-col a.footer-social-link:hover::before,
.footer-col a.footer-social-link:focus-visible::before {
  opacity: 1;
}
.footer-col a.footer-social-link:hover {
  background: transparent;
  transform: none;
  opacity: 1;
  color: inherit;
}
.footer-social-link img {
  display: block;
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.footer-social-link--xhs img {
  width: 50px;
  height: 50px;
  max-height: none;
  object-fit: contain;
  mix-blend-mode: screen;
}
.footer-col--tools-legal {
  min-width: 0;
}
.footer-tools-legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.footer-subcol h4 {
  font-family: var(--font-secondary);
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.0183em;
  margin-bottom: 16px;
}
.footer-notes {
  font-family: var(--font-secondary);
  font-size: 18px;
  line-height: 30px;
  letter-spacing: -0.0084em;
  color: var(--white);
  white-space: pre-line;
  overflow: visible;
  margin-top: 24px;
  max-width: none;
}
.footer-warning {
  font-family: var(--font-secondary);
  font-size: clamp(20px, 4.2vw, 72px);
  line-height: 1.15;
  text-align: center;
  letter-spacing: -0.0015em;
  margin: 48px 0 24px;
  white-space: pre-line;
}
.footer-complaint {
  font-family: var(--font-secondary);
  font-size: 40px;
  line-height: 70px;
  text-align: center;
  letter-spacing: -0.0038em;
}

/* ========== FLOAT BUTTONS ========== */
.float-actions {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.float-btn {
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 219, 49, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s;
  color: var(--black);
  flex-shrink: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.float-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.float-btn:hover { transform: translateY(-2px); }
.float-btn svg { width: 24px; height: 24px; stroke-width: 2.5; }
.float-actions.on-dark .float-btn {
  color: #fff;
}
.float-phone {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.float-phone img { width: 100%; height: 100%; object-fit: contain; }

/* ========== FRAUD NOTICE BAR (HOME) ========== */
.fraud-notice {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(900px, calc(100vw - 32px));
  z-index: 980;
  display: none;
  flex-direction: column;
  align-items: stretch;
  pointer-events: none;
}
.fraud-notice.is-visible {
  display: flex;
}
.fraud-notice.is-hidden {
  display: none !important;
}
.fraud-notice-bar,
.fraud-notice-panel {
  pointer-events: auto;
}
.fraud-notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: 56px;
  padding: 0 8px 0 20px;
  background: #FEFBEF;
  color: var(--black);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}
.fraud-notice.is-open .fraud-notice-bar {
  border-radius: 8px 8px 0 0;
  box-shadow: none;
}
.fraud-notice-toggle {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 100%;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}
.fraud-notice-toggle span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fraud-notice-chevron {
  width: 14px;
  height: 8px;
  flex-shrink: 0;
  stroke: var(--black);
  stroke-width: 2;
  fill: none;
  transition: transform 0.25s ease;
}
.fraud-notice.is-open .fraud-notice-chevron {
  transform: rotate(180deg);
}
.fraud-notice-close {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--black);
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fraud-notice-close:hover {
  background: rgba(34, 30, 31, 0.06);
}
.fraud-notice-panel {
  background: #FEFBEF;
  color: var(--black);
  border-radius: 0;
  box-shadow: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.fraud-notice.is-open .fraud-notice-panel {
  max-height: 420px;
}
.fraud-notice.is-open {
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}
.fraud-notice-body {
  padding: 4px 24px 20px;
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.7;
}
.fraud-notice-body p {
  margin: 0 0 10px;
}
.fraud-notice-body ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}
.fraud-notice-body li {
  margin-bottom: 6px;
}
.fraud-notice-signoff {
  margin-top: 8px !important;
  font-weight: 600;
}

@media (max-width: 768px) {
  .fraud-notice {
    bottom: 0;
    width: min(900px, 100vw);
  }
  .fraud-notice-bar {
    height: 52px;
    padding-left: 14px;
    border-radius: 0;
  }
  .fraud-notice.is-open {
    border-radius: 0;
  }
  .fraud-notice-toggle {
    font-size: 15px;
  }
  .fraud-notice-body {
    padding: 16px 16px 12px;
    font-size: 14px;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1400px) {
  .banner-copy-taglines { top: 245px; }
}

@media (max-width: 1200px) {
  .calculator-layout { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .helper-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .footer-col--tools-legal { grid-column: 1 / -1; }
  .footer-warning { font-size: clamp(18px, 5vw, 48px); }
  .video-layout { grid-template-columns: 1fr; }
  .video-content { padding-left: 0; }
  .tagline-rotating { font-size: 40px; }
  .tagline-rotating-item { line-height: 1.15; }
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 12px 16px;
    min-height: auto;
  }
  .container,
  .quick-entry-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .nav-main-row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
    gap: 0 12px;
  }
  .nav-logo {
    width: 120px;
    grid-row: 1;
  }
  .nav-content {
    display: contents;
  }
  .nav-right {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-top: 0;
    margin-bottom: 0;
    align-items: flex-end;
  }
  .nav-right-top {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    width: auto;
  }
  .nav-top-cluster {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    align-items: stretch;
    gap: 8px;
  }
  .nav-apply-stack {
    width: 100%;
    align-items: stretch;
    gap: 0;
  }
  .nav-phone-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 18px;
    gap: 8px;
  }
  .nav-phone-whatsapp {
    width: 20px;
    height: 20px;
  }
  .nav-new-badge { display: none; }
  .menu-toggle {
    display: inline-flex;
    margin-left: 0;
    margin-top: 6px;
  }
  .nav-bottom {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    margin-top: 8px;
    padding: 12px 4px 16px;
    overflow-x: visible;
    white-space: normal;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(34, 30, 31, 0.08);
    box-shadow: 0 12px 32px rgba(34, 30, 31, 0.08);
  }
  .nav-bottom.open {
    display: flex;
    max-height: min(72vh, calc(100dvh - 128px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 30, 31, 0.35) transparent;
  }
  .nav-bottom.open::-webkit-scrollbar {
    width: 5px;
  }
  .nav-bottom.open::-webkit-scrollbar-thumb {
    background: rgba(34, 30, 31, 0.3);
    border-radius: 3px;
  }
  .nav-bottom .nav-link,
  .nav-bottom .nav-dropdown {
    width: 100%;
  }
  .nav-bottom .nav-link {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 14px 12px;
    font-size: 16px;
    border-radius: 10px;
  }
  .nav-bottom .nav-dropdown > .nav-link {
    background: transparent;
  }
  .nav-dropdown--simple .nav-dropdown-menu {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    margin: 0 0 4px;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    max-height: none;
  }
  .nav-dropdown--simple.open .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown--simple .nav-dropdown-item {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
  }
  .nav-link { white-space: normal; }
  .lang-switch { font-size: 16px; padding-top: 0; gap: 0; }
  .nav-apply-btn { min-width: auto; font-size: 14px; padding: 0 14px; height: 40px; margin-left: 12px; }

  /* Mobile inline accordion mega menu */
  .nav-dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-dropdown.is-open > .nav-link {
    background: rgba(34, 30, 31, 0.04);
  }
  .nav-mega-panel.nav-mega-panel--mobile-inline {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 4px 0 8px;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid rgba(34, 30, 31, 0.08);
    background: #FAFAFA;
    z-index: 1;
    overflow: visible;
  }
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-inner,
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-inner--all-products,
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-inner--tools-featured,
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-inner--no-tools {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 12px;
    gap: 12px;
  }
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-sidebar,
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-sidebar--all {
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-product {
    white-space: normal;
    line-height: 1.35;
    padding: 12px 10px;
    margin: 0;
    border-bottom: 1px solid #E8E8E8;
    font-size: 15px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-product.active {
    background: rgba(255, 214, 0, 0.25);
  }
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-product-detail {
    padding: 12px 10px 16px;
    background: #fff;
    border-bottom: 1px solid #E8E8E8;
  }
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-product-detail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin-bottom: 10px;
  }
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-product-detail h4 {
    font-size: 16px;
    line-height: 1.35;
    margin: 0 0 8px;
  }
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-product-detail p {
    font-size: 14px;
    line-height: 1.5;
    color: #616263;
    margin: 0 0 12px;
  }
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-product-detail .btn-primary {
    width: 100%;
  }
  .nav-mega-panel.nav-mega-panel--mobile-inline.nav-mega-panel--all-products .nav-mega-featured {
    display: none;
  }
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-tools {
    padding: 8px 0 0;
  }
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-featured {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-featured-image {
    width: 100%;
    max-width: 100%;
  }
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-featured-body h3 {
    font-size: 18px;
    line-height: 1.35;
  }
  .nav-mega-panel.nav-mega-panel--mobile-inline .nav-mega-featured-desc {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Mobile banner: horizontal snap slider, taglines above cards */
  .banner-section {
    padding: 12px 0 0;
  }
  .banner-carousel {
    height: auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .banner-carousel.is-mobile-slider .banner-orbit {
    position: relative;
    inset: auto;
    display: flex;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px max(16px, calc((100% - 220px) / 2)) 20px;
    pointer-events: auto;
  }
  .banner-carousel.is-mobile-slider .banner-orbit::-webkit-scrollbar {
    display: none;
  }
  .banner-carousel.is-mobile-slider .banner-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    flex: 0 0 220px;
    width: 220px !important;
    height: 220px !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    scroll-snap-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    z-index: 1 !important;
  }
  .banner-carousel.is-mobile-slider .banner-copy {
    position: relative;
    inset: auto;
    order: -1;
    z-index: 2;
    padding: 4px 16px 8px;
  }
  .banner-carousel.is-mobile-slider .banner-copy-taglines {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .banner-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    padding: 0 16px 8px;
  }
  .banner-carousel.is-mobile-slider .banner-dots {
    display: flex;
  }
  .banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #D0D0D0;
    cursor: pointer;
  }
  .banner-dot.is-active {
    background: var(--black);
  }
  .banner-edge-fade {
    display: none;
  }
  .banner-copy-rotating .tagline-rotating-viewport {
    height: auto;
    min-height: 0;
  }
  .tagline-block-right {
    width: 100%;
    text-align: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }
  .tagline-block-right .tagline-static {
    text-align: center;
    white-space: normal;
    width: 100%;
  }
  .tagline-block-right .tagline-rotating,
  .tagline-block-right .tagline-rotating.right-align,
  .products-header .tagline-rotating {
    font-size: 22px !important;
    text-align: center;
    width: 100%;
  }
  .tagline-block-right .tagline-rotating-viewport {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .tagline-block-right .tagline-rotating-item {
    text-align: center;
    justify-content: center !important;
  }
  .banner-highlight { font-size: 24px; line-height: 32px; }
  .tagline-static {
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    margin-bottom: 10px;
  }
  .tagline-pill {
    min-height: 36px;
    padding: 6px 14px;
    white-space: normal;
    text-align: center;
  }
  .tagline-rotating {
    font-size: 22px;
    min-height: 0;
    text-align: center;
    width: 100%;
    overflow: visible;
  }
  .tagline-rotating.right-align,
  .tagline-rotating.left-align {
    text-align: center;
  }
  .tagline-rotating-item {
    line-height: 1.3;
    white-space: normal;
    text-align: center;
    justify-content: center !important;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 4px;
  }
  .tagline-rotating-viewport {
    height: auto;
    min-height: 0;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden;
  }

  /* Fix 你想 overlapping banner taglines */
  .quick-entry-section {
    margin-top: 0;
    padding: 28px 0 56px;
    z-index: 5;
  }
  .quick-entry-section::before,
  .quick-entry-section::after {
    display: none;
  }

  .quick-entry-intro { max-width: 100%; }
  .section-title-lg, .form-label { font-size: 28px; line-height: 36px; }
  .option-select-btn, .form-input { font-size: 18px; }
  .phone-row { flex-direction: column; }
  .phone-row .form-input-wrap { max-width: 100%; }

  .section-title { font-size: 32px; line-height: 40px; text-align: center; }
  .products-header, .helper-header, .section-header-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 12px;
    justify-items: center;
    text-align: center;
  }
  .section-header-row .mortgage-helper-title,
  .section-header-row .section-title {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    text-align: center;
    white-space: normal;
  }
  .section-header-row .tagline-static {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    text-align: center;
    width: 100%;
  }
  .section-header-row .tagline-rotating {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    text-align: center;
    width: 100%;
    font-size: 22px;
  }
  .section-header-row .tagline-rotating-viewport {
    margin-left: auto;
    margin-right: auto;
  }
  .section-header-row .tagline-rotating-item {
    text-align: center;
    justify-content: center !important;
  }
  .mortgage-helper-title {
    text-align: center;
  }
  .products-header {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .products-header > div:first-child {
    display: none;
  }
  .products-grid, .helper-grid, .cases-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-card-title { font-size: 24px; line-height: 40px; }
  .product-card-desc { font-size: 18px; line-height: 28px; }

  .calculator-card h2 { font-size: 28px; }
  .calculator-card h3 { font-size: 20px; }
  .result-amount { font-size: 36px; }

  .mortgage-helper-title { font-size: 28px; line-height: 36px; }
  .mortgage-helper-tabs {
    flex-wrap: nowrap;
    width: 100%;
    gap: 2px;
  }
  .mortgage-helper-tab {
    min-width: 0;
    flex: 1 1 0;
    padding: 10px 6px;
    font-size: 14px;
    line-height: 18px;
    white-space: nowrap;
    text-align: center;
  }
  .mortgage-affordability-form,
  .mortgage-valuation-form,
  .mortgage-helper .slider-input-row,
  .mortgage-helper .select-input-row,
  .mortgage-helper .figma-slider {
    max-width: 100%;
  }
  .quick-form-panel--stacked {
    max-width: 100%;
  }
  .quick-form-panel--stacked .slider-label,
  .quick-form-panel--stacked .form-label {
    font-size: 28px;
    line-height: 36px;
  }
  .quick-form-panel--stacked .quick-form-inline-fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .quick-form-inline-fields { grid-template-columns: 1fr; }
  .nav-mega-panel {
    width: 100%;
    left: 0 !important;
    max-height: calc(100vh - 120px);
  }
  .nav-mega-panel.nav-mega-panel--tools-featured { width: 100%; }
  .nav-mega-inner { grid-template-columns: 1fr; min-height: auto; }
  .nav-mega-inner--no-tools { grid-template-columns: 1fr; }
  .nav-mega-panel.nav-mega-panel--all-products { width: 100%; max-width: 100%; }
  .nav-mega-inner--all-products {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px 20px;
  }
  .nav-mega-sidebar--all { max-height: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-col--tools-legal { grid-column: auto; }
  .footer-tools-legal {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-notes {
    white-space: pre-line;
  }
  .footer-warning {
    font-size: clamp(16px, 4.5vw, 28px);
    white-space: normal;
  }
  .footer-complaint { font-size: 24px; line-height: 36px; }

  .float-actions { bottom: 20px; right: 16px; }
  .float-phone { width: 60px; height: 60px; }
}

@media (max-width: 480px) {
  .mortgage-helper-tab {
    font-size: 13px;
    padding: 10px 4px;
  }
}

/* ========== SUB PAGES ========== */
.nav-link--active {
  color: var(--gray);
}
.nav-link--active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--yellow);
  border-radius: 20px 20px 0 0;
}
.subpage-main {
  min-height: calc(100vh - var(--nav-height) - 200px);
}
.subpage-layout {
  display: grid;
  grid-template-columns: minmax(280px, 600px) minmax(320px, 550px);
  gap: clamp(32px, 6vw, 224px);
  align-items: center;
  justify-content: center;
  max-width: 1480px;
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 220px) 80px;
}
.subpage-layout--about {
  grid-template-columns: minmax(300px, 724px) minmax(280px, 600px);
}
.subpage-hero img {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== CONTACT PAGE ========== */
.contact-page {
  background: var(--white);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 80px) 100px;
}
.contact-info h1 {
  font-family: var(--font-primary);
  font-size: 48px;
  font-weight: 600;
  line-height: 58px;
  letter-spacing: -0.0094em;
  color: var(--black);
  margin: 0 0 40px;
}
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.contact-block {
  margin-bottom: 28px;
}
.contact-block:last-child {
  margin-bottom: 0;
}
.contact-label {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  margin: 0 0 4px;
}
.contact-hint {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray);
  margin: 0 0 6px;
}
.contact-hint--below {
  margin-top: 8px;
  margin-bottom: 0;
}
.contact-value {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--black);
  margin: 0;
}
.contact-value--link {
  display: inline-block;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-phones .contact-value--link {
  display: inline;
}
.contact-value--link:hover {
  color: #2F5D3A;
}
.contact-address span {
  display: block;
}
.contact-map {
  position: relative;
  min-height: 420px;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #f5f5f5;
}
.contact-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 420px;
  z-index: 1;
}
.contact-map-popup-source {
  display: none !important;
}
.contact-map-layers {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  display: inline-flex;
  align-items: stretch;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.contact-map-layer-btn {
  appearance: none;
  border: none;
  background: #fff;
  color: #1a1a1a;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.contact-map-layer-btn + .contact-map-layer-btn {
  border-left: 1px solid #dadce0;
}
.contact-map-layer-btn.is-active {
  background: #f1f3f4;
  font-weight: 700;
}
.contact-map-layer-btn:hover:not(:disabled) {
  background: #f8f9fa;
}
.contact-map-layer-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.leaflet-marker-icon.contact-map-logo-icon {
  background: transparent !important;
  border: none !important;
}
.leaflet-container {
  font-family: var(--font-primary);
  background: #f5f5f5;
}
.leaflet-popup.contact-map-leaflet-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.leaflet-popup.contact-map-leaflet-popup .leaflet-popup-content {
  margin: 0;
  min-width: 240px;
}
.leaflet-popup.contact-map-leaflet-popup .leaflet-popup-tip {
  box-shadow: none;
}
.contact-map-info--leaflet {
  position: relative;
  width: 280px;
  max-width: min(300px, calc(100vw - 48px));
  margin: 0;
  padding: 14px 28px 14px 16px;
  background: #fff;
  color: #1a1a1a;
  font-family: var(--font-primary);
  line-height: 1.45;
}
.contact-map-info--leaflet .contact-map-info-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}
.contact-map-info--leaflet .contact-map-info-label {
  margin: 8px 0 2px;
  font-size: 13px;
  font-weight: 600;
}
.contact-map-info--leaflet .contact-map-info-line {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: #333;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
    padding: 40px 20px 72px;
  }
  .contact-map {
    min-height: 320px;
  }
  .contact-map-canvas {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contact-info h1 {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 28px;
  }
}

/* ========== ABOUT PAGE ========== */
.about-page {
  background: #FFFFFF;
}
.about-layout {
  position: relative;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  column-gap: 72px;
  align-items: start;
  justify-content: start;
  max-width: 1920px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 220px) 140px;
  overflow: visible;
}
.about-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding-top: 0;
  position: relative;
  z-index: 2;
  width: 260px;
}
.about-aside-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.about-aside-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8CC63F;
  font-family: var(--font-secondary);
  font-size: 32px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.0098em;
  text-decoration: none;
  white-space: nowrap;
}
.about-aside-whatsapp {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: #8CC63F;
}
.about-aside-whatsapp path {
  fill: #8CC63F;
}
.about-aside-address {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-style: normal;
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 600;
  line-height: 42px;
  letter-spacing: -0.01em;
  color: #4A67AD;
  text-align: center;
}
.about-aside-address span {
  display: block;
}
.about-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  margin-top: 0;
  width: 100%;
}
.about-social-link {
  display: block;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.2s;
}
.about-social-link:hover {
  transform: scale(1.05);
}
.about-social-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-hero-circle {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.about-hero-circle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 48px;
  padding: 0 24px;
  border-radius: 100px;
  background: #CEFDFF;
  color: #4A67AD;
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: -0.0187em;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.about-join-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.about-main {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.about-content {
  position: relative;
  z-index: 1;
  font-family: var(--font-primary);
  color: #000000;
  min-width: 0;
  max-width: none;
  width: 100%;
  padding-top: 26px;
  padding-bottom: 0;
  overflow: visible;
}
.about-watermark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  display: block;
  object-fit: contain;
  object-position: right top;
  transform: none;
}
.about-content > :not(.about-watermark) {
  position: relative;
  z-index: 1;
}
.about-content h1 {
  font-family: inherit;
  font-size: 48px;
  font-weight: 400;
  line-height: 58px;
  letter-spacing: -0.0094em;
  color: #000000;
  margin-bottom: 48px;
}
.about-intro {
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.0187em;
  color: #000000;
  margin-bottom: 40px;
}
.about-subtitle {
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.0187em;
  color: #000000;
  margin: 40px 0 8px;
  white-space: nowrap;
}
.about-para {
  font-family: inherit;
  font-size: 24px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: -0.0187em;
  color: #000000;
  margin-bottom: 0;
}
.about-para + .about-para {
  margin-top: 0;
}
.legal-content {
  padding-bottom: 80px;
}
.legal-body {
  font-family: var(--font-primary);
  color: #000000;
  font-size: 24px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: -0.0187em;
}
.legal-body p {
  margin: 0 0 24px;
}
.legal-body h2 {
  margin: 40px 0 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.0187em;
  color: #000000;
}
.legal-body h2.legal-section-title {
  margin-top: 56px;
  font-size: 28px;
  line-height: 40px;
}
.legal-body h3 {
  margin: 24px 0 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 40px;
  color: #000000;
}
.legal-body ul,
.legal-body ol {
  margin: 0 0 24px;
  padding-left: 1.5em;
}
.legal-body li {
  margin-bottom: 8px;
}
.legal-body strong {
  font-weight: 600;
}
.about-warning {
  width: 100%;
  max-width: 1196px;
  background: #FEFBEF;
  padding: 40px 38px 48px;
  box-sizing: border-box;
}
.about-warning-title {
  margin: 0 0 28px;
  color: #FF0000;
  font-family: var(--font-primary);
  font-size: 40px;
  font-weight: 600;
  line-height: 70px;
  letter-spacing: -0.0112em;
  text-align: center;
}
.about-warning-body {
  color: #000000;
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: -0.0187em;
}
.about-warning-body p {
  margin: 0 0 0;
}
.about-warning-body ul {
  margin: 0;
  padding-left: 1.5em;
  list-style: disc;
}
.about-warning-body li {
  margin: 0;
}
.about-warning-body .about-warning-signoff {
  margin-top: 0;
}
.apply-card {
  width: 100%;
  max-width: 550px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 24px;
  justify-self: end;
}
.apply-card-header {
  text-align: center;
  margin-bottom: 16px;
}
.apply-card-header h1 {
  font-family: var(--font-secondary);
  font-size: 32px;
  font-weight: 600;
  line-height: 48px;
  margin-bottom: 8px;
}
.apply-card-header p {
  font-size: 22px;
  line-height: 30px;
  font-weight: 500;
  white-space: pre-line;
}
.apply-form-box {
  border: 1px solid #CCCCCC;
  border-radius: 16px;
  padding: 24px;
}
.apply-section-label {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 16px;
}
.apply-radio-row {
  display: flex;
  gap: 108px;
  margin-bottom: 24px;
}
.apply-radio {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 18px;
  line-height: 24px;
  cursor: pointer;
}
.apply-radio input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--black);
}
.apply-field {
  margin-bottom: 16px;
}
.apply-field label {
  display: block;
  font-size: 18px;
  line-height: 20px;
  color: #323232;
  margin-bottom: 8px;
}
.apply-input,
.apply-select-wrap select {
  width: 100%;
  height: 48px;
  padding: 14px 16px;
  border: 1px solid #CCCCCC;
  border-radius: 8px;
  font-size: 16px;
  line-height: 20px;
  font-family: inherit;
  background: var(--white);
  outline: none;
}
.apply-input::placeholder {
  color: #CCCCCC;
}
.apply-select-wrap {
  position: relative;
}
.apply-select-wrap select {
  appearance: none;
  padding-right: 40px;
  color: #CCCCCC;
}
.apply-select-wrap select:valid {
  color: var(--black);
}
.apply-select-wrap svg {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 8px;
  stroke: var(--gray);
  fill: none;
  pointer-events: none;
}
.apply-check-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.apply-check-row span {
  font-size: 14px;
  line-height: 20px;
  color: var(--black);
}
.apply-submit {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border-radius: 8px;
  font-size: 16px;
  color: #323232;
}
@media (max-width: 1024px) {
  .subpage-layout,
  .subpage-layout--about {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 40px;
    padding: 40px clamp(20px, 5vw, 220px) 120px;
    justify-items: start;
    overflow-x: hidden;
    overflow-y: visible;
  }
  .about-aside {
    align-items: center;
    width: 100%;
    gap: 32px;
  }
  .about-aside-stack {
    gap: 24px;
  }
  .about-aside-phone {
    font-size: 24px;
  }
  .about-socials {
    margin-top: 0;
    gap: 32px;
  }
  .about-hero-circle {
    width: min(260px, 70vw);
    height: min(260px, 70vw);
  }
  .about-join-btn {
    width: 180px;
    height: 44px;
    font-size: 20px;
  }
  .about-content {
    width: 100%;
    max-width: 100%;
    padding-top: 26px;
    padding-bottom: 0;
    overflow-x: hidden;
    overflow-y: visible;
  }
  .about-content h1 { font-size: 36px; line-height: 44px; margin-bottom: 28px; }
  .about-intro,
  .about-subtitle,
  .about-para { font-size: 20px; line-height: 34px; }
  .about-subtitle { white-space: nowrap; }
  .legal-body {
    font-size: 18px;
    line-height: 30px;
  }
  .legal-body h2 {
    font-size: 20px;
    line-height: 32px;
  }
  .legal-body h2.legal-section-title {
    font-size: 22px;
    line-height: 34px;
  }
  .legal-body h3 {
    font-size: 18px;
    line-height: 30px;
  }
  .about-warning {
    padding: 28px 20px 32px;
  }
  .about-warning-title {
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 20px;
  }
  .about-warning-body {
    font-size: 18px;
    line-height: 30px;
  }
  .apply-card {
    justify-self: stretch;
    max-width: none;
  }
}

/* ========== FINANCE NEWS ========== */
.finance-page {
  background: linear-gradient(180deg, #FFFDF5 0%, #FFFFFF 28%, #FFFFFF 100%);
  min-height: 60vh;
  padding: 48px 0 100px;
}
.finance-container {
  max-width: 1200px;
}
.finance-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.finance-title {
  font-size: 48px;
  font-weight: 600;
  line-height: 58px;
  letter-spacing: -0.0094em;
  margin-bottom: 12px;
  color: var(--black);
}
.finance-lead {
  font-size: 20px;
  line-height: 32px;
  color: var(--gray);
  max-width: 640px;
}
.finance-admin-entry {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--black);
  border-radius: 100px;
  background: var(--white);
  font-size: 14px;
  color: var(--black);
  transition: background 0.2s, color 0.2s;
}
.finance-admin-entry:hover {
  background: var(--yellow-grad);
}
.finance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.finance-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  padding: 28px 24px 24px;
  background: var(--white);
  border: 1px solid rgba(34, 30, 31, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(34, 30, 31, 0.04);
  overflow: hidden;
}
.finance-card-cover {
  margin: -28px -24px 4px;
  height: 180px;
  background: #F0F0F0;
  overflow: hidden;
  position: relative;
}
.finance-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}
.finance-card:hover .finance-card-cover img {
  transform: scale(1.03);
}
.finance-card-date {
  font-size: 14px;
  color: var(--gray);
}
.finance-card-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  color: var(--black);
}
.finance-card-summary {
  flex: 1;
  font-size: 16px;
  line-height: 26px;
  color: #616263;
}
.finance-card-btn {
  width: 100%;
  margin-top: 8px;
}
.finance-card-actions,
.finance-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 6px;
}
.finance-action-link {
  font-size: 13px;
  font-weight: 400;
  color: #8a9099;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(138, 144, 153, 0.45);
  line-height: 1.4;
}
.finance-action-link:hover {
  color: #5c6570;
  text-decoration-color: rgba(92, 101, 112, 0.7);
}
.finance-action-sep {
  color: #c5c9cf;
  font-size: 13px;
  line-height: 1;
  user-select: none;
}
.finance-detail-actions {
  margin-top: 28px;
}
.finance-empty {
  text-align: center;
  font-size: 18px;
  color: var(--gray);
  padding: 80px 20px;
}
.finance-detail {
  max-width: 820px;
}
.finance-back {
  margin-bottom: 24px;
  font-size: 16px;
  color: var(--gray);
  transition: color 0.2s;
}
.finance-back:hover { color: var(--black); }
.finance-detail-meta {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--gray);
}
.finance-detail-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 48px;
  margin-bottom: 16px;
}
.finance-detail-summary {
  font-size: 20px;
  line-height: 32px;
  color: #616263;
  margin-bottom: 28px;
}

.finance-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 22px;
}

.finance-tags--card {
  margin: 0 0 14px;
}

.finance-tags-label {
  font-size: 13px;
  color: #888;
  flex-shrink: 0;
}

.finance-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finance-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid #d8dde6;
  border-radius: 4px;
  background: #f7f8fa;
  color: #334;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.finance-tag:hover {
  border-color: #c9a227;
  color: #8a6d12;
  background: #fffaf0;
}

.finance-tag-heading {
  margin: 8px 0 24px;
  font-size: 28px;
  line-height: 1.3;
  color: #1a1a1a;
}

.finance-detail-cover {
  margin-bottom: 28px;
  border-radius: 16px;
  overflow: hidden;
  background: #F5F5F5;
  aspect-ratio: 16 / 9;
  max-height: 420px;
}
.finance-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.finance-detail-body {
  font-size: 18px;
  line-height: 32px;
  color: var(--black);
}
.finance-detail-body p {
  margin-bottom: 20px;
}
.finance-detail-body .finance-inline-link,
a.finance-inline-link {
  color: #1a73e8 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  pointer-events: auto;
}
.finance-detail-body .finance-inline-link:hover,
a.finance-inline-link:hover {
  color: #1557b0 !important;
}

/* ========== FINANCE ADMIN ========== */
.finance-admin-body {
  background: #F7F7F5;
  min-height: 100vh;
}
.finance-admin-body.admin-is-authed {
  background: #EEEEEA;
}
.admin-shell {
  min-height: 100vh;
}
.admin-shell:has(.admin-app:not([hidden])) {
  padding: 0;
  max-width: none;
}

/* Login — completely removed from layout after auth */
.admin-login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}
.admin-login[hidden],
.admin-app[hidden] {
  display: none !important;
}
.admin-login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(34, 30, 31, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.admin-login-logo {
  width: 88px;
  height: auto;
  margin-bottom: 24px;
}
.admin-login-card h1 {
  font-size: 28px;
  margin-bottom: 8px;
}
.admin-login-card > p {
  color: var(--gray);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
}
.admin-hint {
  font-size: 12px !important;
  color: var(--gray-light) !important;
  margin: 8px 0 16px !important;
}
.admin-error {
  color: #C62828;
  font-size: 14px;
  margin-bottom: 12px;
}
.admin-login-submit {
  width: 100%;
  margin-top: 48px;
}

/* Authed app layout: single left rail + stage */
.admin-app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.admin-rail {
  display: flex;
  flex-direction: column;
  background: #221E1F;
  color: #fff;
  padding: 28px 18px 20px;
}
.admin-rail-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}
.admin-rail-brand .admin-logo {
  width: 56px;
  height: auto;
  filter: brightness(0) invert(1);
}
.admin-rail-brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
}
.admin-rail-brand span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}
.admin-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.admin-rail-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 10px 10px;
}
.admin-rail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.admin-rail-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.admin-rail-item.is-active {
  background: var(--yellow);
  color: #221E1F;
  font-weight: 600;
}
.admin-rail-item em {
  font-style: normal;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.admin-rail-item.is-active em {
  background: rgba(34, 30, 31, 0.12);
  color: rgba(34, 30, 31, 0.55);
}
.admin-rail-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-rail-group-toggle .admin-rail-caret {
  margin-left: auto;
  transition: transform 0.2s;
}
.admin-rail-group.is-open .admin-rail-group-toggle .admin-rail-caret {
  transform: rotate(180deg);
}
.admin-rail-subnav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 4px 10px;
}
.admin-rail-subitem {
  font-size: 13px;
  padding: 10px 12px;
}
.admin-rail-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 16px;
}
.admin-rail-footer .admin-link {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  text-decoration: none;
  padding: 8px 10px;
}
.admin-rail-footer .admin-link:hover {
  color: #fff;
  text-decoration: underline;
}
.admin-rail-footer .admin-btn--ghost {
  color: rgba(255, 255, 255, 0.75);
  justify-content: flex-start;
  padding-left: 10px;
}
.admin-rail-footer .admin-btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.admin-stage {
  min-width: 0;
  padding: 32px 28px 48px;
  width: 100%;
}
.admin-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
  width: 100%;
}
.admin-stage-head > div:first-child {
  min-width: 0;
  flex: 1;
}
.admin-stage-head h1 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.admin-stage-head p {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
}
.admin-stage-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  flex-shrink: 0;
}
.admin-stage-actions .btn-primary,
.admin-stage-actions .admin-btn {
  min-height: 40px;
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  line-height: 1;
  border-radius: 100px;
  box-sizing: border-box;
  white-space: nowrap;
}
.admin-module-panel {
  max-width: none;
  width: 100%;
}
.admin-reserved-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px dashed rgba(34, 30, 31, 0.18);
  padding: 64px 32px;
  text-align: center;
  max-width: 640px;
}
.admin-reserved-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 100px;
  background: #F0F0F0;
  color: var(--gray);
  font-size: 12px;
  margin-bottom: 16px;
}
.admin-reserved-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.admin-reserved-card p {
  max-width: 480px;
  margin: 0 auto;
  color: var(--gray);
  line-height: 1.6;
  font-size: 15px;
}
.admin-list-panel,
.admin-editor-panel {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(34, 30, 31, 0.08);
  padding: 24px;
  width: 100%;
  box-sizing: border-box;
}
.admin-list-panel .admin-side-note {
  margin-top: 16px;
  margin-bottom: 0;
  text-align: center;
}
.admin-editor-head h2 {
  font-size: 22px;
  margin-bottom: 0;
}
.admin-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.admin-table-wrap {
  overflow-x: auto;
  width: 100%;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}
.admin-table th,
.admin-table td {
  text-align: center;
  padding: 14px 12px;
  border-bottom: 1px solid #EEEEEE;
  vertical-align: middle;
}
.admin-table th:nth-child(1),
.admin-table td:nth-child(1) {
  width: 12%;
}
.admin-table th:nth-child(2),
.admin-table td:nth-child(2) {
  width: 34%;
  text-align: left;
}
.admin-table th:nth-child(3),
.admin-table td:nth-child(3) {
  width: 28%;
  text-align: left;
}
.admin-table th:nth-child(4),
.admin-table td:nth-child(4) {
  width: 12%;
}
.admin-table th:nth-child(5),
.admin-table td:nth-child(5) {
  width: 14%;
}
.admin-tags-cell {
  line-height: 1.6;
}
.admin-tag-chip {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f3f5f7;
  border: 1px solid #e2e6eb;
  font-size: 12px;
  color: #555;
}
.admin-muted {
  color: #bbb;
}
.admin-seo-hint {
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  color: #8a6d12;
  margin-left: 6px;
}
.admin-table th {
  color: var(--gray);
  font-weight: 500;
}
.admin-empty-cell {
  text-align: center !important;
  color: var(--gray);
  padding: 40px 10px !important;
}
.admin-status {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 12px;
}
.admin-status.is-on {
  background: rgba(140, 198, 63, 0.18);
  color: #3F7A12;
}
.admin-status.is-off {
  background: #F0F0F0;
  color: var(--gray);
}
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #D8D8D8;
  border-radius: 100px;
  background: var(--white);
  font-size: 13px;
  color: var(--black);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.admin-btn:hover {
  background: #FAFAFA;
  border-color: var(--black);
}
.admin-btn--ghost {
  border-color: transparent;
  background: transparent;
}
.admin-btn--small {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
}
.admin-btn--danger {
  border-color: #E8B4B4;
  color: #B3261E;
}
.admin-btn--file {
  cursor: pointer;
}
.admin-side-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray);
}
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.admin-field > span {
  font-weight: 500;
  color: var(--black);
}
.admin-field input,
.admin-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D8D8D8;
  border-radius: 12px;
  font-size: 15px;
  background: #FCFCFC;
  outline: none;
}
.admin-field input:focus,
.admin-field textarea:focus {
  border-color: var(--black);
  background: var(--white);
}
.admin-field--check {
  justify-content: flex-end;
}
.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
}
.admin-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--yellow);
}
.admin-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.admin-toast {
  font-size: 14px;
  color: #3F7A12;
}
.admin-cover-upload {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-cover-preview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.admin-cover-preview[hidden] {
  display: none !important;
}
.admin-cover-preview img {
  width: 100%;
  max-width: 420px;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #E5E5E5;
  background: #F7F7F5;
}
.admin-cover-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.admin-cover-or {
  font-size: 13px;
  color: var(--gray);
}
.admin-cover-url {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid #D8D8D8;
  border-radius: 12px;
  font-size: 14px;
  background: #FCFCFC;
  outline: none;
}
.admin-cover-url:focus {
  border-color: var(--black);
  background: var(--white);
}
.admin-link {
  font-size: 14px;
  color: var(--gray);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .finance-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-app {
    grid-template-columns: 1fr;
  }
  .admin-rail {
    position: static;
  }
  .admin-rail-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .admin-stage {
    padding: 24px 20px 40px;
  }
  .admin-stage-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .admin-stage-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  .finance-header { flex-direction: column; align-items: flex-start; }
  .finance-title { font-size: 32px; line-height: 40px; }
  .finance-grid { grid-template-columns: 1fr; }
  .finance-detail-title { font-size: 26px; line-height: 34px; }
  .admin-form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   TEMP HIDE — 临时隐藏（后期恢复）
   恢复方法：去掉各 HTML 元素上的 `is-temp-hidden` 类，并可删除本段 CSS。
   当前隐藏：
   1. 关于我们开篇「万通集团」句（内容上移）
   2. 声明及防诈骗提示中含热线 2377 7777 的那一句
   3. 首页右下角电话图标点击禁用（仍显示；恢复：去掉 is-click-disabled 与 onclick）
   ========================================================================== */
.is-temp-hidden {
  display: none !important;
}
.float-phone.is-click-disabled {
  pointer-events: none;
  cursor: default;
}
.about-page .about-content:has(> .about-intro.is-temp-hidden) > h1 {
  margin-bottom: 24px;
}
.about-page .about-content:has(> .about-intro.is-temp-hidden) {
  padding-top: 8px;
}
.footer-col:has(.footer-address.is-temp-hidden) .footer-socials {
  margin-top: 24px;
}

/* Admin — 數據查看（僅後台模組，不影響前台） */
.admin-track-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin: 0 0 16px;
  overflow-x: auto;
}
.admin-track-toolbar .admin-field {
  margin: 0;
  min-width: 160px;
  flex: 0 0 auto;
}
.admin-track-filter {
  flex: 1 1 200px;
  min-width: 180px;
}
.admin-track-device {
  flex: 0 0 160px;
}
.admin-track-toolbar .btn-primary,
.admin-track-toolbar .admin-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.admin-track-toolbar .admin-field select,
.admin-track-device select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 40px 12px 14px;
  border: 1px solid #D8D8D8;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--black);
  background-color: #FCFCFC;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23666666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5L6 6.5L11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  cursor: pointer;
}
.admin-track-toolbar .admin-field select:focus,
.admin-track-device select:focus {
  border-color: var(--black);
  background-color: var(--white);
}
.admin-track-list {
  background: #fff;
  margin: 16px;
  padding: 16px;
  border-radius: 12px;
  box-sizing: border-box;
  min-height: 200px;
}
.admin-module-panel[data-module-panel="tracking"] {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.admin-module-panel[data-module-panel="tracking"][hidden] {
  display: none !important;
}
.admin-track-list .admin-table-wrap {
  margin: 0;
  border: none;
  background: transparent;
}
.admin-track-table th:nth-child(1),
.admin-track-table td:nth-child(1) {
  width: 160px;
  white-space: nowrap;
}
.admin-track-table th:nth-child(2),
.admin-track-table td:nth-child(2) {
  min-width: 180px;
}
.admin-track-table th:nth-child(3),
.admin-track-table td:nth-child(3),
.admin-track-table th:nth-child(4),
.admin-track-table td:nth-child(4) {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-track-table th:nth-child(5),
.admin-track-table td:nth-child(5) {
  width: 80px;
  white-space: nowrap;
}
.admin-track-empty {
  margin-top: 12px;
}
.admin-track-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.admin-track-page-info {
  font-size: 14px;
  color: #666;
}
.admin-track-pager .admin-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 客服查詢頁 */
.admin-lead-body .admin-lead-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f8fa 0%, #eef1f4 100%);
}
.admin-lead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}
.admin-lead-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-lead-brand .admin-logo {
  width: 42px;
  height: auto;
}
.admin-lead-brand strong {
  display: block;
  font-size: 18px;
}
.admin-lead-brand span {
  display: block;
  font-size: 13px;
  color: #777;
  margin-top: 2px;
}
.admin-lead-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.admin-lead-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border: 1px solid #ececec;
}
.admin-lead-search .admin-field {
  flex: 1 1 240px;
  margin: 0;
}
.admin-lead-search .btn-primary {
  min-width: 120px;
  height: 44px;
}
.admin-lead-empty {
  margin-top: 24px;
  color: #777;
  font-size: 15px;
}
.admin-lead-grid {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}
.admin-lead-card {
  background: #fff;
  border: 1px solid #ececec;
  padding: 22px 24px;
}
.admin-lead-card h2 {
  margin: 0 0 16px;
  font-size: 17px;
}
.admin-lead-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0;
}
.admin-lead-dl dt {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}
.admin-lead-dl dd {
  margin: 0;
  font-size: 16px;
  word-break: break-word;
}
.admin-lead-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid #e5e5e5;
}
.admin-lead-timeline-item {
  position: relative;
  padding: 0 0 18px 18px;
}
.admin-lead-timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8cc63f;
}
.admin-lead-timeline-item--lead::before {
  background: #1a1a1a;
}
.admin-lead-timeline-item time {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}
.admin-lead-timeline-item strong {
  display: block;
  font-size: 14px;
}
.admin-lead-timeline-item span {
  display: none;
}
.admin-rail-link {
  text-decoration: none;
  box-sizing: border-box;
}
.admin-lead-table {
  table-layout: auto;
}
.admin-lead-table th,
.admin-lead-table td {
  font-size: 13px;
  white-space: nowrap;
}
.admin-lead-table th:nth-child(1),
.admin-lead-table td:nth-child(1),
.admin-lead-table th:nth-child(2),
.admin-lead-table td:nth-child(2),
.admin-lead-table th:nth-child(3),
.admin-lead-table td:nth-child(3),
.admin-lead-table th:nth-child(4),
.admin-lead-table td:nth-child(4),
.admin-lead-table th:nth-child(5),
.admin-lead-table td:nth-child(5),
.admin-lead-table th:nth-child(6),
.admin-lead-table td:nth-child(6),
.admin-lead-table th:nth-child(7),
.admin-lead-table td:nth-child(7),
.admin-lead-table th:nth-child(8),
.admin-lead-table td:nth-child(8) {
  width: auto;
  text-align: left;
}
.admin-lead-detail-panel {
  margin-top: 8px;
}
.admin-lead-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}
.admin-lead-summary-item {
  background: #fff;
  border: 1px solid #ececec;
  padding: 12px 14px;
}
.admin-lead-summary-item span {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}
.admin-lead-summary-item strong {
  font-size: 15px;
}
.admin-lead-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}
.admin-lead-detail-main,
.admin-lead-detail-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}
.admin-lead-detail-side > .admin-lead-card:first-child,
.admin-lead-card--timeline {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-height: min(640px, 70vh);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 30, 31, 0.22) #F0F0F0;
}
.admin-lead-detail-side > .admin-lead-card:first-child::-webkit-scrollbar,
.admin-lead-card--timeline::-webkit-scrollbar {
  width: 8px;
}
.admin-lead-detail-side > .admin-lead-card:first-child::-webkit-scrollbar-track,
.admin-lead-card--timeline::-webkit-scrollbar-track {
  background: #F0F0F0;
}
.admin-lead-detail-side > .admin-lead-card:first-child::-webkit-scrollbar-thumb,
.admin-lead-card--timeline::-webkit-scrollbar-thumb {
  background: rgba(34, 30, 31, 0.22);
  border-radius: 8px;
  border: 2px solid #F0F0F0;
}
.admin-lead-detail-side .admin-lead-timeline {
  flex: 1 1 auto;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
.admin-lead-formdata {
  margin: 0;
  padding: 12px;
  background: #f7f8fa;
  border: 1px solid #eee;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow: auto;
}
.admin-lead-detail-panel .admin-lead-card .admin-field textarea#adminLeadNotes {
  min-height: 220px;
  resize: vertical;
}
.admin-lead-detail-panel .admin-lead-grid {
  margin-top: 16px;
}
@media (max-width: 960px) {
  .admin-lead-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-lead-detail-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .admin-lead-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-lead-dl {
    grid-template-columns: 1fr;
  }
}

.admin-dash-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 20px;
}
.admin-dash-kpi {
  background: #fff;
  border: 1px solid #ececec;
  padding: 16px;
}
.admin-dash-kpi span {
  display: block;
  font-size: 12px;
  color: #888;
}
.admin-dash-kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.1;
}
.admin-dash-kpi em {
  display: none;
}
.admin-dash-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.admin-dash-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-dash-bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 90px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.admin-dash-bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-dash-bar-track {
  height: 10px;
  background: #f0f0f0;
  border-radius: 100px;
  overflow: hidden;
}
.admin-dash-bar-track span {
  display: block;
  height: 100%;
  background: #8cc63f;
}
.admin-dash-bar-val {
  text-align: right;
  color: #666;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .admin-dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-dash-panels {
    grid-template-columns: 1fr;
  }
}


/* ================= 申請跟進流程彈窗（點樣得知我哋 → 加快申請） ================= */
.apply-flow-overlay { position: fixed; inset: 0; z-index: 9999; display: none; }
.apply-flow-overlay.open { display: block; }
.apply-flow-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
body.apply-flow-lock { overflow: hidden; }

.apply-flow-panel {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 32px));
  max-height: min(86vh, 860px);
  overflow-y: auto;
  background: var(--white);
  border-radius: 24px;
  padding: 44px 48px 40px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.apply-flow-close {
  position: absolute; top: 16px; right: 20px;
  width: 40px; height: 40px;
  font-size: 28px; line-height: 1;
  color: var(--gray); border-radius: 50%;
}
.apply-flow-close:hover { color: var(--black); background: #f2f2f2; }

.apply-flow-title {
  font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.35;
  white-space: pre-line;
  color: var(--black); margin-bottom: 10px;
}
.apply-flow-subtitle { font-size: 15px; color: var(--gray); margin-bottom: 26px; }

.apply-flow-step[data-step="speed"] .apply-flow-title { margin-bottom: 4px; }

.apply-flow-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.apply-flow-option {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border: 1px solid #e3e3e3; border-radius: 14px;
  background: var(--white); text-align: left;
  font-size: 16px; color: var(--black);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.apply-flow-option svg { width: 21px; height: 21px; fill: currentColor; flex-shrink: 0; }
.apply-flow-option span { flex: 1; text-align: center; }
.apply-flow-option:hover { border-color: var(--black); }
.apply-flow-option.selected {
  border: 2px solid var(--black);
  background: #f4f4f4;
  box-shadow: inset 0 0 0 1px var(--black);
}

.apply-flow-footer { display: flex; justify-content: flex-end; margin-top: 28px; }
.apply-flow-continue {
  min-width: 150px; height: 52px; padding: 0 34px;
  border-radius: 100px; background: var(--black); color: var(--white);
  font-size: 17px; font-weight: 600;
  transition: opacity 0.15s;
}
.apply-flow-continue:hover { opacity: 0.85; }
.apply-flow-continue:disabled { opacity: 0.35; cursor: not-allowed; }

.apply-flow-wa-badge {
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.apply-flow-wa-badge svg { width: 30px; height: 30px; fill: currentColor; }

.apply-flow-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.apply-flow-yes {
  height: 58px; border-radius: 100px;
  background: #25d366; color: var(--white);
  font-size: 19px; font-weight: 700; letter-spacing: 0.01em;
  transition: opacity 0.15s;
}
.apply-flow-yes:hover { opacity: 0.88; }
.apply-flow-no {
  height: 54px; border-radius: 100px;
  background: var(--white); color: #555;
  border: 1px solid #d9d9d9;
  font-size: 17px; font-weight: 500;
  transition: color 0.15s, border-color 0.15s;
}
.apply-flow-no:hover { color: var(--black); border-color: var(--black); }
.apply-flow-reopen {
  height: 50px; border-radius: 100px;
  background: var(--yellow); color: var(--black);
  border: 1px solid var(--black);
  font-size: 15px; font-weight: 600;
  transition: opacity 0.15s;
}
.apply-flow-reopen:hover { opacity: 0.85; }

.apply-flow-done-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.apply-flow-done-icon svg { width: 32px; height: 32px; fill: currentColor; }
.apply-flow-wa-hint { font-size: 14px; color: var(--gray); margin-top: 6px; }

@media (max-width: 640px) {
  .apply-flow-panel { padding: 32px 20px 28px; border-radius: 18px; }
  .apply-flow-title { font-size: 23px; }
  .apply-flow-grid { grid-template-columns: 1fr; gap: 10px; }
  .apply-flow-option { padding: 14px 16px; }
  .apply-flow-footer { margin-top: 20px; }
  .apply-flow-continue { width: 100%; }
}

/* ===== 「立即申請」字體放大（右上角 nav 掣除外） ===== */
.btn-primary[data-i18n="products.apply"],
.btn-primary[data-i18n="mortgageHelper.payment.apply"],
.btn-primary[data-i18n="applyPage.submit"] {
  font-size: 18px;
}

/* ===== 全站 tick box：勾選後用「立即申請」漸變黃 ===== */
.checkbox-item input[type="checkbox"],
.apply-check-row input[type="checkbox"],
.admin-check input {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--black);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  position: relative;
}
.checkbox-item input[type="checkbox"]:checked,
.apply-check-row input[type="checkbox"]:checked,
.admin-check input:checked {
  background-color: var(--black);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23FFF7A8'/%3E%3Cstop offset='0.5' stop-color='%23FFF100'/%3E%3Cstop offset='1' stop-color='%23FFD700'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='url(%23g)' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 72% 72%;
  background-position: center;
  background-repeat: no-repeat;
  border-color: var(--black);
}


/* ===== tick box 條款連結樣式（跟安信做法） ===== */
.apply-check-row a,
.checkbox-item a {
  color: var(--green);
  text-decoration: underline;
  font-weight: 500;
}

/* Home: latest articles block (server-rendered for crawlability) */
.home-articles-section{padding:72px 0 64px}
.home-articles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:20px;margin-top:28px}
.home-article-card{display:flex;flex-direction:column;gap:10px;padding:22px;border:1px solid rgba(0,0,0,.08);border-radius:16px;background:#fff;text-decoration:none;color:inherit;transition:box-shadow .2s ease,transform .2s ease}
.home-article-card:hover{box-shadow:0 10px 28px rgba(0,0,0,.09);transform:translateY(-2px)}
.home-article-card time{font-size:12px;letter-spacing:.02em;color:#8b8b8b}
.home-article-card h3{font-size:16px;line-height:1.5;margin:0;font-weight:700}
.home-article-card p{font-size:13px;line-height:1.65;color:#5f5f5f;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.home-articles-more{display:inline-block;margin-top:26px;font-weight:700;text-decoration:none;color:#0a6b4f}
.home-articles-more:hover{text-decoration:underline}
@media(max-width:640px){.home-articles-section{padding:48px 0}.home-article-card{padding:18px}}
/* ===== Breadcrumbs (article + topic pages) ===== */
.finance-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;line-height:20px;color:var(--gray);margin:0 0 22px}
.finance-breadcrumb a{color:var(--gray);text-decoration:none}
.finance-breadcrumb a:hover{color:var(--black);text-decoration:underline}
.finance-breadcrumb>span:last-child{color:var(--black);font-weight:600}

/* ===== Article / topic call to action ===== */
.finance-cta{margin:44px 0 0;padding:32px 34px;border-radius:22px;background:linear-gradient(135deg,#FFF9D6 0%,#FFFDF5 58%,#FFFFFF 100%);border:1px solid rgba(34,30,31,.08);box-shadow:0 10px 30px rgba(34,30,31,.05)}
.finance-cta h2{font-size:26px;line-height:34px;font-weight:600;color:var(--black);margin:0 0 12px}
.finance-cta p{font-size:17px;line-height:28px;color:#484343;margin:0 0 10px}
.finance-cta p a{color:var(--black);font-weight:700;text-decoration:none;border-bottom:none}
.finance-cta .finance-cta-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:18px 0 0}
.finance-inline-link{display:inline-block;font-size:16px;font-weight:700;color:#0a6b4f;text-decoration:none}
.finance-inline-link:hover{text-decoration:underline}
.finance-cta .finance-cta-wa, .finance-cta-actions a.finance-cta-wa{display:inline-flex;align-items:center;gap:8px;color:var(--green);font-weight:700;font-size:18px;text-decoration:none;border-bottom:none;transition:opacity .2s}
.finance-cta .finance-cta-wa:hover{opacity:.85}
.finance-cta .finance-cta-wa .wa-cta-icon{width:20px;height:20px;fill:currentColor;flex-shrink:0}
.finance-cta .finance-cta-wa .wa-cta-icon path{fill:currentColor}

/* ===== Topic hub pages ===== */
.topic-page{display:block}
.topic-title{font-size:44px;line-height:54px;font-weight:600;letter-spacing:-.0094em;color:var(--black);margin:0 0 16px}
.topic-lead{font-size:20px;line-height:32px;color:#484343;max-width:760px;margin:0 0 4px;font-weight:600}
.topic-intro{margin:22px 0 0;max-width:820px}
.topic-intro p{font-size:17px;line-height:30px;color:#5b5b5b;margin:0 0 16px}
.topic-articles{margin-top:40px}
.topic-articles>h2,.topic-faq>h2,.topic-more>h2{font-size:28px;line-height:38px;font-weight:600;color:var(--black);margin:0 0 22px}
.topic-faq{margin-top:52px;padding-top:32px;border-top:1px solid rgba(34,30,31,.08)}
.topic-faq h3{font-size:20px;line-height:30px;font-weight:600;color:var(--black);margin:26px 0 8px}
.topic-faq h3:first-of-type{margin-top:0}
.topic-faq p{font-size:16px;line-height:28px;color:#5b5b5b;margin:0}
.topic-more{margin-top:56px;padding-top:32px;border-top:1px solid rgba(34,30,31,.08)}
.topic-chips{display:flex;flex-wrap:wrap;gap:12px}
.topic-chip{display:inline-flex;align-items:center;height:44px;padding:0 22px;border-radius:100px;border:1px solid rgba(34,30,31,.16);background:var(--white);font-size:15px;font-weight:600;color:var(--black);text-decoration:none;transition:background .2s,transform .2s}
.topic-chip:hover{background:var(--yellow-grad);transform:translateY(-1px)}
@media(max-width:768px){
  .topic-title{font-size:32px;line-height:42px}
  .topic-lead{font-size:18px;line-height:29px}
  .finance-cta{padding:24px 22px}
  .topic-articles>h2,.topic-faq>h2,.topic-more>h2{font-size:23px;line-height:32px}
}
.topic-more-link{margin:28px 0 0;font-size:16px;line-height:26px;color:#5b5b5b}
.topic-more-link a{color:#0a6b4f;font-weight:700;text-decoration:none;border-bottom:2px solid var(--yellow)}
.topic-more-link a:hover{text-decoration:underline}
.finance-topic-link{margin:34px 0 0;padding:20px 24px;border-left:4px solid var(--yellow);background:#FFFDF5;border-radius:0 14px 14px 0}
.finance-topic-link p{margin:0;font-size:16px;line-height:26px;color:#484343}
.finance-topic-link a{font-weight:700;color:#0a6b4f;text-decoration:none;border-bottom:2px solid var(--yellow)}
.finance-topic-link a:hover{text-decoration:underline}
.topic-nav{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 32px}
.home-topic-links{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:28px}
.home-topic-label{font-size:15px;font-weight:600;color:#6b6b6b}
@media(max-width:640px){.topic-nav{margin-bottom:24px}.home-topic-links{margin-top:22px}}

/* Home latest-articles section: same cream wash as finance page hero */
.home-articles-section{background:linear-gradient(180deg,#FFFDF5 0%,#FFFFFF 28%,#FFFFFF 100%)}
