:root {
  --ink: #132033;
  --muted: #5c6f86;
  --input: #d32f2f;
  --line: rgba(255, 255, 255, 0.55);
  --accent: #c62828;
  --accent-2: #1565c0;
  --glass: rgba(255, 255, 255, 0.88);
  --glass-strong: rgba(255, 255, 255, 0.94);
  --headbar: rgba(8, 12, 20, 0.78);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: #0b1524;
}

/* —— 背景轮播：login1 / login2 / login4 —— */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  animation: bgFade 30s infinite;
  contain: strict;
}

.bg-slide.s1 {
  background-image: url("../images/login1.jpg");
  animation-delay: 0s;
}

.bg-slide.s2 {
  background-image: url("../images/login2.jpg");
  animation-delay: 10s;
}

.bg-slide.s3 {
  background-image: url("../images/login4.jpg");
  animation-delay: 20s;
}

/* 切到后台标签页时暂停轮播，减轻 GPU 占用 */
body.bg-paused .bg-slide {
  animation-play-state: paused;
}

.bg-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.72) 0%, rgba(8, 16, 28, 0.45) 28%, rgba(10, 24, 40, 0.55) 100%),
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(21, 101, 192, 0.25), transparent 55%);
}

@keyframes bgFade {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  28% {
    opacity: 1;
  }
  35% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* —— 顶栏 Logo —— */
.topbar {
  position: relative;
  z-index: 2;
  background: rgba(8, 12, 20, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.topbar-inner {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.55rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.topbar-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.product {
  color: #fff;
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.btn-xuanxing {
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, #c62828 0%, #9b1c1c 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.48rem 1.15rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.btn-xuanxing:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(198, 40, 40, 0.35);
}

.btn-xuanxing:active {
  transform: translateY(1px);
}

.btn-xuanxing:disabled {
  opacity: 0.65;
  cursor: wait;
  filter: none;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 2rem));
  max-width: 980px;
  margin: 0 auto;
  padding: 1.6rem 0 2.8rem;
  box-sizing: border-box;
}

.calc-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.calc-nav a {
  text-decoration: none;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.42rem 0.55rem;
  font-size: 0.88rem;
  font-weight: 650;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calc-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.calc-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #e53935, #b71c1c);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(183, 28, 28, 0.35);
}

@media (max-width: 640px) {
  .calc-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calc-nav a {
    font-size: 0.82rem;
    padding: 0.4rem 0.45rem;
  }
}

.intro {
  margin-bottom: 1rem;
}

.intro h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.03em;
}

.hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge.in {
  color: #fff;
  background: linear-gradient(135deg, #e53935, #b71c1c);
  box-shadow: 0 4px 12px rgba(183, 28, 28, 0.35);
}

.badge.out {
  color: #0d1b2a;
  background: rgba(255, 255, 255, 0.92);
}

.table-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  contain: layout style paint;
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c62828 0%, #ef5350 40%, #1565c0 100%);
  z-index: 1;
  pointer-events: none;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.calc-table th,
.calc-table td {
  border-bottom: 1px solid rgba(18, 40, 70, 0.08);
  padding: 0.68rem 0.9rem;
  vertical-align: middle;
  font-size: 0.92rem;
}

.calc-table th {
  background: linear-gradient(180deg, rgba(21, 101, 192, 0.12), rgba(21, 101, 192, 0.05));
  text-align: left;
  font-weight: 700;
  color: #0d47a1;
  letter-spacing: 0.04em;
}

.calc-table th:nth-child(1),
.calc-table td:nth-child(1) {
  width: 34%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.calc-table th:nth-child(2),
.calc-table td:nth-child(2) {
  width: 22%;
}

.calc-table tbody tr {
  transition: background 0.18s ease;
}

.calc-table tbody tr:hover {
  background: rgba(21, 101, 192, 0.04);
}

.calc-table tbody tr:last-child td {
  border-bottom: none;
}

.calc-table input {
  width: 100%;
  border: 1px solid rgba(211, 47, 47, 0.35);
  border-radius: 8px;
  padding: 0.42rem 0.58rem;
  font: inherit;
  color: var(--input);
  font-weight: 700;
  background: rgba(255, 245, 245, 0.95);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.calc-table input:hover {
  border-color: rgba(211, 47, 47, 0.55);
}

.calc-table input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.18);
  transform: translateY(-1px);
}

.calc-table output {
  display: block;
  min-height: 1.4em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #111827;
}

.input-row td:first-child {
  color: var(--input);
  font-weight: 700;
}

.note-merge {
  color: var(--muted);
  background: rgba(241, 247, 255, 0.65);
}

.calc-table td:nth-child(3) {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  background: #1e2226;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
}

.site-footer-inner {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.55rem 0 1.35rem;
  text-align: center;
}

.site-footer-brand {
  margin: 0 0 0.85rem;
  font-family: "Segoe UI", "Arial", "Helvetica Neue", sans-serif;
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.12em;
  color: rgba(220, 226, 232, 0.92);
  line-height: 1.1;
}

.site-footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(190, 198, 206, 0.88);
}

.site-footer-meta a {
  color: rgba(190, 198, 206, 0.95);
  text-decoration: none;
}

.site-footer-meta a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer-sep {
  opacity: 0.45;
  user-select: none;
}

.site-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .site-footer-inner {
    padding: 1.25rem 0 1.15rem;
  }

  .site-footer-meta {
    flex-direction: column;
    gap: 0.35rem;
  }
}

/* —— 协议 / 隐私政策页 —— */
.legal-wrap {
  padding-bottom: 1.5rem;
}

.legal-card {
  overflow: visible;
}

.legal-body {
  padding: 1.25rem 1.35rem 1.6rem;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.75;
}

.legal-body h1 {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  color: #0d47a1;
}

.legal-body h2 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.08rem;
  color: #0d47a1;
}

.legal-body h3 {
  margin: 1rem 0 0.4rem;
  font-size: 0.98rem;
  color: #1565c0;
}

.legal-body p {
  margin: 0.45rem 0;
}

.legal-meta {
  margin: 0 0 1rem !important;
  color: var(--muted);
  font-size: 0.86rem;
}

.legal-ol {
  margin: 0.35rem 0 0.55rem;
  padding-left: 1.25rem;
}

.legal-ol li {
  margin: 0.25rem 0;
}


.foot {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
}

.foot p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.foot code {
  color: #ffd7d7;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 0.62rem 1.15rem;
  background: linear-gradient(135deg, #e53935, #b71c1c);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(183, 28, 28, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(183, 28, 28, 0.42);
}

.btn:active {
  transform: translateY(0);
}

@media (max-width: 720px) {
  .topbar-inner {
    min-height: 48px;
    gap: 0.5rem;
    padding: 0.32rem 0;
  }

  .topbar-text {
    flex: 1 1 auto;
  }

  .brand-logo {
    height: 34px;
  }

  .product {
    font-size: 0.88rem;
  }

  .tag {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.04em;
  }

  /* 有「选型」时中间过窄易把文字挤成竖排，撑高黑底；标题下方 h1 已有，手机隐藏 */
  .topbar-inner:has(.btn-xuanxing) .product {
    display: none;
  }

  .btn-xuanxing {
    padding: 0.36rem 0.78rem;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
  }

  .calc-table,
  .calc-table thead,
  .calc-table tbody,
  .calc-table th,
  .calc-table td,
  .calc-table tr {
    display: block;
  }

  .calc-table thead {
    display: none;
  }

  /* 卡片行：左侧信息项标签 + 右侧数值，备注单独一行 */
  .calc-table tr {
    display: grid;
    grid-template-columns: minmax(7rem, 42%) 1fr;
    column-gap: 0.65rem;
    row-gap: 0.28rem;
    padding: 0.85rem 0.95rem;
    border-bottom: 1px solid rgba(18, 40, 70, 0.08);
  }

  .calc-table td {
    border: none;
    padding: 0;
    width: auto !important;
  }

  .calc-table td:nth-child(1) {
    font-weight: 700;
    font-size: 0.88rem;
    color: #0d47a1;
    line-height: 1.35;
    align-self: center;
  }

  .calc-table td:nth-child(2) {
    align-self: center;
  }

  .calc-table td:nth-child(2) input,
  .calc-table td:nth-child(2) output {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .calc-table td:nth-child(3),
  .calc-table td.note-merge {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--muted);
    padding-top: 0.15rem;
  }

  .calc-table td:nth-child(3):not(:empty)::before,
  .calc-table td.note-merge::before {
    content: "备注 · ";
    font-weight: 600;
    color: rgba(13, 71, 161, 0.65);
  }

  .calc-table td:nth-child(3):empty {
    display: none;
  }

  .note-merge {
    display: block;
  }

  /* 推荐表：改为卡片，避免四列挤压 */
  .rec-inner {
    padding: 0.7rem 0.75rem 1rem;
    overflow-x: visible;
  }

  .rec-scroll {
    max-height: 28rem;
    border-radius: 8px;
  }

  .rec-table {
    table-layout: auto;
    font-size: 0.88rem;
  }

  .rec-table thead {
    display: none;
  }

  .rec-table,
  .rec-table tbody,
  .rec-table tr,
  .rec-table th,
  .rec-table td {
    display: block;
    width: 100% !important;
  }

  .rec-table tr.rec-row {
    padding: 0.75rem 0.8rem;
    border-bottom: 1px solid rgba(18, 40, 70, 0.1);
  }

  .rec-table tr.rec-row:active {
    background: rgba(198, 40, 40, 0.08);
  }

  .rec-table td {
    border: none;
    padding: 0.12rem 0;
    display: flex;
    gap: 0.45rem;
    align-items: baseline;
  }

  .rec-table td::before {
    content: attr(data-label);
    flex: 0 0 3rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(13, 71, 161, 0.75);
  }

  .rec-table td:nth-child(2) {
    font-size: 0.98rem;
  }

  .rec-table td:nth-child(4) {
    color: var(--muted);
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-slide {
    animation: none;
    opacity: 0;
  }

  .bg-slide.s1 {
    opacity: 1;
  }

  .rec-more-btn:active,
  .btn:hover,
  .btn-xuanxing:hover {
    transform: none;
  }
}

/* —— 选型推荐 —— */
.rec-panel {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 1.2rem;
  contain: layout style;
}

.rec-panel .card-title {
  margin: 0;
  padding: 0.85rem 1rem 0;
  font-size: 1.08rem;
  color: #0d47a1;
}

.rec-inner {
  padding: 0.85rem 1rem 1.1rem;
  overflow-x: auto;
}

.rec-block {
  content-visibility: auto;
  contain-intrinsic-size: 480px;
}

.rec-block + .rec-block {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(18, 40, 70, 0.15);
}

.rec-block h3 {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  color: #0d47a1;
}

.rec-count {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

/* 约显示 8 行，其余滚动查看 */
.rec-scroll {
  max-height: 22.5rem;
  overflow: auto;
  border: 1px solid rgba(18, 40, 70, 0.1);
  border-radius: 6px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  contain: layout paint style;
}

.rec-table tbody tr {
  content-visibility: auto;
  contain-intrinsic-size: auto 2.4rem;
}

.page-illum .rec-scroll {
  max-height: min(22.5rem, 52vh);
}
.page-illum .illum-btn.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

.rec-more-btn {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px dashed rgba(21, 101, 192, 0.35);
  border-radius: 8px;
  background: rgba(21, 101, 192, 0.06);
  color: #0d47a1;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.rec-more-btn:hover {
  background: rgba(21, 101, 192, 0.12);
  border-color: rgba(21, 101, 192, 0.55);
}

.rec-more-btn:active {
  transform: translateY(1px);
}

.rec-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9rem;
}

.rec-table th,
.rec-table td {
  text-align: left;
  padding: 0.48rem 0.55rem;
  border-bottom: 1px solid rgba(18, 40, 70, 0.08);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.rec-table th:nth-child(1),
.rec-table td:nth-child(1) {
  width: 18%;
}

.rec-table th:nth-child(2),
.rec-table td:nth-child(2) {
  width: 28%;
}

.rec-table th:nth-child(3),
.rec-table td:nth-child(3) {
  width: 12%;
}

.rec-table th:nth-child(4),
.rec-table td:nth-child(4) {
  width: 42%;
}

.rec-table-cam th:nth-child(1),
.rec-table-cam td:nth-child(1) {
  width: 12%;
}
.rec-table-cam th:nth-child(2),
.rec-table-cam td:nth-child(2) {
  width: 22%;
}
.rec-table-cam th:nth-child(3),
.rec-table-cam td:nth-child(3),
.rec-table-cam th:nth-child(5),
.rec-table-cam td:nth-child(5),
.rec-table-cam th:nth-child(6),
.rec-table-cam td:nth-child(6),
.rec-table-cam th:nth-child(7),
.rec-table-cam td:nth-child(7) {
  width: 10%;
}
.rec-table-cam th:nth-child(4),
.rec-table-cam td:nth-child(4) {
  width: 16%;
}

.rec-table-lens th:nth-child(1),
.rec-table-lens td:nth-child(1) {
  width: 14%;
}
.rec-table-lens th:nth-child(2),
.rec-table-lens td:nth-child(2) {
  width: 28%;
}
.rec-table-lens th:nth-child(3),
.rec-table-lens td:nth-child(3),
.rec-table-lens th:nth-child(4),
.rec-table-lens td:nth-child(4),
.rec-table-lens th:nth-child(5),
.rec-table-lens td:nth-child(5),
.rec-table-lens th:nth-child(6),
.rec-table-lens td:nth-child(6) {
  width: 14.5%;
}

.rec-table-light th:nth-child(1),
.rec-table-light td:nth-child(1) {
  width: 12%;
}
.rec-table-light th:nth-child(2),
.rec-table-light td:nth-child(2) {
  width: 26%;
}
.rec-table-light th:nth-child(3),
.rec-table-light td:nth-child(3),
.rec-table-light th:nth-child(4),
.rec-table-light td:nth-child(4) {
  width: 12%;
}
.rec-table-light th:nth-child(5),
.rec-table-light td:nth-child(5) {
  width: 16%;
}
.rec-table-light th:nth-child(6),
.rec-table-light td:nth-child(6) {
  width: 14%;
}
.rec-table-light th:nth-child(7),
.rec-table-light td:nth-child(7) {
  width: 8%;
}

.rec-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #e8f0fa;
  color: #0d47a1;
  font-weight: 700;
}

.rec-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.rec-row:hover {
  background: rgba(198, 40, 40, 0.06);
}

.rec-tip,
.rec-empty,
.rec-loading {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.rec-copy-toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%) translateY(12px);
  z-index: 9999;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  background: rgba(13, 71, 161, 0.92);
  color: #fff;
  font-size: 0.92rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rec-copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* —— 选型筛选（多选下拉） —— */
.rec-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem 0.75rem;
  margin: 0 0 0.95rem;
  padding: 0.75rem 0.85rem;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(18, 40, 70, 0.1);
  border-radius: 8px;
}

#recLensFilters.rec-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 28rem;
}

.rec-filter {
  position: relative;
  min-width: 0;
}

.rec-filter-label {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.78rem;
  color: #8a96a8;
  line-height: 1.2;
}

.rec-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 2.35rem;
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(18, 40, 70, 0.18);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rec-filter.open .rec-filter-btn,
.rec-filter-btn:focus {
  border-color: #ff8a1f;
  box-shadow: 0 0 0 2px rgba(255, 138, 31, 0.18);
  outline: none;
}

.rec-filter-tags {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.28rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.rec-filter-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  background: #f0f3f7;
  color: #334155;
  font-size: 0.78rem;
  white-space: nowrap;
}

.rec-filter-more {
  flex-shrink: 0;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: #fff4e8;
  color: #d35400;
  border: 1px solid rgba(255, 138, 31, 0.35);
  font-size: 0.72rem;
  font-weight: 600;
}

.rec-filter-caret {
  flex-shrink: 0;
  width: 0;
  height: 0;
  margin-left: 0.15rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #94a3b8;
  transition: transform 0.15s ease;
}

.rec-filter.open .rec-filter-caret {
  transform: rotate(180deg);
}

.rec-filter-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  max-height: 14rem;
  overflow: auto;
  padding: 0.35rem 0;
  background: #fff;
  border: 1px solid rgba(18, 40, 70, 0.12);
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.rec-filter.open .rec-filter-menu {
  display: block;
}

.rec-filter-opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.7rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: #1e293b;
  user-select: none;
}

.rec-filter-opt:hover {
  background: #fff8f1;
}

.rec-filter-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rec-check {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid #ff8a1f;
  border-radius: 2px;
  background: #fff;
  position: relative;
}

.rec-filter-opt input:checked + .rec-check {
  background: #ff8a1f;
}

.rec-filter-opt input:checked + .rec-check::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.08rem;
  width: 0.28rem;
  height: 0.5rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .rec-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .rec-filters {
    grid-template-columns: 1fr;
  }
}

/* —— 光源选型助手 —— */
.hint-link {
  color: #90caf9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.illum-tabs {
  padding: 1.05rem 1.1rem 1rem;
  margin-bottom: 1rem;
}

.illum-tabbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.illum-tab {
  border: 1px solid rgba(19, 32, 51, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 650;
  cursor: pointer;
}

.illum-tab.active {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: #fff;
  border-color: transparent;
}

.illum-tab-hint {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.illum-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: start;
}

.illum-steps,
.illum-main,
.illum-filter {
  padding: 1.15rem 1.1rem 1.15rem;
}

.illum-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.illum-stepper li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.illum-stepper .n {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 32, 51, 0.08);
  font-size: 0.82rem;
}

.illum-stepper li.active {
  color: var(--ink);
}

.illum-stepper li.active .n {
  background: #1565c0;
  color: #fff;
}

.illum-stepper li.done .n {
  background: #2e7d32;
  color: #fff;
}

.illum-main h2 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.illum-qhint {
  margin: 0.85rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.illum-opts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.illum-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.illum-opt:has(input:checked) {
  border-color: rgba(21, 101, 192, 0.55);
  background: rgba(21, 101, 192, 0.08);
}

.illum-opt input {
  margin-top: 0.2rem;
}

.illum-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.illum-form label,
.illum-filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.illum-form input,
.illum-filter-grid input,
.illum-filter-grid select {
  font: inherit;
  color: var(--input);
  border: 1px solid rgba(19, 32, 51, 0.16);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #fff;
}

.illum-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.illum-btn {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.illum-btn.primary {
  background: linear-gradient(135deg, #e53935, #b71c1c);
  color: #fff;
}

.illum-btn.ghost {
  background: rgba(19, 32, 51, 0.06);
  color: var(--ink);
}

.illum-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.illum-note {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(21, 101, 192, 0.08);
  color: #0d47a1;
  font-size: 0.9rem;
}

.illum-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.illum-summary {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.illum-count {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .illum-layout {
    grid-template-columns: 1fr;
  }

  .illum-stepper {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

@media (max-width: 560px) {
  .illum-form,
  .illum-filter-grid {
    grid-template-columns: 1fr;
  }
}

