:root {
  --ink: #0a2540;
  --primary: #0b5fa5;
  --primary-dark: #084a82;
  --accent: #e8871e;
  --accent-bg: #fff6ec;
  --bg: #f4f7fa;
  --card: #ffffff;
  --line: #dce4ee;
  --text: #1f2d3d;
  --muted: #5b6b7b;
  --warn: #b3541e;

  --font-display: "Space Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --radius: 14px;
  --shadow: 0 18px 45px rgba(10, 37, 64, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 12px;
}
.eyebrow.center { text-align: center; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(6, 20, 38, .97), rgba(10, 37, 64, .92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 2px 14px rgba(4, 14, 26, .25);
}
.nav-inner { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.brand-link { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 21px; letter-spacing: .04em;
  color: #fff;
}
.brand-sub { font-size: 11px; color: rgba(255, 255, 255, .62); font-weight: 500; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  font-size: 14px; color: rgba(255, 255, 255, .88); text-decoration: none;
  padding: 4px 2px; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: #ffc98a; border-bottom-color: #ffc98a; }
.lang-btn {
  font-size: 13px; font-weight: 700;
  padding: 7px 16px;
  background: #fff; color: var(--ink);
  border: none; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-btn:hover { background: #ffc98a; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(232, 135, 30, .22), transparent 60%),
    radial-gradient(800px 400px at 0% 110%, rgba(11, 95, 165, .5), transparent 55%),
    linear-gradient(150deg, rgba(6, 20, 38, .86) 0%, rgba(13, 58, 104, .78) 55%, rgba(11, 95, 165, .7) 100%);
  color: #fff;
  padding: 72px 0 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("img/hero.jpg");
  background-size: cover;
  background-position: center;
  opacity: .5;
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: #ffc98a; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 600;
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: -.01em;
}
.hero h1 em { font-style: normal; color: #ffb75e; }
.hero-sub { font-size: 16px; color: rgba(255, 255, 255, .88); margin: 0; max-width: 46ch; }

/* 查询卡片 */
.finder-card {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 56px;
}
.finder-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.finder-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.finder-tag {
  font-size: 11px; font-weight: 600; color: var(--primary);
  background: #e8f1fb; border: 1px solid #cfe2f5;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}

.selects { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.selects label { display: flex; flex-direction: column; gap: 6px; }
.label-text { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.hint { font-size: 10px; color: var(--muted); font-weight: 500; }

select, input[type="search"] {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfe;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
select:focus, input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 95, 165, .14);
  background: #fff;
}
select:disabled, input:disabled { background: #eef1f5; color: #9aa7b5; cursor: not-allowed; }

.actions { display: flex; gap: 10px; margin-top: 14px; }
.actions input[type="search"] { flex: 1; }

.btn {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  padding: 11px 22px;
  border: none; border-radius: 9px; cursor: pointer;
  background: var(--accent); color: #fff;
  white-space: nowrap;
  transition: background .15s, transform .1s;
}
.btn:hover { background: #d6750e; }
.btn:active { transform: translateY(1px); }
.btn.ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55);
  text-decoration: none; display: inline-block;
}
.btn.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.btn.secondary { background: #eef1f5; color: var(--text); }
.btn.secondary:hover { background: #dfe5ec; }

/* 信任条 */
.trustbar { position: relative; background: rgba(4, 18, 34, .35); border-top: 1px solid rgba(255, 255, 255, .12); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust-item strong {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #ffc98a;
}
.trust-item span { font-size: 11.5px; color: rgba(255, 255, 255, .82); margin-top: 2px; }

/* ---------- 结果区 ---------- */
.results { background: var(--bg); padding: 40px 0 16px; scroll-margin-top: 70px; }
.result-head { display: flex; align-items: baseline; gap: 14px; }
.result-head h2 { margin: 0; font-size: 26px; }
.count {
  font-size: 13px; color: var(--muted);
  background: #e8f1fb; border: 1px solid #cfe2f5;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.criteria { color: var(--muted); font-size: 13.5px; margin: 8px 0 16px; }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 22px rgba(10, 37, 64, .06); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f6f9fc; color: var(--muted); font-weight: 600; white-space: nowrap; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8fbfe; }

.part { font-weight: 600; }
.subline { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lit { color: var(--muted); white-space: nowrap; }

.fj-no, .code { font-family: var(--font-mono); }
.fj-no { font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.fj-no.premium { color: var(--accent); }
.badge {
  display: inline-block; margin-top: 4px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  color: var(--accent); background: #fdeedd; border: 1px solid #f6cf9f;
  padding: 1px 8px; border-radius: 999px;
}
tr.premium-row td { background: var(--accent-bg); }
tr.premium-row:hover td { background: #fff1e0; }
.code { font-weight: 700; font-size: 14px; white-space: nowrap; }
tr.premium-row .code { color: var(--warn); }
.no-ref { color: #c3ccd6; }
.empty-tip { text-align: center; color: var(--muted); padding: 28px 8px; }
.note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; scroll-margin-top: 60px; }
.section h2 { font-size: 32px; margin: 0 0 34px; }
.section h2.center { text-align: center; }
.products { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.p-img { aspect-ratio: 1 / 1; overflow: hidden; background: #eef2f6; }
.p-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.2, .6, .2, 1);
}
.product-card:hover .p-img img { transform: scale(1.07); }
.product-card h3 { margin: 18px 20px 8px; font-size: 19px; }
.product-card p { margin: 0 20px 20px; font-size: 13.5px; color: var(--muted); }

/* About */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-media img { width: 100%; display: block; }
.about-body p { margin: 0 0 14px; font-size: 15.5px; color: #33465a; }
.about-quote {
  font-family: var(--font-display);
  font-size: 20px !important;
  font-weight: 600;
  color: var(--primary) !important;
  margin-top: 20px !important;
}

/* Quality */
.quality { background: var(--ink); }
.quality h2 { color: #fff; }
.quality .eyebrow { color: #ffc98a; }
.quality-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.quality-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.quality-card h3 { color: #fff; margin: 0 0 10px; font-size: 19px; }
.quality-card p { color: rgba(255, 255, 255, .8); margin: 0; font-size: 14px; }

/* Contact */
.contact { background: var(--card); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-email a {
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 700; color: var(--primary);
  text-decoration: none;
}
.contact-email a:hover { text-decoration: underline; }
.contact-loc { color: var(--muted); margin-top: 6px; }
.contact-note p { color: var(--muted); font-size: 14.5px; }
.contact-note .btn.ghost { border-color: var(--primary); color: var(--primary); margin-top: 8px; }
.contact-note .btn.ghost:hover { background: #e8f1fb; }

/* Footer */
.footer { background: #061427; color: rgba(255, 255, 255, .72); padding: 34px 0; }
.footer-inner { text-align: center; }
.footer .small { font-size: 12.5px; opacity: .8; margin-top: 6px; }

/* 加载面板 */
.loading-panel { text-align: center; color: var(--muted); padding: 20px; }

/* ---------- 动画 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-copy, .finder-card, .trust-inner {
  animation: fadeUp .7s cubic-bezier(.2, .6, .2, 1) both;
}
.hero-copy   { animation-delay: .05s; }
.finder-card { animation-delay: .2s; }
.trust-inner { animation-delay: .35s; }

/* 滚动进入视口时渐显 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .6, .2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 产品卡 hover 时图片轻微上浮呼吸感 */
.product-card:hover .p-img img { transform: scale(1.07) translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .hero-copy, .finder-card, .trust-inner { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
  .about-grid, .contact-inner { grid-template-columns: 1fr; gap: 24px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .section { padding: 52px 0; }
  .actions { flex-direction: column; align-items: stretch; }
  .finder-card { padding: 20px; }
}
