:root {
  --bg: #f6f4ef;
  --panel: #ffffff;
  --ink: #171713;
  --muted: #716f67;
  --line: #e5e0d7;
  --orange: #df643d;
  --orange-soft: #fff0e9;
  --green: #17785a;
  --green-soft: #e8f5ef;
  --amber: #9a6411;
  --amber-soft: #fff5dd;
  --red: #aa3d35;
  --red-soft: #fff0ee;
  --radius: 18px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.review-topbar {
  min-height: 64px;
  padding: 12px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(246,244,239,.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.review-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.review-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 12px; }
.review-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-nav a { padding: 8px 11px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 700; }
.review-nav a:hover { background: #ece8e0; color: var(--ink); }

.review-shell { width: min(1440px, calc(100% - 32px)); margin: 28px auto 70px; }
.review-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 18px;
  margin-bottom: 18px;
}
.review-intro, .privacy-card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.review-intro { padding: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; }
.review-intro::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; top: -120px; background: radial-gradient(circle, rgba(223,100,61,.16), transparent 70%); }
.eyebrow { color: var(--orange); font-weight: 900; letter-spacing: .12em; font-size: 11px; }
h1 { margin: 10px 0 10px; font-size: clamp(30px, 5vw, 54px); line-height: 1.06; letter-spacing: -.045em; }
.review-intro p { max-width: 680px; color: var(--muted); line-height: 1.75; margin: 0; }
.privacy-card { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.privacy-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); font-size: 21px; }
.privacy-card h2 { margin: 0 0 8px; font-size: 18px; }
.privacy-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 13px; }
.privacy-pill { align-self: flex-start; padding: 7px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; }

.review-grid { display: grid; grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr); gap: 18px; align-items: start; }
.panel { padding: 22px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head h2 { font-size: 18px; margin: 0 0 5px; }
.panel-head p { color: var(--muted); margin: 0; font-size: 12px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field.full { grid-column: 1 / -1; }
.field label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: #4f4d47; font-size: 12px; font-weight: 800; }
.field label span { color: #a09d95; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 10px 11px; background: #fbfaf7; color: var(--ink); outline: none;
}
.field textarea { min-height: 82px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(223,100,61,.10); }
.form-actions { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
.btn { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fff; color: var(--ink); font-weight: 800; font-size: 13px; }
.btn:hover { border-color: #c9c2b7; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.danger { color: var(--red); }

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.metric { border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: #fbfaf7; }
.metric-label { font-size: 11px; color: var(--muted); font-weight: 800; }
.metric-value { margin-top: 7px; font-size: 24px; font-weight: 900; letter-spacing: -.03em; }
.metric-delta { margin-top: 4px; font-size: 11px; color: var(--muted); }
.metric-delta.up { color: var(--green); }
.metric-delta.down { color: var(--red); }

.action-list { display: grid; gap: 10px; }
.action-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.action-rank { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; }
.action-card.high .action-rank { background: var(--red-soft); color: var(--red); }
.action-card.medium .action-rank { background: var(--amber-soft); color: var(--amber); }
.action-card.good .action-rank { background: var(--green-soft); color: var(--green); }
.action-title { font-weight: 900; margin-bottom: 4px; }
.action-desc { color: var(--muted); font-size: 12px; line-height: 1.6; }
.empty { border: 1px dashed #cbc5bb; border-radius: 14px; padding: 32px 18px; text-align: center; color: var(--muted); }

.history-panel { margin-top: 18px; overflow: hidden; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }
th { color: var(--muted); font-weight: 900; background: #fbfaf7; }
td strong { font-size: 13px; }
.row-actions button { border: 0; background: transparent; color: var(--red); font-weight: 800; }
.history-tools { display: flex; gap: 8px; flex-wrap: wrap; }

.next-links { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.next-link { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--panel); }
.next-link strong { display: block; font-size: 13px; margin-bottom: 5px; }
.next-link span { font-size: 11px; color: var(--muted); line-height: 1.5; }
.next-link:hover { border-color: var(--orange); transform: translateY(-1px); }

@media (max-width: 940px) {
  .review-hero, .review-grid { grid-template-columns: 1fr; }
  .next-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .review-topbar { align-items: flex-start; }
  .review-nav { justify-content: flex-end; }
  .review-nav a:nth-child(n+3) { display: none; }
  .review-shell { width: min(100% - 20px, 1440px); margin-top: 12px; }
  .form-grid, .metrics { grid-template-columns: 1fr; }
  .next-links { grid-template-columns: 1fr; }
  .panel, .review-intro, .privacy-card { border-radius: 14px; }
}
