:root {
  --bg: #f6f2ea;
  --bg2: #ebe3d4;
  --surface: #fffdf8;
  --surface-2: #f8f3e9;
  --ink: #141b2d;
  --text: #1d2638;
  --muted: #6c7280;
  --line: #ded4c1;
  --line-strong: #c8b894;
  --navy: #14233b;
  --navy-2: #0f1a2b;
  --gold: #b18435;
  --gold-2: #d4ad62;
  --red: #9f3a3a;
  --green: #2f6f55;
  --shadow: 0 24px 80px rgba(25, 31, 45, 0.10);
  --soft-shadow: 0 14px 40px rgba(25, 31, 45, 0.07);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(20,35,59,.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20,35,59,.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbf8f1 0%, var(--bg) 46%, #efe8db 100%);
  background-size: 88px 88px, 88px 88px, auto;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px max(22px, calc((100vw - 1180px) / 2 + 22px));
  background: rgba(251,248,241,.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(222,212,193,.56);
  box-shadow: 0 12px 34px rgba(25, 31, 45, 0.06);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .02em; color: var(--ink); }
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold-2);
  font-size: 13px;
  letter-spacing: .08em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.nav-menu { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--muted); font-size: 14px; font-weight: 700; }
.nav-link:hover { color: var(--navy); }
main { max-width: 1180px; margin: 0 auto; padding: 34px 22px 88px; }
.hero { display: grid; grid-template-columns: 1.12fr .8fr; gap: 46px; align-items: center; padding: 68px 0 42px; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, h4 { color: var(--ink); }
h1 { font-size: clamp(46px, 7vw, 82px); line-height: .98; margin: 20px 0; letter-spacing: -0.06em;  }
h2 { font-size: clamp(28px, 4vw, 44px); margin: 10px 0; letter-spacing: -0.04em; }
h3 { font-size: 22px; margin: 10px 0; }
h4 { margin: 18px 0 8px; font-size: 15px; }
p { color: var(--muted); line-height: 1.78; }
.hero-subtitle { font-size: 20px; max-width: 760px; color: #475062; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-proof span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.56);
  color: #4d5564;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}
.button {
  border: 1px solid var(--line-strong);
  color: var(--navy);
  background: var(--surface);
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.button:hover { transform: translateY(-1px); border-color: var(--gold); box-shadow: var(--soft-shadow); }
.button.primary { background: var(--navy); color: #fffdf8; border-color: var(--navy); }
.button.primary:hover { background: var(--navy-2); }
.button.ghost { background: rgba(255,255,255,.45); }
.button.large { padding: 15px 24px; font-size: 16px; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.hero-card, .panel, .diagnose-box, .report-section, .lead-box, .example-card, .mini-card, .admin-item {
  background: rgba(255,253,248,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.executive-card {
  position: relative;
  padding: 34px;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.executive-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--gold), var(--navy));
}
.report-label { width: fit-content; color: var(--gold); font-weight: 900; letter-spacing: .12em; font-size: 12px; text-transform: uppercase; margin-bottom: 20px; }
.report-outline { display: grid; gap: 18px; }
.report-outline div { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.report-outline div:last-child { border-bottom: 0; padding-bottom: 0; }
.report-outline strong { font-size: 18px; color: var(--gold); letter-spacing: -.03em; }
.report-outline span { color: var(--ink); font-size: 17px; line-height: 1.7; font-weight: 800; }
ul { padding-left: 20px; color: var(--muted); line-height: 1.85; }
.section { margin-top: 58px; }
.section-head { margin-bottom: 22px; }
.section-head p { margin: 8px 0 0; }
.split-head { display: grid; align-items: end; }
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.example-card { padding: 24px; cursor: pointer; min-height: 258px; display: flex; flex-direction: column; justify-content: space-between; }
.example-card:hover { border-color: var(--gold); background: #fffaf0; transform: translateY(-2px); transition: .18s ease; }
.example-card .label { color: var(--gold); font-weight: 900; font-size: 13px; letter-spacing: .04em; }
.example-card p { font-size: 14.5px; color: #535b69; }
.diagnose-box { padding: 34px; border-top: 5px solid var(--navy); }
textarea, input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fffdf8;
  color: var(--text);
  border-radius: 12px;
  padding: 16px;
  outline: none;
  font-size: 16px;
  line-height: 1.75;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
textarea:focus, input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(177,132,53,.13); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 22px; }
.tag { border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; color: #565e6d; cursor: pointer; background: #fff9ee; font-weight: 800; }
.tag:hover { color: var(--navy); border-color: var(--gold); }
.submit-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.status-text { color: var(--muted); font-size: 14px; }
.diagnosis-loading {
  margin-top: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf8 0%, #f8f0df 100%);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--soft-shadow);
}
.diagnosis-loading-head {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  align-items: start;
}
.diagnosis-loading-head strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 4px;
}
.diagnosis-loading-head p { margin: 0; color: #535b69; }
.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 7px;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(177,132,53,.35);
  animation: pulseDot 1.55s ease-out infinite;
}
.progress-track {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8ddc9;
  margin: 20px 0 14px;
}
.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transition: width .55s ease;
  position: relative;
}
.progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
  animation: progressSheen 1.8s linear infinite;
}
.loading-checks { display: flex; gap: 10px; flex-wrap: wrap; }
.loading-checks span {
  border: 1px solid var(--line);
  background: rgba(255,253,248,.72);
  color: #535b69;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(177,132,53,.34); }
  70% { box-shadow: 0 0 0 12px rgba(177,132,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(177,132,53,0); }
}
@keyframes progressSheen {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mini-card { padding: 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--soft-shadow); }
.mini-card strong { color: var(--ink); font-size: 18px; }
.mini-card span { color: var(--muted); line-height: 1.7; }
.footer { text-align: center; color: var(--muted); padding: 34px; border-top: 1px solid var(--line); background: rgba(255,253,248,.52); }

/* .report-wrap { max-width: 1080px; } */
.loading-panel { text-align: center; padding: 120px 20px; }
.spinner { width: 44px; height: 44px; border: 4px solid var(--line); border-top-color: var(--gold); border-radius: 999px; margin: 0 auto 18px; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.report-hero { padding: 42px; margin: 28px 0 18px; background: #fffdf8; border: 1px solid var(--line); border-left: 7px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); }
.report-hero h1 { font-size: clamp(34px, 5vw, 58px); }
.report-hero h3 { color: var(--navy); line-height: 1.55; }
.report-context { color: #535b69; font-weight: 800; }
.report-index {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 18px;
  margin: 18px 0 24px;
}
.index-main, .index-side {
  background: rgba(255,253,248,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}
.index-main { padding: 30px; }
.index-main h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.25; letter-spacing: -0.03em; }
.index-main p { margin-bottom: 0; }
.index-side { padding: 26px; border-top: 5px solid var(--navy); }
.index-side strong { color: var(--ink); font-size: 17px; }
.index-side ol { margin: 14px 0 18px; padding-left: 22px; color: var(--muted); line-height: 1.75; font-weight: 800; }
.index-links { display: flex; gap: 8px; flex-wrap: wrap; }
.index-links a {
  border: 1px solid var(--line);
  background: #fffaf0;
  color: var(--navy);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}
.report-section { padding: 30px; margin: 20px 0; }
.report-section h2 { font-size: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.prose-block h3 { font-size: 23px; line-height: 1.6; color: var(--navy); }
.conclusion-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.conclusion-primary {
  grid-column: 1 / -1;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 14px;
  padding: 22px;
}
.conclusion-primary h3 { margin-top: 0; }
.conclusion-item {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.conclusion-item span { color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.conclusion-item p { margin: 8px 0 0; color: #4d5564; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-stack { display: grid; gap: 18px; }
.project-card, .bottleneck-card, .danger-card, .day-card, .roadmap-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 26px rgba(25,31,45,.045);
}
.project-card { border-top: 4px solid var(--gold); }
.project-detail { padding: 26px; }
.project-detail h3 { font-size: 25px; }
.project-detail ol { padding-left: 22px; color: var(--muted); line-height: 1.85; }
.tool-stack { background: #fffaf0; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tool-stack p { margin: 6px 0; }
.bottleneck-card { border-top: 4px solid var(--navy); }
.rank { color: var(--gold); background: rgba(177,132,53,.12); border: 1px solid rgba(177,132,53,.28); border-radius: 999px; padding: 4px 9px; font-weight: 900; display: inline-flex; margin-bottom: 10px; }
.muted { color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 820px; background: #fffdf8; border: 1px solid var(--line); }
th, td { border-bottom: 1px solid var(--line); padding: 14px; text-align: left; vertical-align: top; color: #596171; }
th { color: var(--ink); font-size: 14px; background: #f2eadb; }
td:first-child { color: var(--ink); font-weight: 800; }
.score { font-weight: 900; color: var(--gold); }
.danger-card { border-top: 4px solid var(--red); background: #fff6f2; }
.day-card { border-left: 4px solid var(--gold); }
.roadmap-card { border-left: 4px solid var(--navy); }
.tool-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-tier, .next-step-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.tool-tier h3 { margin-top: 0; }
.next-step-box { border-left: 5px solid var(--gold); background: #fffaf0; }
.lead-box { padding: 32px; margin: 28px 0; background: var(--navy); border-color: var(--navy); }
.lead-box h2 { color: #fffdf8; }
.lead-box p { color: rgba(255,253,248,.72); }
.lead-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.lead-form .full { grid-column: 1 / -1; }
.lead-box input, .lead-box textarea { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fffdf8; }
.lead-box input::placeholder, .lead-box textarea::placeholder { color: rgba(255,253,248,.52); }
.lead-box .button.primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.admin-wrap { max-width: 1100px; }
.panel { padding: 28px; }
.admin-login { display: flex; gap: 10px; }
.admin-list { margin-top: 18px; display: grid; gap: 14px; }
.admin-item { padding: 20px; }
.admin-item pre { white-space: pre-wrap; color: var(--muted); background: #f6efe2; padding: 12px; border-radius: 12px; overflow: auto; }

@media (max-width: 900px) {
  .hero, .examples, .service-grid, .card-grid, .tool-tier-grid, .split-head, .report-index, .conclusion-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 34px; gap: 24px; }
  .lead-form { grid-template-columns: 1fr; }
  .nav { padding: 14px 16px; }
  .nav-menu { gap: 12px; }
  main { padding: 18px 16px 64px; }
  h1 { font-size: clamp(42px, 12vw, 64px); }
}

@media (max-width: 520px) {
  .nav-menu .nav-link:first-child { display: none; }
  .diagnose-box, .report-section, .report-hero, .lead-box, .executive-card { padding: 22px; }
  .button { width: 100%; }
  .hero-actions { width: 100%; }
}
