/* 精肽生物 JINGTAI BIO — 瑞士国际主义风 */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --accent: #ff3e00;        /* 国际橙 */
  --grey-1: #f2f2f0;
  --grey-2: #d9d9d6;
  --grey-5: #6b6b66;
  --sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== 顶部合规条 ===== */
.notice {
  background: var(--ink); color: #fff;
  text-align: center; font-size: 12px; letter-spacing: 0.14em;
  padding: 8px 16px; text-transform: uppercase;
}

/* ===== 头部 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 4px solid var(--ink);
  display: flex; align-items: stretch; gap: 0;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 14px; padding-right: 28px; }
.brand-mark {
  width: 40px; height: 40px; background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 17px; letter-spacing: 0.02em;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; left: -6px; bottom: -6px;
  width: 12px; height: 12px; background: var(--accent);
}
.brand-text { font-weight: 800; font-size: 18px; line-height: 1.25; letter-spacing: 0.02em; display: flex; flex-direction: column; }
.brand-text em { font-style: normal; font-weight: 500; font-size: 10.5px; letter-spacing: 0.22em; color: var(--grey-5); }
.site-nav { display: flex; align-items: stretch; margin-left: auto; }
.site-nav a {
  display: flex; align-items: center; padding: 0 22px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  border-left: 1px solid var(--grey-2);
}
.site-nav a:hover { background: var(--ink); color: #fff; }
.lang-btn {
  border: none; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: 0.08em;
  padding: 0 24px; align-self: stretch;
}
.lang-btn:hover { background: var(--ink); }

/* ===== HERO ===== */
.hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px; align-items: center;
  padding: 88px max(20px, calc((100vw - 1180px) / 2)) 72px;
}
.kicker {
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.24em; color: var(--accent);
  border-bottom: 2px solid var(--ink); display: inline-block; padding-bottom: 6px;
}
.hero h1 {
  font-size: clamp(44px, 7.2vw, 88px);
  font-weight: 900; line-height: 0.98; letter-spacing: -0.02em;
  margin: 28px 0 24px; text-transform: none;
}
.lead { font-size: 17px; color: var(--grey-5); max-width: 54ch; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  font-weight: 800; font-size: 14.5px; letter-spacing: 0.04em;
  padding: 15px 30px; transition: background 0.15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: #fff; }

.hero-visual { display: flex; flex-direction: column; gap: 20px; }
.big-index { display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.big-index b { font-size: clamp(90px, 11vw, 150px); font-weight: 900; line-height: 0.85; color: var(--accent); letter-spacing: -0.04em; }
.big-index span { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.swiss-block { border: 2px solid var(--ink); }
.swiss-block svg { width: 100%; height: auto; display: block; }
.swiss-block p {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; padding: 12px 16px; background: var(--ink); color: #fff;
}
.rule-4 { height: 4px; background: var(--accent); }

/* ===== TICKER ===== */
.ticker { overflow: hidden; background: var(--ink); border-top: 4px solid var(--ink); }
.ticker-track {
  display: flex; width: max-content; animation: tick 26s linear infinite;
  padding: 12px 0;
}
.ticker span {
  color: #fff; font-family: var(--mono); font-size: 12.5px;
  font-weight: 700; letter-spacing: 0.22em; padding: 0 6px; white-space: nowrap;
}
.ticker i { font-style: normal; color: var(--accent); padding: 0 12px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ===== 通用 section ===== */
.section { padding: 96px max(20px, calc((100vw - 1180px) / 2)); }
.section.alt { background: var(--grey-1); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; color: var(--accent); margin-bottom: 14px; text-transform: uppercase;
}
.section h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: -0.01em; line-height: 1.1; }
.section-head {
  display: grid; grid-template-columns: auto 1fr; gap: 48px;
  align-items: end; margin-bottom: 40px; padding-bottom: 24px;
  border-bottom: 4px solid var(--ink);
}
.section-head > p { font-size: 15px; color: var(--grey-5); justify-self: end; max-width: 44ch; text-align: left; }

/* ===== 搜索工具条 ===== */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.search {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--ink); padding: 0 14px; background: var(--paper); flex: 1 1 320px; max-width: 460px;
  font-weight: 800;
}
.search input {
  border: none; outline: none; padding: 13px 0; width: 100%;
  font-family: inherit; font-size: 15px; background: transparent;
}
.mini-btn {
  border: 2px solid var(--ink); background: var(--paper); font-weight: 700;
  font-size: 13px; padding: 11px 18px; letter-spacing: 0.05em;
}
.mini-btn:hover { background: var(--ink); color: #fff; }
.count { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; }

/* ===== 卡片栅格（硬边细线） ===== */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink); border-left: 2px solid var(--ink);
}
.card {
  background: var(--paper); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  padding: 22px 20px 18px; text-align: left; display: flex; flex-direction: column; gap: 12px;
  font-family: inherit; color: inherit; position: relative; overflow: hidden;
  transition: background 0.12s, color 0.12s;
}
.card:hover { background: var(--ink); color: #fff; }
.card .number {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--accent);
}
.card .photo { border: 1px solid var(--grey-2); background: var(--paper); }
.card:hover .photo { background: #fff; }
.card .photo img { width: 100%; height: 120px; object-fit: contain; padding: 8px; }
.card h3 { font-size: 15.5px; font-weight: 800; letter-spacing: 0.01em; line-height: 1.3; }
.card p { font-size: 13px; color: var(--grey-5); }
.card:hover p { color: var(--grey-2); }
.card .go {
  margin-top: auto; font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid currentColor; padding-top: 10px;
}
.card .go span:last-child { color: var(--accent); font-size: 14px; }

/* ===== 分页 ===== */
.pagination { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.pagination button {
  border: 2px solid var(--ink); background: var(--paper); font-weight: 800;
  font-size: 13.5px; padding: 12px 22px; letter-spacing: 0.04em;
}
.pagination button:hover:not(:disabled) { background: var(--ink); color: #fff; }
.pagination button:disabled { opacity: 0.25; cursor: default; }
.pagination span { font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; }
.source-note { margin-top: 26px; font-size: 12.5px; color: var(--grey-5); border-left: 4px solid var(--accent); padding-left: 14px; max-width: 72ch; }

/* ===== 文件指南 ===== */
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); margin: 8px 0 20px; }
.doc-grid article { border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.doc-grid b { font-family: var(--mono); color: var(--accent); font-size: 26px; font-weight: 900; letter-spacing: 0.04em; }
.doc-grid h3 { font-size: 17px; font-weight: 800; }
.doc-grid p { font-size: 13.5px; color: var(--grey-5); }
.section.alt small { font-size: 12.5px; color: var(--grey-5); }

/* ===== ABOUT ===== */
.about { display: grid; grid-template-columns: 2fr 3fr; gap: 64px; }
.about > div > p { margin-bottom: 18px; font-size: 15.5px; color: #333330; }
.text-link { font-weight: 800; font-size: 14.5px; border-bottom: 3px solid var(--accent); padding-bottom: 3px; }
.text-link:hover { background: var(--accent); color: #fff; }

/* ===== CONTACT ===== */
.contact { background: var(--ink); color: #fff; }
.contact .eyebrow { color: var(--accent); }
.contact h2 { color: #fff; }
.contact-card { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.contact-card p { color: var(--grey-2); font-size: 15.5px; max-width: 56ch; margin-top: 10px; }
.wa-button {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: #fff; font-weight: 800;
  font-size: 15px; letter-spacing: 0.03em; padding: 18px 32px;
  border: 2px solid var(--accent);
}
.wa-button:hover { background: #fff; color: var(--ink); border-color: #fff; }
.wa-button.small { padding: 12px 20px; font-size: 13.5px; background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== FAQ ===== */
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 2px solid var(--ink); }
.faq-list summary {
  list-style: none; padding: 22px 8px; font-weight: 800; font-size: 16.5px;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 900; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details[open] summary { background: var(--grey-1); }
.faq-list p { padding: 4px 8px 24px; color: var(--grey-5); font-size: 14.5px; max-width: 70ch; }

/* ===== FOOTER ===== */
.site-footer { border-top: 4px solid var(--ink); padding: 56px max(20px, calc((100vw - 1180px) / 2)) 32px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.footer-inner > p { font-size: 14px; color: var(--grey-5); }
.footer-bottom {
  width: 100%; border-top: 1px solid var(--grey-2); margin-top: 24px; padding-top: 20px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; display: flex; justify-content: space-between;
}
.footer-bottom a { font-weight: 700; }
.footer-bottom a:hover { color: var(--accent); }

/* ===== 悬浮 WA ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--accent); color: #fff; border: 2px solid var(--ink);
}
.wa-float:hover { background: var(--ink); border-color: var(--ink); }

/* ===== 详情弹窗 ===== */
dialog {
  border: 2px solid var(--ink); border-top: 8px solid var(--accent);
  padding: 0; max-width: 520px; width: calc(100vw - 40px);
  max-height: 88vh; overflow-y: auto;
  margin: auto; inset: 0; position: fixed;
  background: var(--paper); color: var(--ink);
}
dialog::backdrop { background: rgba(10, 10, 10, 0.72); }
dialog > * { padding: 0 28px; }
dialog .eyebrow { padding-top: 26px; margin-bottom: 6px; }
dialog #close {
  position: sticky; top: 6px; float: right; margin-right: 6px; z-index: 2;
  border: none; background: var(--paper); color: var(--ink);
  font-size: 26px; font-weight: 900; width: 40px; height: 40px;
}
dialog #close:hover { color: var(--accent); }
.detail-photo img { width: 100%; max-height: 230px; object-fit: contain; border: 1px solid var(--grey-2); }
.detail-photo small { display: block; font-size: 11.5px; color: var(--grey-5); margin-top: 6px; }
dialog h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.01em; margin: 10px 0 4px; }
dialog p { font-size: 13px; color: var(--grey-5); margin-top: 10px; }
dialog strong { display: block; font-family: var(--mono); font-size: 15px; letter-spacing: 0.04em; }
dialog .source-note { margin: 14px 0 18px; }
dialog .wa-button { margin-bottom: 10px; }
dialog #original { display: block; padding-bottom: 28px; font-size: 13.5px; font-weight: 700; border-bottom: 3px solid var(--accent); width: fit-content; }
dialog #original:hover { background: var(--accent); color: #fff; }

/* ===== 响应式 ===== */
@media (max-width: 1080px) {
  .grid, .doc-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-visual { flex-direction: row; align-items: stretch; }
  .hero-visual svg { max-width: 180px; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header { height: auto; flex-wrap: wrap; padding: 0 16px; }
  .brand { padding: 12px 0; }
  .site-nav { width: 100%; order: 3; border-top: 1px solid var(--grey-2); }
  .site-nav a { flex: 1; justify-content: center; padding: 12px 8px; font-size: 13px; }
  .lang-btn { margin-left: auto; padding: 12px 20px; }
  .grid, .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 18px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head > p { justify-self: start; }
  .contact-card { grid-template-columns: 1fr; }
  .hero-visual { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .grid, .doc-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  /* 卡片横排：图左文右，显著缩短移动端页面长度 */
  .card {
    display: grid; grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 14px; row-gap: 6px; align-items: start; padding: 16px;
  }
  .card .number { grid-column: 1 / -1; }
  .card .photo { grid-row: 2 / span 2; }
  .card .photo img { height: 76px; padding: 4px; }
  .card h3 { grid-column: 2; }
  .card p { grid-column: 2; }
  .card .go { grid-column: 1 / -1; margin-top: 8px; }
  .wa-button { width: 100%; justify-content: center; }
  .wa-button span { white-space: nowrap; font-size: 13.5px; }
}
