/* ==========================================================
   嘉杰担保 · 担保保函开立平台
   设计系统：深海军蓝 + 鎏金，专业金融机构质感
   ========================================================== */

:root {
  --navy-900: #081d35;
  --navy-800: #0c2743;
  --navy-700: #123355;
  --navy-600: #17406e;
  --blue-500: #1f6fd0;
  --blue-400: #3d8ae6;
  --gold-500: #c1913f;
  --gold-400: #d8ab5e;
  --gold-100: #f6ecd8;
  --ink: #16202e;
  --ink-2: #33445c;
  --muted: #6b7c93;
  --muted-2: #93a1b3;
  --line: #e4eaf2;
  --line-2: #eef2f7;
  --bg: #f5f8fc;
  --white: #ffffff;
  --green: #1f9254;
  --green-bg: #e8f6ee;
  --amber: #a8701a;
  --amber-bg: #fdf3e2;
  --red: #c0392b;
  --red-bg: #fdeceb;
  --purple: #5b4bb8;
  --purple-bg: #efedfb;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(12, 39, 67, .05), 0 2px 8px rgba(12, 39, 67, .04);
  --shadow-md: 0 8px 24px rgba(12, 39, 67, .08);
  --shadow-lg: 0 22px 60px rgba(8, 29, 53, .14);
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Songti SC", "SimSun", "Source Han Serif SC", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ================= 顶部导航 ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.on-dark {
  background: rgba(8, 29, 53, .55);
  border-bottom-color: rgba(255, 255, 255, .12);
  backdrop-filter: saturate(180%) blur(14px);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
/* 新版品牌标识（横版 LOGO，眉头.png 红蓝横版）
   LOGO 区块统一浅色底纹：浅色页面用 --bg 浅蓝灰底纹（与全站背景同色系），
   深色背景（on-dark 悬浮头 / 页脚）用近白底纹，柔和边框 + 圆角，
   任何场景下红蓝 LOGO 都落在浅色底上，清晰可辨且不喧宾夺主 */
.brand-logo {
  display: block; width: 150px; height: 48px; flex-shrink: 0;
  box-sizing: border-box; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 10px;
  background-color: var(--bg);
  background-image: url('../img/logo-jiajie.svg');
  background-position: center; background-size: contain; background-repeat: no-repeat;
}
/* 深色头部（on-dark，首页悬浮 Hero 时）：换白底纹托原色 LOGO（图形不变） */
.on-dark .brand-logo {
  background-color: rgba(255, 255, 255, .94);
  border-color: rgba(255, 255, 255, .55);
}
/* 页脚深色底：白底纹托原色 LOGO，尺寸略小 */
.brand-logo-footer {
  width: 134px; height: 46px; box-sizing: border-box; padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 10px;
  background-color: rgba(255, 255, 255, .94);
  background-image: url('../img/logo-jiajie.svg');
  background-position: center; background-size: contain; background-repeat: no-repeat;
}

.nav-links { display: flex; align-items: center; gap: 24px; margin-left: 4px; min-width: 0; flex-shrink: 1; }
.nav-links a {
  font-size: 14.5px; color: var(--ink-2); font-weight: 500; padding: 6px 0;
  position: relative; transition: color .2s; white-space: nowrap; flex-shrink: 0;
}
.nav-links a:hover { color: var(--navy-700); }
.nav-links a.active { color: var(--navy-700); font-weight: 600; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--gold-500); border-radius: 2px;
}
.on-dark .nav-links a { color: rgba(255, 255, 255, .78); }
.on-dark .nav-links a:hover, .on-dark .nav-links a.active { color: #fff; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-tel { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0; }
.nav-tel strong { color: var(--navy-700); font-size: 15.5px; letter-spacing: .01em; }
.on-dark .nav-tel { color: rgba(255, 255, 255, .6); }
.on-dark .nav-tel strong { color: #fff; }

/* 登录后头部：企业名较宽，隐藏服务热线并略收紧间距，保证导航单行不重叠 */

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 9px; width: 40px; height: 38px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 17px; height: 1.6px; background: var(--ink-2); margin: 4px auto; }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s;
  background: #fff; color: var(--navy-700);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
  color: #fff; box-shadow: 0 8px 20px rgba(12, 39, 67, .22);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(12, 39, 67, .3); }
.btn-gold {
  background: linear-gradient(135deg, #d8ab5e, #bf8c34);
  color: #22160a; box-shadow: 0 8px 20px rgba(191, 140, 52, .3);
}
.btn-gold:hover { box-shadow: 0 12px 26px rgba(191, 140, 52, .38); }
.btn-ghost {
  background: transparent; border-color: rgba(255, 255, 255, .34); color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.btn-outline { border-color: var(--line); color: var(--ink-2); background: #fff; }
.btn-outline:hover { border-color: var(--navy-600); color: var(--navy-700); }
.btn-sm { height: 36px; padding: 0 15px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 30px; font-size: 15.5px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-danger { background: var(--red-bg); color: var(--red); border-color: #f6cfcb; }
.btn-danger:hover { background: #fbe0dd; }

/* ================= Hero ================= */
.hero {
  position: relative;
  background:
    radial-gradient(900px 460px at 88% -10%, rgba(46, 118, 197, .42), transparent 62%),
    radial-gradient(700px 400px at 8% 108%, rgba(193, 145, 63, .2), transparent 60%),
    linear-gradient(150deg, #0a2340 0%, #103457 46%, #17456f 100%);
  color: #fff;
  overflow: hidden;
  padding: 74px 0 128px;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 720px); gap: 56px; align-items: center;
}
.hero h1 {
  font-size: 46px; line-height: 1.22; margin: 22px 0 0; letter-spacing: -.02em; font-weight: 700;
}
.hero h1 em {
  font-style: normal; color: var(--gold-400);
  background: linear-gradient(100deg, #e2bb76, #c1913f);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-lead {
  margin-top: 20px; font-size: 16.5px; line-height: 1.85; color: rgba(255, 255, 255, .76); max-width: 520px;
}
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { margin-top: 34px; display: flex; gap: 30px; flex-wrap: wrap; }
.hero-fact { font-size: 12.5px; color: rgba(255, 255, 255, .6); display: flex; align-items: center; gap: 7px; }
.hero-fact svg { width: 15px; height: 15px; color: var(--gold-400); flex-shrink: 0; }
.stat-num {
  font-size: 27px; font-weight: 700; color: var(--navy-700); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 3px;
}
.stat-num span { font-size: 14px; font-weight: 600; color: var(--gold-500); }

/* ================= 通用区块 ================= */
.section { padding: 82px 0; }
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-500);
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--gold-500); }
.section-head.center .eyebrow::after { content: ''; width: 22px; height: 1.5px; background: var(--gold-500); }
.section-title { font-size: 32px; margin-top: 14px; letter-spacing: -.02em; }
.section-desc { margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.8; }

/* ================= 产品卡 ================= */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px 22px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfdcea; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, #eef3fa, #dde7f4); color: var(--navy-600);
  flex-shrink: 0;
}
.product-icon svg { width: 23px; height: 23px; }
.product-name { font-size: 17.5px; margin-top: 18px; }
.product-en { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-top: 3px; }
.product-tagline { margin-top: 11px; font-size: 13.5px; color: var(--muted); line-height: 1.7; min-height: 46px; }
.product-scenes { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 6px;
  background: #f3f7fc; color: var(--ink-2); border: 1px solid #e7eef7;
}
.product-foot {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between;
}
.product-link { font-size: 13px; font-weight: 600; color: var(--blue-500); display: inline-flex; align-items: center; gap: 4px; }
.product-link:hover { gap: 8px; transition: gap .2s; }
/* 保函删除（仅超级管理员渲染） */
.row-del { font-size: 12.5px; font-weight: 600; color: #d33a3a; margin-left: 10px; cursor: pointer; white-space: nowrap; }
.row-del:hover { text-decoration: underline; }
/* 抽屉里的删除：描边弱化，避免与主操作抢眼、防止误点 */
.btn-danger-ghost { background: #fff; color: #c62f2f; border: 1px solid #f0c9c9; }
.btn-danger-ghost:hover { background: #fdf2f2; border-color: #e3a5a5; }
.product-tag { font-size: 11.5px; font-weight: 600; color: var(--blue-500); background: #eef4fc; border: 1px solid #d9e7f7; padding: 3px 9px; border-radius: 6px; }

/* ================= 可办理项目卡 ================= */
.proj-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 22px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
  position: relative; overflow: hidden;
}
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfdcea; }
.proj-top { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.proj-tag { font-size: 11px; font-weight: 600; color: #fff; background: var(--gold, #c8a24a); padding: 3px 10px; border-radius: 20px; }
.proj-name { font-size: 16px; color: var(--navy-700); font-weight: 650; line-height: 1.4; }
.proj-desc { margin-top: 9px; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ================= 保函查验页 ================= */
.verify-form { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.verify-form input { flex: 1 1 220px; }
.banner.success { background: #eafaf0; color: #1f8b4c; border-color: #bfe6cd; }

/* ================= 流程 ================= */
.process { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { padding: 0 14px; position: relative; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 23px; left: 46px; right: -14px; height: 1.5px;
  background: repeating-linear-gradient(90deg, #d6e1ee 0 6px, transparent 6px 12px);
  z-index: 1;
}

/* ================= FAQ ================= */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 20px; font-weight: 400; color: var(--muted-2);
  line-height: 1; transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--navy-600); }
.faq-item[open] summary { color: var(--navy-700); }
.faq-body { padding: 0 22px 20px; font-size: 14px; color: var(--ink-2); line-height: 1.85; }
.faq-body p + p { margin-top: 8px; }

/* ================= 页脚 ================= */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .62); padding: 58px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 42px; }
.footer-about { margin-top: 16px; font-size: 13px; line-height: 1.85; max-width: 300px; color: rgba(255, 255, 255, .52); }
.footer-col h5 { font-size: 13px; color: #fff; letter-spacing: .06em; margin: 0 0 16px; font-weight: 600; }
.footer-col a, .footer-col li { font-size: 13px; color: rgba(255, 255, 255, .58); line-height: 2.1; display: block; }
.footer-col a:hover { color: var(--gold-400); }
.footer-contact li { display: flex; gap: 9px; align-items: flex-start; }
.footer-contact svg { width: 15px; height: 15px; margin-top: 5px; flex-shrink: 0; color: var(--gold-500); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255, 255, 255, .4);
}

/* ================= 表单 ================= */
.field { display: grid; gap: 7px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
.req { color: var(--red); font-weight: 400; }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=number], .field input[type=date], .field select, .field textarea {
  width: 100%; height: 44px; padding: 0 13px; border-radius: var(--r-sm);
  border: 1px solid #d9e2ee; background: #fff; outline: none;
  transition: border-color .18s, box-shadow .18s; font-size: 14px;
}
.field textarea { height: auto; min-height: 84px; padding: 11px 13px; line-height: 1.7; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(61, 138, 230, .14);
}
.field input::placeholder, .field textarea::placeholder { color: #b3bfcf; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4.5L6 8.5L10 4.5' stroke='%236b7c93' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.hint { font-size: 11.5px; color: var(--muted-2); }
.err { font-size: 11.5px; color: var(--red); display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.affix { position: relative; }
.affix .unit {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  font-size: 12.5px; color: var(--muted-2); pointer-events: none;
}
.affix input { padding-right: 46px; }

/* ================= 子页头部 ================= */
.page-head {
  background: linear-gradient(140deg, #0a2340, #12395e 58%, #17507f);
  color: #fff; padding: 46px 0 54px; position: relative; overflow: hidden;
}
.page-head::after {
  content: ''; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(193, 145, 63, .26), transparent 66%);
}
.page-head h1 { font-size: 30px; letter-spacing: -.02em; position: relative; z-index: 2; }
.page-head p { margin-top: 10px; color: rgba(255, 255, 255, .7); font-size: 14.5px; position: relative; z-index: 2; }
.crumb { font-size: 12.5px; color: rgba(255, 255, 255, .5); margin-bottom: 14px; position: relative; z-index: 2; }
.crumb a:hover { color: #fff; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 28px 30px; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pick {
  border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 16px 16px 14px;
  cursor: pointer; transition: all .18s; background: #fff; position: relative;
}
.pick:hover { border-color: #b9cde4; background: #fbfdff; }
.pick.on { border-color: var(--navy-600); background: #f7faff; box-shadow: 0 0 0 3px rgba(23, 64, 110, .07); }
.pick.on::after {
  content: '✓'; position: absolute; top: 10px; right: 12px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--navy-600); color: #fff; font-size: 11px;
  display: grid; place-items: center; line-height: 1;
}
input[type=file] { display: none; }
.aside-list { display: grid; gap: 12px; }
.aside-list li { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.aside-list .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--green-bg); color: var(--green); font-size: 10px; display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ================= 查询页 ================= */
.query-panel {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: 30px; margin-top: -46px; position: relative; z-index: 5; border: 1px solid var(--line);
}
.query-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.query-form input {
  height: 50px; border-radius: 10px; border: 1px solid #d9e2ee; padding: 0 16px; font-size: 15px;
  outline: none; transition: border-color .18s, box-shadow .18s; letter-spacing: .02em;
}
.query-form input:focus { border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(61, 138, 230, .14); }
.local-list { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.local-list .lbl { font-size: 12px; color: var(--muted-2); }
.local-chip {
  font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #f2f6fc;
  border: 1px solid #e4ecf6; color: var(--ink-2); cursor: pointer; font-variant-numeric: tabular-nums;
}
.local-chip:hover { border-color: var(--blue-400); color: var(--blue-500); }

.result-wrap { padding: 26px 0 60px; display: grid; gap: 20px; scroll-margin-top: 88px; }
.res-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.res-id { font-size: 20px; font-weight: 700; letter-spacing: .03em; color: var(--navy-700); font-variant-numeric: tabular-nums; }
.res-sub { font-size: 13px; color: var(--muted); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-submitted { background: #eef2f8; color: #5a6b81; }
.st-review { background: var(--amber-bg); color: var(--amber); }
.st-risk { background: var(--purple-bg); color: var(--purple); }
.st-issued { background: #e7f1fd; color: #1967b8; }
.st-done { background: var(--green-bg); color: var(--green); }
.st-rejected { background: var(--red-bg); color: var(--red); }

.log-list { display: grid; gap: 0; }
.log-item { display: grid; grid-template-columns: 16px 1fr; gap: 14px; padding-bottom: 20px; position: relative; }
.log-item:last-child { padding-bottom: 0; }
.log-item::before {
  content: ''; position: absolute; left: 6px; top: 16px; bottom: -4px; width: 1.5px; background: var(--line);
}
.log-item:last-child::before { display: none; }
.log-dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #d6e1ee; background: #fff; margin-top: 5px; z-index: 2; }
.log-item:first-child .log-dot { border-color: var(--navy-600); background: var(--navy-600); }
.log-t { font-size: 13.5px; font-weight: 600; }
.log-m { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.log-time { font-size: 11.5px; color: var(--muted-2); margin-top: 3px; font-variant-numeric: tabular-nums; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.d-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.d-row .k { color: var(--muted); }
.d-row .v { color: var(--ink); font-weight: 500; word-break: break-all; }

.banner {
  padding: 14px 18px; border-radius: var(--r-md); font-size: 13.5px; display: flex; gap: 10px;
  align-items: flex-start; line-height: 1.7;
}
.banner svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; }
.banner.warn { background: var(--amber-bg); color: #8a5a12; border: 1px solid #f3dfbc; }
.banner.info { background: #eef5fd; color: #1a5b9e; border: 1px solid #d6e6f8; }
.banner.danger { background: var(--red-bg); color: #a2301f; border: 1px solid #f6d3cf; }

/* ================= 保函文书 ================= */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(6, 20, 36, .6); backdrop-filter: blur(3px);
  padding: 30px 18px; overflow-y: auto;
}
.modal.open { display: block; }
.modal-inner {
  max-width: 780px; margin: 0 auto; background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; animation: fade .25s ease;
}
.modal-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fbfcfe;
  position: sticky; top: 0; z-index: 3;
}
.modal-bar h4 { font-size: 14.5px; }
.modal-close {
  background: none; border: 1px solid var(--line); width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; font-size: 17px; line-height: 1; color: var(--muted); display: grid; place-items: center;
}
.modal-close:hover { background: #f2f5fa; color: var(--ink); }

/* ================= 保函正文（固定 A4：210mm × 297mm） ================= */
.doc-shell { position: relative; width: 100%; overflow: hidden; }
.doc-shell > .doc { position: absolute; left: 50%; top: 0; transform-origin: top center; }

.doc {
  width: 210mm; min-height: 297mm; box-sizing: border-box;
  padding: 15mm 18mm 8mm;
  font-family: var(--doc-font, var(--serif)); color: #17202b; position: relative; z-index: 0;
  font-size: var(--doc-body, 12pt); line-height: var(--doc-lh, 1.9);
  background: #fff; overflow: hidden;
}
.doc-title { text-align: center; font-size: var(--doc-title, 22pt); letter-spacing: .14em; font-weight: 700; margin-bottom: 10px; }
.doc-no { text-align: center; font-size: 9pt; color: #5f6d7f; letter-spacing: .06em; font-family: var(--sans); margin-bottom: 12px; }
.doc p { font-size: inherit; line-height: inherit; margin-bottom: 5px; text-indent: 2em; text-align: justify; }
.doc p.noindent { text-indent: 0; }
.doc-sign { margin-top: 12px; display: flex; justify-content: flex-end; align-items: center; }
.doc-sign-box { text-align: left; font-size: inherit; line-height: 2.1; min-width: 250px; }
.stamp {
  width: 116px; height: 116px; border-radius: 50%;
  border: 3px solid rgba(196, 44, 44, .72); color: rgba(196, 44, 44, .78);
  display: grid; place-items: center; text-align: center; transform: rotate(-13deg);
  font-family: var(--sans); font-size: 10px; line-height: 1.35; font-weight: 700; letter-spacing: .02em;
  background: rgba(196, 44, 44, .03); position: relative;
}
.stamp::before {
  content: ''; position: absolute; inset: 6px; border: 1px solid rgba(196, 44, 44, .4); border-radius: 50%;
}
.doc-verify {
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed #d8dee7;
  display: flex; align-items: center; gap: 14px; font-family: var(--sans);
}
.doc-verify .qr { border: 1px solid #e5ebf3; border-radius: 6px; padding: 3px; background: #fff; display: block; flex: none; }
.doc-verify-txt { font-size: 11.5px; color: #6b7c93; line-height: 1.7; }
.doc-verify-txt b { color: #17202b; letter-spacing: .04em; }

/* 底纹层：平铺在正文最底层 */
.doc-bg {
  position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background-repeat: repeat; background-size: 208px auto;
}
/* 保函背景图（公司 LOGO 等）：位于底纹之上、正文之下 */
.doc-logo-layer { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.doc-logo { position: absolute; height: auto; max-width: none; user-select: none; }
/* 印章层：位于文字下层（章印压在文字下面，正文盖在章上），x/y 为相对保函页面的百分比 */
.doc-seal-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.doc-stamp {
  position: absolute; transform: translate(-50%, -50%);
  pointer-events: none; user-select: none; display: block; max-width: none;
}
img.doc-stamp { mix-blend-mode: multiply; }

/* 查验页保函正文区块 */
.doc-block { margin-top: 22px; }
.doc-block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.doc-block-sub { font-size: 12.5px; color: #8294a8; margin-top: 3px; }
.doc-frame {
  background: #eef2f8; overflow: hidden; padding: 14px;
  border-radius: var(--r-md); box-shadow: 0 6px 24px rgba(16, 42, 76, .06);
}
.doc-frame .doc { box-shadow: 0 2px 10px rgba(16, 42, 76, .08); }

/* ================= 后台 ================= */
.admin-gate { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 20px; }
.gate-card { width: 100%; max-width: 400px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 34px 32px; border: 1px solid var(--line); }
.gate-card h2 { font-size: 20px; text-align: center; }
.gate-card .sub { text-align: center; font-size: 13px; color: var(--muted); margin-top: 6px; margin-bottom: 24px; }
.gate-hint { margin-top: 16px; font-size: 12px; color: var(--muted-2); text-align: center; background: #f7f9fc; padding: 9px; border-radius: 8px; }
.gate-hint b { color: var(--ink-2); }

.admin-shell { padding: 24px 16px 56px; max-width: 1520px; }   /* 后台加宽：列表区尽量铺满屏幕 */
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.kpi .k { font-size: 12.5px; color: var(--muted); }
.kpi .v { font-size: 25px; font-weight: 700; color: var(--navy-700); margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 12.5px; color: var(--muted-2); font-weight: 500; margin-left: 4px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input[type=text] {
  height: 38px; border-radius: 8px; border: 1px solid #d9e2ee; padding: 0 12px; font-size: 13.5px;
  outline: none; min-width: 230px;
}
.toolbar input:focus { border-color: var(--blue-400); }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; overflow-y: hidden; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 12px 16px; background: #fafcfe; border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 14px 16px; font-size: 13.5px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; transition: background .15s; }
tbody tr:hover { background: #f8fbfe; }
.t-id { font-weight: 600; color: var(--navy-700); font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; }
/* 后台列表：列多，压缩单元格内边距让所有列都显示得下 */
.admin-view thead th { padding: 11px 12px; }
.admin-view tbody td { padding: 12px 12px; }
.t-company { font-weight: 500; }
.t-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.admin-view .t-sub,
.admin-view .t-company { text-wrap: balance; }
.t-amount { font-variant-numeric: tabular-nums; font-weight: 600; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted-2); font-size: 13.5px; }

/* 抽屉 */
.drawer-mask { position: fixed; inset: 0; background: rgba(6, 20, 36, .45); z-index: 150; display: none; }
.drawer-mask.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 520px; max-width: 100%; background: #fff;
  z-index: 160; box-shadow: -20px 0 60px rgba(8, 29, 53, .18);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px; }
.drawer-foot { padding: 16px 24px; border-top: 1px solid var(--line); background: #fbfcfe; display: flex; gap: 10px; flex-wrap: wrap; }
.drawer-sec { margin-bottom: 24px; }
.drawer-sec h5 { font-size: 12.5px; color: var(--navy-700); letter-spacing: .08em; margin: 0 0 10px; font-weight: 700; }@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }

  .hero h1 { font-size: 38px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }

  .step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .admin-kpis { grid-template-columns: repeat(2, 1fr); }
}@media (max-width: 760px) {
  .nav { height: 60px; gap: 0; }
  .nav-links {
    position: static; flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch;
    gap: 16px; margin-left: 10px; padding: 0; background: transparent; box-shadow: none;
    max-width: calc(100% - 92px); scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 0; border-bottom: none; white-space: nowrap; font-size: 13.5px; }
  .nav-toggle { display: none; }
  .nav-tel { display: none; }
  /* 手机端：导航栏只保留「可开函项目」快捷入口 */
  .nav-right .btn:not(.nav-apply-m) { display: none; }
  .nav-right .btn.nav-apply-m { display: inline-flex; padding: 5px 10px; font-size: 12px; height: 32px; }
  .nav-right { gap: 8px; }
  .brand-logo { width: 122px; height: 43px; padding: 4px 7px; }
  .nav-links { gap: 15px; margin-left: 4px; }
  .hero { padding: 48px 0 100px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 15px; }

  .section { padding: 54px 0; }
  .section-title { font-size: 24px; }
  .product-grid { grid-template-columns: 1fr; }

  .step { display: grid; grid-template-columns: 46px 1fr; gap: 0 16px; }

  .page-head h1 { font-size: 24px; }
.form-row { grid-template-columns: 1fr; }

.card-pad { padding: 22px 18px; }

  .detail-grid { grid-template-columns: 1fr; }

  .doc { padding: 28px 22px 34px; }
  .doc-title { font-size: 21px; }
  .doc p { font-size: 13.5px; }
  .query-form { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
  .admin-kpis { grid-template-columns: 1fr 1fr; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 720px; }

  .modal { padding: 14px 10px; }
}

/* ================= 工具栏筛选 ================= */
.toolbar-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.filter-select {
  height: 38px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
  padding: 0 10px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; min-width: 158px;
}
.filter-select:focus { outline: none; border-color: var(--blue-500); }

/* ================= 上架管理表格操作按钮 ================= */
#shelfPanel .admin-top > div:first-child { min-width: 0; }
#shelfBody td { vertical-align: middle; }
#shelfBody td:last-child { white-space: nowrap; }
#shelfBody td .sm-btn { white-space: nowrap; }
.sm-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 12px;
  padding: 4px 9px; border-radius: 7px; cursor: pointer; margin-right: 5px; transition: all .15s;
  white-space: nowrap;
}
.sm-btn:last-child { margin-right: 0; }
.sm-btn:hover { border-color: var(--blue-400); color: var(--blue-600); }
.sm-btn.danger:hover { border-color: #ef4444; color: #ef4444; }

/* 移动端常驻「在线申请」按钮 */
.nav-apply-m { display: none; }

/* ================= 弹窗内容（上架表单） ================= */
.modal-body { padding: 20px 22px; max-height: 68vh; overflow-y: auto; }
.modal-body .field { margin-bottom: 14px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--line); }

/* 登录门错误提示（管理后台登录页在用） */
.auth-err { min-height: 18px; font-size: 12.5px; color: #dc2626; margin: 2px 0 10px; }

/* ================= 后台侧栏布局 ================= */
.admin-layout { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 6px; }
.admin-nav {
  position: sticky; top: 84px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 10px; box-shadow: var(--shadow-sm);
}
.admin-nav-title {
  font-size: 11.5px; letter-spacing: .12em; color: #93a1b3; text-transform: uppercase;
  padding: 6px 10px 8px;
}
.admin-nav button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  background: none; border: 0; padding: 10px 11px; border-radius: 9px;
  font-size: 13.5px; color: var(--ink-2); cursor: pointer; font-family: inherit;
}
.admin-nav button:hover { background: #f4f7fb; }
.admin-nav button.on { background: linear-gradient(100deg, #eaf2ff, #f4f8ff); color: var(--blue-700); font-weight: 600; }
.admin-nav button svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-view { display: none; }
.admin-view.on { display: block; }
/* 后台表格：固定列宽，避免操作列被内容挤压换行 */
.admin-view table { table-layout: fixed; }
.admin-view table .t-id { white-space: nowrap; }
.admin-view thead th { padding: 12px 12px; }
.admin-view tbody td { padding: 13px 12px; word-break: break-word; }
.admin-view tbody td:last-child { white-space: nowrap; }

/* ================= 印章小样 ================= */
.seal-mini {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(196, 44, 44, .7);
  color: rgba(196, 44, 44, .88); display: grid; place-items: center; text-align: center;
  transform: rotate(-10deg); font-weight: 700; font-size: 6px; line-height: 1.25;
  background: rgba(196, 44, 44, .03); flex-shrink: 0; padding: 2px; overflow: hidden;
  letter-spacing: 0;
}@media (max-width: 1360px) {
  .nav { gap: 16px; }
  .nav-links { gap: 18px; }
  .nav-tel { display: none; }
  .nav-links a { font-size: 14px; }
}@media (max-width: 980px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
  .admin-nav-title { display: none; }
  .admin-nav button { white-space: nowrap; width: auto; }
  /* 窄屏下表格保底宽度，超出时横向滚动，避免操作按钮被压到换行 */
  .admin-view .table-wrap { overflow-x: auto; }
  .admin-view table { min-width: 840px; }
}

/* ================= 模板编辑器 ================= */
.tpl-editor { display: grid; grid-template-columns: minmax(0, 462px) minmax(0, 1fr); align-items: stretch; }
.tpl-form { padding: 18px 20px; border-right: 1px solid var(--line); min-width: 0; max-height: 74vh; overflow-y: auto; }
.tpl-form::-webkit-scrollbar { width: 6px; }
.tpl-form::-webkit-scrollbar-thumb { background: #d6dfeb; border-radius: 3px; }
.tpl-form textarea { font-size: 12.5px; line-height: 1.75; }
.tpl-preview { background: #eef2f8; padding: 14px 16px; display: flex; flex-direction: column; min-width: 0; }
.tpl-preview-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 12.5px; color: #55657a; margin-bottom: 10px;
}
.tpl-preview-head > span:first-child { font-weight: 600; }
.tpl-preview-hint { color: #93a1b3; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.tpl-preview-body {
  flex: 1; overflow: auto; max-height: 66vh; background: #eef2f8;
  border-radius: 10px; border: 1px solid var(--line); padding: 12px;
}
.tpl-preview-body .doc-shell { box-shadow: 0 2px 10px rgba(16, 42, 76, .08); }
.tpl-preview-body .doc-stamp { cursor: move; }

.ph-bar { background: #f5f8fd; border: 1px solid #e2ebf7; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.ph-title { font-size: 11.5px; color: #6b7c93; margin-bottom: 8px; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-chip {
  border: 1px solid #d6e3f5; background: #fff; color: #1f6fd0; font-size: 11.5px;
  padding: 4px 9px; border-radius: 6px; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.ph-chip:hover { background: #eaf2ff; border-color: var(--blue-400); }

/* ================= 权限勾选 ================= */
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 4px; }
.perm-item {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2);
  background: #f8fafd; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; cursor: pointer;
}
.perm-item input { width: 15px; height: 15px; accent-color: var(--blue-600); flex-shrink: 0; }
.perm-item.off { opacity: .55; }
.perm-note { font-size: 11.5px; color: #93a1b3; margin-top: 8px; line-height: 1.6; }@media (max-width: 1080px) {

  .tpl-editor { grid-template-columns: 1fr; }
  .tpl-form { border-right: 0; border-bottom: 1px solid var(--line); max-height: none; }
  .tpl-preview-body { max-height: 60vh; }
}

/* 打印：仅输出保函 */
/* ================= 查验结果：保函要素多列 ================= */
.res-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; }
.res-facts .d-row {
  display: block; grid-template-columns: none; padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
}
.res-facts .d-row .k { display: block; font-size: 11.5px; color: #93a1b3; letter-spacing: .02em; }
.res-facts .d-row .v {
  display: block; font-size: 13.5px; margin-top: 3px; line-height: 1.55;
  color: var(--ink); font-weight: 600; overflow-wrap: anywhere;
}@media (max-width: 900px) { .res-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }@media (max-width: 620px) { .res-facts { grid-template-columns: 1fr; } }

/* ================= 后台开函 / 企业名录 ================= */
.issue-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 16px; align-items: start;
}
.issue-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.issue-head b { font-size: 14px; color: var(--ink); }
.issue-head .hint { font-size: 12px; color: #6b7c93; }
.issue-sel-tools { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; align-items: center; }
.issue-sel-tools input { flex: 1; min-width: 170px; height: 36px; }
.issue-sel-tools .sm-btn { height: 36px; padding: 0 12px; border-color: #dfe8f3; color: #3d5673; }
.issue-co-list {
  max-height: 368px; overflow-y: auto; border: 1px solid var(--line);
  border-radius: 10px; background: #fff;
}
.issue-co { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-bottom: 1px solid #eef2f8; cursor: pointer; }
.issue-co:last-child { border-bottom: 0; }
.issue-co:hover { background: #f7fafd; }
.issue-co.on { background: #eef6ff; }
.issue-co input { margin-top: 2px; flex: none; }
.issue-co .co-main { min-width: 0; }
.issue-co .co-name { font-size: 13px; color: var(--ink); font-weight: 600; }
.issue-co .co-meta { font-size: 11.5px; color: #8294a8; margin-top: 2px; }
.issue-co-empty { padding: 22px 14px; text-align: center; font-size: 12.5px; color: #93a1b3; }
.issue-picked-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; font-size: 12.5px; color: #3d5673; flex-wrap: wrap;
}
.issue-picked-bar > span:first-child { flex: 1 1 190px; min-width: 0; line-height: 1.7; }
.issue-picked-bar em { display: block; font-style: normal; font-size: 11.5px; color: #6b7c93; margin-top: 1px; }
.issue-picked-bar .btn { flex: none; white-space: nowrap; }
.issue-picked-bar .btn[disabled] { opacity: .55; cursor: not-allowed; }
/* 结果表：列宽固定 + 窄屏横向滚动，避免企业名被压成一列字 */
.issue-result-wrap { overflow-x: auto; }
#logoBody .bg-thumb { object-fit: contain; background: #fff; }
.shelf-table { min-width: 900px; }
.shelf-table td .t-sub { line-height: 1.55; }
.shelf-table td .t-amount { white-space: nowrap; font-size: 12.5px; }
.issue-result-table { min-width: 900px; }
.issue-result-table thead th { padding: 11px 8px; font-size: 11.5px; }
.issue-result-table tbody td { padding: 12px 8px; font-size: 12.5px; }
.issue-result-table tbody td:nth-child(2),
.issue-result-table tbody td:nth-child(3) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.issue-result-table tbody td:nth-child(2) .t-company,
.issue-result-table tbody td:nth-child(3) div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue-result-table tbody td:last-child { white-space: nowrap; }
.issue-result-table .t-id { font-size: 11.5px; letter-spacing: -.2px; }
.issue-result-table .t-amount { white-space: nowrap; font-size: 12px; }
.issue-result-table .sm-btn { padding: 5px 9px; font-size: 12px; }
.issue-result-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); background: #fbfcfe; flex-wrap: wrap;
}
.issue-result-head .hint { font-size: 12.5px; color: #6b7c93; }
.issue-result-btns { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.issue-result-head .btn { margin-left: 0; }
.issue-dl-stat {
  font-size: 12px; color: #1f6fd0; background: #eef6ff;
  border: 1px solid #d7e8fb; border-radius: 20px; padding: 3px 10px; white-space: nowrap;
}
.issue-dl-stat.empty { display: none; }

/* 保函要素：模式切换与项目多选 */
.issue-tabs { display: flex; gap: 6px; background: #f2f6fb; border-radius: 9px; padding: 4px; margin-bottom: 12px; }
.issue-tab {
  flex: 1; border: 0; background: transparent; border-radius: 7px; cursor: pointer;
  font-size: 12.5px; color: #5b6f88; padding: 7px 10px; font-family: inherit; transition: .18s;
}
.issue-tab:hover { color: #1f6fd0; }
.issue-tab.on { background: #fff; color: #1f6fd0; font-weight: 600; box-shadow: 0 1px 3px rgba(31,111,208,.14); }
.issue-note {
  margin-top: 10px; font-size: 12.5px; color: #3d5673;
  background: #f7fafd; border: 1px solid #e2ebf7; border-radius: 8px; padding: 9px 12px;
}
.issue-note b { color: #1f6fd0; }
.issue-tip { font-size: 12px; color: #93a1b3; }
.issue-tip.warn { color: #c2760f; }
#isTpl.pending { color: #9aa9bb; }
.issue-co .co-x {
  flex: none; margin-left: auto; width: 24px; height: 24px; line-height: 1;
  border: 1px solid #e2ebf7; background: #fff; color: #8294a8;
  border-radius: 6px; cursor: pointer; font-size: 14px;
}
.issue-co .co-x:hover { border-color: #f3c9c9; color: #d24a43; background: #fff5f5; }
.issue-co .co-main { flex: 1; }
.pick-tall { max-height: 420px; }
.pick-foot-hint { font-size: 12.5px; color: #6b7c93; margin-right: auto; }
.dl-cell { font-size: 12px; color: #6b7c93; white-space: nowrap; }
.dl-cell b { color: #1f6fd0; font-size: 12.5px; }
.co-import-preview {
  font-size: 12.5px; color: #3d5673; background: #f7fafd;
  border: 1px solid #e2ebf7; border-radius: 8px; padding: 10px 12px; line-height: 1.8;
}
.co-import-preview b { color: #1f6fd0; }@media (max-width: 1100px) { .issue-grid { grid-template-columns: 1fr; } }@media (max-width: 560px) {
  .issue-sel-tools input { flex: 1 1 100%; min-width: 0; }
  .issue-sel-tools .sm-btn { flex: 1 1 auto; }
  .issue-tab { padding: 7px 4px; font-size: 12px; }
  .issue-result-head { gap: 8px; }
  .issue-result-btns { width: 100%; margin-left: 0; }
}

/* ================= 模板编辑器：印章与底纹配置 ================= */
.seal-cfg { border: 1px solid #e2ebf7; background: #f7fafd; border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.seal-cfg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.seal-cfg-head b { font-size: 12.5px; color: #3d5673; }
.seal-cfg-head .hint { font-size: 11.5px; color: #93a1b3; }
.seal-cfg-row {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) 52px 58px 58px 46px 50px 24px; gap: 5px;
  align-items: center; margin-bottom: 8px;
}
.seal-cfg-row .idx { font-size: 11.5px; color: #93a1b3; text-align: center; }
.seal-cfg-row select, .seal-cfg-row input { height: 34px; font-size: 12.5px; }
.seal-cfg-row input[data-cfg-cm], .seal-cfg-row input[data-cfg-x], .seal-cfg-row input[data-cfg-y],
.seal-cfg-row input[data-cfg-rot], .seal-cfg-row input[data-cfg-op] { text-align: center; padding: 0 12px 0 2px; }
.seal-cfg-row .unit-cell { position: relative; }
.seal-cfg-row .unit-cell i {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-style: normal; font-size: 10.5px; color: #93a1b3; pointer-events: none;
}
.seal-cfg-tip { font-size: 11px; color: #93a1b3; margin: 2px 0 8px; line-height: 1.6; }
.seal-cfg-row .del {
  border: 1px solid var(--line); background: #fff; border-radius: 7px; height: 30px;
  color: #c2410c; cursor: pointer; font-size: 14px; line-height: 1; font-family: inherit;
}
.seal-cfg-row .del:hover { background: #fef2f2; }
.seal-cfg-empty { font-size: 12px; color: #93a1b3; padding: 4px 0 8px; }
.seal-cfg-add {
  border: 1px dashed #b9cde6; background: #fff; color: #1f6fd0; font-size: 12.5px;
  padding: 7px 12px; border-radius: 8px; cursor: pointer; font-family: inherit;
}
.seal-cfg-add:hover { background: #eaf2ff; }

/* 预览里可拖动的印章 */
.tpl-preview-body .doc-seal-layer { pointer-events: auto; }
.tpl-preview-body .doc-stamp { pointer-events: auto; cursor: grab; }
.tpl-preview-body .doc-stamp.sel { outline: 2px dashed #2563eb; outline-offset: 5px; }
.tpl-preview-body.dragging, .tpl-preview-body.dragging .doc-stamp { cursor: grabbing !important; }
/* 章印在文字下层：预览里让正文层不拦截鼠标，保证印章可拖动 / 滚轮可旋转 */
.tpl-preview-body .doc > *:not(.doc-seal-layer) { pointer-events: none; }

/* ================= 模板历史版本 ================= */
.tpl-hist-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fbfcfe;
}
.tpl-hist-row .badge { flex: none; }
.tpl-hist-time { flex: none; font-size: 12px; color: #6b7c93; white-space: nowrap; }
.tpl-hist-info { flex: 1; min-width: 0; font-size: 12.5px; color: #17202b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-hist-btns { display: flex; gap: 6px; flex: none; }
.tpl-hist-doc { max-height: 66vh; overflow: auto; background: #eef2f7; padding: 18px; border-radius: 10px; }
.tpl-hist-doc-tip { font-size: 12.5px; color: #5f6d7f; margin-bottom: 10px; font-family: var(--sans); }
.tpl-drag-tip {
  font-size: 11.5px; color: #6b7c93; background: #fffbe9; border: 1px solid #f2e4b6;
  border-radius: 8px; padding: 7px 10px; margin-bottom: 8px; line-height: 1.6;
}

/* 章印 / 底纹缩略图 */
.seal-thumb {
  width: 46px; height: 46px; object-fit: contain; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; padding: 2px;
}
.bg-thumb {
  width: 96px; height: 60px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--line); background: #fff;
}
.up-chip {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; margin-top: 8px;
  border: 1px dashed var(--line); border-radius: 9px; background: #fbfdff;
}
.up-chip img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: #fff; }
.up-chip .txt { font-size: 12px; color: #55657a; line-height: 1.5; }
.up-chip .txt b { display: block; color: var(--ink-2); }

/* ================= 打印 / 导出 PDF（A4 无页边距） ================= */
@page { size: A4 portrait; margin: 0; }@media print {
  html, body { background: #fff !important; height: 0; overflow: hidden; }
  body * { visibility: hidden; }
  .doc, .doc * { visibility: visible; }
  /* 多页保函：fixed 元素打印时只会出现在第一页，改为 absolute + 祖先链静态化，
     让超出一页的正文按正常分页输出 */
  body, main, section, article, div {
    position: static !important; overflow: visible !important;
    height: auto !important; max-height: none !important;
  }
  .doc-shell { height: auto !important; overflow: visible !important; }
  .doc-shell > .doc {
    position: absolute !important; left: 0 !important; top: 0 !important;
    transform: none !important; margin: 0 !important; box-shadow: none !important;
    width: 210mm !important; min-height: 297mm !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .modal { position: static; background: none; padding: 0; display: block !important; overflow: visible; }
  .modal-inner { box-shadow: none; max-width: none; border-radius: 0; }
  .modal-bar { display: none !important; }
}
