/* =====================================================================
 * portal.css — 客人自助门户（B 端）设计令牌与组件
 * 基座: Pico.css v2.0.6（本文件做对外品牌覆盖 + 门户组件层）
 * 品牌方向：现代简洁 · 暖纸白底 · 深青主色 + 暖橙行动色（对标 51hbz 门户气质，
 * 但自有品牌感 —— 与 A 端工作台深空蓝风格刻意区分）
 * 说明：品牌名/颜色为工作占位（一套 CSS 变量，替换即全站换肤）
 * ===================================================================== */

/* ---------- 0. 品牌令牌 ---------- */
:root {
  --brand: #0c7a68;            /* 深青绿（主品牌） */
  --brand-deep: #075e50;
  --brand-soft: #e4f3ef;
  --cta: #e8600c;              /* 暖橙（下单/行动） */
  --cta-deep: #c74e08;
  --ink: #22211e;              /* 正文墨色 */
  --ink-soft: #56544e;
  --muted: #8a877e;
  --paper: #faf8f4;            /* 暖纸白页面底 */
  --card: #ffffff;
  --line: #eae6dd;
  --gold: #b98a2f;
  /* 三工艺路线色 */
  --r1: #6d4fd0;  --r1-bg: #efeafb;
  --r2: #0d9488;  --r2-bg: #e2f4f1;
  --r3: #2563eb;  --r3-bg: #e8effd;
  --patent: #b3261e; --patent-bg: #fdecea;
  --ok: #1a9e63;  --ok-bg: #e6f6ee;
  --warn: #b7791f; --warn-bg: #fdf3e0;

  /* Pico 令牌覆盖（对外浅色） */
  --pico-font-family: "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --pico-border-radius: 10px;
  --pico-primary: var(--brand);
  --pico-primary-background: var(--brand);
  --pico-primary-border: var(--brand);
  --pico-primary-hover: var(--brand-deep);
  --pico-primary-hover-background: var(--brand-deep);
  --pico-primary-focus: rgba(12,122,104,.18);
  --pico-primary-inverse: #fff;
  --pico-background-color: var(--paper);
  --pico-card-background-color: var(--card);
  --pico-card-border-color: var(--line);
  --pico-color: var(--ink);
  --pico-muted-color: var(--muted);
  --pico-h1-color: var(--ink);
  --pico-h2-color: var(--ink);
  --pico-h3-color: var(--ink);
  --pico-form-element-background-color: #fff;
  --pico-form-element-border-color: #d9d4c8;
  --pico-form-element-active-border-color: var(--brand);
  --pico-form-element-focus-color: rgba(12,122,104,.15);
  --pico-mark-background-color: var(--brand-soft);
  --pico-code-background-color: #f1eee7;
  --pico-table-border-color: var(--line);
  --pico-ins-color: var(--ok);
  --pico-del-color: var(--patent);
  --pico-button-box-shadow: none;
  --pico-font-size: 15.5px;
}

html[data-theme=light] body { background: var(--paper); }

/* ---------- 1. 布局基座 ---------- */
.pt-shell { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
main.pt-main { padding: 8px 0 60px; min-height: 62vh; }

/* ---------- 2. 顶栏 ---------- */
.pt-navbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,248,244,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.pt-navbar .pt-shell { display: flex; align-items: center; gap: 26px; height: 62px; }
.pt-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.pt-brand:hover { color: var(--ink); }
.pt-logo {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #17a88f);
  box-shadow: 0 3px 10px rgba(12,122,104,.25);
}
.pt-logo svg { width: 20px; height: 20px; }
.pt-brand b { font-size: 18px; letter-spacing: .5px; }
.pt-brand small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; letter-spacing: 1.5px; }
.pt-navlinks { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.pt-navlinks a {
  text-decoration: none; color: var(--ink-soft); font-size: 14.5px; padding: 7px 14px;
  border-radius: 8px; transition: all .15s;
}
.pt-navlinks a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.pt-navlinks a.on { color: var(--brand-deep); font-weight: 600; background: var(--brand-soft); }
.pt-nav-right { display: flex; align-items: center; gap: 10px; }
.pt-nav-user { font-size: 13.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.pt-avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #17a88f); color: #fff; font-size: 13px;
}
.pt-btn { border-radius: 9px; padding: 8px 18px; font-size: 14px; text-decoration: none; display: inline-block;
  border: 1px solid transparent; cursor: pointer; transition: all .15s; line-height: 1.5; }
.pt-btn.primary { background: var(--cta); color: #fff; font-weight: 600; }
.pt-btn.primary:hover { background: var(--cta-deep); color: #fff; }
.pt-btn.brand { background: var(--brand); color: #fff; font-weight: 600; }
.pt-btn.brand:hover { background: var(--brand-deep); color: #fff; }
.pt-btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.pt-btn.ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.pt-btn.sm { padding: 5px 12px; font-size: 13px; }
.pt-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- 3. 通用排版/组件 ---------- */
.eyebrow { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: 2px; }
h1.pt-hero-h { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.16; margin: 12px 0 16px; font-weight: 800; }
.pt-lead { color: var(--ink-soft); font-size: 16.5px; line-height: 1.8; }

.pt-section { margin: 54px 0 10px; }
.pt-section-h { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.pt-section-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

/* 卡片 */
.pt-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.pt-card.hoverable { transition: all .18s ease; cursor: pointer; }
.pt-card.hoverable:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(34,33,30,.09); border-color: #ddd6c6; }

/* 徽标 chips */
.pt-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2.5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.route-R1 { color: var(--r1); background: var(--r1-bg); }
.route-R2 { color: var(--r2); background: var(--r2-bg); }
.route-R3 { color: var(--r3); background: var(--r3-bg); }
.chip-soft { color: var(--ink-soft); background: #f2efe8; }
.chip-patent { color: var(--patent); background: var(--patent-bg); }
.chip-status-正式 { color: var(--ok); background: var(--ok-bg); }
.chip-status-试点 { color: var(--warn); background: var(--warn-bg); }
.chip-status-规划 { color: var(--muted); background: #efede7; }

/* 筛选 chips 组 */
.pt-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pt-filter-chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-size: 13.5px;
  padding: 6.5px 16px; border-radius: 999px; cursor: pointer; transition: all .15s; user-select: none;
}
.pt-filter-chip:hover { border-color: var(--brand); color: var(--brand-deep); }
.pt-filter-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pt-filter-chip small { font-weight: 400; opacity: .8; }
.pt-filter-chip.route.on-r1 { background: var(--r1); border-color: var(--r1); }
.pt-filter-chip.route.on-r2 { background: var(--r2); border-color: var(--r2); }
.pt-filter-chip.route.on-r3 { background: var(--r3); border-color: var(--r3); }

/* 告警横幅 */
.pt-banner { border-radius: 12px; padding: 12px 16px; font-size: 13.5px; line-height: 1.7;
  display: flex; gap: 10px; align-items: flex-start; }
.pt-banner b { font-weight: 700; }
.pt-banner.patent { background: var(--patent-bg); color: var(--patent); border: 1px solid #f4c8c4; }
.pt-banner.patent .b-ic { font-size: 16px; }
.pt-banner.info { background: var(--brand-soft); color: var(--brand-deep); border: 1px solid #bfe3da; }
.pt-banner.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #ecd2a4; }
.pt-banner.gap { background: #f1eee7; color: var(--ink-soft); border: 1px solid #e2ddd1; }

/* 步骤条 */
.pt-stepper { display: flex; gap: 6px; margin: 4px 0 26px; flex-wrap: wrap; }
.pt-step { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.pt-step .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
  font-weight: 700; background: #eee; color: var(--muted); }
.pt-step.done .n { background: var(--brand); color: #fff; }
.pt-step.on { color: var(--ink); font-weight: 600; }
.pt-step.on .n { background: var(--cta); color: #fff; }
.pt-step .ln { width: 44px; height: 1px; background: var(--line); }
.pt-step.done .ln, .pt-step.on .ln { background: var(--brand); }

/* 表单微调 */
label.pt-lbl { font-size: 13px; font-weight: 600; margin-top: 2px; }
.pt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pt-grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width: 820px){ .pt-grid2,.pt-grid3 { grid-template-columns: 1fr; } }

/* 金额 */
.pt-price { color: var(--cta-deep); font-weight: 800; }
.pt-price-big { font-size: 30px; }
.pt-muted { color: var(--muted); font-size: 12.5px; }

/* 页脚 */
.pt-footer { border-top: 1px solid var(--line); background: #f4f1ea; padding: 30px 0 26px; margin-top: 70px; }
.pt-footer .cols { display: flex; gap: 50px; flex-wrap: wrap; }
.pt-footer .cols > div { flex: 1; min-width: 180px; }
.pt-footer h6 { margin: 0 0 10px; font-size: 13px; color: var(--ink); }
.pt-footer a, .pt-footer p { color: var(--muted); font-size: 12.8px; line-height: 2; text-decoration: none; display: block; }
.pt-footer a:hover { color: var(--brand-deep); }
.pt-copy { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line);
  color: var(--muted); font-size: 12px; text-align: center; }

/* ---------- 4. 首页英雄区 ---------- */
.pt-hero { padding: 58px 0 40px; position: relative; overflow: hidden; }
.pt-hero::before { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 380px at 8% -10%, rgba(12,122,104,.08), transparent 60%),
    radial-gradient(640px 420px at 95% 0%, rgba(232,96,12,.07), transparent 55%);
  pointer-events: none; }
.pt-hero .pt-shell { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; position: relative; }
@media (max-width: 900px){ .pt-hero .pt-shell { grid-template-columns: 1fr; } .pt-hero-visual { display:none; } }
.pt-hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; color: var(--ink-soft); font-size: 13.5px; }
.pt-hero-trust span { display: inline-flex; gap: 7px; align-items: center; }
.pt-hero-trust i { color: var(--brand); font-style: normal; font-weight: 800; }

/* CSS 立体盒（纯样式示意，非产品渲染） */
.pt-hero-visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.pt-scene { position: relative; width: 300px; height: 280px; }
.pack { position: absolute; transform-style: preserve-3d; }
.pack .f { position: absolute; border: 1px solid rgba(7,94,80,.35); }
.pack-lid { left: 44px; top: 18px; width: 212px; height: 128px; animation: floatY 5s ease-in-out infinite; }
.pack-lid .top { width: 212px; height: 100px; background: linear-gradient(135deg,#12a68c,#0c7a68); border-radius: 3px; }
.pack-lid .side { width: 128px; height: 100px; transform: skewY(-28deg) translate(0,-28px); background: linear-gradient(#0d8d77,#0a6b59); top: 0; left: 196px; transform-origin: top left; border-radius: 0 3px 0 0; }
.pack-lid .front { width: 212px; height: 40px; background: linear-gradient(#149e86,#0c7a68); top: 88px; left: 0; transform: skewX(-38deg); transform-origin: top left; border-radius: 0 0 0 3px; }
.pack-base { left: 44px; top: 120px; width: 212px; height: 120px; animation: floatY 5s ease-in-out infinite reverse; }
.pack-base .top { width: 212px; height: 92px; background: linear-gradient(135deg,#f0b24b,#d98f1f); border-radius: 3px; }
.pack-base .side { width: 118px; height: 92px; transform: skewY(-28deg) translate(0,-28px); background: linear-gradient(#e0a02e,#c88a18); top: 0; left: 196px; transform-origin: top left; }
.pack-base .front { width: 212px; height: 40px; background: linear-gradient(#e8a63a,#cf8d1d); top: 80px; left: 0; transform: skewX(-38deg); transform-origin: top left; }
@keyframes floatY { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-9px);} }
.pt-scene-float { position: absolute; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(34,33,30,.10); font-size: 12.5px; padding: 8px 14px; display:flex; gap:8px; align-items:center;
  animation: floatY 6s ease-in-out infinite; }
.pt-scene-float.f1 { left: -8px; top: 12px; }
.pt-scene-float.f2 { right: -6px; bottom: 46px; animation-delay: 1.2s; }
.pt-scene-float.f3 { left: -4px; bottom: 4px; animation-delay: 2.1s; }

/* 首页盒型精选卡 */
.pt-mini-card { display:block; text-decoration:none; color: inherit; }
.pt-mini-card:hover { color: inherit; }
.pt-tile { height: 86px; border-radius: 14px; display: grid; place-items: center; font-size: 34px; margin-bottom: 12px; }
.pt-tile.r1 { background: linear-gradient(135deg,#efeafb,#e3dbf9); }
.pt-tile.r2 { background: linear-gradient(135deg,#e2f4f1,#d3ede8); }
.pt-tile.r3 { background: linear-gradient(135deg,#e8effd,#dbe7fc); }
.pt-tile .mini-pack { width: 42px; height: 30px; position: relative; }
.pt-tile .mini-pack::before { content:""; position:absolute; left:2px; top:0; width: 26px; height: 16px; background: var(--brand); opacity:.9; border-radius:2px; }
.pt-tile .mini-pack::after { content:""; position:absolute; right:2px; bottom:0; width: 30px; height: 16px; background: var(--cta); border-radius:2px; opacity:.92; }
.pt-mini-card h4 { margin: 0 0 2px; font-size: 15.5px; }

/* ---------- 5. 盒型浏览网格 ---------- */
.pt-route-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width: 900px){ .pt-route-strip { grid-template-columns: 1fr; } }
.pt-route-card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 18px; }
.pt-route-card h4 { margin: 12px 0 8px; font-size: 17px; display: flex; align-items:center; gap:10px; }
.pt-route-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.85; margin: 0 0 10px; }
.pt-route-card .kv { font-size: 12.3px; color: var(--muted); line-height: 1.9; }

.pt-grid-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(262px,1fr)); gap: 18px; }
.pt-box-card .top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pt-box-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.pt-box-card .desc { color: var(--ink-soft); font-size: 13px; line-height: 1.75; min-height: 64px;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient: vertical; overflow:hidden; }
.pt-box-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px;
  padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.pt-box-card .go { color: var(--brand); font-weight: 700; font-size: 13.5px; }

/* 盒型图标（族符号） */
.pt-bx-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; }
.ic-天地盖 { background: linear-gradient(135deg,#efeafb,#e2d9f8); }
.ic-对开盒 { background: linear-gradient(135deg,#e2f4f1,#d2ede6); }
.ic-翻盖盒 { background: linear-gradient(135deg,#e8effd,#d8e5fb); }
.ic-瓦楞 { background: linear-gradient(135deg,#fdf3e0,#f7e7c6); }
.ic-def { background: linear-gradient(135deg,#f2efe8,#e9e4d8); }

/* ---------- 6. 订单进度 ---------- */
.pt-order-row { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.pt-order-row .h { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pt-order-row .h b { font-size: 15px; }
.pt-order-row .meta { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.pt-order-detail { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.pt-stage-strip { display:flex; gap:0; margin: 14px 0 6px; }
.pt-stage { flex:1; text-align:center; position:relative; }
.pt-stage::before { content:""; position:absolute; top:11px; left:-50%; width:100%; height:3px; background:#eee; z-index:0; }
.pt-stage:first-child::before { display:none; }
.pt-stage.done::before { background: var(--brand); }
.pt-stage .dot { width:24px;height:24px;border-radius:50%; margin:0 auto; position:relative; z-index:1; display:grid; place-items:center;
  background:#eee; color:#fff; font-size:11px; font-weight:800; }
.pt-stage.on .dot, .pt-stage.done .dot { background: var(--brand); }
.pt-stage .lb { font-size: 12px; color: var(--muted); margin-top:6px; line-height:1.5; }
.pt-stage.on .lb { color: var(--ink); font-weight: 600; }
.pt-proc-bar { height: 7px; background: #eee; border-radius: 6px; overflow: hidden; margin: 10px 0 4px; }
.pt-proc-bar i { display:block; height:100%; background: linear-gradient(90deg,var(--brand),#17a88f); border-radius:6px; }

/* 表格微调 */
.pt-table { width:100%; border-collapse: collapse; font-size: 13px; }
.pt-table th { text-align:left; color:var(--muted); font-weight:600; padding:6px 8px; border-bottom:1px solid var(--line); }
.pt-table td { padding:6px 8px; border-bottom:1px dashed var(--line); }
.pt-table td:last-child { text-align:right; }
.pt-table th:last-child { text-align:right; }

/* 布局块 */
.pt-layout2 { display:grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items:start; }
@media (max-width: 920px){ .pt-layout2 { grid-template-columns: 1fr; } }
.pt-sticky { position: sticky; top: 84px; }

/* 成功页 */
.pt-success-hero { text-align:center; padding: 34px 20px 10px; }
.pt-big-check { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--ok-bg); display:grid; place-items:center; font-size: 40px; color: var(--ok); }
.pt-kv { display:flex; flex-wrap:wrap; gap: 26px; justify-content:center; margin-top: 14px; }
.pt-kv > div { text-align:center; }
.pt-kv .k { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.pt-kv .v { font-weight: 800; font-size: 17px; }

/* 空态/提示 */
.pt-empty { text-align:center; padding: 50px 10px; color: var(--muted); }
.pt-empty .ic { font-size: 40px; margin-bottom: 10px; }

/* 二维码占位（Phase2 微信） */
.pt-qr-ph { border:2px dashed #d9d4c8; border-radius: 14px; padding: 18px; text-align:center; color: var(--muted); font-size:12.5px; background:#fffdf8; }
.pt-qr-ph .big { font-size: 30px; margin-bottom: 6px; }

/* toast */
#ptToast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 200;
  display:flex; flex-direction:column; gap:8px; align-items:center; pointer-events:none; }
.pt-toast { background: #2b2925; color: #fff; font-size: 13.5px; padding: 10px 20px; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: tup .22s ease; }
.pt-toast.err { background: var(--patent); }
.pt-toast.ok { background: var(--brand-deep); }
@keyframes tup { from { opacity:0; transform: translateY(8px);} to { opacity:1; transform:none; } }

/* 加载占位 */
.pt-loading { color: var(--muted); font-size: 13.5px; padding: 18px 4px; }

/* 打印友好隐藏装饰 */
@media print { .pt-navbar,.pt-footer,.no-print { display:none !important; } }
