/* ==========================================================================
   上海鸿业兴软件科技有限公司 — 企业官网
   VI：暖米白 / 玄墨 / 赭红 / 砂线
   语言：编辑式版式、细线表格、技术制图式图形；禁用渐变与投影
   ========================================================================== */

:root {
  --paper:   #FAF7F2;
  --paper-2: #F3EDE4;
  --white:   #FFFDFA;
  --ink:     #17181A;
  --ink-2:   #2A2B2D;
  --dark:    #1C1D1B;
  --brick:   #A6472E;
  --brick-2: #8A3A25;
  --sand:    #E2D7C7;
  --sand-2:  #EFE7DC;
  --muted:   #6E675C;
  --muted-2: #9A9184;
  --up:      #C8342B;
  --down:    #1F8A5B;

  --max: 1180px;
  --nav-h: 72px;

  --sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
          "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --num: "Inter", "Barlow", "Helvetica Neue", Arial, var(--sans);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; color: var(--ink); }

.num, .mono, time, table td, .fig__cap, .step b {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

::selection { background: #EBD9C9; color: var(--brick-2); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--brick); color: #fff; padding: 10px 16px; font-size: 13px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }

/* --------------------------------------------------------------- 布局 */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.sec { padding: 104px 0; }
.sec--tight { padding: 72px 0; }
.sec--white { background: var(--white); }
.sec--sand { background: var(--paper-2); }
.sec--dark { background: var(--dark); color: #C9C3B8; }
.sec--dark h2, .sec--dark h3, .sec--dark h4 { color: #F5F1EA; }

.rule { height: 1px; background: var(--sand); border: 0; margin: 0; }
.sec--dark .rule { background: #34352F; }

/* --------------------------------------------------------------- 章节头 */
.kicker {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--num); font-size: 11.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--brick);
  margin-bottom: 26px;
}
.kicker i {
  font-style: normal; color: var(--muted-2); letter-spacing: .1em;
}
.sec--dark .kicker { color: #D9856A; }
.sec--dark .kicker i { color: #6E6A61; }

.h-1 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.h-2 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.02em; }
.h-3 { font-size: clamp(20px, 2vw, 24px); }
.h-4 { font-size: 17px; }

.sec__hd { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.78fr); gap: 60px; align-items: end; margin-bottom: 56px; }
.lede { font-size: 16px; line-height: 1.95; color: var(--muted); max-width: 620px; }
.sec--dark .lede { color: #A7A196; }

.prose { max-width: 680px; }
.prose p { font-size: 15.5px; line-height: 2; color: var(--muted); }
.prose p strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- 导航 */
.mast {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: var(--paper); border-bottom: 1px solid var(--sand);
}
.mast__in { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: baseline; gap: 10px; flex: 0 0 auto; }
.brand__mark { width: 22px; height: 22px; align-self: center; }
.brand__name { font-size: 17px; font-weight: 600; letter-spacing: .1em; color: var(--ink); }
.brand__en { font-family: var(--num); font-size: 10px; letter-spacing: .2em; color: var(--muted-2); }
.navwrap { display: flex; align-items: center; margin-left: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 14.5px; color: var(--ink-2); padding: 4px 0;
  border-bottom: 1px solid transparent; transition: border-color .18s, color .18s;
}
.nav a:hover { border-bottom-color: var(--brick); }
.nav a[aria-current="page"] { color: var(--brick); border-bottom-color: var(--brick); }
.mast__cta { margin-left: 36px; }

.hamb { display: none; margin-left: auto; width: 40px; height: 40px; background: none; border: 1px solid var(--sand); cursor: pointer; align-items: center; justify-content: center; }
.hamb span { display: block; width: 16px; height: 1px; background: var(--ink); position: relative; }
.hamb span::before, .hamb span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1px; background: var(--ink); }
.hamb span::before { top: -5px; }
.hamb span::after { top: 5px; }

/* --------------------------------------------------------------- 链接与按钮 */
.go {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--brick);
  border-bottom: 1px solid rgba(166,71,46,.35); padding-bottom: 3px;
  transition: gap .18s, border-color .18s;
}
.go:hover { gap: 14px; border-bottom-color: var(--brick); }
.go svg { width: 13px; height: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 26px; border: 1px solid transparent;
  font-family: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn--fill { background: var(--brick); color: #fff; }
.btn--fill:hover { background: var(--brick-2); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--gold { background: var(--ink); color: var(--paper); }
.btn--gold:hover { background: #000; }
.btn--sm { height: 38px; padding: 0 18px; font-size: 13.5px; }
.btn--wide { width: 100%; }

/* --------------------------------------------------------------- 首屏 */
.hero { padding: 84px 0 96px; border-bottom: 1px solid var(--sand); }
.hero__in { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--brick); }
.hero__sub { font-size: 16.5px; line-height: 1.95; color: var(--muted); max-width: 480px; }
.hero__act { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero__meta {
  margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--sand);
  display: flex; gap: 40px; flex-wrap: wrap;
}
.hero__meta div b { display: block; font-family: var(--num); font-size: 13.5px; letter-spacing: .02em; color: var(--ink); }
.hero__meta div span { font-size: 12.5px; color: var(--muted-2); }

/* 制图式图形 */
.fig { border: 1px solid var(--sand); background: var(--white); padding: 22px; position: relative; }
.fig::before, .fig::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  border: 1px solid var(--brick); opacity: .5;
}
.fig::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.fig::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.fig__cap {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2);
  border-bottom: 1px solid var(--sand); padding-bottom: 10px; margin-bottom: 16px;
}

/* --------------------------------------------------------------- 四项 */
.marks { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--sand); }
.mark { padding: 26px 26px 0 0; border-right: 1px solid var(--sand); }
.mark:last-child { border-right: 0; }
.mark b {
  display: block; font-family: var(--num); font-size: 12px; letter-spacing: .14em;
  color: var(--brick); margin-bottom: 12px; font-weight: 600;
}
.mark h4 { font-size: 16px; margin-bottom: 8px; }
.mark p { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--muted); }

/* --------------------------------------------------------------- 双线 */
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--sand); background: var(--white); }
.linea { padding: 40px 38px 42px; border-right: 1px solid var(--sand); }
.linea:last-child { border-right: 0; }
.linea__tag {
  font-family: var(--num); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2); display: block; margin-bottom: 18px;
}
.linea h3 { font-size: 22px; margin-bottom: 14px; }
.linea p { font-size: 14px; line-height: 1.9; color: var(--muted); }
.linea ul { margin-top: 20px; border-top: 1px solid var(--sand-2); }
.linea li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sand-2); font-size: 13.5px; color: var(--ink-2); }
.linea li span { color: var(--muted-2); font-family: var(--num); font-size: 11px; min-width: 26px; }
.linea .go { margin-top: 24px; }

/* --------------------------------------------------------------- 流程 */
.flow { border-top: 1px solid var(--sand); }
.flow__i { display: grid; grid-template-columns: 88px minmax(0,.9fr) minmax(0,1.1fr); gap: 36px; padding: 30px 0; border-bottom: 1px solid var(--sand); align-items: start; }
.flow__i b { font-family: var(--num); font-size: 12px; letter-spacing: .12em; color: var(--brick); padding-top: 4px; }
.flow__i h3 { font-size: 18px; }
.flow__i p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--muted); }

/* --------------------------------------------------------------- 表格 */
.tbl { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--sand); }
.tbl th, .tbl td { padding: 15px 18px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--sand); vertical-align: top; }
.tbl thead th {
  background: var(--paper-2); font-family: var(--num); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody th { font-weight: 600; color: var(--ink); width: 168px; background: #FCFAF6; }
.tbl td { color: var(--muted); }
.tbl td b { color: var(--ink); }
.tbl-scroll { overflow-x: auto; }

/* --------------------------------------------------------------- 引言 */
.pull { border-left: 2px solid var(--brick); padding: 6px 0 6px 28px; max-width: 720px; }
.pull p { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.7; color: var(--ink); margin: 0 0 14px; letter-spacing: -.01em; }
.pull cite { font-style: normal; font-family: var(--num); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }

/* --------------------------------------------------------------- 产品页 */
.cap4 { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--sand); }
.cap4 > div { padding: 34px 34px 34px 0; border-bottom: 1px solid var(--sand); }
.cap4 > div:nth-child(odd) { border-right: 1px solid var(--sand); }
.cap4 > div:nth-child(even) { padding-left: 34px; padding-right: 0; }
.cap4 h3 { font-size: 18px; margin-bottom: 10px; }
.cap4 p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--muted); }
.cap4 em { display: block; font-style: normal; font-family: var(--num); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--brick); margin-bottom: 12px; }

.deploy { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--sand); background: var(--white); }
.deploy > div { padding: 30px 28px; border-right: 1px solid var(--sand); }
.deploy > div:last-child { border-right: 0; }
.deploy h4 { font-size: 15.5px; margin-bottom: 10px; }
.deploy p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--muted); }
.deploy span { font-family: var(--num); font-size: 10px; letter-spacing: .16em; color: var(--muted-2); display: block; margin-bottom: 12px; }

/* --------------------------------------------------------------- 提示 */
.note {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--sand); border-left: 2px solid var(--brick);
  background: var(--white); padding: 18px 20px;
  font-size: 13.5px; line-height: 1.9; color: var(--muted);
}
.note svg { flex: 0 0 auto; margin-top: 3px; color: var(--brick); }
.sec--dark .note { background: #232420; border-color: #34352F; border-left-color: #D9856A; color: #A7A196; }

/* --------------------------------------------------------------- 公司信息 */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* --------------------------------------------------------------- CTA */
.band { background: var(--dark); color: #C9C3B8; padding: 84px 0; }
.band__in { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.band h2 { color: #F5F1EA; font-size: clamp(24px, 3vw, 34px); }
.band p { margin: 14px 0 0; font-size: 14.5px; color: #A7A196; }
.band__act { display: flex; gap: 12px; flex: 0 0 auto; flex-wrap: wrap; }
.band .btn--fill { background: var(--brick); }
.band .btn--line { border-color: #4A4B45; color: #C9C3B8; }
.band .btn--line:hover { background: #F5F1EA; color: var(--dark); border-color: #F5F1EA; }

/* --------------------------------------------------------------- 页脚 */
.foot { background: var(--dark); color: #A7A196; padding: 64px 0 30px; font-size: 13px; border-top: 1px solid #34352F; }
.foot__top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid #34352F; }
.foot .brand__name { color: #F5F1EA; }
.foot .brand__en { color: #6E6A61; }
.foot h4 { font-family: var(--num); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #6E6A61; margin-bottom: 16px; }
.foot li { margin-bottom: 9px; }
.foot a:hover { color: #F5F1EA; }
.foot__brand p { margin: 18px 0 0; max-width: 320px; line-height: 1.9; color: #8B857A; font-size: 12.5px; }
.foot__bot { padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; color: #6E6A61; font-size: 12px; flex-wrap: wrap; }
.disclaimer {
  margin-top: 26px; padding: 16px 18px; border: 1px solid #34352F;
  font-size: 11.5px; line-height: 1.9; color: #8B857A;
}
.disclaimer b { color: #B5AFA4; }

/* --------------------------------------------------------------- 内页头 */
.phead { padding: 78px 0 64px; border-bottom: 1px solid var(--sand); background: var(--paper-2); }
.phead h1 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -.025em; margin-bottom: 20px; }
.phead p { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.95; color: var(--muted); }
.phead .kicker { margin-bottom: 22px; }

/* --------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  .hero__in { grid-template-columns: 1fr; gap: 48px; }
  .fig { max-width: 620px; }
  .sec__hd { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .marks { grid-template-columns: 1fr 1fr; }
  .mark:nth-child(2n) { border-right: 0; }
  .mark:nth-child(n+3) { border-top: 1px solid var(--sand); padding-top: 26px; }
  .lines { grid-template-columns: 1fr; }
  .linea { border-right: 0; border-bottom: 1px solid var(--sand); }
  .linea:last-child { border-bottom: 0; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .foot__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .deploy { grid-template-columns: 1fr; }
  .deploy > div { border-right: 0; border-bottom: 1px solid var(--sand); }
  .deploy > div:last-child { border-bottom: 0; }
}

@media (max-width: 880px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 68px 0; }
  .navwrap { display: none; }
  .hamb { display: flex; }
  .mast.is-open .navwrap {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    background: var(--paper); border-bottom: 1px solid var(--sand);
    padding: 6px 20px 18px;
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .hamb { width: 44px; height: 44px; flex-shrink: 0; }
  .mast.is-open .nav, .mast.is-open .mast__cta { flex-shrink: 0; }
  .mast.is-open .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .mast.is-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--sand); }
  .mast.is-open .mast__cta { margin: 16px 0 0; }
  .mast.is-open .mast__cta .btn { width: 100%; }
  .marks { grid-template-columns: 1fr; }
  .mark { border-right: 0; padding-right: 0; }
  .mark:nth-child(n+2) { border-top: 1px solid var(--sand); padding-top: 22px; }
  .flow__i { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .cap4 { grid-template-columns: 1fr; }
  .cap4 > div { padding: 28px 0 !important; border-right: 0; }
  .band__in { flex-direction: column; align-items: flex-start; gap: 28px; }
  .foot__top { grid-template-columns: 1fr; }
  .tbl tbody th { width: auto; }
}

@media (max-width: 520px) {
  .h-1 { font-size: 32px; }
  .hero { padding: 52px 0 64px; }
  .hero__act .btn { width: 100%; }
  .hero__meta { gap: 22px; }
  .tbl th, .tbl td { padding: 12px 10px; }
  .foot__bot { flex-direction: column; gap: 10px; }
}

@media (pointer: coarse) {
  .btn { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .mast, .band, .foot__top { display: none; }
  body { background: #fff; }
}

/* 页脚声明链接 */
.foot__bot a { color: inherit; text-decoration: underline; text-decoration-color: #3A3B35; text-underline-offset: 3px; }
.foot__bot a:hover { color: #D8D2C7; }
