/* ============================================================
   壹道仪器 · 1DAO.CC — 科学仪器官网
   风格:极简编辑风 + 实验室美学(深色 / 细线 / 衬线)
   零图片:背景网格、光晕、图标均为 CSS / 内联 SVG
   ============================================================ */

:root {
  --bg:        #0b0f14;   /* 深墨底 */
  --bg-soft:   #0e141c;
  --panel:     #111821;
  --line:      rgba(232, 237, 242, 0.09);
  --text:      #e8edf2;
  --muted:     #8a95a3;
  --accent:    #6fc3df;   /* 冰蓝 */
  --amber:     #d9a05b;   /* 琥珀点缀 */
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(111, 195, 223, 0.25); }
a { color: inherit; text-decoration: none; }

/* ---------- 背景:网格 + 光晕 ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.14; }
.bg-glow-a { width: 560px; height: 560px; top: -180px; left: -120px; background: var(--accent); }
.bg-glow-b { width: 480px; height: 480px; bottom: -200px; right: -120px; background: var(--amber); }

/* ---------- 顶栏 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px max(28px, calc((100vw - var(--maxw)) / 2));
  backdrop-filter: blur(8px);
  background: linear-gradient(var(--bg) 60%, transparent);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark svg { width: 26px; height: 26px; color: var(--accent); }
.brand-name { font-family: var(--serif); font-size: 19px; letter-spacing: 2px; }
.brand-lat { font-family: Georgia, serif; font-size: 13px; letter-spacing: 4px; color: var(--muted); margin-left: 8px; }
.site-nav { display: flex; gap: 34px; font-size: 14px; letter-spacing: 2px; color: var(--muted); }
.site-nav a { position: relative; transition: color .25s; }
.site-nav a:hover { color: var(--text); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--accent); transition: width .3s;
}
.site-nav a:hover::after { width: 100%; }

/* ---------- HERO ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; position: relative; }
.hero-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 120px 28px 60px; }
.kicker {
  font-size: 13px; letter-spacing: 6px; color: var(--accent);
  text-transform: uppercase; margin-bottom: 26px;
}
.hero-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(56px, 11vw, 128px);
  line-height: 1.02; letter-spacing: 6px;
}
.hero-title .accent {
  color: transparent;
  background: linear-gradient(120deg, var(--accent), #a8e3f7 60%, var(--amber));
  -webkit-background-clip: text; background-clip: text;
}
.hero-lat {
  display: block; margin-top: 18px;
  font-family: Georgia, serif; font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 8px; color: var(--muted); font-weight: 400;
}
.hero-sub { margin-top: 34px; max-width: 560px; font-size: 16px; color: var(--muted); }
.hero-actions { margin-top: 44px; display: flex; gap: 18px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 34px; font-size: 14px; letter-spacing: 3px;
  border: 1px solid var(--line); border-radius: 2px; transition: all .3s;
}
.btn-primary { background: var(--accent); color: #0b0f14; border-color: var(--accent); font-weight: 600; }
.btn-primary:hover { background: #8fd4ec; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-svg { margin-top: 64px; color: rgba(232, 237, 242, 0.5); max-width: 640px; }
.hero-svg svg { width: 100%; height: auto; }
.hero-svg .mol { animation: drift 14s ease-in-out infinite; }
.mol-tail { stroke: var(--amber); stroke-dasharray: 4 6; animation: dash 6s linear infinite; }
.wave { stroke: var(--accent); stroke-width: 1.2; opacity: 0.55; }
@keyframes drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes dash { to { stroke-dashoffset: -40; } }

.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 56px; background: var(--line); overflow: hidden;
}
.scroll-hint span {
  display: block; width: 100%; height: 30%;
  background: var(--accent); animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint { 0% { transform: translateY(-100%); } 100% { transform: translateY(340%); } }

/* ---------- 通用 section ---------- */
.section { padding: 130px 0; border-top: 1px solid var(--line); }
.section-alt { background: linear-gradient(180deg, rgba(17,24,33,.55), rgba(17,24,33,0)); }
.section-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section-title {
  font-family: var(--serif); font-size: clamp(30px, 5vw, 52px);
  line-height: 1.25; letter-spacing: 4px; font-weight: 700; margin-bottom: 34px;
}

/* ---------- 创始人 ---------- */
.prose { max-width: 640px; font-size: 16px; color: var(--muted); display: grid; gap: 18px; }
.prose strong { color: var(--text); font-weight: 600; }
.promises { list-style: none; margin-top: 48px; border-top: 1px solid var(--line); }
.promises li {
  display: flex; align-items: baseline; gap: 20px;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
  font-size: 15px; letter-spacing: 1px;
}
.promises .num {
  font-family: var(--serif); color: var(--accent);
  font-size: 18px; width: 40px; flex: none;
}

/* ---------- 理念卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 14px; }
.card {
  border: 1px solid var(--line); border-radius: 3px;
  padding: 40px 34px; background: rgba(17,24,33,.4);
  transition: transform .35s, border-color .35s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(111,195,223,.45); }
.card-icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 26px; }
.card h3 { font-family: var(--serif); font-size: 22px; letter-spacing: 3px; margin-bottom: 12px; }
.card .lat { font-family: Georgia, serif; font-size: 13px; letter-spacing: 3px; color: var(--muted); font-weight: 400; }
.card p { font-size: 14.5px; color: var(--muted); }

/* ---------- 业务领域 ---------- */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 14px; }
.field {
  border: 1px solid var(--line); border-radius: 3px;
  padding: 40px 34px 34px; position: relative; overflow: hidden;
  background: rgba(17,24,33,.4); transition: border-color .35s;
}
.field:hover { border-color: rgba(217,160,91,.5); }
.field-no {
  position: absolute; top: 14px; right: 22px;
  font-family: Georgia, serif; font-size: 64px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(232,237,242,.14);
}
.field h3 { font-family: var(--serif); font-size: 20px; letter-spacing: 2px; margin-bottom: 12px; }
.field p { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.field-tag {
  font-size: 12px; letter-spacing: 3px; color: var(--amber);
  border: 1px solid rgba(217,160,91,.35); border-radius: 999px; padding: 5px 16px;
}
.note { margin-top: 30px; font-size: 13px; color: var(--muted); letter-spacing: 1px; }

/* ---------- 联系 ---------- */
.contact { display: grid; gap: 0; max-width: 720px; margin-top: 14px; }
.contact-item {
  display: flex; align-items: baseline; gap: 30px;
  padding: 24px 4px; border-bottom: 1px solid var(--line);
  transition: padding-left .3s;
}
a.contact-item:hover { padding-left: 14px; color: var(--accent); }
.contact-label { font-size: 13px; letter-spacing: 4px; color: var(--muted); width: 64px; flex: none; }
.contact-value { font-family: var(--serif); font-size: clamp(18px, 3vw, 26px); letter-spacing: 2px; }

/* ---------- 创始人资质卡(PMP)---------- */
.credential {
  margin-top: 52px; display: flex; gap: 38px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 3px;
  background: rgba(17,24,33,.4); padding: 36px 38px;
  transition: border-color .35s;
}
.credential:hover { border-color: rgba(111,195,223,.45); }
.credential-mark { flex: none; width: 170px; border-right: 1px solid var(--line); padding-right: 30px; }
.credential-rm {
  display: block; font-family: Georgia, serif;
  font-size: 44px; line-height: 1; letter-spacing: 2px; color: var(--accent);
}
.credential-rm sup { font-size: 17px; }
.credential-rm-sm { font-size: 34px; letter-spacing: 3px; }
.credential + .credential { margin-top: 22px; }
.credential-org {
  display: block; margin-top: 12px;
  font-size: 12px; letter-spacing: 1px; line-height: 1.7; color: var(--muted);
}
.credential-info { flex: 1; }
.credential-info h3 { font-family: var(--serif); font-size: 22px; letter-spacing: 3px; }
.credential-lat { font-family: Georgia, serif; font-size: 13px; letter-spacing: 2px; color: var(--muted); margin-top: 4px; }
.credential-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 26px; margin: 20px 0 26px;
}
.credential-meta dt { font-size: 12px; letter-spacing: 2px; color: var(--muted); }
.credential-meta dd { font-size: 15px; letter-spacing: 1px; }
.credential-link { padding: 10px 26px; font-size: 13px; }
.credential-verify {
  margin-top: 16px; font-size: 12px; letter-spacing: 1px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
}
.credential-verify a { color: var(--muted); border-bottom: 1px solid rgba(138,149,163,.35); transition: color .3s, border-color .3s; }
.credential-verify a:hover { color: var(--accent); border-color: var(--accent); }
.credential-verify .dot { opacity: .5; }

.credential-links { display: flex; flex-wrap: wrap; gap: 10px; }
.credential-verify .code { color: var(--accent); font-family: Georgia, serif; letter-spacing: 2px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; letter-spacing: 2px; color: var(--muted);
}
.footer-lat { font-family: Georgia, serif; }
.footer-backup {
  font-size: 13px; letter-spacing: 1px; color: var(--muted);
  border-bottom: 1px solid rgba(138,149,163,.35);
  transition: color .3s, border-color .3s;
}
.footer-backup:hover { color: var(--accent); border-color: var(--accent); }
.footer-icp { text-align: center; margin-top: 14px; }
.footer-icp a {
  font-size: 12px; letter-spacing: 1px; color: var(--muted);
  transition: color .3s;
}
.footer-icp a:hover { color: var(--accent); }

/* 域名证书展示 */
.footer-cert { text-align: center; margin-top: 20px; }
.footer-cert a {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 2px; color: var(--muted); transition: color .3s;
}
.footer-cert a:hover { color: var(--accent); }
.footer-cert img {
  width: 88px; height: auto;
  border: 1px solid var(--line); border-radius: 2px;
  padding: 5px; background: rgba(255,255,255,.03);
  transition: border-color .3s, transform .3s;
}
.footer-cert a:hover img { border-color: rgba(111,195,223,.5); transform: translateY(-3px); }

/* ---------- 滚动渐显 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .site-header { padding: 16px 20px; }
  .site-nav { gap: 18px; font-size: 13px; }
  .section { padding: 90px 0; }
  .hero-title { letter-spacing: 3px; }
  .contact-item { flex-direction: column; gap: 4px; }
  .credential { flex-direction: column; gap: 22px; padding: 28px 24px; }
  .credential-mark { border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 20px; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-svg .mol, .mol-tail, .scroll-hint span { animation: none; }
}
