/* =========================================================
   墨工坊门户 · 样式表
   设计语言：健康绿主色 + 干净留白 + 圆角卡片
   修改品牌色只需调整下方 :root 变量
   ========================================================= */
:root {
  --primary: #0e9f6e;
  --primary-dark: #0b7a54;
  --primary-soft: #e6f6ef;
  --accent: #2bb3a3;
  --ink: #16241f;
  --ink-2: #4d5f58;
  --ink-3: #84958e;
  --bg: #ffffff;
  --bg-soft: #f5f9f7;
  --line: #e3ece8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(14, 70, 50, 0.08);
  --shadow-lg: 0 20px 50px rgba(14, 70, 50, 0.14);
  --maxw: 1160px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
em { font-style: normal; color: var(--primary-dark); font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all .25s ease; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(14,159,110,.28); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(14,159,110,.34); }
.btn--ghost { background: #fff; color: var(--primary-dark); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); transform: translateY(-2px); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: all .3s ease;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(14,70,50,.06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { height: 34px; width: 34px; object-fit: cover; border-radius: 8px; }
.brand__name { font-size: 19px; font-weight: 800; letter-spacing: .5px; color: var(--ink); }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 15px; color: var(--ink-2); font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--primary); }
.nav__cta { padding: 9px 20px; font-size: 14px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(43,179,163,.18), transparent 60%),
    radial-gradient(700px 500px at 0% 20%, rgba(14,159,110,.14), transparent 55%),
    linear-gradient(180deg, #f3faf7 0%, #ffffff 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero__eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1px;
  color: var(--primary-dark); background: var(--primary-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero__title { font-size: 46px; line-height: 1.2; font-weight: 800; letter-spacing: -.5px; }
.hero__sub { margin: 22px 0 30px; font-size: 17px; color: var(--ink-2); max-width: 540px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__facts { list-style: none; display: flex; gap: 34px; margin-top: 40px; }
.hero__facts li { font-size: 14px; color: var(--ink-3); }
.hero__facts strong { display: block; font-size: 30px; font-weight: 800; color: var(--primary); }

.hero__qr { display: flex; justify-content: center; }
.qr-card {
  background: #fff; border-radius: 22px; padding: 26px 26px 20px; box-shadow: var(--shadow-lg);
  text-align: center; width: 260px;
}
.qr-card__img {
  width: 200px; height: 200px; margin: 0 auto; border-radius: 14px; overflow: hidden;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.qr-card__img img { width: 100%; height: 100%; object-fit: contain; }
.qr-card__img.is-empty::after {
  content: "小程序二维码\A 放入 assets/\A wechat-qrcode.jpg"; white-space: pre; text-align: center;
  color: var(--ink-3); font-size: 13px; line-height: 1.7;
}
.qr-card__tip { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--ink); }
.qr-card__brand { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }

/* ---------- 通用区块 ---------- */
.section { padding: 90px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section__tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--primary);
  background: var(--primary-soft); padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section__title { font-size: 32px; font-weight: 800; letter-spacing: -.5px; }
.section__lead { margin-top: 16px; font-size: 17px; color: var(--ink-2); }

/* ---------- 关于 ---------- */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.about__text p { font-size: 16px; color: var(--ink-2); margin-bottom: 18px; }
.about__points { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.point { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.point__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.about__visual { position: relative; height: 320px; display: flex; align-items: center; justify-content: center; }
.about__ring { position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 2px dashed var(--line); }
.about__pill {
  position: absolute; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 12px 22px; border-radius: 999px; font-weight: 700; color: var(--primary-dark);
}
.about__pill--1 { top: 6%; left: 8%; }
.about__pill--2 { top: 10%; right: 4%; }
.about__pill--3 { bottom: 12%; left: 2%; }
.about__pill--4 { bottom: 6%; right: 10%; }

/* ---------- 卡片网格 ---------- */
.cards { display: grid; gap: 24px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px;
  transition: transform .25s ease, box-shadow .25s ease; box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__icon { font-size: 36px; margin-bottom: 16px; }
.card__title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card__desc { font-size: 15px; color: var(--ink-2); }

/* ---------- 墨工坊功能 ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  display: flex; gap: 20px; align-items: flex-start; box-shadow: var(--shadow); transition: transform .25s;
}
.feature:hover { transform: translateY(-4px); }
.feature__no { font-size: 26px; font-weight: 800; color: var(--primary-soft); -webkit-text-stroke: 1px var(--primary); line-height: 1; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--ink-2); }
.miniapp__cta {
  margin-top: 44px; background: linear-gradient(120deg, var(--primary), var(--accent));
  border-radius: var(--radius); padding: 36px 40px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.miniapp__cta h3 { font-size: 22px; margin-bottom: 6px; }
.miniapp__cta p { opacity: .92; }
.miniapp__cta .btn--primary { background: #fff; color: var(--primary-dark); box-shadow: none; }
.miniapp__cta .btn--primary:hover { background: #f0faf5; }

/* ---------- 产品 ---------- */
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product__media { height: 150px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; font-weight: 800; letter-spacing: 2px; }
.product__media--nmn { background: linear-gradient(135deg, #0e9f6e, #2bb3a3); }
.product__media--stem { background: linear-gradient(135deg, #2bb3a3, #1c7fb8); }
.product__media--gene { background: linear-gradient(135deg, #0b7a54, #3aa66b); }
.product__body { padding: 24px; }
.product__title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.product__desc { font-size: 15px; color: var(--ink-2); margin-bottom: 16px; }
.product__tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--primary-dark); background: var(--primary-soft); padding: 5px 12px; border-radius: 999px; }

/* ---------- 资讯 ---------- */
.news { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .25s; }
.news:hover { transform: translateY(-5px); }
.news__date { font-size: 13px; font-weight: 700; color: var(--primary); }
.news__title { font-size: 18px; font-weight: 700; margin: 10px 0 12px; line-height: 1.4; }
.news__desc { font-size: 15px; color: var(--ink-2); margin-bottom: 16px; }
.news__more { font-size: 14px; font-weight: 600; color: var(--primary-dark); }
.news__more:hover { text-decoration: underline; }

/* ---------- 联系 ---------- */
.contact { display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: center; }
.contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact__item {}
.contact__label { display: block; font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.contact__item p { font-size: 17px; font-weight: 600; color: var(--ink); }
.contact__qr { display: flex; justify-content: center; }

/* ---------- 页脚 ---------- */
.footer { background: #10211b; color: #cfe0d8; padding: 56px 0 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__logo { height: 32px; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 12px; }
.footer__brand p { font-size: 14px; color: #9fb6ac; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { font-size: 15px; color: #cfe0d8; transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__bottom { padding: 20px 0; }
.footer__bottom p { font-size: 13px; color: #7f978d; text-align: center; }

/* ---------- 滚动揭示动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__qr { order: -1; }
  .about { grid-template-columns: 1fr; }
  .about__visual { height: 240px; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 18px 24px; gap: 16px; box-shadow: var(--shadow); border-top: 1px solid var(--line);
  }
  .hero { padding: 120px 0 70px; }
  .hero__title { font-size: 34px; }
  .hero__facts { gap: 22px; }
  .section { padding: 64px 0; }
  .section__title { font-size: 26px; }
  .cards--4, .cards--3, .features { grid-template-columns: 1fr; }
  .contact__info { grid-template-columns: 1fr; }
  .miniapp__cta { flex-direction: column; align-items: flex-start; }
}
