/* =====================================================
   企业画册插件 - 简洁移动优先样式
   ===================================================== */
:root {
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #eff6ff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --ok: #16a34a;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font: inherit; color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 520px; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--primary); color: #fff; font-size: 15px; cursor: pointer;
  text-align: center; line-height: 1.2; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--primary); }
.btn.soft { background: var(--primary-light); color: var(--primary); }
.btn.dark { background: #0f172a; }
.btn.big { padding: 14px 20px; font-size: 17px; border-radius: 12px; }
.btn .arr { margin-left: auto; }

/* ---------- 首页平台端 ---------- */
.land { min-height: 100vh; background: #fff; }
.land-top { padding: 14px 0; border-bottom: 1px solid var(--line); }
.land-top .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.land-top .right a { font-size: 14px; color: var(--ink-2); margin-left: 18px; }
.land-hero {
  padding: 70px 16px 56px; text-align: center;
  background: radial-gradient(1200px 400px at 50% -80px, #dbeafe 0%, #fff 60%);
}
.land-hero h1 { margin: 0 0 14px; font-size: 34px; line-height: 1.25; letter-spacing: .5px; }
.land-hero h1 em { font-style: normal; color: var(--primary); }
.land-hero .sub { color: var(--ink-2); font-size: 17px; max-width: 560px; margin: 0 auto 26px; }
.land-hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.land-stats { text-align: center; margin: 30px 0 8px; color: var(--ink-3); font-size: 14px; }
.land-section { padding: 52px 16px; text-align: center; }
.land-section h2 { font-size: 24px; margin: 0 0 8px; }
.land-section .lead { color: var(--ink-2); max-width: 620px; margin: 0 auto 34px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; text-align: left; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow);
}
.step .no { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }
.land-footer { text-align: center; color: var(--ink-3); font-size: 13px; padding: 34px 16px; border-top: 1px solid var(--line); }
.land-cta-bg { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); color: #fff; border-radius: 20px; padding: 40px 24px; }
.land-cta-bg h2 { color: #fff; }
.land-cta-bg .lead { color: #c7d2fe; }
.land-cta-bg .btn { background: #fff; color: var(--primary-dark); }

/* ---------- 表单 ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 7px; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; background: #fff; outline: none;
}
.input:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.textarea { min-height: 96px; resize: vertical; }
.input.upload-box { padding: 0; border: none; background: none; }

/* ---------- 卡片 / 列表 ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); }
.list-item { display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.list-item .thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover;
  background: var(--bg); flex: 0 0 64px; }
.list-item .info { flex: 1; min-width: 0; }
.list-item .info .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .info .d { color: var(--ink-3); font-size: 13px; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-item .ops { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.tag { display: inline-block; background: var(--primary-light); color: var(--primary);
  border-radius: 6px; padding: 1px 8px; font-size: 12px; }
.tag.gray { background: #f1f5f9; color: var(--ink-3); }

/* ---------- 页头（应用内导航） ---------- */
.appbar {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); padding: 12px 0;
}
.appbar .inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.appbar .title { font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar .back { color: var(--ink-2); font-size: 22px; line-height: 1; padding: 0 6px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: #fff; border-top: 1px solid var(--line); }
.tabbar .inner { max-width: 520px; margin: 0 auto; display: flex; }
.tabbar a { flex: 1; text-align: center; padding: 9px 0 11px; color: var(--ink-3); font-size: 12px; }
.tabbar a .ic { display: block; font-size: 20px; line-height: 1.2; }
.tabbar a.on { color: var(--primary); }
.page-pad { padding-bottom: 84px; }
.pad-t { padding-top: 14px; }

/* ---------- 产品网格（画册） ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.grid .cell { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.grid .cell .im { aspect-ratio: 1/1; width: 100%; object-fit: cover; background: var(--bg); }
.grid .cell .bd { padding: 8px 10px 10px; }
.grid .cell .t { font-weight: 600; font-size: 14px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid .cell .p { color: var(--danger); font-size: 13px; margin-top: 3px; }
.grid .cell .p.ask { color: var(--ink-3); }

/* ---------- 对外画册主页 ---------- */
.biz { background: #fff; min-height: 100vh; }
.biz-head { position: relative; background: linear-gradient(160deg, #1e3a8a, #1d4ed8 70%, #2563eb); color: #fff; padding: 22px 16px 16px; }
.biz-head .topline { display: flex; align-items: center; gap: 12px; }
.biz-head .logo { width: 56px; height: 56px; border-radius: 14px; background: #fff; padding: 4px; flex: 0 0 56px; }
.biz-head .logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: #fff; }
.biz-head .nm { font-size: 19px; font-weight: 700; line-height: 1.3; }
.biz-head .sn { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-top: 6px; color: #dbeafe; }
.biz-head .sn .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; flex: 0 0 6px; }
.biz-head .intro { margin: 14px 0 0; font-size: 13.5px; color: #e2e8f0; line-height: 1.7; }
.biz-body { max-width: 640px; margin: 0 auto; padding: 16px; }
.sec-t { display: flex; align-items: center; gap: 8px; margin: 18px 0 12px; font-weight: 700; font-size: 16px; }
.sec-t::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--primary); }
.biz-bar { max-width: 640px; margin: 0 auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.biz-bar .row { display: flex; gap: 8px; }
.biz-bar .btn { flex: 1; font-size: 14px; padding: 10px 8px; }
.biz-contact { background: #fff; }
.biz-about { background: var(--bg); }
.biz-about .txt { color: var(--ink-2); font-size: 14px; white-space: pre-line; }
.cti { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff;
  border-bottom: 1px solid var(--line); }
.cti .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary); display: flex; align-items: center; justify-content: center; flex: 0 0 34px; font-size: 16px; }
.cti .lbl { color: var(--ink-3); font-size: 12px; }
.cti .val { font-size: 14px; word-break: break-all; }
.cti a.val { color: var(--primary); }
.empty { text-align: center; color: var(--ink-3); padding: 46px 16px; font-size: 14px; }
.empty .big { font-size: 34px; margin-bottom: 8px; }

/* 产品详情页 */
.pv-hero { background: var(--bg); border-bottom: 1px solid var(--line); }
.pv-gallery { position: relative; max-width: 640px; margin: 0 auto; padding: 12px 0 0; }
.pv-gallery .main { max-width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #fff; margin: 0 auto; }
.pv-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; }
.pv-thumbs img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; border: 2px solid transparent; flex: 0 0 62px; }
.pv-thumbs img.on { border-color: var(--primary); }
.pv-info { max-width: 640px; margin: 0 auto; padding: 14px 16px 8px; }
.pv-info h1 { margin: 0 0 6px; font-size: 20px; line-height: 1.35; }
.pv-info .price { color: var(--danger); font-weight: 700; font-size: 18px; }
.pv-info .price.ask { color: var(--ink-3); font-weight: 600; }
.pv-info .brief { color: var(--ink-2); font-size: 14px; margin-top: 8px; white-space: pre-line; }
.pv-detail { padding: 16px; }
.pv-detail .box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: 14px; color: var(--ink-2); }
.pv-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff;
  border-top: 1px solid var(--line); padding: 9px 16px; }
.pv-bar .inner { max-width: 640px; margin: 0 auto; display: flex; gap: 10px; }
.pv-page-pad { padding-bottom: 86px; }

/* 相册放大遮罩 */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(2,6,23,.92);
  display: none; align-items: center; justify-content: center; }
.lightbox img { max-width: 96%; max-height: 92%; border-radius: 8px; }
.lightbox .close { position: absolute; top: 14px; right: 18px; color: #fff; font-size: 30px; cursor: pointer; line-height: 1; }

/* 上传预览 */
.up-pics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.up-pic { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.up-pic img { width: 100%; height: 100%; object-fit: cover; }
.up-pic .rm { position: absolute; right: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(15,23,42,.75); color: #fff; font-size: 13px; line-height: 20px; text-align: center; cursor: pointer; }
.up-pic .cover { position: absolute; left: 2px; bottom: 2px; background: var(--primary); color: #fff;
  font-size: 10px; border-radius: 5px; padding: 0 5px; }
.up-add { width: 84px; height: 84px; border: 1.5px dashed var(--line); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 11px; background: #fff; cursor: pointer; }
.up-add .pl { font-size: 24px; line-height: 1; margin-bottom: 2px; }

/* 二维码页 */
.qr-box { text-align: center; }
.qr-box canvas, .qr-box img { margin: 10px auto; border-radius: 10px; }
.qr-url { background: var(--bg); border: 1px dashed var(--line); border-radius: 8px;
  font-size: 12px; color: var(--ink-2); padding: 8px; margin: 10px 0; word-break: break-all; }
.step-line { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); margin: 8px 0; }
.step-line .n { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-light); color: var(--primary);
  font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: 0 0 22px; }
.qr-paper { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); }
.qr-paper .brand { font-weight: 700; text-align: center; margin-bottom: 6px; }

/* 提示色 */
.ok { color: var(--ok); }
.warn { color: var(--danger); }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb16 { margin-bottom: 16px; }

/* Toast */
#toast { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); z-index: 99;
  background: rgba(15,23,42,.92); color: #fff; padding: 9px 18px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s; max-width: 84%; text-align: center; }
#toast.show { opacity: 1; }

@media (min-width: 720px) {
  body { font-size: 15px; }
  .list-item .ops { flex-direction: row; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

/* 底部安全区适配（iPhone 全面屏） */
.tabbar, .pv-bar { padding-bottom: env(safe-area-inset-bottom); }
.tabbar .inner, .pv-bar .inner { padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom); }
.page-pad { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
.pv-page-pad { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
.appbar { padding-top: calc(12px + env(safe-area-inset-top)); }
.biz-head { padding-top: calc(18px + env(safe-area-inset-top)); }
.biz-body.page-pad { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.btn { -webkit-tap-highlight-color: transparent; }

/* 首页会员方案 */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; text-align: left; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px 22px; box-shadow: var(--shadow); }
.plan.pop { border: 2px solid var(--primary); box-shadow: 0 12px 30px rgba(29,78,216,.12); }
.plan .flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12px; padding: 3px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { margin: 4px 0 2px; font-size: 20px; }
.plan .sub { color: var(--ink-3); font-size: 13px; margin-bottom: 14px; }
.plan ul { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; }
.plan li { display: flex; gap: 8px; font-size: 14px; color: var(--ink-2); padding: 5px 0; }
.plan li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  margin-top: 8px; flex: 0 0 6px; }
.plan li b { color: var(--ink); }
.plan .note { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.plan .price-t { font-size: 24px; font-weight: 800; color: var(--primary); margin: 0 0 12px; }
.plan .price-t i { font-style: normal; font-size: 12px; color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.tag-pro { margin-left: 6px; font-size: 10px; border: 1px solid rgba(255,255,255,.55); padding: 1px 6px; border-radius: 999px; color: #fde68a; letter-spacing: .3px; }

/* 语言切换 */
.langbar { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.langbar a, .langbar .on { font-size: 12px; padding: 4px 12px; border-radius: 999px; }
.langbar a { color: #dbeafe; border: 1px solid rgba(255,255,255,.45); }
.langbar .on { background: #fff; color: #1d4ed8; font-weight: 600; }

/* 多语言编辑 */
.i18n-group { border-top: 1px dashed var(--line); margin-top: 18px; padding-top: 14px; }
.i18n-tag { display: inline-block; background: var(--primary-light); color: var(--primary); border-radius: 6px; padding: 2px 10px; font-size: 13px; margin-right: 8px; }
.i18n-block { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; }
.i18n-block .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.i18n-block .hd b { font-size: 14px; }
.i18n-block .auto { font-size: 12px; padding: 5px 10px; border-radius: 8px; }

/* 海报预览层 */
.poster-mask { position: fixed; inset: 0; z-index: 70; background: rgba(2,6,23,.88);
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 14px; }
.poster-mask .poster-card { background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.poster-mask img { display: block; max-height: 74vh; max-width: 92vw; border-radius: 10px; }
.poster-mask .ops { display: flex; gap: 10px; width: 78%; max-width: 300px; }
.poster-mask .close-x { position: absolute; top: 16px; right: 20px; color: #fff; font-size: 32px; cursor: pointer; line-height: 1; }

