/* ==========================================================
   涂客极地 · macOS 风格静态网站（正常滚动排版）
   主题色沿用 www.phanston.com：#33AFBE
   ========================================================== */
:root {
  --accent: #33AFBE;
  --accent-soft: #e6f7f9;
  --accent-dark: #268a96;
  --text-1: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #98989d;
  --line: #e4e7ed;
  --win-bg: rgba(255, 255, 255, 0.86);
  --glass: rgba(255, 255, 255, 0.62);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
          "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-1);
  min-height: 100vh;
  /* 极地气息壁纸：冷青渐变 + 光斑（固定不随滚动） */
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(51, 175, 190, 0.35), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(38, 138, 150, 0.30), transparent 55%),
    radial-gradient(600px 400px at 50% 50%, rgba(255, 255, 255, 0.20), transparent 70%),
    linear-gradient(160deg, #dff3f6 0%, #c9e9ee 35%, #a9d8e0 70%, #8fcbd6 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* ===== 顶部导航（macOS 毛玻璃） ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
}
.navbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.navbar-left { display: flex; align-items: center; gap: 8px; }
.navbar-logo { font-size: 18px; color: var(--accent-dark); }
.navbar-brand { font-weight: 800; font-size: 17px; letter-spacing: 1.5px; }
.navbar-menu { display: flex; gap: 36px; }
.nav-item {
  position: relative;
  height: 52px;
  padding: 0;
  border: none;
  background: none;
  font-size: 14.5px;
  letter-spacing: 0.5px;
  color: var(--text-2);
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-item:hover { color: var(--text-1); }
.nav-item.active { color: var(--accent-dark); font-weight: 600; }
.nav-item::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -1px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}
.nav-item.active::after { width: 100%; }
.navbar-right { display: flex; align-items: center; gap: 18px; }
.nav-ext {
  font-size: 13.5px;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-ext:hover { color: var(--accent-dark); }
.navbar-clock { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-2); }

/* ===== Hero + 极光 ===== */
.hero {
  position: relative;
  padding: 132px 20px 52px;
  text-align: center;
  overflow: hidden;
}
.aurora { position: absolute; inset: -40px; pointer-events: none; }
.aurora span {
  position: absolute;
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  mix-blend-mode: multiply;
  animation: auroraDrift 16s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) {
  left: 6%; top: -30%;
  background: radial-gradient(circle, rgba(51, 175, 190, 0.55), transparent 65%);
}
.aurora span:nth-child(2) {
  right: 4%; top: -20%;
  background: radial-gradient(circle, rgba(120, 190, 255, 0.5), transparent 65%);
  animation-duration: 21s; animation-delay: -6s;
}
.aurora span:nth-child(3) {
  left: 34%; top: 10%;
  background: radial-gradient(circle, rgba(140, 235, 200, 0.45), transparent 65%);
  animation-duration: 26s; animation-delay: -12s;
}
@keyframes auroraDrift {
  from { transform: translate(-6%, -4%) scale(1) rotate(0deg); }
  50%  { transform: translate(5%, 6%) scale(1.15) rotate(12deg); }
  to   { transform: translate(-3%, 2%) scale(0.95) rotate(-8deg); }
}
.hero-title {
  position: relative;
  font-size: 68px;
  font-weight: 800;
  letter-spacing: 10px;
  background: linear-gradient(120deg, #1b6d77, #33AFBE 55%, #62c8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== 页面切换 ===== */
.page { display: none; }
.page.active { display: block; animation: pageIn 0.25s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.page-inner {
  margin: 0 auto;
  padding: 0 24px 72px;
  min-height: 46vh;
}
/* 计算器页：居中大卡片 */
.page-inner-calc { max-width: 720px; }
/* 色卡页：宽屏铺开 */
.page-inner-ral { max-width: 1280px; }
/* 颜色匹配页 */
.page-inner-match { max-width: 980px; }

/* ===== 工具卡片（网站化：干净圆角卡片，无标题栏） ===== */
.card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 34px rgba(20, 60, 70, 0.12),
    0 2px 8px rgba(20, 60, 70, 0.06);
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: #c9d4d8 transparent;
}
.card::-webkit-scrollbar { width: 5px; }
.card::-webkit-scrollbar-thumb { background: #c9d4d8; border-radius: 3px; }

/* 计算器大卡片：控件整体放大，更大气 */
.calc-card .app-tab { font-size: 14px; padding: 12px 0; }
.calc-card .pane { padding: 26px 30px 30px; }
.calc-card .basic-display { font-size: 44px; padding: 10px 8px 16px; }
.calc-card .basic-display.small { font-size: 28px; }
.calc-card .basic-expr { font-size: 13px; min-height: 20px; }
.calc-card .basic-grid { gap: 10px; }
.calc-card .cbtn { height: 56px; font-size: 17px; border-radius: 12px; }
.calc-card .cbtn-op { font-size: 20px; }
.calc-card .cbtn-eq { font-size: 21px; }
.calc-card .cbtn-fn { font-size: 15px; }
.calc-card .cbtn-sci { font-size: 14px; }
.calc-card .quick-bar { margin-top: 14px; padding: 12px 14px; }
.calc-card .quick-label { font-size: 12.5px; }
.calc-card .quick-result { font-size: 16px; }
.calc-card .ipt { height: 38px; font-size: 14px; }
.calc-card .ipt.sm { height: 34px; font-size: 13.5px; }
.calc-card .btn-main { height: 42px; font-size: 15px; }
.calc-card .form-label { font-size: 12.5px; }
.calc-card .form-tip { font-size: 12px; }
.calc-card .form-section-title { font-size: 15px; }
.calc-card .result-lbl { font-size: 12.5px; }
.calc-card .result-val { font-size: 14.5px; }
.calc-card .result-val.highlight { font-size: 16px; }
.calc-card .ref-item { font-size: 12px; }
.calc-card .unit-title { font-size: 12.5px; }
.calc-card .unit-sym { font-size: 12px; }

/* ===== Footer（底部中央悬挂备案号，链接工信部备案系统） ===== */
.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 26px 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-line { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-logo { font-weight: 700; color: var(--accent-dark); letter-spacing: 1px; }
.footer-links { gap: 4px; }
.footer-links-label { color: var(--text-3); }
.flink { color: var(--text-2); text-decoration: none; transition: color 0.15s; }
.flink:hover { color: var(--accent-dark); text-decoration: underline; }
.beian { color: var(--text-2); text-decoration: none; transition: color 0.15s; }
.beian:hover { color: var(--accent-dark); text-decoration: underline; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(40, 44, 48, 0.9);
  color: #fff;
  font-size: 12.5px;
  padding: 8px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s;
  z-index: 6000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* ==========================================================
   应用内部通用控件（沿用 fst-tech-desktop 计算器风格）
   ========================================================== */
.pane { padding: 16px; animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.app-tabs {
  display: flex;
  padding: 6px 10px 0;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: rgba(250, 252, 253, 0.6);
}
.app-tab {
  flex: 1;
  padding: 6px 0;
  font-size: 11.5px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: var(--text-3);
  transition: all 0.15s;
  border-radius: 4px 4px 0 0;
  white-space: nowrap;
  font-family: var(--font);
}
.app-tab:hover { color: var(--text-2); background: rgba(0, 0, 0, 0.04); }
.app-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

.form-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-tip { font-size: 11px; color: var(--text-3); margin-bottom: 10px; }
.form-row { margin-bottom: 8px; }
.form-label { display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; }

.ipt {
  width: 100%;
  height: 32px;
  background: #f5f7fa;
  border: 1px solid #dcdfe6;
  border-radius: 7px;
  color: var(--text-1);
  font-size: 13px;
  padding: 0 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: var(--font);
}
.ipt:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(51, 175, 190, 0.15); }
.ipt[readonly] { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.ipt.sm { height: 28px; font-size: 12px; padding: 0 6px; }

.btn-main {
  width: 100%;
  height: 34px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin: 10px 0 8px;
  transition: filter 0.15s, transform 0.1s;
  font-family: var(--font);
}
.btn-main:hover { filter: brightness(1.07); }
.btn-main:active { transform: scale(0.98); }
.btn-main.sm-btn { height: 30px; font-size: 12px; margin: 6px 0; }

.clear-btn {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid #dcdfe6;
  border-radius: 5px;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 400;
  font-family: var(--font);
}
.clear-btn:hover { border-color: #f56c6c; color: #f56c6c; background: rgba(245, 108, 108, 0.08); }

.result-box {
  background: rgba(245, 247, 250, 0.9);
  border: 1px solid rgba(51, 175, 190, 0.25);
  border-radius: 9px;
  padding: 10px 12px;
  margin-top: 4px;
}
.result-box.compact { padding: 7px 10px; }
.result-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.result-row:last-child { margin-bottom: 0; }
.result-lbl { font-size: 11.5px; color: var(--text-2); }
.result-val { font-size: 13px; font-weight: 600; color: var(--text-1); }
.result-val.highlight { color: var(--accent); font-size: 14px; }

/* ---- 计算器：常规 ---- */
.basic-expr { font-size: 11px; color: var(--text-3); text-align: right; min-height: 16px; padding-right: 4px; margin-bottom: 2px; }
.basic-display {
  font-size: 32px; font-weight: 600; color: var(--text-1);
  text-align: right; padding: 6px 6px 10px; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.basic-display.small { font-size: 22px; }
.basic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }

.cbtn {
  height: 46px;
  border: none;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
}
.cbtn:active { transform: scale(0.93); }
.cbtn-num { background: #f5f7fa; color: var(--text-1); }
.cbtn-num:hover { background: #ebeef5; }
.cbtn-op { background: rgba(51, 175, 190, 0.12); color: var(--accent); font-size: 17px; }
.cbtn-op:hover { background: rgba(51, 175, 190, 0.20); }
.cbtn-fn { background: #f5f7fa; color: var(--text-2); font-size: 13px; }
.cbtn-fn:hover { background: #ebeef5; color: var(--text-1); }
.cbtn-sci { background: #f5f7fa; color: var(--text-2); font-size: 12px; }
.cbtn-sci:hover { background: #ebeef5; color: var(--accent); }
.cbtn-eq { background: var(--accent); color: #fff; font-size: 18px; font-weight: 700; }
.cbtn-eq:hover { filter: brightness(1.08); }
.span2 { grid-column: span 2; }

.quick-bar {
  display: flex; align-items: center; gap: 5px;
  margin-top: 10px; padding: 8px 10px;
  background: #f5f7fa;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.quick-label { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.quick-sym { font-size: 13px; color: var(--text-3); }
.quick-result { font-size: 14px; font-weight: 600; color: var(--accent); min-width: 40px; text-align: right; }

/* ---- 当量换算 ---- */
.equiv-ref {
  background: #f5f7fa;
  border-radius: 7px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-left: 3px solid var(--accent);
}
.ref-item { font-size: 11px; color: var(--text-2); line-height: 1.8; }
.equiv-row { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 8px; }
.equiv-cell { flex: 1; }
.equiv-arrow { font-size: 14px; color: var(--accent); padding-bottom: 8px; flex-shrink: 0; }

/* ---- 固化工艺 ---- */
.cure-section { margin-bottom: 14px; }
.cure-section:last-child { margin-bottom: 0; }
.cure-sub-title {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  margin-bottom: 8px; padding: 4px 8px;
  background: #f5f7fa; border-radius: 5px;
}

/* ---- 单位换算 ---- */
.unit-block { margin-bottom: 12px; }
.unit-title {
  font-size: 11.5px; font-weight: 600; color: var(--text-1);
  margin-bottom: 6px; padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.unit-row { display: flex; align-items: center; gap: 5px; }
.unit-row + .unit-row { margin-top: 6px; }
.unit-sym { font-size: 11px; color: var(--text-3); white-space: nowrap; flex-shrink: 0; }
.unit-eq { font-size: 13px; color: var(--text-3); flex-shrink: 0; }

/* ---- RAL 色卡（宽屏大气版） ---- */
/* 卡片不裁剪，否则工具栏 sticky 失效 */
.ral-host { overflow: visible; }
.ral-toolbar {
  display: flex;
  gap: 14px;
  padding: 18px 26px;
  border-radius: 18px 18px 0 0;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 252, 253, 0.85);
  position: sticky;
  top: 52px;
  z-index: 2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ral-toolbar .ipt { height: 42px; font-size: 14.5px; border-radius: 10px; padding: 0 16px; max-width: 480px; }
.ral-count { font-size: 13px; color: var(--text-3); align-self: center; white-space: nowrap; }
.ral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  padding: 22px 26px 28px;
}
.ral-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  background: #fff;
  transition: transform 0.14s, box-shadow 0.14s;
}
.ral-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(20, 60, 70, 0.2); }
.ral-swatch { height: 92px; }
.ral-meta { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 3px; }
.ral-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.ral-code { font-size: 13px; font-weight: 700; color: var(--text-1); white-space: nowrap; }
.ral-name { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ral-hex { font-size: 11px; color: var(--text-3); font-family: "SF Mono", Consolas, monospace; letter-spacing: 0.3px; text-transform: uppercase; }
.ral-lab {
  display: flex;
  gap: 4px;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(20, 60, 70, 0.08);
  font-size: 11px;
  color: var(--text-2);
  font-family: "SF Mono", Consolas, monospace;
}
.ral-lab span { flex: 1; white-space: nowrap; }
.ral-lab b { color: var(--accent-dark); font-weight: 700; margin-right: 2px; }
.ral-empty { padding: 60px 0; text-align: center; color: var(--text-3); font-size: 13.5px; grid-column: 1 / -1; }

/* 分页器 */
.ral-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 26px 30px;
}
.pg-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(20, 60, 70, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.pg-btn.pg-num { padding: 0; }
.pg-btn:hover:not(:disabled):not(.active) { border-color: var(--accent); color: var(--accent-dark); background: #fff; }
.pg-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; cursor: default; }
.pg-btn:disabled { opacity: 0.4; cursor: default; }

/* ===== 色卡全屏大图 ===== */
.ral-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 56px 48px;
  color: #fff;
  animation: pageIn 0.25s ease;
}
.ral-modal.show { display: flex; }
.ral-modal.on-light { color: rgba(20, 40, 45, 0.92); }
.ral-modal-close {
  position: absolute;
  top: 20px; right: 26px;
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.ral-modal.on-light .ral-modal-close { background: rgba(0, 0, 0, 0.1); }
.ral-modal-close:hover { transform: rotate(90deg); }
.rm-code { font-size: 54px; font-weight: 800; letter-spacing: 2px; }
.rm-name { font-size: 24px; margin-top: 6px; opacity: 0.85; }
.rm-vals {
  display: flex;
  gap: 18px;
  margin-top: 22px;
  font-size: 15px;
  font-family: "SF Mono", Consolas, monospace;
  opacity: 0.75;
}
.rm-sim-label { font-size: 13px; opacity: 0.7; margin-bottom: 10px; }
.rm-sim {
  width: 92px; height: 66px;
  margin-right: 10px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--font);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s;
}
.rm-sim:hover { transform: translateY(-4px); }
.rm-sim span { font-size: 13px; font-weight: 700; }
.rm-sim i { font-style: normal; font-size: 11px; opacity: 0.9; }

/* 目数↔粒径 */
.mesh-conv { display: flex; align-items: center; gap: 14px; }
.mesh-field { flex: 1; display: flex; align-items: center; gap: 10px; }
.mesh-field .ipt { flex: 1; height: 50px; font-size: 18px; text-align: center; }
.mesh-field span { font-size: 15px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.mesh-eq { font-size: 20px; color: var(--text-3); }
.mesh-note { font-size: 12px; color: var(--text-3); margin-top: 10px; min-height: 16px; }
.mesh-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}
.mesh-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  border: 1px solid rgba(20, 60, 70, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
}
.mesh-chip i { font-style: normal; font-size: 11px; font-weight: 400; color: var(--text-3); }
.mesh-chip:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-2px); }
.mesh-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.mesh-chip.active i { color: rgba(255, 255, 255, 0.85); }

/* ===== 颜色匹配 ===== */
.match-pane { padding: 24px 30px 6px; }
.match-hint { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.lab-inputs { display: flex; gap: 14px; }
.lab-inputs label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.lab-inputs .ipt { flex: 1; height: 44px; font-size: 15px; }
.drop-zone {
  border: 2px dashed rgba(51, 175, 190, 0.45);
  border-radius: 14px;
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.drop-zone:hover, .drop-zone.drag { border-color: var(--accent); background: rgba(51, 175, 190, 0.07); }
.drop-tip { font-size: 14px; color: var(--text-2); }
.img-stage { text-align: center; }
#imgCanvas {
  max-width: 100%;
  border-radius: 12px;
  cursor: crosshair;
  box-shadow: 0 4px 16px rgba(20, 60, 70, 0.15);
}
.img-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.picked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  font-family: "SF Mono", Consolas, monospace;
}
.picked-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.match-result { padding: 18px 30px 30px; }
.match-empty { padding: 34px 0; text-align: center; color: var(--text-3); font-size: 13.5px; }
.match-src { font-size: 13.5px; color: var(--text-2); margin-bottom: 12px; }
.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.match-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(20, 60, 70, 0.1);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}
.match-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(20, 60, 70, 0.2); }
.match-card.best { border: 2px solid var(--accent); }
.best-tag {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.match-card .ral-swatch { height: 78px; }
.match-card .ral-meta { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; }
.de-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.de-val { font-size: 11.5px; font-weight: 700; color: var(--accent-dark); font-family: "SF Mono", Consolas, monospace; white-space: nowrap; }
.de-grade { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .navbar-clock { display: none; }
  .hero { padding: 108px 20px 44px; }
  .hero-title { font-size: 44px; letter-spacing: 6px; }
  .page-inner { padding: 0 14px 52px; }
  .ral-toolbar { padding: 12px 14px; }
  .ral-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; padding: 14px; }
  .ral-swatch { height: 64px; }
}
