/* ===========================================================
   恒思奥创 · 网络食品交易第三方平台信息公示
   静态 H5 样式（移动优先 / 响应式 / 打印友好）
   =========================================================== */

:root {
  --brand: #0a4d8c;
  --brand-dark: #073761;
  --brand-light: #e8f1fa;
  --accent: #0f8a6a;
  --accent-light: #e6f5f0;
  --warn: #b45309;
  --warn-light: #fdf4e3;
  --danger: #b91c1c;
  --ink: #1a2230;
  --ink-2: #48566a;
  --ink-3: #74839a;
  --line: #e3e8ef;
  --bg: #f6f8fb;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 4px rgba(16, 40, 70, .04), 0 8px 24px rgba(16, 40, 70, .06);
  --shadow-sm: 0 1px 2px rgba(16, 40, 70, .05), 0 4px 12px rgba(16, 40, 70, .05);
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; }
p { margin: 0 0 10px; }
ul, ol { margin: 0; padding-left: 20px; }
li { margin-bottom: 6px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em;
  background: #f0f3f8;
  padding: 1px 6px;
  border-radius: 4px;
  color: #2b3a4d;
  word-break: break-all;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.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;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 头部 ---------- */
.site-header {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, #12609f 100%);
  color: #fff;
  padding: 26px 0 30px;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 52px; height: 52px; flex: none;
  border-radius: 13px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; letter-spacing: 1px;
}
.brand-text h1 { font-size: 24px; letter-spacing: 2px; }
.brand-text p { margin: 2px 0 0; font-size: 13px; color: rgba(255, 255, 255, .78); }
.header-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12);
  white-space: nowrap;
}

/* ---------- 锚点导航 ---------- */
.anchor-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.anchor-nav-inner {
  display: flex; gap: 4px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.anchor-nav-inner::-webkit-scrollbar { display: none; }
.anchor-nav a {
  flex: none; padding: 13px 14px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap;
}
.anchor-nav a:hover { color: var(--brand); text-decoration: none; }
.anchor-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- 区块 ---------- */
.section { padding: 46px 0; }
.section-alt { background: #eef2f7; }
.section-hero { padding-top: 34px; }

.section-head {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px;
}
.section-index {
  flex: none; font-size: 13px; font-weight: 700; letter-spacing: 1px;
  color: var(--brand); background: var(--brand-light);
  border: 1px solid #cfe1f3; border-radius: 9px;
  padding: 5px 10px; margin-top: 4px;
}
.section-head h2 { font-size: 23px; letter-spacing: .5px; }
.section-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-3); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px;
}
.card-flat { box-shadow: var(--shadow-sm); margin-top: 22px; }
.card-title { font-size: 17px; margin-bottom: 14px; padding-left: 11px; border-left: 4px solid var(--brand); }
.card-title-gap { margin-top: 30px; }
.paragraph { color: var(--ink-2); }
.note {
  margin: 20px 0 0; padding: 13px 15px; font-size: 13.5px; color: var(--ink-2);
  background: #f5f8fc; border: 1px dashed #cfdcec; border-radius: 10px;
}
.scope-note {
  display: inline-block; margin-top: 6px; padding: 5px 10px; font-size: 12.5px;
  color: var(--brand-dark); background: var(--brand-light);
  border-radius: 7px; font-weight: 600;
}

/* ---------- 公示说明 ---------- */
.notice-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; border-top: 4px solid var(--brand);
}
.notice-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.notice-badge {
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px; letter-spacing: 2px;
}
.notice-head h2 { font-size: 20px; }
.notice-text { color: var(--ink-2); }
.notice-points { margin: 12px 0 0; color: var(--ink-2); }
.notice-points li::marker { color: var(--brand); }

.meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1px; margin-top: 22px;
  background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.meta-item { background: #fbfcfe; padding: 13px 15px; display: flex; flex-direction: column; gap: 3px; }
.meta-label { font-size: 12px; color: var(--ink-3); }
.meta-value { font-size: 14px; font-weight: 600; word-break: break-all; }

/* ---------- 证照图 ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-bottom: 24px;
}
.doc-figure { margin: 0; }
.doc-figure__slot {
  position: relative; min-height: 230px;
  border: 2px dashed #c3d2e3; border-radius: 12px; background: #fbfcfe;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.doc-figure__hint {
  text-align: center; font-size: 13px; color: var(--ink-3); padding: 20px; line-height: 2;
}
.doc-figure__slot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #fff; padding: 6px;
}
.doc-figure__slot img[hidden] { display: none; }
.doc-figure figcaption { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); text-align: center; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.data-table th, .data-table td {
  border: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top;
}
.data-table th {
  width: 168px; background: #f3f6fa; color: var(--ink-2);
  font-weight: 600; white-space: nowrap;
}
.data-table tbody tr:nth-child(even) td { background: #fcfdff; }

/* ---------- 占位字段 ---------- */
.todo {
  color: var(--warn);
  background: var(--warn-light);
  border: 1px dashed #e4c489;
  border-radius: 5px; padding: 1px 7px; font-size: 13px; font-weight: 500;
}

/* ---------- 制度卡片 ---------- */
.policy-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px;
}
.policy-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px; display: flex; flex-direction: column;
  border-top: 3px solid var(--accent);
}
.policy-no {
  font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-light); border-radius: 6px; padding: 3px 9px;
  align-self: flex-start; margin-bottom: 10px; letter-spacing: 1px;
}
.policy-card h3 { font-size: 17px; margin-bottom: 8px; }
.policy-purpose { font-size: 13.5px; color: var(--ink-3); margin-bottom: 12px; }
.policy-points { font-size: 13.5px; color: var(--ink-2); flex: 1; }
.policy-points li::marker { color: var(--accent); }
.policy-link {
  margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--brand);
  display: inline-flex; align-items: center; gap: 6px;
}
.policy-link:hover { text-decoration: none; gap: 10px; }

/* ---------- 承诺列表 ---------- */
.commit-list { color: var(--ink-2); }
.commit-list li::marker { color: var(--brand); font-weight: 700; }

/* ---------- 平台说明 ---------- */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 6px; }
.panel { border-radius: 12px; padding: 18px 20px; border: 1px solid; }
.panel h4 { font-size: 15px; margin-bottom: 10px; }
.panel ul { font-size: 13.5px; }
.panel-ok { background: var(--accent-light); border-color: #bfe3d7; color: #175c48; }
.panel-no { background: #fdf1f1; border-color: #f0cfcf; color: #8a2f2f; }

.scope-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.scope-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 20px;
  background: linear-gradient(180deg, #fbfdff, #f5f9fd);
}
.scope-card__icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px;
}
.scope-card h4 { font-size: 16px; margin-bottom: 8px; }
.scope-card p { font-size: 13.5px; color: var(--ink-2); margin: 0; }

.entry-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 22px; }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fbfcfe; }
.step-no {
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  margin-bottom: 10px;
}
.step h4 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--ink-2); margin: 0; }

/* ---------- 管理员 / 渠道 ---------- */
.manager-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.manager-item { background: #fbfcfe; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.manager-label { font-size: 12px; color: var(--ink-3); }
.manager-value { font-size: 14px; font-weight: 600; word-break: break-all; }

.channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.channel { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fbfcfe; }
.channel-icon {
  width: 34px; height: 34px; border-radius: 9px; background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 10px;
}
.channel h4 { font-size: 15px; margin-bottom: 6px; }
.channel-value { font-size: 14px; font-weight: 700; color: var(--brand-dark); margin-bottom: 6px; word-break: break-all; }
.channel-desc { font-size: 12.5px; color: var(--ink-3); margin: 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: #16202e; color: #a9b6c7; padding: 34px 0 30px; margin-top: 10px; }
.site-footer h4 { font-size: 13px; color: #fff; margin-bottom: 6px; }
.site-footer p { font-size: 13px; margin: 0 0 4px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer .todo { color: #e8b877; background: rgba(232, 184, 119, .12); border-color: rgba(232, 184, 119, .4); }
.footer-note { margin-top: 18px !important; font-size: 12.5px; line-height: 1.9; color: #8d9bad; }
.footer-copy { margin-top: 10px !important; font-size: 12.5px; color: #7e8b9d; }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 18px; bottom: 22px; z-index: 40;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 18px; line-height: 1;
  box-shadow: 0 6px 18px rgba(10, 77, 140, .35); opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s, transform .25s;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--brand-dark); transform: translateY(-2px); }

/* ---------- 制度全文页 ---------- */
.doc-page { background: var(--bg); }
.doc-hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; padding: 30px 0 28px;
}
.doc-hero .breadcrumb { font-size: 13px; opacity: .8; margin-bottom: 8px; }
.doc-hero .breadcrumb a { color: #fff; }
.doc-hero h1 { font-size: 23px; margin-bottom: 10px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-meta span {
  font-size: 12.5px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; padding: 3px 10px;
}
.doc-body {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px; margin: 26px 0 40px;
}
.doc-body h2 {
  font-size: 17px; margin: 26px 0 10px; padding-left: 10px; border-left: 4px solid var(--brand);
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 15px; margin: 18px 0 6px; color: var(--ink); }
.doc-body p, .doc-body li { color: var(--ink-2); font-size: 14px; }
.doc-body table { margin: 10px 0 4px; }
.doc-footer-nav {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px;
}
.doc-footer-nav a {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 9px 14px; font-size: 13.5px; color: var(--ink-2); font-weight: 600;
}
.doc-footer-nav a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .section { padding: 32px 0; }
  .brand-text h1 { font-size: 20px; }
  .brand-mark { width: 44px; height: 44px; font-size: 22px; }
  .card, .notice-card { padding: 18px 16px; }
  .section-head h2 { font-size: 19px; }
  .data-table th { width: 108px; padding: 9px 11px; font-size: 13px; }
  .data-table td { padding: 9px 11px; font-size: 13.5px; }
  .doc-body { padding: 20px 16px; }
  .header-tags .tag { font-size: 11px; padding: 4px 9px; }
  html { scroll-padding-top: 100px; }
}

/* ---------- 打印 ---------- */
@media print {
  .anchor-nav, .back-top, .site-header { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .section { padding: 12px 0; page-break-inside: avoid; }
  .card, .notice-card, .policy-card { box-shadow: none; border: 1px solid #ccc; }
  .doc-figure__slot { min-height: 160px; }
  a { color: #000; text-decoration: underline; }
}

/* ---------- 证照核验指引 / 经营范围折叠 ---------- */
.verify-card {
  border: 1px solid var(--line); border-radius: 12px;
  background: #fbfcfe; padding: 20px;
}
.verify-card .card-title { margin-top: 0; }
.scope-detail { margin-bottom: 8px; }
.scope-detail summary {
  cursor: pointer; color: var(--brand); font-size: 13.5px; font-weight: 600;
  list-style: none; display: inline-block;
}
.scope-detail summary::-webkit-details-marker { display: none; }
.scope-detail summary::before { content: "▸ "; }
.scope-detail[open] summary::before { content: "▾ "; }
.scope-text {
  margin-top: 10px; font-size: 12.5px; line-height: 1.9; color: var(--ink-2);
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; padding: 13px 15px;
}
.inline-list { margin-top: 6px; }
.inline-list li { margin-bottom: 4px; }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ---------- 原件下载链接 ---------- */
.doc-link-row { margin: 0 0 24px; text-align: center; }
.doc-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border: 1px solid var(--brand); border-radius: 999px;
  font-size: 13.5px; font-weight: 600; background: var(--brand-light);
}
.doc-link:hover { background: var(--brand); color: #fff; text-decoration: none; }
