/* ============================================================
   墨轩工作室 MOXUAN STUDIO — 官网样式
   设计方向：深墨色 × 青玉辉光 × 朱砂印章（科技感深色）
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --ink-950: #05080a;          /* 底色：近黑的墨色 */
  --ink-900: #0a1014;
  --ink-800: #101a21;
  --ink-700: #17242d;
  --line:    #1c2b35;          /* 细线边框 */
  --line-hi: #2b4354;

  --jade:    #5eead4;          /* 主强调：青玉 */
  --jade-dim:#2aa692;
  --seal:    #d24d4d;          /* 朱砂印章红（点缀） */

  --text:    #dfe8ee;
  --text-2:  #94a6b3;
  --text-3:  #5c6f7c;

  --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  --max-w: 1120px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: rgba(94, 234, 212, .25); color: #fff; }

/* ---------- 背景层 ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(94, 234, 212, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}

.bg-orb {
  position: fixed; z-index: -2; pointer-events: none;
  border-radius: 50%; filter: blur(110px); opacity: .16;
}
.bg-orb--1 {
  width: 640px; height: 640px; top: -220px; right: -140px;
  background: radial-gradient(circle, #14b8a6 0%, transparent 65%);
  animation: drift 22s ease-in-out infinite alternate;
}
.bg-orb--2 {
  width: 520px; height: 520px; bottom: -200px; left: -160px;
  background: radial-gradient(circle, #1e3a5f 0%, transparent 65%);
  animation: drift 26s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 48px) scale(1.12); }
}

.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 滚动进场 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
}
.nav.is-scrolled {
  background: rgba(5, 8, 10, .78);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; gap: 36px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__seal {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: #fff; background: var(--seal);
  border-radius: 7px;
  box-shadow: 0 0 22px rgba(210, 77, 77, .35);
  transform: rotate(-3deg);
  transition: transform .4s var(--ease);
}
.nav__brand:hover .nav__seal { transform: rotate(3deg) scale(1.06); }
.nav__name {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  letter-spacing: .08em; line-height: 1.2; display: flex; flex-direction: column;
}
.nav__name em {
  font-family: var(--font-mono); font-style: normal;
  font-size: 9px; letter-spacing: .34em; color: var(--text-3);
}
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  position: relative; font-size: 14px; letter-spacing: .14em; color: var(--text-2);
  padding: 4px 0; transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--jade);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:hover { color: var(--jade); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__meta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em;
  color: var(--text-3);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  max-width: var(--max-w); margin: 0 auto;
  padding: 190px 32px 90px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.hero__kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .42em;
  color: var(--jade-dim); margin-bottom: 28px;
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(52px, 9vw, 108px);
  line-height: 1.14; letter-spacing: .06em;
  display: flex; flex-direction: column;
}
.hero__title span { display: block; }
.hero__title em {
  font-style: normal; color: var(--jade);
  text-shadow: 0 0 42px rgba(94, 234, 212, .45);
}
.hero__sub {
  margin-top: 34px; max-width: 640px;
  font-size: 16px; color: var(--text-2); letter-spacing: .04em;
}
.hero__actions { margin-top: 44px; display: flex; gap: 18px; }
.btn {
  display: inline-block; padding: 13px 38px;
  font-size: 14px; letter-spacing: .22em;
  border: 1px solid var(--line-hi); border-radius: 3px;
  transition: all .35s var(--ease);
}
.btn--solid {
  background: var(--jade); border-color: var(--jade); color: #04211c; font-weight: 600;
}
.btn--solid:hover {
  box-shadow: 0 0 34px rgba(94, 234, 212, .4); transform: translateY(-2px);
}
.btn--ghost { color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--jade); color: var(--jade); transform: translateY(-2px); }

.hero__stats {
  margin-top: 72px; display: flex; gap: 0;
  border-top: 1px solid var(--line);
}
.stat {
  padding: 26px 56px 0 0; margin-right: 56px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat + .stat { border-left: 1px solid var(--line); padding-left: 56px; }
.stat b {
  font-family: var(--font-mono); font-size: 34px; font-weight: 500; color: var(--text);
}
.stat b small { font-size: 18px; color: var(--jade); }
.stat span { font-size: 12px; letter-spacing: .2em; color: var(--text-3); }

.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1px solid var(--line-hi); border-radius: 12px;
}
.hero__scroll span {
  position: absolute; top: 7px; left: 50%; margin-left: -1.5px;
  width: 3px; height: 7px; border-radius: 2px; background: var(--jade);
  animation: scroll-dot 1.8s var(--ease) infinite;
}
@keyframes scroll-dot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- 区块标题 ---------- */
section { scroll-margin-top: 90px; }
.products, .about, .contact {
  max-width: var(--max-w); margin: 0 auto; padding: 96px 32px 40px;
}
.section-head { margin-bottom: 56px; position: relative; }
.section-head__index {
  position: absolute; top: -38px; left: -14px; z-index: -1;
  font-family: var(--font-mono); font-size: 118px; font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(94, 234, 212, .14);
  user-select: none;
}
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700; letter-spacing: .1em;
}
.section-head p {
  margin-top: 10px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .26em; color: var(--text-3);
}

/* ---------- 产品卡片 ---------- */
.cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px;
}
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(16, 26, 33, .85), rgba(10, 16, 20, .92));
  border: 1px solid var(--line); border-radius: 6px;
  padding: 34px 32px 30px;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(94, 234, 212, .5);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5), 0 0 0 1px rgba(94, 234, 212, .12),
              0 0 46px rgba(94, 234, 212, .08);
}
.card__num {
  position: absolute; top: 14px; right: 22px;
  font-family: var(--font-mono); font-size: 52px; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(148, 166, 179, .16);
  user-select: none;
}
.card__head { display: flex; align-items: center; gap: 14px; }
.card__head h3 {
  font-family: var(--font-mono); font-size: 21px; font-weight: 600;
  letter-spacing: .04em; color: var(--text);
}
.card__status {
  font-size: 11px; letter-spacing: .18em; padding: 3px 10px;
  border-radius: 999px; border: 1px solid;
}
.card__status--live { color: var(--jade); border-color: rgba(94, 234, 212, .4); }
.card__status--soon { color: #d8b45e; border-color: rgba(216, 180, 94, .4); }
.card__cn {
  margin-top: 10px;
  font-family: var(--font-display); font-size: 15px; letter-spacing: .3em;
  color: var(--jade-dim);
}
.card__desc {
  margin-top: 14px; font-size: 14px; line-height: 1.9; color: var(--text-2);
  min-height: 126px;
}
.card__tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.card__tags li {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  color: var(--text-2);
  padding: 4px 11px; border: 1px solid var(--line); border-radius: 3px;
  background: rgba(28, 43, 53, .35);
  transition: all .3s;
}
.card:hover .card__tags li { border-color: var(--line-hi); }
.card__line {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--jade), transparent 70%);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.card:hover .card__line { transform: scaleX(1); }

.card--ghost { border-style: dashed; }
.card--ghost .card__desc { color: var(--text-3); }
.card--ghost:hover { border-color: rgba(216, 180, 94, .45); }

/* ---------- 关于 ---------- */
.about__grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start;
}
.about__text p { margin-bottom: 20px; color: var(--text-2); letter-spacing: .03em; }
.about__text b { color: var(--jade); font-weight: 600; }
.about__points li {
  display: flex; align-items: baseline; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.about__points li:first-child { border-top: 1px solid var(--line); }
.about__points i {
  font-style: normal; font-family: var(--font-display);
  font-size: 22px; color: var(--seal); flex: none; width: 30px;
}
.about__points span { font-size: 14px; color: var(--text-2); letter-spacing: .04em; }
.about__points b { color: var(--text); margin-right: 2px; }

/* ---------- 联系 ---------- */
.contact__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px;
}
.contact__item {
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(16, 26, 33, .6);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 28px 30px;
  transition: all .35s var(--ease);
}
a.contact__item:hover {
  border-color: rgba(94, 234, 212, .5);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
}
.contact__label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .28em; color: var(--text-3);
}
.contact__value {
  font-size: 21px; letter-spacing: .06em; color: var(--text);
}
a.contact__item .contact__value { transition: color .3s; }
a.contact__item:hover .contact__value { color: var(--jade); }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 110px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 10, .7);
}
.footer__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 30px 32px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-size: 12.5px; letter-spacing: .12em; color: var(--text-3);
  flex-wrap: wrap;
}
.footer__dot { font-size: 7px; color: var(--seal); }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--jade); }

/* ---------- 响应式 ---------- */
.br-desktop { display: inline; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .nav__meta { display: none; }
  .stat { padding-right: 30px; margin-right: 30px; }
  .stat + .stat { padding-left: 30px; }
}

@media (max-width: 620px) {
  .nav__inner { padding: 14px 20px; gap: 18px; }
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 13px; letter-spacing: .08em; }
  .nav__name em { display: none; }
  .hero { padding: 150px 20px 80px; }
  .products, .about, .contact { padding-left: 20px; padding-right: 20px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__stats { flex-direction: column; gap: 18px; border-top: none; }
  .stat, .stat + .stat { border: none; padding: 0; margin: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .br-desktop { display: none; }
  .card__desc { min-height: 0; }
  .section-head__index { font-size: 76px; top: -26px; }
}

/* ---------- 弱动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bg-orb, .hero__scroll span { animation: none; }
}
