/* ============================================================
   教授评价网 · jiaoshoupingjia.net
   Design system — emerald + coral, light-first
   ============================================================ */

:root {
  --bg: #F7FAF8;
  --surface: #FFFFFF;
  --surface-alt: #FBFDFC;
  --ink: #152822;
  --muted: #5D7168;
  --line: #E4EDE8;
  --line-strong: #CFDED7;
  --placeholder: #94A69E;

  --primary: #059669;
  --primary-hover: #047857;
  --primary-deep: #04614A;
  --primary-soft: #DFF3EA;
  --primary-line: #BDE5D4;

  --coral: #FF6F59;
  --coral-deep: #EF6351;
  --coral-soft: #FFEDE9;

  --ring: 0 0 0 3px rgba(5, 150, 105, .22);
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(21, 40, 34, .05);
  --shadow: 0 1px 2px rgba(21, 40, 34, .04), 0 10px 30px -12px rgba(21, 40, 34, .14);
  --shadow-lg: 0 24px 60px -20px rgba(21, 40, 34, .25);

  --font: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --header-h: 64px;
  --bar-h: 38px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: inline-block; vertical-align: middle; }
a { color: var(--primary); }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }
::selection { background: #B9E7D6; color: var(--ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.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;
}

/* ---------- layout ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 76px 0; }
.section-compact { padding-top: 44px; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent; border-radius: 10px;
  padding: 0 20px; height: 44px; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
  text-decoration: none; white-space: nowrap; user-select: none;
}
.btn svg { flex: none; }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(5, 150, 105, .45);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: #F3FAF6; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: rgba(5, 150, 105, .08); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--muted); font-size: 13.5px; font-family: inherit;
}
.link-btn:hover { color: var(--primary); }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s; outline: none;
}
textarea.input { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; line-height: 1.75; }
.input:focus { border-color: var(--primary); box-shadow: var(--ring); }
.input::placeholder { color: var(--placeholder); }
select.input { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235D7168' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; cursor: pointer; }
.field-hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.checkbox-field { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.checkbox-field input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; cursor: pointer; }
.checkbox-field a { color: var(--primary); text-decoration: none; font-weight: 600; }
.checkbox-field a:hover { text-decoration: underline; }

.password-wrap { position: relative; }
.password-wrap .input { padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--muted);
}
.pw-toggle:hover { color: var(--ink); background: #F1F6F3; }

.form-msg { display: none; padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.form-msg.error { display: block; background: var(--coral-soft); color: #B3412E; border: 1px solid #FFD2C9; }
.form-msg.success { display: block; background: var(--primary-soft); color: #0B6B4F; border: 1px solid var(--primary-line); }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.7; margin-top: 14px; }

/* ---------- announcement bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--bar-h);
  background: linear-gradient(90deg, #04614A, #059669 55%, #0AA06E);
  color: #fff;
}
.topbar-inner {
  height: 100%; display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; white-space: nowrap; overflow: hidden;
}
.topbar-text { overflow: hidden; text-overflow: ellipsis; }
.topbar-text b { font-weight: 700; }
.pulse-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #B7F5DC; flex: none; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: rgba(183, 245, 220, .5); animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.6); opacity: 1; }
  70%, 100% { transform: scale(2); opacity: 0; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: var(--bar-h); z-index: 50;
  background: rgba(247, 250, 248, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; color: var(--ink);
  text-decoration: none; letter-spacing: .02em; flex: none;
}
.brand:hover { color: var(--ink); }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a {
  padding: 8px 14px; border-radius: 9px;
  color: var(--muted); font-size: 15px; font-weight: 500;
  text-decoration: none; transition: all .15s;
}
.main-nav a:hover { color: var(--ink); background: rgba(5, 150, 105, .08); }
.header-auth { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 210px; overflow: hidden;
  height: 36px; padding: 0 13px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-deep);
  font-size: 13.5px; font-weight: 600; border: 1px solid var(--primary-line);
}
.user-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hamburger {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-strong); border-radius: 10px;
  cursor: pointer; color: var(--ink); margin-left: auto;
}
.hamburger:hover { background: #F1F6F3; }
.mobile-auth { display: none; }

/* ---------- sections head ---------- */
.section-head { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.section-head .kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  color: var(--coral-deep);
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.01em; line-height: 1.25; margin: 10px 0 12px; }
.section-head p { color: var(--muted); font-size: 15.5px; line-height: 1.8; }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 88px 0 68px; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(5, 150, 105, .10), transparent 60%),
    radial-gradient(700px 400px at -8% 34%, rgba(255, 111, 89, .07), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero-copy { position: relative; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-soft); color: var(--primary-deep);
  border: 1px solid var(--primary-line);
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(36px, 5.2vw, 58px); line-height: 1.14;
  letter-spacing: -.02em; font-weight: 800; margin: 22px 0 18px;
}
.hero h1 .hl { color: var(--primary); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 7px; height: 12px;
  background: var(--coral-soft); z-index: -1; border-radius: 4px;
}
.hero-sub { font-size: 17px; line-height: 1.9; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* hero mockup */
.hero-visual { position: relative; max-width: 460px; margin-left: auto; }
.mock-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 24px; transform: rotate(-1.5deg);
}
.mock-top { display: flex; gap: 13px; align-items: center; }
.mock-avatar {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  background: linear-gradient(135deg, #059669, #10B981);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px;
}
.mock-name { font-weight: 800; font-size: 16.5px; }
.mock-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mock-rating { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; }
.mock-score { font-size: 42px; font-weight: 800; color: var(--coral-deep); letter-spacing: -.03em; line-height: 1; }
.mock-review-count { font-size: 13px; color: var(--muted); }
.mock-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.mock-tag { font-size: 12px; background: var(--primary-soft); color: var(--primary-deep); padding: 4px 11px; border-radius: 999px; font-weight: 600; }
.mock-note {
  margin-top: 16px; padding-top: 15px; border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--muted); line-height: 1.75;
}
.mock-note b { color: var(--ink); font-weight: 600; }
.float-chip {
  position: absolute; z-index: 2;
  display: flex; gap: 10px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); border-radius: 13px;
  padding: 11px 15px; font-size: 13px; font-weight: 600; color: var(--ink);
}
.float-chip .chip-icon {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
}
.float-chip small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.float-chip.a { top: -20px; right: -8px; transform: rotate(2deg); }
.float-chip.a .chip-icon { background: var(--coral-soft); color: var(--coral-deep); }
.float-chip.b { bottom: -18px; left: -16px; transform: rotate(-2deg); }
.float-chip.b .chip-icon { background: var(--primary-soft); color: var(--primary); }

/* ---------- trust strip ---------- */
.trust-strip {
  background: var(--surface-alt);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 16px; }
.trust-avatars { display: flex; }
.trust-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 13.5px; font-weight: 700;
  border: 2px solid var(--surface-alt);
}
.trust-avatar + .trust-avatar { margin-left: -9px; }
.trust-text { font-size: 14px; color: var(--muted); }
.trust-text b { color: var(--ink); font-weight: 700; }

/* ---------- school chips ---------- */
.school-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.school-chip {
  padding: 9px 17px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; color: var(--muted); font-weight: 500;
  transition: all .15s;
}
.school-chip:hover { border-color: var(--primary); color: var(--primary-deep); background: #F3FAF6; }

/* ---------- features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-sm); transition: all .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature-icon.emerald { background: var(--primary-soft); color: var(--primary); }
.feature-icon.coral { background: var(--coral-soft); color: var(--coral-deep); }
.feature-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px; position: relative;
}
.step-num {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.step .step-line {
  position: absolute; top: 43px; right: -18px; width: 18px;
  border-top: 2px dashed var(--line-strong);
}
.step:last-child .step-line { display: none; }

/* ---------- stats band ---------- */
.stats-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #04513E, #046A4F 45%, #07885F);
  border-radius: 20px; padding: 48px 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  color: #fff; text-align: center;
}
.stats-band::before, .stats-band::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .05);
}
.stats-band::before { width: 340px; height: 340px; top: -140px; right: -90px; }
.stats-band::after { width: 260px; height: 260px; bottom: -130px; left: -80px; background: rgba(255, 255, 255, .04); }
.stat b { display: block; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; position: relative; }
.stat span { display: block; font-size: 13.5px; opacity: .78; margin-top: 7px; position: relative; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 56px 32px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.cta::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), #10B981 50%, var(--coral));
}
.cta h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.01em; }
.cta p { color: var(--muted); margin-top: 12px; font-size: 15.5px; }
.cta-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 52px 0 28px; margin-top: 84px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.footer-about .brand { margin-bottom: 14px; }
.footer-about p { font-size: 14px; color: var(--muted); line-height: 1.85; max-width: 340px; }
.footer-mail {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 13.5px; color: var(--muted); text-decoration: none;
}
.footer-mail:hover { color: var(--primary); }
.site-footer h4 { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .04em; margin-bottom: 12px; }
.footer-links a {
  display: block; color: var(--muted); text-decoration: none;
  font-size: 14.5px; padding: 6px 0; transition: color .15s;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}

/* ---------- stars ---------- */
.stars { position: relative; display: inline-flex; line-height: 0; }
.stars .row { display: inline-flex; gap: 2px; }
.stars .base { color: #E3DCD0; }
.stars .fill {
  position: absolute; inset: 0 auto 0 0; overflow: hidden;
  color: var(--coral); white-space: nowrap;
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding: 52px 0 8px;
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(5, 150, 105, .08), transparent 60%),
    radial-gradient(560px 280px at 0% 0%, rgba(255, 111, 89, .05), transparent 60%);
}
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.page-hero p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }

/* ---------- search page ---------- */
.search-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 22px; margin-top: 28px;
}
.search-row { display: flex; gap: 12px; align-items: stretch; }
.search-input { position: relative; flex: 1; }
.search-input > svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.search-input .input { height: 48px; padding-left: 44px; border-radius: 12px; }
.filter-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 17px; border-top: 1px solid var(--line);
}
.filter-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.filter-select {
  height: 34px; padding: 0 28px 0 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); background-color: var(--surface);
  font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235D7168' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  margin-left: auto;
}
.filter-select:focus { border-color: var(--primary); box-shadow: var(--ring); }
.results-count { margin-top: 20px; font-size: 14px; color: var(--muted); }
.results-count b { color: var(--ink); font-weight: 700; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
.prof-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  transition: all .18s; display: flex; flex-direction: column;
}
.prof-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.prof-head { display: flex; gap: 12px; align-items: center; }
.prof-avatar {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  font-weight: 800; color: #fff; font-size: 16px;
}
.prof-name { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.prof-school { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.prof-rating { display: flex; align-items: center; gap: 9px; margin-top: 15px; flex-wrap: wrap; }
.prof-score { font-size: 21px; font-weight: 800; color: var(--coral-deep); letter-spacing: -.02em; }
.prof-meta { font-size: 12.5px; color: var(--muted); }
.prof-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 13px; }
.prof-tag { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-deep); font-weight: 600; }
.prof-cta {
  margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line);
  font-weight: 700; font-size: 14px; color: var(--primary);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.prof-card .prof-tags { margin-bottom: 0; }
.prof-cta:hover { color: var(--primary-hover); text-decoration: underline; }
.empty-state {
  margin-top: 14px; padding: 60px 24px; text-align: center;
  border: 1.5px dashed var(--line-strong); border-radius: 16px;
  background: var(--surface-alt);
}
.empty-state svg { color: var(--placeholder); margin-bottom: 14px; }
.empty-state h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }

/* ---------- rankings ---------- */
.rank-toolbar {
  display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin-top: 28px;
}
.rank-table-wrap {
  margin-top: 18px; overflow-x: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.rank-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.rank-table th {
  font-size: 12.5px; color: var(--muted); text-align: left; font-weight: 600;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: var(--surface-alt); letter-spacing: .03em; white-space: nowrap;
}
.rank-table td {
  padding: 15px 18px; border-bottom: 1px solid var(--line);
  font-size: 14.5px; vertical-align: middle;
}
.rank-table tbody tr:last-child td { border-bottom: none; }
.rank-table tbody tr:hover { background: #F6FBF8; }
.rank-badge {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 9px;
  font-size: 13px; font-weight: 800;
  background: #F1F5F3; color: var(--muted);
}
.rank-badge.r1 { background: #FEF3C7; color: #B45309; }
.rank-badge.r2 { background: #EEF2F1; color: #4A5C55; }
.rank-badge.r3 { background: #FBECD9; color: #9A6B2F; }
.rank-prof { display: flex; align-items: center; gap: 11px; font-weight: 700; white-space: nowrap; }
.rank-prof .prof-avatar { width: 36px; height: 36px; font-size: 14px; border-radius: 10px; }
.rank-sub { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.score-cell { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--coral-deep); white-space: nowrap; }
.review-count { font-weight: 700; }
.rank-date { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------- report page ---------- */
.report-card {
  max-width: 780px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 34px 32px; margin-top: 28px;
}
.report-target {
  font-size: 14.5px; color: var(--primary-deep);
  background: var(--primary-soft); border: 1px solid var(--primary-line);
  padding: 11px 15px; border-radius: 11px; margin-bottom: 22px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
.picker-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.rating-pickers { display: grid; gap: 10px; }
.picker {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-alt); transition: border-color .15s;
}
.picker:hover { border-color: var(--line-strong); }
.picker .name { font-size: 14.5px; font-weight: 600; }
.picker .val { font-size: 13px; color: var(--muted); width: 34px; text-align: right; }
.picker .val.filled { color: var(--coral-deep); font-weight: 700; }
.star-picker { display: flex; gap: 3px; }
.star-picker button {
  background: none; border: 0; padding: 3px; cursor: pointer;
  color: #DCE5E1; transition: color .12s, transform .12s; line-height: 0;
}
.star-picker button:hover { transform: scale(1.16); color: #F5B8AD; }
.star-picker button.on { color: var(--coral); }
.star-picker button.on:hover { color: var(--coral-deep); }
.char-count { text-align: right; font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.anon-field {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--ink); line-height: 1.6;
  padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface-alt); cursor: pointer;
}
.anon-field input[type="checkbox"] { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--primary); flex: none; }
.anon-field small { display: block; color: var(--muted); font-size: 12.5px; }
.success-panel { display: none; text-align: center; padding: 44px 24px 28px; }
.success-panel.show { display: block; }
.success-icon {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; margin: 0 auto 20px;
}
.success-panel h2 { font-size: 23px; font-weight: 800; margin-bottom: 10px; }
.success-panel p { color: var(--muted); font-size: 15px; line-height: 1.85; max-width: 420px; margin: 0 auto; }
.success-actions { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* ---------- auth pages ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background:
  radial-gradient(800px 400px at 100% 0%, rgba(5, 150, 105, .08), transparent 60%),
  radial-gradient(640px 360px at 0% 100%, rgba(255, 111, 89, .06), transparent 60%);
}
.auth-brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 26px 0 0; padding: 0 28px;
  font-size: 19px; font-weight: 800; letter-spacing: .02em;
  color: var(--ink); text-decoration: none;
}
.auth-wrap { flex: 1; display: grid; place-items: center; padding: 44px 20px; }
.auth-card {
  width: 100%; max-width: 424px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 38px 34px 32px;
}
.auth-logo {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.auth-logo .logo-text { font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.auth-card h1 { font-size: 24px; font-weight: 800; text-align: center; letter-spacing: -.01em; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14.5px; line-height: 1.75; margin: 9px 0 26px; }
.auth-links { display: flex; justify-content: flex-end; margin: -6px 0 14px; }
.auth-alt { text-align: center; font-size: 14.5px; color: var(--muted); margin-top: 22px; }
.auth-alt a { font-weight: 700; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.forgot-block { display: none; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-alt); margin-bottom: 18px; }
.forgot-block.open { display: block; }
.forgot-block .field { margin-bottom: 14px; }
.auth-footer {
  padding: 22px; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.8;
}
.auth-footer a { color: var(--muted); text-decoration: none; margin: 0 4px; }
.auth-footer a:hover { color: var(--primary); }

/* ---------- legal/prose ---------- */
.prose { max-width: 720px; margin: 0 auto; padding: 56px 20px 84px; }
.prose h1 { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.prose .updated { color: var(--muted); font-size: 13.5px; margin: 10px 0 34px; }
.prose h2 { font-size: 18px; font-weight: 700; margin: 34px 0 12px; }
.prose p { color: #3D514A; font-size: 14.5px; line-height: 1.95; margin-bottom: 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { color: #3D514A; font-size: 14.5px; line-height: 1.9; margin-bottom: 6px; }
.prose a { font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step .step-line { display: none; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 10px 16px 14px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; font-size: 15.5px; }
  .mobile-auth {
    display: flex; flex-direction: column; gap: 10px;
    padding: 12px 10px 6px; margin-top: 6px;
    border-top: 1px solid var(--line);
  }
  .mobile-auth .btn, .mobile-auth .user-chip { width: 100%; height: 44px; justify-content: center; }
  .hamburger { display: inline-flex; margin-left: auto; }
  .header-auth { margin-left: 0; display: none; }
  .brand { font-size: 17px; }
}

@media (max-width: 640px) {
  :root { --bar-h: 32px; }
  .topbar-inner { font-size: 11.5px; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .hero-actions .btn { width: 100%; }
  .float-chip.a { right: -4px; top: -16px; }
  .float-chip.b { left: -6px; bottom: -14px; }
  .mock-card { transform: none; }
  .features-grid, .steps { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); padding: 36px 20px; }
  .results-grid { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; }
  .search-row .btn { width: 100%; height: 48px; }
  .filter-select { margin-left: 0; width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
  .report-card { padding: 26px 20px; }
  .cta { padding: 44px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-about p { max-width: none; }
  .picker { flex-direction: column; align-items: flex-start; gap: 8px; }
  .picker .val { text-align: left; width: auto; }
  .auth-brand { padding: 0 20px; }
  .auth-card { padding: 30px 22px 26px; }
  .trust-inner { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
