:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-soft: #f7f3ea;
  --surface-warm: #f2ece2;
  --text: #1f1d1a;
  --text-soft: #666157;
  --text-muted: #8a8378;
  --accent: #c96442;
  --accent-soft: rgba(201, 100, 66, 0.12);
  --success-soft: rgba(123, 139, 120, 0.12);
  --surface-strong: #fbf9f5;
  --line-strong: #e6dfd2;
  --dark: #30302e;
  --dark-text: #faf9f5;
  --dark-soft: #b0aea5;
  --focus: #3898ec;
  --success: #7b8b78;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --ring: 0 0 0 1px rgba(230, 223, 210, 1);
  --shadow-soft: 0 8px 20px rgba(31, 29, 26, 0.05);
  --shadow-float: 0 12px 28px rgba(31, 29, 26, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
  padding: 16px;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { border: none; }

.phone {
  width: min(100%, 390px);
  min-height: 844px;
  border-radius: 32px;
  background: var(--bg);
  border: 1px solid rgba(31, 29, 26, 0.08);
  box-shadow: 0 16px 40px rgba(31, 29, 26, 0.12);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 24px;
  border-radius: 18px;
  background: rgba(31, 29, 26, 0.9);
  z-index: 3;
}
.screen {
  padding: 52px 16px 96px;
  position: relative;
}
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo,
.icon-link,
.icon-btn,
.icon-box,
.avatar-badge,
.nav-item .dot {
  font-size: 18px;
}
.logo i,
.icon-link i,
.icon-btn i,
.icon-box i,
.avatar-badge i,
.nav-item .dot i,
.upload-symbol i {
  line-height: 1;
}
.logo {  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #efe6da;
  color: var(--accent);
  border: 1px solid var(--line-strong);
}
.brand strong {
  display: block;
  font-size: 17px;
}
.brand span {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  margin-top: 2px;
}
.icon-link,
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 12px;
  border: 1px solid var(--line-strong);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.serif {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  letter-spacing: -0.02em;
}
.page-hero,
.card,
.panel,
.cta-box,
.process-wrap,
.result-hero,
.score-total,
.profile-card,
.history-card,
.upload-box,
.summary-box {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
}
.page-hero::after,
.result-hero::after,
.profile-card::after,
.summary-box::after {
  content: none;
}
.page-hero,
.card,
.panel,
.cta-box,
.result-hero,
.score-total,
.profile-card,
.history-card,
.summary-box { padding: 18px; }
.section { margin-top: 24px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 14px;
}
.section-head h1,
.section-head h2,
.page-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.16;
  font-weight: 500;
}
.section-head a,
.link-text {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.muted { color: var(--text-soft); }
.tiny { color: var(--text-muted); font-size: 12px; }
.btn-row,
.hero-actions,
.cta-actions { display: grid; gap: 10px; }
.hero-actions.two,
.btn-row.two { grid-template-columns: 1fr 1fr; }
.btn {
  min-height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-dark {
  background: var(--dark);
  color: var(--dark-text);
  border-color: rgba(48, 48, 46, 0.7);
}
.quick-grid,
.style-grid,
.stats-grid,
.action-grid { display: grid; gap: 12px; }
.quick-grid,
.style-grid,
.action-grid { grid-template-columns: repeat(2, 1fr); }
.card h3,
.history-card h3,
.profile-card h3,
.result-section h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.22;
  font-weight: 500;
}
.card p,
.panel p,
.history-card p,
.profile-card p,
.result-section p,
.page-hero p,
.cta-box p { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.65; }
.icon-box {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 12px;
  color: var(--accent);
  background: #f2e6de;
  border: 1px solid var(--line-strong);
}
.chips,
.filter-row,
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 12px;
  border: 1px solid var(--line-strong);
}
.chip.active {
  background: rgba(201,100,66,0.14);
  color: var(--accent);
}
.chip.success {
  background: var(--success-soft);
  color: var(--success);
}
.chip.warm {
  background: var(--accent-soft);
  color: var(--accent);
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 2px;
}
.mini-stat {
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
}
.mini-stat strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 11px;
}
.mini-stat span {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}
.highlight-banner,
.quote-box {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
}
.highlight-banner strong,
.quote-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 12px;
}
.upload-symbol {
  font-size: 28px;
  margin-bottom: 8px;
}
.profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.avatar-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--accent);
  background: #f2e6de;
  border: 1px solid var(--line-strong);
}
.preview-art,
.case-art,
.result-art,
.cover-art,
.loading-art {
  border-radius: 18px;
  background: linear-gradient(180deg, #fbf9f5, #f3ede2);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}
.preview-art { height: 188px; }
.case-art { width: 118px; min-height: 120px; }
.result-art,
.loading-art { height: 220px; }
.preview-art svg,
.result-art svg,
.loading-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}
.list,
.score-list,
.history-list,
.info-list,
.result-list,
.step-list { display: grid; gap: 10px; }
.list-item,
.score-item,
.info-item,
.result-item,
.step-item {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
}
.step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.step-no {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(201,100,66,0.14);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 30px;
}
.result-item strong,
.score-item strong,
.info-item strong,
.list-item strong { display: block; margin-bottom: 6px; font-size: 12px; color: var(--text-muted); }
.field,
.textarea,
.upload-box {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
}
.field { min-height: 48px; padding: 0 14px; }
.textarea { min-height: 152px; padding: 14px; resize: none; }
.upload-box {
  min-height: 116px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  text-align: center;
  padding: 16px;
}
.style-card {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.style-card.active { border-color: rgba(201,100,66,0.48); }
.style-thumb {
  height: 112px;
  background: linear-gradient(180deg, #fbf9f5, #f1eadf);
}
.style-copy { padding: 14px; }
.style-copy h3 { margin: 0 0 4px; font-size: 16px; }
.process-wrap,
.loading-wrap {
  padding: 18px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
}
.process-wrap p,
.loading-wrap p,
.process-wrap .tiny,
.loading-wrap .tiny { color: var(--text-soft); }
.loading-ring {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 8px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,241,234,0.9);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
  animation: spin 1.3s linear infinite;
}
.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #eee7da;
  overflow: hidden;
  margin: 14px 0 10px;
}
.progress-bar span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.kpi .info-item { text-align: center; }
.kpi .info-item span { font-size: 20px; font-weight: 700; color: var(--text); }
.case-card,
.history-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  align-items: start;
}
.bottom-nav {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border-radius: 22px;
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 20px rgba(31, 29, 26, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.nav-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
}
.nav-item .dot {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: transparent;
}
.nav-item.active { color: var(--accent); }
.nav-item.active .dot {
  background: rgba(201, 100, 66, 0.12);
  border: 1px solid rgba(201, 100, 66, 0.18);
}
.result-section { margin-top: 16px; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
