/* =========================================================
   上海弄弄好网络科技 · 企业官网样式系统
   风格：墨金（ink + gold）高端精致 / 中文衬线+无衬线混排
   适用：ICP 备案 / EDI 许可证申请用官方站点
   ========================================================= */

:root {
  /* 色彩 */
  --ink:        #14110f;   /* 近黑暖墨 */
  --ink-2:      #1d1916;
  --ink-3:      #2a2420;
  --paper:      #faf8f5;   /* 暖白纸 */
  --paper-2:    #f3efe9;
  --paper-3:    #ece6dd;
  --gold:       #b8914e;   /* 精炼金 */
  --gold-2:     #cda96a;
  --gold-soft:  #e9dcc2;
  --text:       #2a2622;
  --muted:      #6f675e;
  --muted-2:    #968c80;
  --line:       rgba(20,17,15,.10);
  --line-soft:  rgba(20,17,15,.06);
  --white:      #ffffff;

  /* 字号 / 间距 */
  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -24px rgba(20,17,15,.35);
  --shadow-soft: 0 10px 30px -18px rgba(20,17,15,.25);

  /* 字体 */
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans:  "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: var(--ink); margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: .02em;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(184,145,78,.7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(20,17,15,.22); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-line-light { background: transparent; color: var(--paper); border-color: rgba(250,248,245,.35); }
.btn-line-light:hover { border-color: var(--gold-2); color: var(--gold-2); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,245,.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--gold-2);
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.brand-text { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1; }
.brand-text small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .25em; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; color: var(--text); position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold); transition: width .25s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- 区块通用 ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .28em; color: var(--gold);
  text-transform: uppercase; font-weight: 600; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.section-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 18px; }
.section-sub { color: var(--muted); font-size: 17px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block; font-size: 12px; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px; font-weight: 600;
  background: var(--gold-soft); color: #8a6a2e; border: 1px solid rgba(184,145,78,.3);
}
.tag-muted { background: var(--paper-3); color: var(--muted); border-color: var(--line); }
.tag-dark { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 78% 12%, #2a211b 0%, #14110f 55%, #0c0a08 100%);
  color: var(--paper);
  padding: 120px 0 104px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 15% 90%, rgba(184,145,78,.16), transparent 70%),
    radial-gradient(40% 40% at 90% 80%, rgba(205,169,106,.12), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -180px; top: -180px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,145,78,.20), transparent 65%);
  filter: blur(8px); pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px); color: var(--paper);
  letter-spacing: .01em; margin-bottom: 22px; line-height: 1.08;
}
.hero h1 .accent { color: var(--gold-2); }
.hero-lead { font-size: 19px; color: rgba(250,248,245,.78); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-trust .t-num { font-family: var(--serif); font-size: 30px; color: var(--gold-2); font-weight: 700; }
.hero-trust .t-label { font-size: 13px; color: rgba(250,248,245,.6); }

/* Hero 侧：理念卡 */
.hero-card {
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(250,248,245,.14);
  border-radius: 18px; padding: 30px; backdrop-filter: blur(6px);
}
.hero-card h3 { color: var(--paper); font-size: 19px; margin-bottom: 18px; }
.concept-row { display: flex; flex-direction: column; gap: 14px; }
.concept-item { display: flex; gap: 14px; align-items: flex-start; }
.concept-item .dot { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(184,145,78,.18); color: var(--gold-2); font-size: 14px; font-weight: 700; font-family: var(--serif); }
.concept-item .ct { color: var(--paper); font-size: 15px; font-weight: 600; }
.concept-item .cd { color: rgba(250,248,245,.6); font-size: 13px; line-height: 1.6; }

/* ---------- 数据看板 ---------- */
.stats {
  background: var(--ink); color: var(--paper);
  border-radius: 20px; padding: 48px 40px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  box-shadow: var(--shadow);
}
.stat { text-align: center; padding: 14px 8px; position: relative; }
.stat::after { content: ""; position: absolute; right: 0; top: 18%; height: 64%; width: 1px; background: rgba(250,248,245,.12); }
.stat:last-child::after { display: none; }
.stat .num { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); color: var(--gold-2); font-weight: 700; line-height: 1.1; }
.stat .label { font-size: 13px; color: rgba(250,248,245,.62); margin-top: 8px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.card .ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--paper-2); color: var(--gold); margin-bottom: 18px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--gold); font-size: 14px; font-weight: 600; }
.card .more svg { transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }

/* 业务板块：大卡 */
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 34px; display: flex; flex-direction: column; gap: 14px;
}
.feature .ftop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feature h3 { font-size: 21px; }
.feature .desc { color: var(--muted); font-size: 15px; }
.feature .points { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.feature .points li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text); }
.feature .points li svg { flex: 0 0 auto; margin-top: 5px; color: var(--gold); }
.feature .points li b { font-weight: 600; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), var(--gold-soft)); }
.tl-item { position: relative; padding: 0 0 30px 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--gold); }
.tl-year { font-family: var(--serif); font-size: 22px; color: var(--ink); font-weight: 700; }
.tl-text { color: var(--muted); font-size: 15px; margin-top: 2px; }

/* ---------- 资质条 ---------- */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cert {
  background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 26px 22px; text-align: center;
}
.cert .ic { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--gold-2); }
.cert h4 { font-size: 16px; margin-bottom: 6px; }
.cert p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- 品牌墙 ---------- */
.brands { display: flex; flex-wrap: wrap; gap: 16px; }
.brand-chip {
  flex: 1 1 calc(20% - 16px); min-width: 140px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 18px; text-align: center;
}
.brand-chip .bn { font-family: var(--serif); font-size: 19px; color: var(--ink); font-weight: 700; }
.brand-chip .bc { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- 保障块 ---------- */
.assure { background: var(--ink); color: var(--paper); border-radius: 20px; padding: 56px 48px; }
.assure h2 { color: var(--paper); }
.assure .a-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 34px; }
.assure .a-item { border-left: 2px solid var(--gold); padding-left: 18px; }
.assure .a-item .an { font-family: var(--serif); font-size: 24px; color: var(--gold-2); }
.assure .a-item .at { font-size: 15px; color: rgba(250,248,245,.78); margin-top: 6px; }

/* ---------- CTA 区块 ---------- */
.cta {
  background: linear-gradient(135deg, var(--ink-2), var(--ink));
  color: var(--paper); border-radius: 20px; padding: 60px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, rgba(184,145,78,.18), transparent 70%); }
.cta .container, .cta > * { position: relative; z-index: 1; }
.cta h2 { color: var(--paper); font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 14px; }
.cta p { color: rgba(250,248,245,.72); max-width: 560px; margin: 0 auto 28px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: rgba(250,248,245,.72); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { color: var(--paper); font-family: var(--sans); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-brand .brand-text { color: var(--paper); }
.footer-brand .brand-text small { color: rgba(250,248,245,.5); }
.footer-brand p { font-size: 14px; color: rgba(250,248,245,.6); max-width: 320px; margin-top: 16px; }
.footer-links a { display: block; font-size: 14.5px; color: rgba(250,248,245,.7); padding: 6px 0; transition: color .2s; }
.footer-links a:hover { color: var(--gold-2); }
.footer-contact p { font-size: 14.5px; margin: 0 0 10px; }
.footer-contact .fc-k { color: rgba(250,248,245,.45); margin-right: 8px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(250,248,245,.12); }
.footer-bottom p { font-size: 13px; color: rgba(250,248,245,.5); margin: 0 0 8px; text-align: center; }
.footer-bottom a { color: var(--gold-2); }
.footer-bottom .legal { color: rgba(250,248,245,.55); }
.placeholder-note { color: var(--gold-2) !important; }

/* ---------- 占位符高亮（备案资料待填） ---------- */
.ph {
  background: linear-gradient(90deg, rgba(184,145,78,.14), rgba(184,145,78,.04));
  border-bottom: 1px dashed var(--gold);
  padding: 0 4px; color: #8a6a2e; font-weight: 600; cursor: help;
}
.real { color: inherit; font-weight: inherit; }
a.real { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
a.real:hover { color: var(--gold); }

/* ---------- 内页头图 ---------- */
.page-hero { background: var(--ink); color: var(--paper); padding: 92px 0 72px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 85% 20%, rgba(184,145,78,.16), transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--paper); font-size: clamp(32px, 4.6vw, 50px); margin-bottom: 14px; }
.page-hero p { color: rgba(250,248,245,.72); max-width: 620px; font-size: 17px; }

/* ---------- 文章/协议排版 ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 26px; margin: 40px 0 14px; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; color: var(--ink-2); }
.prose p, .prose li { color: var(--text); font-size: 15.5px; }
.prose ul.bullets { padding-left: 0; }
.prose ul.bullets li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.prose ul.bullets li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.prose .note { background: var(--paper-2); border-left: 3px solid var(--gold); padding: 16px 20px; border-radius: 0 10px 10px 0; font-size: 14.5px; color: var(--muted); }
.prose strong { color: var(--ink); }

/* ---------- 备案信息块（联系页） ---------- */
.legal-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.legal-box .row { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.legal-box .row:last-child { border-bottom: 0; }
.legal-box .k { flex: 0 0 160px; color: var(--muted); font-size: 14.5px; }
.legal-box .v { font-size: 15px; color: var(--ink); font-weight: 500; }

/* 联系信息卡 */
.info-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.info-card .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--paper-2); color: var(--gold); display: grid; place-items: center; margin-bottom: 14px; }
.info-card .ik { font-size: 13px; color: var(--muted); }
.info-card .iv { font-size: 16px; color: var(--ink); font-weight: 600; margin-top: 2px; }

/* ---------- 交易处理闭环流程图（平台能力页） ---------- */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.flow-step {
  flex: 1 1 150px; min-width: 150px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 16px; text-align: center; position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.flow-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--gold-soft); }
.flow-step .fs-num {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 12px;
  display: grid; place-items: center; background: var(--ink); color: var(--gold-2);
  font-family: var(--serif); font-weight: 700; font-size: 16px;
}
.flow-step .fs-t { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.flow-step .fs-d { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.55; }
.flow-arrow { flex: 0 0 auto; align-self: center; color: var(--gold); font-size: 22px; font-weight: 700; padding: 0 2px; }
.flow-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* 入口卡（登录区块） */
.entry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.entry {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px; display: flex; flex-direction: column; gap: 12px;
}
.entry .e-ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: var(--ink); color: var(--gold-2); }
.entry h3 { font-size: 21px; }
.entry .e-desc { color: var(--muted); font-size: 14.5px; }
.entry .e-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; }
.entry .e-list li { display: flex; gap: 9px; font-size: 14px; color: var(--text); }
.entry .e-list li svg { flex: 0 0 auto; margin-top: 4px; color: var(--gold); }
.entry .e-url { font-size: 13px; color: var(--muted); margin-top: auto; }
.entry .e-url b { color: var(--ink); }

/* 数据交换中台 三栏 */
.mid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mid {
  background: linear-gradient(160deg, var(--ink), var(--ink-2)); color: var(--paper);
  border-radius: 16px; padding: 30px; position: relative; overflow: hidden;
}
.mid::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(184,145,78,.22), transparent 70%); }
.mid .m-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(250,248,245,.08); color: var(--gold-2); margin-bottom: 16px; position: relative; }
.mid h3 { color: var(--paper); font-size: 19px; position: relative; }
.mid p { color: rgba(250,248,245,.7); font-size: 14px; margin-top: 10px; position: relative; }
.mid .m-tag { display: inline-block; margin-top: 14px; font-size: 12px; color: var(--gold-2); border: 1px solid rgba(205,169,106,.4); border-radius: 999px; padding: 3px 12px; position: relative; }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 面包屑 ---------- */
.crumb { font-size: 13px; color: var(--muted-2); margin-bottom: 18px; }
.crumb a:hover { color: var(--gold); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat::after { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .assure .a-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mid-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow-soft); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); width: 100%; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .legal-box .row { flex-direction: column; gap: 4px; }
  .hero { padding: 84px 0 72px; }
  .entry-grid { grid-template-columns: 1fr; }
  .flow-arrow { display: none; }
  .flow-step { flex: 1 1 100%; }
}
