/* ============================================================
   铭优同城 · 官网样式
   主题色：橘 #FF6A13 ｜ 适配 PC / 平板 / 手机 H5
   ============================================================ */

:root {
  --orange: #FF6A13;
  --orange-deep: #E4560A;
  --orange-soft: #FFF3EA;
  --orange-line: #FFE0CC;
  --ink: #17181A;
  --ink-2: #3D4046;
  --muted: #6B7078;
  --line: #E9E6E1;
  --bg: #FFFFFF;
  --bg-alt: #FAF8F5;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(23, 24, 26, .07);
  --header-h: 64px;
}

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

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--orange); color: #fff; }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  height: 36px;
}
.topbar em { color: var(--orange); font-style: normal; }
.topbar a:hover { color: #fff; }
.contact-card a:hover b { color: var(--orange); }

/* ---------- 导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(23,24,26,.06); }
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--orange), #FF9245);
  color: #fff; font-size: 19px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { line-height: 1.2; }
.logo-text b { font-size: 18px; letter-spacing: .5px; }
.logo-text span { display: block; font-size: 11px; color: var(--muted); letter-spacing: 2px; }

.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 15px; color: var(--ink-2); position: relative; padding: 6px 0;
}
.nav a:hover, .nav a.active { color: var(--orange); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--orange); border-radius: 2px;
  transition: width .25s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-cta {
  background: var(--orange); color: #fff;
  padding: 9px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: background .2s, transform .2s;
}
.header-cta:hover { background: var(--orange-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: none; background: none;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(720px 420px at 88% 8%, rgba(255, 106, 19, .10), transparent 65%),
    linear-gradient(180deg, #FFFDFB 0%, #FAF6F1 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(23,24,26,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,24,26,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 75%);
  pointer-events: none;
}
.hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
  padding-top: 88px; padding-bottom: 88px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-soft); color: var(--orange-deep);
  border: 1px solid var(--orange-line);
  font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.hero h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.28; letter-spacing: 1px; font-weight: 800;
}
.hero h1 span { color: var(--orange); }
.hero p.lead {
  margin-top: 20px; color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px); max-width: 34em;
}
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 8px 22px rgba(255, 106, 19, .32);
}
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-2px); }
.btn-ghost { border: 1px solid #D8D4CE; color: var(--ink-2); background: #fff; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.hero-visual { position: relative; }
.hero-visual .photo {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(23, 24, 26, .18);
  border: 6px solid #fff;
}
.hero-visual .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-chip {
  position: absolute; left: -22px; bottom: 30px;
  background: #fff; border-radius: 14px; padding: 14px 20px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.hero-chip b { display: block; font-size: 22px; color: var(--ink); }
.hero-chip b i { color: var(--orange); font-style: normal; }

.hero-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 84px;
}
.hero-stats div { background: #fff; padding: 24px 20px; text-align: center; }
.hero-stats b { font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); font-weight: 800; }
.hero-stats b i { color: var(--orange); font-style: normal; font-size: .6em; margin-left: 2px; }
.hero-stats span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- 通用 Section ---------- */
section.block { padding: 84px 0; }
section.block.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--orange); font-weight: 700; font-size: 14px; letter-spacing: 3px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); }
.sec-head.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--orange); }
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 12px; letter-spacing: 1px; }
.sec-head p { color: var(--muted); margin-top: 12px; }

/* ---------- 优势卡片 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--orange-line); }
.card-ico {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--orange-soft); color: var(--orange);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card-ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted); }

/* ---------- 流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.flow-step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 28px 30px;
}
.flow-step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 40px; font-weight: 800; color: var(--orange-soft);
  -webkit-text-stroke: 1.5px var(--orange);
  position: absolute; top: 22px; right: 24px; line-height: 1;
}
.flow-step h3 { font-size: 18px; margin: 18px 0 10px; }
.flow-step p { font-size: 14px; color: var(--muted); }
.flow-step .card-ico { margin-bottom: 0; }
.flow-note {
  margin-top: 26px; padding: 16px 22px; border-radius: 12px;
  background: var(--orange-soft); border: 1px dashed var(--orange-line);
  color: var(--orange-deep); font-size: 14px;
}

/* ---------- 品类 ---------- */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 18px; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.cat:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: var(--shadow); }
.cat i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--orange); letter-spacing: 1px; }
.cat h4 { font-size: 16px; margin: 8px 0 4px; }
.cat p { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ---------- 物流与网络 ---------- */
.net-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.net-grid .photo { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; }
.net-grid .photo img { width: 100%; object-fit: cover; }
.net-list { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.net-item {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; font-size: 14px; color: var(--ink-2);
}
.net-item i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.net-tip { margin-top: 20px; font-size: 14px; color: var(--muted); }
.net-tip b { color: var(--ink); }

/* ---------- 网点 ---------- */
.spot {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px;
}
.spot-ico {
  width: 48px; height: 48px; flex: none; border-radius: 12px;
  background: var(--orange-soft); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.spot-ico svg { width: 24px; height: 24px; }
.spot h3 { font-size: 17px; }
.spot p { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: start; }
.about-grid p { color: var(--ink-2); font-size: 15px; }
.about-grid p + p { margin-top: 14px; }
.info-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.info-table div { display: grid; grid-template-columns: 110px 1fr; font-size: 14px; }
.info-table div + div { border-top: 1px solid var(--line); }
.info-table dt { background: var(--bg-alt); color: var(--muted); padding: 14px 18px; }
.info-table dd { padding: 14px 18px; color: var(--ink); }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align: center;
}
.contact-card .card-ico { margin: 0 auto 16px; }
.contact-card h3 { font-size: 16px; }
.contact-card p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.contact-card b { color: var(--ink); font-size: 16px; }

/* ---------- 页脚 ---------- */
.footer { background: #141517; color: rgba(255,255,255,.72); margin-top: 84px; }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px; padding: 60px 0 44px;
}
.footer .logo-text b { color: #fff; }
.footer .logo-text span { color: rgba(255,255,255,.5); }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer li { font-size: 13px; margin-bottom: 10px; }
.footer a:hover { color: var(--orange); }
.footer-desc { font-size: 13px; line-height: 1.9; margin-top: 16px; max-width: 30em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; font-size: 12.5px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--orange); }
.icp-row { display: flex; gap: 18px; flex-wrap: wrap; }
.icp-row .icp-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .3);
  transition: color .2s, text-decoration-color .2s;
}
.icp-row .icp-link:hover { color: var(--orange); text-decoration-color: var(--orange); }

/* ---------- 子页（隐私/协议） ---------- */
.doc-page { max-width: 860px; margin: 0 auto; padding: 60px 24px 40px; }
.doc-page h1 { font-size: 28px; margin-bottom: 8px; }
.doc-page .doc-date { color: var(--muted); font-size: 13px; margin-bottom: 36px; }
.doc-page h2 { font-size: 19px; margin: 32px 0 12px; color: var(--ink); }
.doc-page p, .doc-page li { font-size: 14.5px; color: var(--ink-2); margin-bottom: 10px; }
.doc-page ul { padding-left: 20px; list-style: disc; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .hero .container { gap: 36px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 58px; }
  .topbar { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    box-shadow: 0 16px 30px rgba(23,24,26,.08);
  }
  .nav.open { max-height: 420px; }
  .nav a { padding: 15px 24px; border-top: 1px solid var(--line); font-size: 15px; }
  .nav a::after { display: none; }

  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero-visual { order: -1; }
  .hero-chip { left: 12px; bottom: 12px; padding: 10px 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-bottom: 48px; }
  section.block { padding: 56px 0; }
  .flow { grid-template-columns: 1fr; }
  .net-grid, .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .net-list { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .card { padding: 26px 22px; }
}

@media (max-width: 420px) {
  .cats, .net-list { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
