:root {
  --ink: #17342e;
  --ink-soft: #49635c;
  --forest: #1f5c4e;
  --forest-deep: #16483e;
  --mint: #b9d5b1;
  --mint-soft: #e5efe0;
  --cream: #f4f0e6;
  --paper: #fbf9f3;
  --orange: #ad4f2d;
  --orange-soft: #f5d0b7;
  --line: rgba(23, 52, 46, 0.16);
  --shadow: 0 20px 60px rgba(28, 65, 55, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-zh: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 5%, rgba(185, 213, 177, 0.34), transparent 26rem),
    var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(233, 132, 81, 0.5);
  outline-offset: 3px;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 34px;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
}

.brand-mark span {
  width: 8px;
  background: var(--forest);
  border-radius: 8px 8px 3px 3px;
  transform: rotate(-6deg);
}

.brand-mark span:nth-child(1) { height: 20px; }
.brand-mark span:nth-child(2) { height: 30px; }
.brand-mark span:nth-child(3) { height: 24px; }

.model-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(233, 132, 81, 0.14);
}

.hero {
  padding: 104px 0 86px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-zh);
  font-size: clamp(42px, 6.3vw, 76px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.16;
}

.hero-copy {
  max-width: 620px;
  margin: 28px auto 0;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 17px;
  line-height: 1.9;
}

.summary-section,
.history-section {
  margin-bottom: 72px;
}

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

.section-heading h2,
.method-note h2 {
  margin: 0;
  font-family: var(--font-zh);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.summary-date,
.step-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
}

.summary-card {
  min-height: 178px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  background: rgba(251, 249, 243, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.summary-card p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 13px;
  font-weight: 600;
}

.summary-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.summary-card > span {
  color: var(--ink-soft);
  font-size: 12px;
}

.summary-card-primary {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}

.summary-card-primary p,
.summary-card-primary > span {
  color: rgba(255, 255, 255, 0.8);
}

.orbit {
  position: absolute;
  right: -16px;
  bottom: -34px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.orbit::before { inset: 34px; }
.orbit::after { inset: 67px; }

.orbit i {
  position: absolute;
  z-index: 1;
  width: 8px;
  height: 8px;
  background: var(--orange-soft);
  border-radius: 50%;
}

.orbit i:nth-child(1) { top: 16px; left: 42px; }
.orbit i:nth-child(2) { top: 64px; right: 29px; }
.orbit i:nth-child(3) { bottom: 48px; left: 52px; }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  margin-bottom: 82px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.entry-panel,
.result-panel {
  min-height: 660px;
  padding: 46px;
}

.entry-panel {
  background: var(--paper);
}

.result-panel {
  position: relative;
  background: var(--forest);
  color: white;
}

.field-group {
  margin-bottom: 25px;
}

.field-group label,
.category-level-label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 13px;
  font-weight: 600;
}

.category-level-label {
  margin-top: 0;
}

.category-field {
  min-width: 0;
  margin-inline: 0;
  padding: 0;
  border: 0;
}

.category-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.category-option {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  text-align: left;
  transition: 160ms ease;
}

.category-option > span {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  background: var(--cream);
  border-radius: 9px;
}

.category-option strong {
  font-family: var(--font-zh);
  font-size: 12px;
  line-height: 1.35;
}

.category-option:hover,
.category-option:focus-visible {
  border-color: rgba(31, 92, 78, 0.48);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(31, 92, 78, 0.08);
}

.category-option.is-selected {
  background: var(--mint-soft);
  border-color: var(--forest);
}

.category-option.is-selected > span {
  background: var(--forest);
  color: white;
}

.category-group-option {
  min-height: 62px;
}

.category-group-option strong {
  font-size: 13px;
}

.category-level-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.category-level-heading .category-level-label {
  margin: 0;
}

.category-back {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 7px 11px;
  background: var(--mint-soft);
  border: 1px solid rgba(31, 92, 78, 0.2);
  border-radius: 999px;
  color: var(--forest);
  font-family: var(--font-zh);
  font-size: 11px;
  font-weight: 600;
}

.category-back:hover,
.category-back:focus-visible {
  border-color: var(--forest);
  outline: 0;
}

.category-detail-option {
  background: rgba(255, 255, 255, 0.78);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--ink-soft);
  pointer-events: none;
  transform: translateY(-58%);
}

select,
.amount-input {
  width: 100%;
  height: 60px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}

select {
  padding: 0 48px 0 17px;
  color: var(--ink);
  font-family: var(--font-zh);
  appearance: none;
}

.amount-input {
  display: flex;
  align-items: center;
  padding: 0 17px;
}

.amount-input span {
  padding-right: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  border-right: 1px solid var(--line);
}

.amount-input input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0 0 0 14px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 17px;
  outline: 0;
}

.amount-input:focus-within,
select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31, 92, 78, 0.08);
}

.field-error {
  min-height: 18px;
  margin: 6px 0 -18px;
  color: #b74f3d;
  font-family: var(--font-zh);
  font-size: 12px;
}

.primary-button {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 39px;
  padding: 0 20px;
  background: var(--orange);
  border: 0;
  border-radius: 13px;
  color: white;
  font-family: var(--font-zh);
  font-weight: 600;
  transition: 160ms ease;
}

.primary-button:hover {
  background: #d97342;
  transform: translateY(-2px);
}

.result-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.result-empty .section-kicker,
.result-content .section-kicker {
  color: var(--orange-soft);
}

.result-empty h2 {
  max-width: 330px;
  margin: 0 0 16px;
  font-family: var(--font-zh);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.result-empty p:last-child {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-zh);
  font-size: 14px;
  line-height: 1.8;
}

.empty-visual {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 38px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
}

.empty-visual::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.empty-visual span {
  position: absolute;
  z-index: 1;
  width: 12px;
  height: 12px;
  background: var(--mint);
  border: 3px solid var(--forest);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.empty-visual span:nth-child(1) { top: 17px; left: 38px; }
.empty-visual span:nth-child(2) { top: 70px; right: -6px; }
.empty-visual span:nth-child(3) { bottom: 5px; left: 47px; }

.empty-visual i {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--orange);
  border-radius: 50%;
  font-size: 24px;
  font-style: normal;
  transform: translate(-50%, -50%);
}

.result-content {
  animation: result-in 260ms ease both;
}

@keyframes result-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-topline,
.breakdown-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.result-category {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-zh);
  font-size: 14px;
}

.estimate-badge {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.estimate-badge.is-saved {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--forest-deep);
}

.result-number {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 38px 0 4px;
}

.result-number > span {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-zh);
  font-size: 14px;
}

.result-number strong {
  font-size: clamp(42px, 5.2vw, 64px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1;
  white-space: nowrap;
}

.result-number small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.estimate-secondary {
  margin: 12px 0 0 32px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-zh);
  font-size: 12px;
}

.estimate-range {
  margin: 7px 0 34px 32px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-zh);
  font-size: 13px;
}

.breakdown-section {
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.breakdown-title h3,
.origin-section h3 {
  margin: 0;
  font-family: var(--font-zh);
  font-size: 13px;
  font-weight: 600;
}

.breakdown-title span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
}

.breakdown-list {
  display: grid;
  gap: 9px;
  margin-top: 21px;
}

.breakdown-row {
  display: grid;
  grid-template-columns: minmax(82px, auto) 1fr auto;
  align-items: center;
  gap: 11px;
  font-family: var(--font-zh);
  font-size: 11px;
}

.breakdown-row > span:last-child {
  color: rgba(255, 255, 255, 0.82);
  text-align: right;
  white-space: nowrap;
}

.industry-role-item {
  padding: 5px 0;
}

.industry-role-item summary,
.dashboard-industry-item summary {
  cursor: pointer;
  list-style: none;
}

.industry-role-item summary::-webkit-details-marker,
.dashboard-industry-item summary::-webkit-details-marker {
  display: none;
}

.industry-role-item summary > span:first-child::before,
.dashboard-industry-item .bar-label strong::before {
  content: "+";
  display: inline-block;
  width: 13px;
  color: var(--mint);
}

.industry-role-item[open] summary > span:first-child::before,
.dashboard-industry-item[open] .bar-label strong::before {
  content: "−";
}

.industry-role-item > p {
  margin: 8px 0 2px 13px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-zh);
  font-size: 11px;
  line-height: 1.65;
}

.industry-role-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-zh);
  font-size: 10px;
  line-height: 1.6;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.progress-track i {
  display: block;
  height: 100%;
  background: var(--mint);
  border-radius: inherit;
}

.origin-section {
  padding-top: 25px;
}

.origin-bar {
  height: 9px;
  display: flex;
  gap: 2px;
  margin: 17px 0 12px;
  overflow: hidden;
  border-radius: 999px;
}

.origin-bar span:nth-child(1) { background: var(--orange-soft); }
.origin-bar span:nth-child(2) { background: var(--mint); }
.origin-bar span:nth-child(3) { background: #6e9c89; }

.origin-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.origin-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-zh);
  font-size: 11px;
}

.origin-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.origin-legend span:nth-child(1) i { background: var(--orange-soft); }
.origin-legend span:nth-child(2) i { background: var(--mint); }
.origin-legend span:nth-child(3) i { background: #6e9c89; }

.history-empty {
  padding: 38px;
  border: 1px dashed rgba(23, 52, 46, 0.22);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 14px;
  text-align: center;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-item {
  display: grid;
  grid-template-columns: 44px minmax(120px, 1.2fr) minmax(90px, 0.8fr) minmax(120px, 1fr) 44px;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: rgba(251, 249, 243, 0.62);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.history-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--mint-soft);
  border-radius: 12px;
}

.history-main strong,
.history-main small {
  display: block;
}

.history-main strong {
  margin-bottom: 3px;
  font-family: var(--font-zh);
  font-size: 13px;
}

.history-main small,
.history-price,
.history-time {
  color: var(--ink-soft);
  font-size: 11px;
}

.history-hours {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.delete-event {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 19px;
}

.delete-event:hover {
  background: rgba(23, 52, 46, 0.07);
  color: #a04636;
}

.method-note {
  display: grid;
  grid-template-columns: 72px 0.7fr 1.3fr;
  align-items: center;
  gap: 28px;
  margin-bottom: 80px;
  padding: 38px;
  background: var(--mint-soft);
  border-radius: var(--radius-md);
}

.method-index {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--forest);
  border-radius: 50%;
  color: white;
  font-size: 27px;
}

.method-note > p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 13px;
  line-height: 1.85;
}

footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 11px;
}

footer > span {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
}

footer a {
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
}

footer a:hover {
  color: var(--orange);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 24px;
  padding: 11px 18px;
  background: var(--ink);
  border-radius: 999px;
  color: white;
  font-family: var(--font-zh);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: 200ms ease;
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .hero { padding: 82px 0 70px; }
  .workspace { grid-template-columns: 1fr; }
  .entry-panel,
  .result-panel { min-height: auto; padding: 38px; }
  .result-panel { min-height: 610px; }
  .method-note { grid-template-columns: 62px 1fr; }
  .method-note > p { grid-column: 2; }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 72px; }
  .model-status { padding: 8px 10px; font-size: 10px; }
  .hero { padding: 66px 6px 58px; }
  .hero h1 { font-size: clamp(38px, 12vw, 52px); }
  .hero h1 br { display: none; }
  .hero-copy { font-size: 15px; line-height: 1.8; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-card-primary { grid-column: 1 / -1; }
  .summary-card { min-height: 145px; padding: 22px; }
  .summary-card strong { font-size: 29px; }
  .workspace { margin-inline: -12px; border-radius: 22px; }
  .entry-panel,
  .result-panel { padding: 30px 24px; }
  .category-options { gap: 7px; }
  .category-option { min-height: 54px; padding: 8px 10px; gap: 8px; }
  .result-panel { min-height: 590px; }
  .result-number strong { font-size: 58px; }
  .history-item {
    grid-template-columns: 42px 1fr auto 44px;
    gap: 10px;
    padding: 13px;
  }
  .history-icon { grid-row: 1 / 3; }
  .history-main { grid-column: 2; grid-row: 1; }
  .history-price { grid-column: 2; grid-row: 2; }
  .history-hours { grid-column: 3; grid-row: 1 / 3; }
  .delete-event { grid-column: 4; grid-row: 1 / 3; }
  .method-note { grid-template-columns: 1fr; padding: 28px; }
  .method-note > p { grid-column: auto; }
  footer { display: block; padding: 28px 0; }
  footer p { margin: 8px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Global model and page navigation */

.page-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.page-tab {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: 160ms ease;
}

.page-tab:hover,
.page-tab.is-active {
  background: var(--forest);
  color: white;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 44px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.language-toggle:hover {
  background: var(--mint-soft);
}

/* About and entry pages */

.about-hero {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-primary {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  padding: 14px 20px;
  background: var(--forest);
  border-radius: 999px;
  color: white;
  font-family: var(--font-zh);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: 160ms ease;
}

.about-primary:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.hero-definition {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 12px;
  line-height: 1.7;
}

.about-flow {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.65fr);
  gap: 54px;
  margin-bottom: 18px;
  padding: 54px;
  background: var(--forest);
  border-radius: var(--radius-lg);
  color: white;
}

.about-flow-heading h2 {
  max-width: 330px;
  margin: 0;
  font-family: var(--font-zh);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.3;
}

.about-flow ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-flow li {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
}

.about-flow li > span {
  color: var(--orange-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.about-flow li > strong {
  margin-top: auto;
  font-family: var(--font-zh);
  font-size: 15px;
}

.about-flow li > p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-zh);
  font-size: 11px;
  line-height: 1.75;
}

.about-flow .section-kicker,
.source-notice .section-kicker {
  color: var(--orange-soft);
}

.about-page .method-note {
  margin-top: 18px;
}

.privacy-note {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 36px;
  margin: -62px 0 80px;
  padding: 30px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.privacy-note h2 {
  margin: 0;
  font-family: var(--font-zh);
  font-size: 22px;
  letter-spacing: -0.035em;
}

.privacy-note > p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 12px;
  line-height: 1.85;
}

.input-page {
  padding-top: 72px;
}

.entry-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.entry-intro h1 {
  margin: 0;
  font-family: var(--font-zh);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.entry-intro div > p:last-child {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 14px;
}

.hero-entry {
  padding-bottom: 68px;
}

.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 11px;
}

.hero-proof strong {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
}

.hero-proof i {
  width: 3px;
  height: 3px;
  background: var(--orange);
  border-radius: 50%;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-label-row > span {
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 11px;
}

.price-note {
  min-height: 17px;
  margin: 7px 0 -17px;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 11px;
  line-height: 1.5;
}

.country-note,
.currency-change-note {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 11px;
  line-height: 1.55;
}

.currency-change-note {
  min-height: 0;
  color: var(--forest);
  font-weight: 600;
}

.currency-change-note:empty {
  display: none;
}

.entry-panel .primary-button {
  margin-top: 14px;
}

.storage-note {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.result-panel {
  min-height: 790px;
  scroll-margin-top: 16px;
}

.data-quality {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-zh);
  font-size: 11px;
  line-height: 1.55;
}

.data-quality > span {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 3px;
  border-radius: 50%;
}

.data-quality p {
  margin: 0;
}

.quality-high { background: var(--mint); }
.quality-medium { background: #f0bc73; }
.quality-low { background: #dc8067; }

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--forest);
  font-family: var(--font-zh);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  color: var(--orange);
}

.method-copy > p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 13px;
  line-height: 1.85;
}

.method-copy details {
  margin-top: 11px;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 11px;
  line-height: 1.7;
}

.method-copy summary {
  color: var(--forest);
  cursor: pointer;
  font-weight: 600;
}

.method-copy details p {
  margin: 9px 0;
}

.method-copy a {
  color: var(--forest);
}

/* Loading and error states */

.app-loading,
.app-error {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 13px;
  text-align: center;
}

.loading-mark {
  width: 42px;
  height: 42px;
  border: 2px solid var(--line);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.app-error h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font-zh);
}

.app-error code {
  margin-top: 12px;
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* Dashboard */

.dashboard-page {
  padding: 78px 0 20px;
}

.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 48px;
}

.dashboard-hero h1 {
  margin: 0;
  font-family: var(--font-zh);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.dashboard-hero > div:first-child > p:last-child {
  margin: 17px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 14px;
}

.period-switch {
  display: flex;
  padding: 4px;
  background: rgba(251, 249, 243, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.period-switch button {
  min-height: 44px;
  padding: 9px 14px;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 11px;
  font-weight: 600;
}

.period-switch button.is-active {
  background: var(--forest);
  color: white;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.metric-card {
  min-height: 176px;
  position: relative;
  overflow: hidden;
  padding: 26px;
  background: rgba(251, 249, 243, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.metric-card > p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 12px;
}

.metric-card > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.metric-card > span {
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 11px;
}

.metric-primary {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}

.metric-primary > p,
.metric-primary > span {
  color: rgba(255, 255, 255, 0.8);
}

.metric-primary > span {
  display: block;
  line-height: 1.45;
}

#dashboard-range {
  margin-bottom: 3px;
}

.metric-primary > strong {
  font-size: 38px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-card {
  min-height: 390px;
  padding: 34px;
  background: rgba(251, 249, 243, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}

.card-heading h2 {
  margin: 0;
  font-family: var(--font-zh);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.card-heading > span {
  color: var(--ink-soft);
  font-size: 11px;
}

.ranking-list {
  display: grid;
}

.ranking-item {
  display: grid;
  grid-template-columns: 28px 40px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 59px;
  border-top: 1px solid var(--line);
}

.ranking-number {
  color: rgba(23, 52, 46, 0.42);
  font-size: 9px;
}

.ranking-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: var(--mint-soft);
  border-radius: 10px;
}

.ranking-item div strong,
.ranking-item div span {
  display: block;
}

.ranking-item div strong {
  margin-bottom: 2px;
  font-family: var(--font-zh);
  font-size: 12px;
}

.ranking-item div span {
  color: var(--ink-soft);
  font-size: 11px;
}

.ranking-item b {
  font-size: 12px;
  font-weight: 600;
}

.network-card {
  background: var(--mint-soft);
}

.share-visual {
  min-height: 260px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
}

.share-ring {
  --foreign-share: 0deg;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  margin: auto;
  background: conic-gradient(var(--orange) 0 var(--foreign-share), var(--forest) var(--foreign-share) 360deg);
  border-radius: 50%;
}

.share-ring::before {
  content: "";
  width: 132px;
  height: 132px;
  grid-area: 1 / 1;
  background: var(--mint-soft);
  border-radius: 50%;
}

.share-ring > div {
  z-index: 1;
  grid-area: 1 / 1;
  text-align: center;
}

.share-ring strong,
.share-ring span {
  display: block;
}

.share-ring strong {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.share-ring span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 11px;
}

.share-copy > p {
  margin: 0 0 25px;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 12px;
  line-height: 1.7;
}

.share-copy > div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(23, 52, 46, 0.12);
  font-size: 11px;
}

.share-copy span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-family: var(--font-zh);
}

.share-copy i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.domestic-dot { background: var(--forest); }
.foreign-dot { background: var(--orange); }

.dashboard-bars {
  display: grid;
  gap: 21px;
}

.dashboard-bar-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
}

.dashboard-industry-item > p {
  margin: 9px 0 0 13px;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 11px;
  line-height: 1.6;
}

.dashboard-industry-item .bar-label strong::before {
  color: var(--forest);
}

.dashboard-industry-note {
  margin: 22px 0 0 34px;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 10px;
  line-height: 1.6;
}

.bar-rank {
  color: rgba(23, 52, 46, 0.38);
  font-size: 9px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.bar-label strong {
  font-family: var(--font-zh);
  font-size: 11px;
  font-weight: 600;
}

.bar-label span {
  color: var(--ink-soft);
  font-size: 11px;
}

.dashboard-track {
  height: 5px;
  overflow: hidden;
  background: rgba(23, 52, 46, 0.08);
  border-radius: 999px;
}

.dashboard-track i {
  display: block;
  height: 100%;
  background: var(--forest);
  border-radius: inherit;
}

.dashboard-recent {
  margin: 68px 0 78px;
}

.dashboard-model-note {
  margin: 24px 0 -38px;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 11px;
  line-height: 1.7;
}

.dashboard-empty {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--forest);
  border-radius: var(--radius-lg);
  color: white;
  text-align: center;
}

.dashboard-empty-visual {
  margin-bottom: 26px;
}

.dashboard-empty h2 {
  margin: 0 0 10px;
  font-family: var(--font-zh);
}

.dashboard-empty > p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-zh);
  font-size: 13px;
}

.primary-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  background: var(--orange);
  border-radius: 999px;
  color: white;
  font-family: var(--font-zh);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; }
  .about-flow { grid-template-columns: 1fr; padding: 42px; }
  .about-flow-heading h2 { max-width: 520px; }
  .dashboard-metrics { grid-template-columns: repeat(2, 1fr); }
  .metric-primary { grid-column: 1 / -1; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .method-copy { grid-column: 2; }
}

@media (max-width: 640px) {
  .site-header { gap: 10px; padding: 12px 0; }
  .brand > span:last-child { display: none; }
  .page-tabs { order: 3; width: 100%; }
  .page-tab { flex: 1; text-align: center; }
  .model-status span:last-child { font-size: 0; }
  .model-status span:last-child::after { content: "2022"; font-size: 10px; }
  .hero-proof { gap: 10px; padding: 10px 12px; }
  .hero-proof span { font-size: 10px; }
  .about-hero { min-height: auto; }
  .about-primary { margin-top: 28px; }
  .about-flow { margin-inline: -12px; padding: 34px 24px; border-radius: 22px; }
  .about-flow ol { grid-template-columns: 1fr; }
  .about-flow li { min-height: 150px; }
  .input-page { padding-top: 54px; }
  .entry-intro { display: block; }
  .entry-intro .text-link { display: inline-block; margin-top: 18px; }
  .result-panel { min-height: 700px; }
  .result-number { flex-wrap: wrap; }
  .result-number strong { font-size: 44px; }
  .result-number small { width: 100%; margin-left: 31px; }
  .breakdown-row { grid-template-columns: minmax(92px, auto) 1fr auto; gap: 8px; }
  .breakdown-row .progress-track { display: none; }
  .method-copy { grid-column: auto; }
  .privacy-note { grid-template-columns: 1fr; gap: 16px; margin-top: -60px; padding: 26px; }
  .dashboard-page { padding-top: 54px; }
  .dashboard-hero { display: block; }
  .dashboard-hero h1 { font-size: 40px; }
  .period-switch { margin-top: 28px; }
  .period-switch button { flex: 1; padding-inline: 8px; }
  .dashboard-metrics { grid-template-columns: repeat(2, 1fr); }
  .metric-card { min-height: 148px; padding: 20px; }
  .metric-card > strong { font-size: 26px; }
  .metric-primary > strong { font-size: 34px; }
  .dashboard-card { min-height: auto; padding: 26px 22px; }
  .share-visual { grid-template-columns: 1fr; }
  .share-ring { width: 170px; height: 170px; }
  .share-ring::before { width: 118px; height: 118px; }
  .ranking-item { grid-template-columns: 22px 36px 1fr auto; gap: 8px; }
  .ranking-icon { width: 32px; height: 32px; }
  .dashboard-empty { min-height: 500px; border-radius: 22px; }
}

/* Data sources and licensing */

.source-header {
  min-height: 88px;
}

.source-back {
  color: var(--forest);
  font-family: var(--font-zh);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

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

.source-language {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.limitations-block {
  margin-bottom: 72px;
  padding: 38px;
  background: var(--mint-soft);
  border-radius: var(--radius-md);
}

.limitations-block h2 {
  margin: 0;
  font-family: var(--font-zh);
  font-size: 26px;
  letter-spacing: -0.035em;
}

.limitations-block p:not(.section-kicker) {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 13px;
  line-height: 1.8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.source-main {
  padding: 86px 0 20px;
}

.source-intro {
  max-width: 760px;
  margin-bottom: 60px;
}

.source-intro h1 {
  margin: 0;
  font-family: var(--font-zh);
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.source-intro > p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 16px;
  line-height: 1.85;
}

.license-summary {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  margin-bottom: 72px;
  padding: 34px;
  background: var(--mint-soft);
  border-radius: var(--radius-md);
}

.license-summary > div:first-child {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--forest);
  border-radius: 50%;
  color: white;
  font-size: 22px;
}

.license-summary h2,
.source-section-heading h2,
.source-notice h2 {
  margin: 0;
  font-family: var(--font-zh);
  font-size: 26px;
  letter-spacing: -0.035em;
}

.license-summary p:last-child,
.source-notice p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 13px;
  line-height: 1.8;
}

.source-section {
  margin-bottom: 72px;
}

.source-section-heading {
  margin-bottom: 28px;
}

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

.source-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 42px;
  padding: 28px;
  background: rgba(251, 249, 243, 0.68);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.source-list article span {
  color: var(--orange);
  font-family: var(--font-zh);
  font-size: 11px;
  font-weight: 700;
}

.source-list h3 {
  margin: 7px 0 9px;
  font-family: var(--font-zh);
  font-size: 16px;
}

.source-list p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 12px;
  line-height: 1.75;
}

.source-list article > div:last-child strong {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
}

.source-list a,
.source-notice a {
  display: inline-block;
  margin: 12px 14px 0 0;
  color: var(--forest);
  font-family: var(--font-zh);
  font-size: 11px;
  font-weight: 600;
}

.source-notice {
  margin-bottom: 78px;
  padding: 38px;
  background: var(--forest);
  border-radius: var(--radius-md);
  color: white;
}

.source-notice p {
  color: rgba(255, 255, 255, 0.82);
}

.source-notice a {
  color: var(--orange-soft);
}

.attribution-block {
  margin-bottom: 78px;
  padding: 4px 8px;
}

.attribution-block h2 {
  margin: 0;
  font-family: var(--font-zh);
  font-size: 26px;
  letter-spacing: -0.035em;
}

.attribution-block ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding-left: 20px;
}

.attribution-block li {
  padding-left: 5px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.privacy-list {
  display: grid;
  gap: 12px;
  margin-bottom: 72px;
}

.privacy-list article {
  padding: 30px;
  background: rgba(251, 249, 243, 0.68);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.privacy-list h2 {
  margin: 0;
  font-family: var(--font-zh);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.privacy-list p,
.privacy-list li {
  color: var(--ink-soft);
  font-family: var(--font-zh);
  font-size: 13px;
  line-height: 1.8;
}

.privacy-list p {
  margin: 12px 0 0;
}

.privacy-list ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.privacy-list a,
.privacy-contact a {
  color: var(--forest);
  font-weight: 600;
}

@media (max-width: 700px) {
  footer a { display: inline-block; margin-top: 9px; }
  .footer-links { display: block; }
  .source-main { padding-top: 58px; }
  .source-intro h1 { font-size: 42px; }
  .license-summary { grid-template-columns: 1fr; padding: 26px; }
  .source-list article { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .source-notice { padding: 28px 24px; }
  .limitations-block { padding: 28px 24px; }
  .privacy-list article { padding: 24px 22px; }
}
