*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  min-width: 1240px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; vertical-align: middle; }
table { border-collapse: collapse; }

.hidden { display: none !important; }
.min-w-0 { min-width: 0; }

.wrap,
.page-container {
  width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.icon { width: 1.25rem; height: 1.25rem; display: inline-block; vertical-align: middle; }
.icon-sm { width: 1rem; height: 1rem; display: inline-block; vertical-align: middle; }
.icon-lg { width: 1.5rem; height: 1.5rem; display: inline-block; vertical-align: middle; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; flex-shrink: 0; align-items: center; gap: 0.75rem; }
.brand-title { display: block; font-size: 1.25rem; font-weight: 700; color: #020617; }
.brand-sub { display: block; font-size: 10px; color: #94a3b8; }
.brand-mark {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #0891b2 0%, #14b8a6 100%);
  box-shadow: 0 12px 24px rgba(14, 116, 144, 0.22);
  color: #fff;
}
.brand-mark svg { width: 1.25rem; height: 1.25rem; fill: rgba(255,255,255,.15); }
.brand-logo-img {
  height: 2.25rem;
  width: 2.25rem;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 12px 24px rgba(14, 116, 144, 0.22);
  background: #ecfeff;
}

.nav-main { display: flex; align-items: center; align-self: stretch; gap: 2.25rem; }
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 76px;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  line-height: 1;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  transition: color .15s;
}
.nav-link:hover, .nav-link.active { color: #0e7490; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #0e7490;
}

.header-actions { display: flex; flex-shrink: 0; align-items: center; gap: 0.75rem; }

.header-search { position: relative; }
.header-search input {
  height: 2.75rem;
  width: 240px;
  border-radius: 999px;
  border: 1px solid #f1f5f9;
  background: rgba(248, 250, 252, 0.9);
  padding: 0 1rem 0 2.75rem;
  font-size: 0.875rem;
  color: #334155;
  outline: none;
}
.header-search input:focus {
  border-color: rgba(14, 116, 144, 0.3);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.1);
}
.header-search .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
  pointer-events: none;
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  background: #0e7490;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.btn-login:hover { background: #155e75; }

.btn-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}
.btn-user:hover { border-color: rgba(14, 116, 144, 0.3); }

/* Footer */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
}
.footer-grid h3 { font-size: 0.875rem; font-weight: 700; color: #020617; }
.footer-grid ul { list-style: none; margin-top: 1rem; }
.footer-grid li { margin-bottom: 0.5rem; font-size: 0.875rem; color: #64748b; }
.footer-grid a, .footer-grid button {
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.875rem;
  color: #64748b;
}
.footer-grid a:hover, .footer-grid button:hover { color: #0e7490; }
.footer-desc { margin-top: 1rem; max-width: 24rem; font-size: 0.875rem; line-height: 1.6; color: #64748b; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding: 1.5rem 0 2.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Shared */
.primary-action {
  border: 0;
  border-radius: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #5b5ce2, #4f46e5);
  box-shadow: 0 14px 26px rgba(79, 70, 229, 0.28);
  transition: transform .15s;
}
.primary-action:hover { transform: translateY(-1px); }
.primary-action:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.home-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(14, 116, 144, 0.7);
}
.home-section-label-risk { color: rgba(225, 29, 72, 0.7); }

.home-table-card {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.05);
}
.home-empty-card {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #fff;
  padding: 3.5rem 1rem;
  text-align: center;
  color: #94a3b8;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.platform-logo {
  position: relative;
  overflow: hidden;
  display: flex;
  height: 4rem;
  width: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  color: #fff;
  background: #0b1020;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}
.platform-logo::before,
.platform-logo::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  transform: rotate(30deg);
}
.platform-logo::after { inset: 23px; border-width: 2px; opacity: 0.6; }
.platform-logo-sm { height: 3rem; width: 3rem; flex-shrink: 0; }
.platform-logo-sm::before, .platform-logo-sm::after { inset: 12px; }
.platform-logo-sm::after { inset: 17px; }
.platform-logo-hex { background: linear-gradient(135deg, #5b5ce2, #7b7cf0); }
.platform-logo-orbit {
  background:
    radial-gradient(circle at 70% 30%, #fd79ff 0 8%, transparent 9%),
    radial-gradient(circle at 30% 70%, #5cf3ff 0 10%, transparent 11%),
    linear-gradient(135deg, #080a2a, #2d1b92 55%, #050514);
}
.platform-logo-neon { background: linear-gradient(135deg, #071b20, #0dbf9a); }
.platform-logo-gallery { background: linear-gradient(135deg, #25263a, #c1a46a); }
.platform-logo-cube { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.platform-logo-img {
  height: 4rem;
  width: 4rem;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  background: #f1f5f9;
}
.platform-logo-img.platform-logo-sm { height: 3rem; width: 3rem; }
.avatar-img {
  object-fit: cover;
  border-radius: 999px;
  background: #ecfeff;
  flex-shrink: 0;
}
.header-avatar.avatar-img,
.btn-user .header-avatar {
  height: 1.75rem;
  width: 1.75rem;
}
.review-avatar.avatar-img {
  height: 2.25rem;
  width: 2.25rem;
}
img.avatar-img.avatar-lg {
  display: block;
  height: 5rem;
  width: 5rem;
  margin: 0 auto;
}

.rank-number {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
}
.rank-number-hot { background: #fef3c7; color: #d97706; }
.rank-number-risk { background: #ffe4e6; color: #e11d48; }

.status-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-operating { color: #059669; background: #ecfdf5; }
.status-maintenance { color: #ea580c; background: #fff7ed; }
.status-paused { color: #64748b; background: #f1f5f9; }
.status-closed { color: #6b7280; background: #f3f4f6; }

.stars { display: inline-flex; align-items: center; gap: 2px; }
.stars svg { width: 1rem; height: 1rem; }
.stars.sm svg { width: 0.875rem; height: 0.875rem; }
.stars.lg svg { width: 1.25rem; height: 1.25rem; }
.star-on { color: #fbbf24; }
.star-off { color: #e2e8f0; }

.search-suggestions {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 8px);
  z-index: 60;
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  background: #fff;
  text-align: left;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}
.search-suggestions button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  background: none;
  padding: 0.75rem 1rem;
  text-align: left;
}
.search-suggestions button:hover { background: #f8fafc; }
.search-empty { padding: 1.5rem 1rem; text-align: center; font-size: 0.875rem; color: #94a3b8; }

/* Home hero */
.home-page { background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); overflow: visible; }
.home-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(14, 116, 144, 0.08);
  background:
    radial-gradient(circle at 18% 0%, rgba(6, 182, 212, 0.14), transparent 42%),
    radial-gradient(circle at 88% 10%, rgba(20, 184, 166, 0.12), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}
.home-hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
}
.home-hero-glow-left { left: -80px; top: 40px; width: 220px; height: 220px; background: rgba(56, 189, 248, 0.18); }
.home-hero-glow-right { right: -60px; top: 80px; width: 260px; height: 260px; background: rgba(45, 212, 191, 0.16); }
.home-hero-inner { position: relative; padding-top: 3rem; padding-bottom: 2.5rem; }
.home-hero-copy { max-width: 48rem; margin: 0 auto; text-align: center; }
.home-hero-badge {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #cffafe;
  background: rgba(255,255,255,.8);
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0e7490;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.home-hero h1 {
  margin-top: 1.25rem;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  line-height: 1.15;
}
.home-hero p { margin: 1rem auto 0; max-width: 36rem; font-size: 1rem; line-height: 1.75; color: #475569; }
.home-hero p strong { color: #0e7490; }

.home-search-bar {
  display: flex;
  overflow: hidden;
  max-width: 42rem;
  margin: 2rem auto 0;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #fff;
  box-shadow: 0 18px 50px rgba(14, 116, 144, 0.12);
}
.home-search-bar label { position: relative; flex: 1; min-width: 0; }
.home-search-bar .search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #94a3b8;
}
.home-search-bar input {
  height: 3.5rem;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0 1rem 0 3.5rem;
  font-size: 0.875rem;
  outline: none;
}
.hero-search-btn {
  flex-shrink: 0;
  border: 0;
  padding: 0 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0891b2 0%, #14b8a6 100%);
}
.hero-search-wrap { position: relative; max-width: 42rem; margin: 2rem auto 0; }

.rec-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.5rem; }
.rec-platform-chip {
  display: inline-flex;
  height: 52px;
  width: 52px;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.9);
  padding: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: all .3s ease;
}
.rec-platform-chip:hover {
  width: 168px;
  border-color: #a5f3fc;
  background: #fff;
  padding-inline: 8px;
  box-shadow: 0 10px 28px rgba(14, 116, 144, 0.14);
}
.rec-platform-name {
  margin-left: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  opacity: 0;
  transition: all .3s;
}
.rec-platform-chip:hover .rec-platform-name { margin-left: 0.5rem; width: auto; opacity: 1; }
.rec-platform-chip .platform-logo,
.rec-platform-chip .platform-logo-img {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 999px;
  box-shadow: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  margin: 0 0 3rem;
}
.home-features { padding-top: 0.5rem; padding-bottom: 1rem; }
.home-feature-card {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.7);
  background: rgba(255,255,255,.85);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transition: transform .15s, box-shadow .15s;
}
.home-feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(165, 243, 252, 0.7);
  box-shadow: 0 16px 40px rgba(14, 116, 144, 0.1);
}
.home-feature-icon {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
}
.home-feature-icon-sky { background: #e0f2fe; color: #0284c7; }
.home-feature-icon-amber { background: #fef3c7; color: #d97706; }
.home-feature-icon-teal { background: #ccfbf1; color: #0d9488; }
.home-feature-icon-rose { background: #ffe4e6; color: #e11d48; }
.home-feature-card h3 { margin-top: 1rem; font-size: 0.875rem; font-weight: 700; color: #0f172a; }
.home-feature-card p { margin-top: 0.4rem; font-size: 0.75rem; line-height: 1.4; color: #64748b; }

.home-platform-section { padding-top: 1.5rem; padding-bottom: 2.5rem; }
#platforms {
  display: block;
  width: 100%;
  flex: none;
  overflow: visible;
  scroll-margin-top: 5rem;
}
.home-risk-block { margin-top: 2.5rem; }
.home-risk-block h2 { margin-top: 0.5rem; font-size: 1.875rem; font-weight: 800; color: #0f172a; }
.home-risk-block .lead { margin-top: 0.5rem; font-size: 0.875rem; color: #64748b; }
.home-platform-section h2 { margin-top: 0.5rem; font-size: 1.875rem; font-weight: 800; color: #0f172a; }
.home-platform-section .lead { margin-top: 0.5rem; font-size: 0.875rem; color: #64748b; }

.data-table {
  width: 100%;
  margin-top: 1.25rem;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1rem;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.05);
}
.data-table th:first-child { border-top-left-radius: 1rem; }
.data-table th:last-child { border-top-right-radius: 1rem; }
.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}
.data-table thead th {
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.data-table.risk thead th { background: #fff1f2; }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover td { background: #ecfeff; }
.data-table.risk tbody tr:hover td { background: #fff1f2; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .col-num { width: 64px; }
.data-table .col-status { width: 110px; }
.data-table .col-date { width: 110px; color: #64748b; font-size: 14px; }
.data-table .col-score { width: 100px; text-align: right; }
.data-table th.col-score { text-align: right; }
.empty-hint {
  margin-top: 1.25rem;
  padding: 48px 16px;
  text-align: center;
  color: #94a3b8;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1rem;
}

.home-table-head, .home-table-row {
  display: grid;
  grid-template-columns: 52px 1fr 110px 100px 88px;
  align-items: center;
}
.home-table-head {
  border-bottom: 1px solid #f1f5f9;
  background: rgba(248, 250, 252, 0.9);
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}
.home-table-head-risk { background: rgba(255, 241, 242, 0.7); }
.home-table-head .right, .home-table-row .right { text-align: right; }
.home-table-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  padding: 1rem 1.25rem;
  text-align: left;
}
.home-table-row:last-child { border-bottom: 0; }
.home-table-row:hover { background: rgba(236, 254, 255, 0.5); }
.home-table-row-risk:hover { background: rgba(255, 241, 242, 0.4); }
.platform-cell { display: flex; min-width: 0; align-items: center; gap: 0.75rem; }
.platform-cell h3, .platform-cell .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}
.platform-cell p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  font-size: 0.75rem;
  color: #64748b;
}
.name-row { display: flex; align-items: center; gap: 0.4rem; }
.verified { color: #0e7490; flex-shrink: 0; }
.score-cell { display: flex; flex-direction: column; align-items: flex-end; }
.score-cell strong { font-size: 1rem; color: #0f172a; }
.score-cell span { margin-top: 2px; font-size: 0.75rem; color: #94a3b8; }
.star-inline { display: flex; align-items: center; gap: 0.25rem; color: #fbbf24; }

.home-bottom-banner {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(207, 250, 254, 0.7);
  background:
    radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.08), transparent 40%),
    linear-gradient(180deg, #f8fafc 0%, #ecfeff 100%);
}
.home-bottom-glow {
  position: absolute;
  right: 10%;
  top: 20%;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  filter: blur(70px);
  pointer-events: none;
}
.home-bottom-card {
  position: relative;
  overflow: hidden;
  margin: 4rem 0;
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255,255,255,.9);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(14, 116, 144, 0.08);
}
.bottom-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 2rem; }
.home-bottom-card h2 { margin-top: 0.75rem; font-size: 1.875rem; font-weight: 800; color: #0f172a; }
.home-bottom-card .lead { margin-top: 0.75rem; max-width: 36rem; font-size: 1rem; line-height: 1.75; color: #475569; }
.bottom-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn-outline {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.65rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}
.btn-outline:hover { border-color: #a5f3fc; color: #0e7490; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.home-bottom-stat {
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.home-bottom-stat-soft { background: rgba(236, 254, 255, 0.4); }
.home-bottom-stat strong { display: block; font-size: 1.5rem; color: #0f172a; }
.home-bottom-stat span { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: #64748b; }
.home-bottom-stat .title { font-size: 0.875rem; }
.highlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(241, 245, 249, 0.8);
  background: rgba(255,255,255,.7);
  padding: 1rem;
}
.highlight-icon {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: #ecfeff;
  color: #0e7490;
}
.highlight-item p { font-size: 0.875rem; font-weight: 700; color: #0f172a; }
.highlight-item span { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: #64748b; }

/* Ranking */
.ranking-page { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.ranking-page > .wrap { position: relative; }
.ranking-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(207, 250, 254, 0.8);
  padding: 2rem;
  background:
    radial-gradient(circle at 18% 0%, rgba(6, 182, 212, 0.12), transparent 42%),
    radial-gradient(circle at 88% 10%, rgba(20, 184, 166, 0.1), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}
.ranking-hero h1 { margin-top: 1rem; font-size: 2.25rem; font-weight: 800; color: #0f172a; }
.ranking-hero p { margin-top: 0.75rem; max-width: 42rem; font-size: 1rem; line-height: 1.75; color: #475569; }
.ranking-hero-row { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.5rem; }
.ranking-stat-card {
  border-radius: 1rem;
  border: 1px solid #cffafe;
  background: rgba(255,255,255,.85);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(14, 116, 144, 0.08);
  color: #0e7490;
}
.ranking-stat-card strong { display: block; font-size: 1.875rem; color: #0f172a; }
.ranking-stat-card span { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: #64748b; }
.sort-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}
.chip:hover { border-color: #a5f3fc; }
.chip.active {
  border-color: transparent;
  background: #0e7490;
  color: #fff;
  box-shadow: 0 8px 20px rgba(14, 116, 144, 0.2);
}
.top-rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.top-rank-card {
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  background: #fff;
  padding: 1.25rem;
  text-align: left;
  box-shadow: 0 16px 46px rgba(51, 65, 85, 0.08);
}
.top-rank-card.hot { border-color: rgba(165, 243, 252, 0.8); }
.rank-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  background: #fffbeb;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #d97706;
}
.ranking-table-head, .ranking-table-row {
  display: grid;
  grid-template-columns: 72px 1fr 120px 120px 100px;
  align-items: center;
}
.ranking-table-head {
  border-bottom: 1px solid #f1f5f9;
  background: rgba(248, 250, 252, 0.9);
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}
.trend { display: flex; align-items: center; justify-content: flex-end; gap: 0.25rem; font-size: 0.875rem; font-weight: 600; color: #059669; }

/* Platform detail */
.platform-page { padding-top: 2rem; padding-bottom: 2rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  border: 0;
  background: none;
  font-size: 0.875rem;
  color: #64748b;
}
.back-link:hover { color: #0e7490; }
.platform-detail-hero { position: relative; overflow: hidden; }
.platform-detail-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(6, 182, 212, 0.14), transparent 42%),
    radial-gradient(circle at 88% 20%, rgba(20, 184, 166, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(236, 254, 255, 0.65) 0%, rgba(255, 255, 255, 0.95) 100%);
}
.platform-hero-body { position: relative; padding: 2rem; }
.platform-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.platform-hero-left { display: flex; align-items: flex-start; gap: 1.25rem; min-width: 0; }
.platform-hero-left h1 { font-size: 1.875rem; font-weight: 800; color: #0f172a; }
.platform-hero-left .desc { margin-top: 0.5rem; max-width: 42rem; font-size: 0.875rem; line-height: 1.75; color: #475569; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.soft-pill { border-radius: 999px; background: #f1f5f9; padding: 0.25rem 0.65rem; font-size: 0.75rem; font-weight: 500; color: #475569; }
.cyan-pill { border-radius: 999px; background: #ecfeff; padding: 0.25rem 0.65rem; font-size: 0.75rem; font-weight: 500; color: #0e7490; }
.rating-box {
  border-radius: 1rem;
  border: 1px solid #cffafe;
  background: rgba(255,255,255,.9);
  padding: 1rem 1.25rem;
  text-align: right;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.rating-box strong { font-size: 1.875rem; font-weight: 800; color: #0f172a; }
.hero-actions { display: flex; gap: 0.5rem; margin-top: 1rem; justify-content: flex-end; }
.btn-fav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
}
.btn-fav.on { border-color: rgba(14, 116, 144, 0.3); background: #ecfeff; color: #0e7490; }
.quick-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-top: 1.5rem; }
.platform-quick-stat {
  border-radius: 0.75rem;
  border: 1px solid rgba(207, 250, 254, 0.8);
  background: rgba(255,255,255,.8);
  padding: 0.75rem 1rem;
}
.platform-quick-stat span { font-size: 0.75rem; color: #64748b; }
.platform-quick-stat strong { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: #0f172a; }

.tabs { display: flex; border-bottom: 1px solid #f1f5f9; padding: 0 1.5rem; }
.platform-detail-tab {
  position: relative;
  border: 0;
  background: none;
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
}
.platform-detail-tab:hover { color: #334155; }
.platform-detail-tab.active { color: #0e7490; }
.platform-detail-tab.active::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: #0e7490;
}
.count-badge { border-radius: 999px; background: #f1f5f9; padding: 0.1rem 0.4rem; font-size: 10px; color: #64748b; margin-left: 0.35rem; }
.tab-body { padding: 1.5rem; }
.space-y > * + * { margin-top: 1.5rem; }
.section-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 600; color: #111827; margin-bottom: 0.75rem; }

.plat-info { padding: 0; }
.plat-block {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid #f1f5f9;
}
.plat-block-last { border-bottom: 0; }
.plat-block-head { margin-bottom: 1rem; }
.plat-block-head h3 {
  margin: 0.35rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}
.plat-bg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
  align-items: start;
}
.plat-bg.no-visual { grid-template-columns: 1fr; }
.plat-bg-copy p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: #475569;
}
.plat-bg-copy .review-meta { margin-top: 0.75rem; }
.bg-visual {
  display: flex;
  height: 168px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #ecfeff, #eef2ff);
}
.bg-visual img { width: 100%; height: 100%; object-fit: cover; }
.plat-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.plat-facts .wide { grid-column: span 2; }
.plat-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #f1f5f9;
}
.plat-lower .plat-block { border-bottom: 0; }
.plat-lower .plat-block + .plat-block { border-left: 1px solid #f1f5f9; }
.plat-rating-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.plat-rating-head strong {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
}
.plat-empty {
  text-align: center;
  padding: 1.25rem 0.5rem;
}
.plat-empty p { margin-bottom: 0.75rem; color: #64748b; font-size: 0.875rem; }
.upload-avatar-btn {
  display: inline-flex;
  margin-top: 0.75rem;
  margin-bottom: 0 !important;
  padding: 0.4rem 0.85rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #0e7490;
  cursor: pointer;
}
.header-avatar {
  display: inline-flex;
  height: 1.75rem;
  width: 1.75rem;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.method-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-height: 3.25rem;
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.method-item .icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.method-item.on { border-color: #cffafe; background: rgba(236, 254, 255, 0.4); color: #334155; }
.method-item.off { background: rgba(248, 250, 252, 0.5); color: #94a3b8; opacity: 0.7; }
.method-item small { margin-left: auto; font-size: 0.75rem; }

.platform-status-cell {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
  background: rgba(248, 250, 252, 0.6);
  padding: 0.75rem;
}
.platform-status-cell .muted { font-size: 0.75rem; color: #64748b; margin-bottom: 2px; }
.platform-status-cell .val { font-size: 0.875rem; font-weight: 600; color: #1e293b; }

.dist-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; margin-bottom: 0.5rem; }
.dist-bar { flex: 1; height: 8px; overflow: hidden; border-radius: 999px; background: #f3f4f6; }
.dist-bar > div { height: 100%; border-radius: 999px; background: #fbbf24; }
.dist-label { width: 2rem; color: #6b7280; flex-shrink: 0; }
.dist-pct { width: 2.5rem; text-align: right; font-size: 0.75rem; color: #9ca3af; }

.review-card { display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid #f9fafb; }
.review-card:last-child { border-bottom: 0; }
.review-avatar {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.1);
  font-size: 1.125rem;
}
.tag { display: inline-block; border-radius: 999px; background: #f3f4f6; padding: 0.15rem 0.5rem; font-size: 0.75rem; color: #4b5563; margin: 0 0.25rem 0.25rem 0; }
.tag-primary { background: rgba(14, 116, 144, 0.1); color: #0e7490; }
.review-meta { font-size: 0.75rem; color: #9ca3af; }
.my-review {
  border-radius: 0.75rem;
  border: 1px solid rgba(14, 116, 144, 0.2);
  background: rgba(14, 116, 144, 0.05);
  padding: 1rem;
}
.link-btn { border: 0; background: none; margin-top: 0.75rem; font-size: 0.75rem; font-weight: 500; color: #0e7490; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.4);
  padding: 1rem;
  backdrop-filter: blur(2px);
}
.modal-card {
  width: 100%;
  max-width: 28rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding: 1rem 1.25rem;
}
.icon-button {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #334155;
}
.icon-button:hover { background: #f1f5f9; }
.modal-body { padding: 1.25rem; }
.star-picker { display: flex; gap: 0.25rem; margin-bottom: 1rem; }
.star-picker button { border: 0; background: none; padding: 2px; color: #e5e7eb; font-size: 28px; line-height: 1; }
.star-picker button.on { color: #fbbf24; }
.tag-btn {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
}
.tag-btn.selected { border-color: #0e7490; background: rgba(14, 116, 144, 0.1); color: #0e7490; font-weight: 500; }

/* Login */
.auth-wrap { width: 1200px; margin: 0 auto; padding: 48px 0 64px; text-align: center; }
.auth-card {
  width: 420px;
  margin: 0 auto;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  background: #fff;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(14, 116, 144, 0.08);
  text-align: center;
}
.auth-card h1 { margin-top: 1rem; font-size: 1.5rem; font-weight: 800; color: #020617; }
.auth-brand { display: flex; justify-content: center; }
.auth-brand .brand-mark, .auth-brand .brand-logo-img { margin: 0 auto; }
.auth-card .sub { margin-top: 0.5rem; font-size: 0.875rem; color: #64748b; }
.auth-tabs { display: flex; gap: 0.5rem; margin: 1.5rem 0 1rem; }
.auth-form { text-align: left; }
.auth-form label { display: block; margin-bottom: 0.9rem; }
.auth-form span { display: block; margin-bottom: 0.4rem; font-size: 0.875rem; font-weight: 500; color: #334155; }
.auth-form input {
  height: 2.75rem;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 0 1rem;
  font-size: 0.875rem;
  outline: none;
}
.auth-form input:focus { border-color: rgba(14, 116, 144, 0.4); box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.1); }
.captcha-row { display: flex; gap: 0.5rem; align-items: flex-start; }
.captcha-row input { flex: 1; }
.captcha-img { height: 2.75rem; border-radius: 0.5rem; border: 1px solid #e2e8f0; cursor: pointer; }
.form-error { font-size: 0.875rem; color: #ef4444; margin-bottom: 0.75rem; }
.auth-note { margin-top: 1.5rem; font-size: 0.75rem; color: #94a3b8; }

/* Profile */
.profile-page { padding-top: 2rem; padding-bottom: 2rem; }
.profile-title { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.profile-title h1 { font-size: 1.5rem; font-weight: 700; color: #020617; }
.profile-grid { display: grid; gap: 1.5rem; grid-template-columns: 320px 1fr; }
.profile-side { padding: 1.5rem; text-align: center; }
.avatar-lg {
  display: flex;
  height: 5rem;
  width: 5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ecfeff;
  font-size: 2.25rem;
}
.profile-side h2 { margin-top: 1rem; font-size: 1.125rem; font-weight: 700; }
.profile-meta { display: flex; justify-content: center; gap: 1rem; margin-top: 0.5rem; font-size: 0.875rem; color: #64748b; }
.profile-form { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #f1f5f9; text-align: left; }
.profile-form label { display: block; margin-bottom: 1rem; }
.profile-form span { display: block; margin-bottom: 0.4rem; font-size: 0.875rem; font-weight: 500; color: #334155; }
.profile-form input {
  height: 2.5rem;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  outline: none;
}
.avatar-opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.avatar-opts button {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 1.125rem;
}
.avatar-opts button.on { border-color: #0e7490; background: rgba(14, 116, 144, 0.1); }
.btn-logout {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
}
.btn-logout:hover { border-color: #fecaca; background: #fef2f2; color: #dc2626; }
.save-ok { text-align: center; font-size: 0.75rem; color: #059669; margin-top: 0.5rem; }
.follow-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}
.follow-item .grow { flex: 1; min-width: 0; text-align: left; border: 0; background: none; display: flex; align-items: center; gap: 0.75rem; }
.unfollow {
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
}
.unfollow:hover { border-color: #fecaca; background: #fff1f2; color: #e11d48; }

.toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: #fff;
  background: #0f172a;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.toast-error { background: #ef4444; }
