:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #a1a1a6;
  --hairline: rgba(0, 0, 0, 0.09);
  --accent: #0a84ff;
  --accent-2: #5e5ce6;
  --green: #30d158;
  --red: #ff453a;
  --orange: #ff9f0a;
  --yellow: #ffd60a;
  --green-deep: #248a3d;
  --orange-deep: #c93400;
  --purple-deep: #6d28d9;
  --track: #ececf0;
  --track-2: #e4e4e8;
  --chip-bg: #f4f4f6;
  --tag-bg: rgba(10, 132, 255, 0.08);
  --tag-color: #0b66c3;
  --input-border: rgba(0, 0, 0, 0.14);
  --hairline-soft: rgba(0, 0, 0, 0.06);
  --topbar-bg: rgba(250, 250, 252, 0.82);
  --skeleton-a: #ececf0;
  --skeleton-b: #f6f6f8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 36px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-2: #232325;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --hairline: rgba(255, 255, 255, 0.12);
  --green-deep: #30d158;
  --orange-deep: #ff9f0a;
  --purple-deep: #a78bfa;
  --track: #2c2c2e;
  --track-2: #3a3a3c;
  --chip-bg: #2c2c2e;
  --tag-bg: rgba(10, 132, 255, 0.16);
  --tag-color: #64b5ff;
  --input-border: rgba(255, 255, 255, 0.22);
  --hairline-soft: rgba(255, 255, 255, 0.09);
  --topbar-bg: rgba(20, 20, 22, 0.82);
  --skeleton-a: #2c2c2e;
  --skeleton-b: #3a3a3c;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

.press {
  cursor: pointer;
}

.press:active {
  transform: scale(0.985);
}

:focus-visible {
  outline: 2px solid rgba(10, 132, 255, 0.55);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex: 0 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--topbar-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.topbar-inner {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.topbar-tagline {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  background: linear-gradient(90deg, #0a84ff, #5e5ce6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  z-index: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 3px 10px rgba(10, 132, 255, 0.3);
}

.brand-name em {
  font-style: normal;
  color: var(--text-3);
  font-weight: 500;
  font-size: 14px;
  margin-left: 6px;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links > a:not(.btn) {
  color: var(--text-2);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-links > a:not(.btn):hover {
  color: var(--text);
}

.theme-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.theme-toggle:hover {
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.theme-toggle:active {
  transform: scale(0.94);
}

[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="light"] .icon-moon {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(0, 0, 0, 0.16);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 132, 255, 0.28);
}

.btn-primary:hover {
  background: #0075e1;
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.34);
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
  padding: 11px 16px;
}

.btn.ghost {
  background: transparent;
  border-color: var(--hairline);
}

.btn.ghost:hover {
  background: var(--surface);
}

.hero {
  padding: 54px 24px 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.18);
  padding: 4px 11px;
  border-radius: 999px;
}

.hero h1 {
  margin: 16px 0 8px;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
}

.hero-sub {
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
}

.metric:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent);
  background: rgba(10, 132, 255, 0.1);
  flex: 0 0 auto;
}

.metric-icon.green {
  color: var(--green-deep);
  background: rgba(48, 209, 88, 0.14);
}

.metric-icon.orange {
  color: var(--orange-deep);
  background: rgba(255, 159, 10, 0.16);
}

.metric-icon.purple {
  color: var(--purple-deep);
  background: rgba(94, 92, 230, 0.14);
}

.metric-label {
  font-size: 13px;
  color: var(--text-2);
}

.metric-value {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 2px;
}

.metric-value small {
  font-size: 14px;
  color: var(--text-3);
  font-weight: 500;
  margin-left: 2px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.span-6 {
  grid-column: span 6;
}

.span-12 {
  grid-column: span 12;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-head h2,
.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.panel-sub {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

.bar-list {
  display: grid;
  gap: 13px;
}

.bar-row {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr 76px;
  align-items: center;
  gap: 12px;
}

.bar-row[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(29, 29, 31, 0.94);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 5;
}

.bar-row[data-tip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[data-theme="dark"] .bar-row[data-tip]::after {
  background: rgba(245, 245, 247, 0.94);
  color: #1d1d1f;
}

.bar-label {
  font-size: 13px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tone-1 { background: linear-gradient(90deg, #0a84ff, #5e5ce6); }
.tone-2 { background: linear-gradient(90deg, #30d158, #34c759); }
.tone-3 { background: linear-gradient(90deg, #ff9f0a, #ff6b35); }
.tone-4 { background: linear-gradient(90deg, #bf5af2, #6d28d9); }
.tone-5 { background: linear-gradient(90deg, #ff453a, #ff6b6b); }

.bar-value {
  font-size: 12px;
  color: var(--text-2);
  text-align: right;
  white-space: nowrap;
}

.dist-wrap {
  display: flex;
  align-items: center;
  gap: 26px;
}

.donut {
  position: relative;
  width: 168px;
  height: 168px;
  flex: 0 0 auto;
}

.donut-svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(-90deg);
}

.donut-seg {
  transition: opacity 0.15s ease, stroke-width 0.15s ease;
  cursor: pointer;
}

.donut-seg:hover {
  opacity: 0.78;
  stroke-width: 6;
}

.donut-hole {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.donut-hole strong {
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}

.donut-hole span {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: 0 0 auto;
}

.legend b {
  color: var(--text);
  font-weight: 600;
}

.trend-svg {
  width: 100%;
  height: auto;
  display: block;
}

.axis-label {
  fill: var(--text-3);
  font-size: 11px;
}

.trend-dot {
  transition: opacity 0.15s ease;
  cursor: pointer;
}

.trend-dot:hover {
  opacity: 0.72;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 16px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  background: var(--track);
  border-radius: 9px;
  gap: 2px;
}

.seg-btn {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 7px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.seg-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.seg-btn.recommend.active {
  background: #e8f8ee;
  color: #1f9d4d;
}

.seg-btn.avoid.active {
  background: #ffe9e7;
  color: #d70015;
}

[data-theme="dark"] .seg-btn.recommend.active {
  background: rgba(48, 209, 88, 0.16);
  color: #5ee08a;
}

[data-theme="dark"] .seg-btn.avoid.active {
  background: rgba(255, 69, 58, 0.16);
  color: #ff8a80;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 38px 1fr 110px;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease, border-color 0.18s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(10, 132, 255, 0.28);
}

.rank-recommend .rank-row:hover {
  border-color: rgba(48, 209, 88, 0.35);
}

.rank-avoid .rank-row:hover {
  border-color: rgba(255, 69, 58, 0.35);
}

.rank {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--track);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.rank.top {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 3px 10px rgba(10, 132, 255, 0.3);
}

.rank-recommend .rank.top {
  background: linear-gradient(135deg, #30d158, #1f9d4d);
  box-shadow: 0 3px 10px rgba(48, 209, 88, 0.32);
}

.rank-avoid .rank.top {
  background: linear-gradient(135deg, #ff453a, #d70015);
  box-shadow: 0 3px 10px rgba(255, 69, 58, 0.32);
}

.rank-main {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rank-name {
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
}

.rank-meta {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
  margin-left: 8px;
}

.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
  flex: 0 0 auto;
}

.eq-bars i {
  width: 5px;
  border-radius: 3px;
  background: var(--track-2);
}

.eq-bars i.on {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.rank-recommend .eq-bars i.on {
  background: linear-gradient(180deg, #30d158, #1f9d4d);
}

.rank-avoid .eq-bars i.on {
  background: linear-gradient(180deg, #ff453a, #d70015);
}

.rank-score {
  text-align: right;
}

.rank-score strong {
  font-size: 19px;
  font-weight: 700;
  display: block;
  line-height: 1.1;
}

.rank-score small {
  font-size: 11px;
  color: var(--text-3);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

.filter-bar .search-box {
  flex: 2 1 220px;
}

.filter-bar .select-wrap {
  flex: 1 1 128px;
  min-width: 128px;
}

.filter-bar .btn {
  flex: 0 0 auto;
}

.search-select {
  position: relative;
  flex: 1 1 128px;
  min-width: 128px;
}

.field .search-select {
  width: 100%;
}

.search-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-select-trigger:hover {
  border-color: rgba(10, 132, 255, 0.45);
}

.search-select[data-open="true"] .search-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

.search-select-trigger .icon {
  color: var(--text-3);
  flex: 0 0 auto;
}

.search-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.search-select-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline-soft);
}

.search-select-search .icon {
  color: var(--text-3);
  flex: 0 0 auto;
}

.search-select-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-select-options {
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
}

.search-select-group {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  padding: 8px 10px 4px;
}

.search-select-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.search-select-option:hover,
.search-select-option.highlight {
  background: rgba(10, 132, 255, 0.12);
  color: var(--accent);
}

[data-theme="dark"] .search-select-option:hover,
[data-theme="dark"] .search-select-option.highlight {
  background: rgba(10, 132, 255, 0.18);
}

.search-select-option.all {
  color: var(--text-2);
  font-weight: 600;
  border-bottom: 1px solid var(--hairline-soft);
  margin-bottom: 4px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box > .icon {
  position: absolute;
  left: 12px;
  color: var(--text-3);
  pointer-events: none;
}

.search-box .input {
  padding-left: 38px;
}

.input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

textarea.input {
  resize: vertical;
  min-height: 90px;
}

.select-wrap {
  position: relative;
  min-width: 0;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
}

#list-wrap {
  margin-top: 14px;
  transition: opacity 0.18s ease;
}

#list-wrap.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
}

.company-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.company-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 132, 255, 0.26);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.company-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0a84ff, #5e5ce6);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.26);
  flex: 0 0 auto;
}

.company-mark.large {
  width: 72px;
  height: 72px;
  font-size: 30px;
  border-radius: 12px;
}

.score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  background: rgba(10, 132, 255, 0.1);
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.1;
}

.score-badge small {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}

.card-title {
  margin: 14px 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  background: var(--chip-bg);
  border: 1px solid var(--hairline-soft);
  color: var(--text-2);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.mini-dims {
  display: grid;
  gap: 5px;
  margin: 14px 0 10px;
}

.mini-dims i {
  display: block;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) 0 var(--w), var(--track) var(--w) 100%);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  background: var(--tag-bg);
  color: var(--tag-color);
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hairline-soft);
}

.meta {
  font-size: 12px;
  color: var(--text-3);
  margin-right: auto;
}

.trend {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.trend.up {
  color: var(--green-deep);
}

.trend.down {
  color: var(--red);
}

.trend.down .icon {
  transform: rotate(180deg);
}

.trend.flat {
  color: var(--text-3);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 6px;
}

.page-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.page-btn:active:not(:disabled) {
  transform: scale(0.94);
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.4;
}

.page-ellipsis {
  color: var(--text-3);
}

.features {
  margin-top: 46px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: rgba(10, 132, 255, 0.1);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: 0 0 auto;
}

.feature-item h3 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 700;
}

.feature-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
}

.page-head {
  padding-top: 38px;
}

.page-head p {
  margin: 6px 0 0;
  color: var(--text-2);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 0;
  margin-bottom: 14px;
  transition: color 0.18s ease;
}

.back-link:hover {
  color: var(--accent);
}

.company-page {
  padding-top: 30px;
  padding-bottom: 30px;
}

.company-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.company-info {
  min-width: 0;
}

.company-info h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
}

.company-intro {
  margin: 12px 0;
  color: var(--text-2);
  font-size: 14px;
  max-width: 640px;
}

.score-ring-wrap {
  text-align: center;
}

.score-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.score-ring-hole {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-content: center;
  text-align: center;
}

.score-ring-hole strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

.score-ring-hole span {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 3px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.dim-rows {
  display: grid;
  gap: 15px;
}

.dim-row {
  display: grid;
  grid-template-columns: 92px 1fr 36px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-2);
}

.dim-row b {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.dim-track {
  height: 9px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

.dim-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reviews-panel {
  margin-top: 14px;
}

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.review-list {
  min-width: 0;
}

.review-list .review-card:nth-child(odd) {
  background: var(--surface-2);
  border-radius: var(--radius);
}

.review-list .review-card {
  padding: 16px 16px;
}

.reviews-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.reviews-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reviews-controls .select-wrap {
  min-width: 120px;
}

.review-card {
  border-bottom: 1px solid var(--hairline-soft);
  padding: 18px 0;
}

.review-card:first-child {
  padding-top: 0;
}

.review-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.review-floor {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  background: var(--track);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.12);
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.review-author strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.review-author small {
  display: block;
  font-size: 11px;
  color: var(--text-3);
}

.review-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.review-card p {
  margin: 0 0 10px;
  color: var(--text-2);
  font-size: 14px;
  white-space: pre-wrap;
}

.dim-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-3);
}

.dim-stars b {
  color: var(--text-2);
  font-weight: 600;
}

.dim-stars .stars {
  color: var(--orange);
}

.review-foot {
  display: flex;
  align-items: center;
  margin-top: 12px;
}

.reply-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.reply-toggle:hover {
  color: var(--accent);
  border-color: rgba(10, 132, 255, 0.4);
  transform: translateY(-1px);
}

.reply-toggle b {
  font-weight: 700;
}

.comment-thread {
  margin-top: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.comment-item {
  border-bottom: 1px solid var(--hairline-soft);
  padding-bottom: 10px;
}

.comment-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.comment-head strong {
  font-size: 13px;
  color: var(--text);
}

.comment-head span {
  font-size: 11px;
  color: var(--text-3);
}

.comment-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
}

.comment-empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  padding: 8px 0;
}

.comment-form {
  display: grid;
  gap: 8px;
}

.comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comment-form .checkbox {
  padding-bottom: 0;
}

.review-form {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px;
  align-self: start;
}

.review-form h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  color: var(--text-2);
}

.field.full {
  grid-column: span 2;
}

.field > .input {
  color: var(--text);
}

.dims-box {
  margin-top: 16px;
}

.dim-picker {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.dim-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dim-picker-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.dim-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
  min-height: 20px;
}

.dim-tip-icon {
  font-size: 15px;
  flex: 0 0 auto;
}

.dim-tip-text {
  min-width: 0;
}

.tip-pop {
  animation: tipPop 0.18s ease;
}

@keyframes tipPop {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dim-picker-label span {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.dim-picker-label small {
  font-size: 11px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.star-row {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.star-btn {
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-size: 17px;
  padding: 3px 2px;
  line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease;
}

.star-btn:hover {
  transform: scale(1.18);
  color: var(--orange);
}

.star-btn.active {
  color: var(--orange);
  transform: scale(1.06);
}

.star-row b {
  min-width: 16px;
  font-size: 13px;
  margin-left: 4px;
}

.overall-preview {
  display: flex;
  align-items: baseline;
  gap: 4px;
  justify-content: flex-end;
  padding: 12px 0 4px;
  font-size: 13px;
  color: var(--text-2);
}

.overall-preview strong {
  font-size: 24px;
  color: var(--text);
  font-weight: 700;
}

.overall-preview span {
  color: var(--text-3);
}

.author-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: 10px 0 14px;
}

.author-row .field {
  flex: 1;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-2);
  padding-bottom: 10px;
  white-space: nowrap;
}

.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.narrow {
  max-width: 760px;
}

.form-card {
  padding: 26px;
}

.form-error {
  margin: 14px 0 0;
  color: var(--red);
  font-size: 13px;
  min-height: 18px;
}

.empty {
  text-align: center;
  padding: 52px 20px;
  color: var(--text-3);
}

.empty .icon {
  font-size: 34px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.empty h3 {
  margin: 0 0 6px;
  color: var(--text-2);
  font-size: 16px;
}

.empty p {
  margin: 0 0 16px;
  font-size: 13px;
}

.skeleton-wrap {
  padding-top: 40px;
}

.skeleton {
  background: linear-gradient(100deg, var(--skeleton-a) 30%, var(--skeleton-b) 50%, var(--skeleton-a) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius);
}

.skeleton.hero {
  height: 130px;
  margin-bottom: 16px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.skeleton.block {
  height: 180px;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 14px);
  background: #1d1d1f;
  color: #fff;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 90;
  max-width: min(420px, calc(100vw - 32px));
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  background: var(--red);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: min(400px, 100%);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 30px 26px 24px;
  text-align: center;
  animation: modalIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-icon {
  font-size: 38px;
  display: block;
  margin-bottom: 12px;
}

.thanks-text {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-enter {
  animation: pageIn 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  margin-top: 64px;
  border-top: 1px solid var(--hairline);
  padding: 30px 0 36px;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}

@media (max-width: 900px) {
  .topbar-tagline {
    display: none;
  }
}

@media (max-width: 980px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .span-6 {
    grid-column: span 12;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .reviews-layout {
    grid-template-columns: 1fr;
  }

  .filter-bar .search-box {
    flex-basis: 100%;
  }

  .filter-bar .select-wrap {
    flex-basis: 30%;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .metric {
    padding: 14px;
    gap: 10px;
  }

  .metric-value {
    font-size: 24px;
  }

  .metric-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .brand-name em {
    display: none;
  }

  .nav-links {
    gap: 12px;
  }

  .dist-wrap {
    flex-direction: column;
    align-items: center;
  }

  .bar-row {
    grid-template-columns: 74px 1fr 64px;
    gap: 8px;
  }

  .filter-bar .search-box {
    flex-basis: 100%;
  }

  .filter-bar .select-wrap {
    flex-basis: 45%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .company-hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .score-ring-wrap {
    text-align: left;
  }

  .rank-row {
    grid-template-columns: 34px 1fr;
    gap: 10px;
  }

  .rank-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .rank-score {
    display: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: span 1;
  }

  .dim-picker-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .author-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}
