/* =============================================================================
   新能量-弹墨家装 · 门户站样式（tanmoo.cn）
   设计母题：绷直墨线 + 墨滴（弹墨）
   色板：墨黑（ink）/ 宣纸（paper）/ 朱砂（cinnabar）
   约束：零外部依赖（不引 CDN/外链字体），保证备案站可长期稳定访问
   ========================================================================== */

:root {
  /* 色板 */
  --ink: #14161a;
  --ink-2: #33383f;
  --ink-3: #5b6169;
  --paper: #f8f6f1;
  --paper-2: #f1eee6;
  --paper-3: #e7e2d7;
  --line: #dcd6c9;
  --line-2: #c9c2b3;
  --red: #c4362b;
  --red-2: #a82c22;
  --red-soft: rgba(196, 54, 43, 0.08);
  --muted: #6b7078;
  --white: #ffffff;

  /* 排版 */
  --font: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Source Han Sans SC',
    'Noto Sans CJK SC', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 尺寸 */
  --wrap: 1140px;
  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 68px;
}

/* ---------- 基础清零 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 宣纸底纹：极淡的网格 + 纤维感（纯 CSS，无图片依赖） */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 22, 26, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 22, 26, 0.028) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.5rem, 2.9vw, 2.15rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.15em;
}

li {
  margin-bottom: 0.4em;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 84px 0;
}

.section--tight {
  padding: 56px 0;
}

.section--paper2 {
  background: var(--paper-2);
}

.section--ink {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.section--ink h2,
.section--ink h3 {
  color: var(--white);
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--red);
}

.section-head--center .eyebrow::before {
  display: none;
}

.lead {
  font-size: 1.0625rem;
  color: var(--ink-3);
}

.muted {
  color: var(--muted);
}

/* 视觉隐藏（供屏幕阅读器/结构补齐用） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.small {
  font-size: 0.875rem;
}

/* 墨线分隔：一条绷直的线 + 末端墨滴 */
.ink-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line-2);
  position: relative;
}

.ink-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-50%);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--red-2);
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(20, 22, 26, 0.04);
}

.btn--on-ink {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn--on-ink:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(248, 246, 241, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand__sub {
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(20, 22, 26, 0.05);
}

.nav a[aria-current='page'] {
  color: var(--red);
  font-weight: 600;
}

.site-header__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header__cta .btn {
  height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
}

/* 管理后台入口（站外应用，弱化为文字链接，避免与主 CTA 抢视觉） */
.admin-link {
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.admin-link:hover {
  color: var(--ink);
  background: rgba(20, 22, 26, 0.05);
}

/* 桌面端由 header 的 .admin-link 承担入口；移动端才在折叠菜单里出现，避免重复 */
.nav__admin {
  display: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: 92px 0 72px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 22px;
}

.hero h1 .ink {
  position: relative;
  white-space: nowrap;
}

/* 标题下的墨线（绷直 + 墨滴） */
.hero h1 .ink::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.09em;
  background: var(--ink);
  opacity: 0.9;
}

.hero h1 .ink::before {
  content: '';
  position: absolute;
  right: -0.34em;
  bottom: -0.01em;
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: var(--red);
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--ink-3);
  max-width: 30em;
  margin-bottom: 30px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.hero__meta strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__art {
  position: relative;
}

/* ---------- 通用卡片 ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}

.card--flat {
  background: transparent;
}

.card__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--red);
  display: block;
  margin-bottom: 14px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card__icon {
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  color: var(--red);
}

/* 三支柱 */
.pillar {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}

.pillar--red {
  border-top-color: var(--red);
}

.pillar h3 {
  font-size: 1.0625rem;
}

.pillar .from {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--line-2);
}

/* ---------- 四步流程 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
}

.step {
  position: relative;
  padding: 26px 22px 26px 0;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-2);
}

.step::after {
  content: '';
  position: absolute;
  top: -3.5px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.step--last::after {
  background: var(--red);
}

.step__i {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 10px;
}

/* ---------- 品牌溯源 / 引文带 ---------- */
.quote-band {
  padding: 76px 0;
}

.quote-band blockquote {
  margin: 0;
  font-size: clamp(1.4rem, 3.1vw, 2.1rem);
  line-height: 1.5;
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.quote-band .attrib {
  margin-top: 18px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- 分栏 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.split--art-left {
  direction: rtl;
}

.split--art-left > * {
  direction: ltr;
}

/* 特性列表（带钩） */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 12px;
  height: 1.5px;
  background: var(--red);
}

.feature-list strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 界面示意（纯 SVG/CSS 模拟，非截图） ---------- */
.mock {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mock__bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
}

.mock__dot--red {
  background: var(--red);
}

.mock__title {
  margin-left: 10px;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.mock__body {
  padding: 18px;
  font-size: 0.8125rem;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 9px;
  background: var(--white);
}

.mock-row:last-child {
  margin-bottom: 0;
}

.mock-row__t {
  color: var(--ink);
  font-weight: 600;
}

.mock-row__s {
  color: var(--muted);
  font-size: 0.75rem;
}

.tag {
  display: inline-block;
  font-size: 0.6875rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  white-space: nowrap;
}

.tag--ok {
  border-color: rgba(35, 122, 82, 0.35);
  color: #1f6b47;
  background: rgba(35, 122, 82, 0.07);
}

.tag--warn {
  border-color: rgba(196, 54, 43, 0.3);
  color: var(--red);
  background: var(--red-soft);
}

.mock-phone {
  width: 268px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(20, 22, 26, 0.08);
}

.mock-phone__screen {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}

.mock-phone__head {
  padding: 12px 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
}

.mock-phone__body {
  padding: 12px;
}

/* ---------- CTA 带 ---------- */
.cta-band {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 44px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin-bottom: 8px;
}

.cta-band p {
  margin-bottom: 0;
  color: var(--ink-3);
}

/* ---------- 数据/事实条 ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.fact__n {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.fact__n em {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--muted);
  margin-left: 2px;
}

.fact__l {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- 表单 ---------- */
.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--white);
  width: 100%;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 22, 26, 0.07);
}

.form__note {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* 待填占位（上线前由公司补齐，样式刻意显眼） */
.todo {
  display: inline-block;
  border-bottom: 1px dashed var(--red);
  color: var(--red);
  font-weight: 600;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  padding: 60px 0 30px;
  font-size: 0.875rem;
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__brand .brand__name {
  color: var(--white);
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.9375rem;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 9px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

/* ---------- 滚动入场动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 无障碍：跳转主内容 ---------- */
.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero__grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .split--art-left {
    direction: ltr;
  }

  .grid--4,
  .facts,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps .step {
    padding-right: 0;
  }

  .step::before,
  .step::after {
    display: none;
  }

  .step {
    border-top: 1px solid var(--line-2);
    padding-left: 0;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  /* 平板及以下：收起横向导航为汉堡菜单（761–1024px 横向排布会折行） */
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 13px 6px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1rem;
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .section {
    padding: 60px 0;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .facts,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header__cta .btn--header {
    display: none;
  }

  .cta-band {
    padding: 30px 22px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 48px;
  }
}

/* v1.0.1 布局微调 */

/* 窄屏（≤760px）：header 放不下，入口下移到折叠菜单 */
@media (max-width: 760px) {
  .admin-link {
    display: none;
  }

  .nav__admin {
    display: block;
  }
}
