:root {
  --bg: #f6f0e8;
  --surface: rgba(255, 251, 245, 0.9);
  --surface-strong: rgba(255, 253, 249, 0.96);
  --border: rgba(57, 38, 23, 0.1);
  --text: #201812;
  --muted: #6a5a4d;
  --accent: #c86a33;
  --accent-deep: #9b3d1a;
  --accent-soft: rgba(200, 106, 51, 0.12);
  --teal-soft: rgba(22, 92, 99, 0.12);
  --teal-deep: #165c63;
  --success-soft: rgba(26, 121, 85, 0.12);
  --success-text: #1a7955;
  --shadow: 0 28px 80px rgba(63, 39, 18, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(22, 92, 99, 0.15), transparent 26%),
    radial-gradient(circle at top right, rgba(200, 106, 51, 0.15), transparent 22%),
    linear-gradient(180deg, #faf5ee 0%, #f6f0e8 46%, #efe1d0 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  opacity: 0.32;
  pointer-events: none;
}

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

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 44px;
}

.hero-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.hero-copy h1,
.panel h2 {
  margin: 0;
  font-family: "STZhongsong", "Songti SC", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.eyebrow,
.section-tag,
.field-label {
  display: block;
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field-label {
  letter-spacing: 0.08em;
}

.hero-text,
.panel-note,
.summary-tip,
.result-note,
.method-description,
.footer-line {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 640px;
  margin: 14px 0 0;
  font-size: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.meta-chip {
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.8);
  box-shadow: 0 14px 34px rgba(62, 39, 18, 0.06);
}

.meta-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.panel-head.compact-head {
  margin-bottom: 16px;
}

.panel-note {
  margin: 2px 0 0;
  font-size: 0.95rem;
  text-align: right;
}

.input-shell {
  display: flex;
  align-items: center;
  min-height: 76px;
  border: 1px solid rgba(57, 38, 23, 0.12);
  border-radius: 20px;
  background: var(--surface-strong);
  overflow: hidden;
}

.input-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  align-self: stretch;
  color: var(--accent-deep);
  font-size: 1.45rem;
  font-weight: 700;
  background: var(--accent-soft);
}

.amount-input {
  flex: 1;
  min-width: 0;
  padding: 0 20px;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  background: transparent;
}

.amount-input::placeholder {
  color: rgba(106, 90, 77, 0.58);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.quick-amount,
.method-card,
.primary-btn {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.quick-amount {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(57, 38, 23, 0.1);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.94);
  color: var(--text);
  cursor: pointer;
}

.quick-amount.active {
  border-color: rgba(22, 92, 99, 0.3);
  background: rgba(220, 241, 242, 0.85);
  box-shadow: 0 12px 24px rgba(22, 92, 99, 0.1);
}

.quick-amount:hover,
.method-card:hover,
.primary-btn:hover {
  transform: translateY(-2px);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.helper-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(57, 38, 23, 0.08);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.76);
  color: var(--muted);
  font-size: 0.94rem;
}

.section-divider {
  height: 1px;
  margin: 22px 0;
  background: rgba(57, 38, 23, 0.08);
}

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

.method-card {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(57, 38, 23, 0.1);
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.9);
  text-align: left;
  cursor: pointer;
}

.method-card.active {
  border-color: rgba(22, 92, 99, 0.35);
  background: rgba(219, 240, 242, 0.84);
  box-shadow: 0 12px 24px rgba(22, 92, 99, 0.08);
}

.method-name {
  font-size: 1rem;
  font-weight: 700;
}

.summary-panel {
  position: sticky;
  top: 18px;
}

.summary-total {
  display: grid;
  gap: 4px;
  margin: 18px 0 16px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(22, 92, 99, 0.96), rgba(14, 59, 66, 0.98));
  color: #f8f5f0;
}

.summary-usd {
  font-size: 1rem;
  opacity: 0.8;
}

.summary-cny {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
}

.summary-list {
  display: grid;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(57, 38, 23, 0.08);
}

.summary-item:last-child {
  border-bottom: 0;
}

.summary-item span {
  color: var(--muted);
}

.summary-item strong {
  text-align: right;
  word-break: break-word;
}

.primary-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  border: 0;
  border-radius: 999px;
  color: #fffaf4;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 14px 26px rgba(155, 61, 26, 0.2);
  cursor: pointer;
}

.summary-tip {
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.result-panel {
  margin-top: 18px;
}

.result-panel[hidden] {
  display: none;
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success-text);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.result-item {
  padding: 16px;
  border: 1px solid rgba(57, 38, 23, 0.08);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.78);
}

.result-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.result-note {
  margin: 16px 0 0;
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 18px;
  font-size: 0.94rem;
}

@media (max-width: 920px) {
  .hero-bar,
  .layout-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .hero-bar {
    display: grid;
  }

  .hero-meta {
    justify-content: start;
  }

  .summary-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .panel {
    padding: 20px;
    border-radius: 22px;
  }

  .quick-grid,
  .method-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .panel-head {
    flex-direction: column;
  }

  .panel-note {
    text-align: left;
  }
}
