/* ============================================================
   佳行文旅 · 确认单生成系统
   视觉基调：干净 / 利索 / 大气 —— 白底、细线、大留白、品牌红点缀
   ============================================================ */
:root{
  --bg:#f5f6f8;
  --surface:#ffffff;
  --ink:#151d2e;
  --ink2:#626d82;
  --ink3:#9aa3b2;
  --line:#e8ebf0;
  --line2:#f1f3f7;
  --brand:#c8102e;              /* 品牌红，取自公司 LOGO */
  --brand-d:#a60d26;
  --brand-soft:#fff1f3;
  --navy:#111c33;
  --ok:#0f9d6e;
  --ok-soft:#eaf8f2;
  --radius:12px;
  --shadow:0 1px 2px rgba(17,28,51,.04), 0 6px 22px rgba(17,28,51,.035);
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:"Inter","PingFang SC","Hiragino Sans GB","Microsoft YaHei",-apple-system,system-ui,sans-serif;
     color:var(--ink);background:var(--bg);font-size:14px;-webkit-font-smoothing:antialiased;line-height:1.6}
a{color:inherit;text-decoration:none;cursor:pointer}
button,input,select,textarea{font-family:inherit}
.hidden{display:none !important}

.app{display:flex;min-height:100vh}

/* ---------- 侧边栏 ---------- */
.sidebar{width:252px;flex:0 0 252px;background:#fff;border-right:1px solid var(--line);
         display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:30}
.brand{padding:28px 24px 20px;border-bottom:1px solid var(--line2)}
.brand-logo{display:block;width:100%;max-width:190px;height:auto}
.brand-sub{margin-top:14px;font-size:10.5px;line-height:1.65;color:var(--ink3);letter-spacing:.2px}
.nav{padding:14px 12px;flex:1;overflow:auto}
.nav-label{font-size:10px;color:var(--ink3);letter-spacing:1.8px;padding:18px 14px 9px;font-weight:700}
.nav-item{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:8px;margin-bottom:3px;
          font-size:13.5px;color:var(--ink2);position:relative;transition:.16s}
.nav-item svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;
              stroke-linecap:round;stroke-linejoin:round;opacity:.8}
.nav-item:hover{background:#f7f8fa;color:var(--ink)}
.nav-item.active{background:var(--brand-soft);color:var(--brand);font-weight:700;
                 box-shadow:inset 3px 0 0 var(--brand)}
.nav-item.active svg{opacity:1}
.nav-dot{width:6px;height:6px;border-radius:50%;background:var(--brand);margin-left:auto}
.sidebar-foot{padding:16px 16px 20px;border-top:1px solid var(--line2)}
.seal-note{display:flex;gap:10px;align-items:center;background:#f8fafc;border:1px solid var(--line);
           border-radius:9px;padding:11px 12px;margin-bottom:16px}
.shield{width:22px;height:22px;border-radius:50%;background:var(--ok);color:#fff;font-size:12px;
        font-weight:800;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.seal-note b{display:block;font-size:12px;color:var(--navy)}
.seal-note small{display:block;font-size:10.5px;color:var(--ink3);margin-top:2px}
.dept{font-size:10.5px;line-height:1.8;color:var(--ink3);padding-left:3px}

/* ---------- 主区 / 顶栏 ---------- */
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{height:68px;background:rgba(255,255,255,.95);border-bottom:1px solid var(--line);
        display:flex;align-items:center;justify-content:space-between;padding:0 38px;
        position:sticky;top:0;z-index:20;backdrop-filter:blur(10px)}
.crumb{font-size:13px;color:var(--ink2);display:flex;align-items:center;gap:10px}
.crumb img{width:21px;height:21px;opacity:.95;margin-right:2px}
.crumb i{color:#c9cfd9;font-style:normal}
.crumb b{color:var(--ink);font-weight:700}
.top-right{display:flex;align-items:center;gap:22px}
.env-badge{font-size:11.5px;color:var(--ok);background:var(--ok-soft);border:1px solid #d3f0e2;
           padding:5px 12px;border-radius:999px;font-weight:600;display:flex;align-items:center;gap:7px}
.env-badge i{width:6px;height:6px;border-radius:50%;background:var(--ok);display:block}
.operator{display:flex;align-items:center;gap:10px;cursor:pointer}
.avatar{width:34px;height:34px;border-radius:50%;background:var(--navy);color:#fff;
        display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px}
.op-info b{display:block;font-size:12.5px}.op-info small{display:block;font-size:10.5px;color:var(--ink3)}
.content{padding:34px 40px 70px;max-width:1360px;width:100%}

/* ---------- 页头 ---------- */
.page-head{margin-bottom:28px}
.page-head h1{font-size:26px;font-weight:750;letter-spacing:-.4px;line-height:1.35}
.page-head h1::before{content:"";display:inline-block;width:4px;height:21px;background:var(--brand);
                      border-radius:2px;margin-right:13px;vertical-align:-2px}
.page-head p{font-size:13px;color:var(--ink2);margin-top:7px;padding-left:17px}

/* ---------- 卡片 ---------- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
      box-shadow:var(--shadow);padding:26px 28px;margin-bottom:22px}
.card-hd{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.card-hd h2{font-size:16px;font-weight:700;display:flex;align-items:center;gap:11px;letter-spacing:-.1px}
.card-hd .num{font-size:10.5px;font-weight:800;color:var(--brand);background:var(--brand-soft);
              padding:4px 8px;border-radius:5px;letter-spacing:.6px}
.hd-actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
.link{margin-left:auto;color:var(--brand);font-size:12.5px;font-weight:600}
.badge{margin-left:auto;background:#f7f8fa;color:var(--ink2);border:1px solid var(--line);
       padding:5px 12px;border-radius:999px;font-size:11.5px;font-weight:600}

/* ---------- 按钮 ---------- */
.btn{border:1px solid transparent;border-radius:8px;padding:10px 18px;font-size:13.5px;font-weight:600;
     cursor:pointer;transition:.16s;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.btn:active{transform:translateY(1px)}
.btn-sm{padding:7px 13px;font-size:12px}
.btn-lg{padding:12px 28px;font-size:14.5px}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-d)}
.btn-ghost{background:#fff;color:var(--ink2);border-color:var(--line)}
.btn-ghost:hover{border-color:#cdd4de;color:var(--ink);background:#fafbfc}
.btn-outline{background:#fff;color:var(--brand);border-color:var(--brand)}
.btn-outline:hover{background:var(--brand-soft)}

/* ---------- 步骤条 ---------- */
.stepper{display:flex;align-items:center;background:#fff;border:1px solid var(--line);
         border-radius:var(--radius);padding:18px 26px;margin-bottom:22px;box-shadow:var(--shadow)}
.step{display:flex;align-items:center;gap:12px;min-width:0}
.step-no{width:30px;height:30px;border-radius:50%;background:#f1f3f7;color:var(--ink3);
         font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center;
         flex:0 0 auto;transition:.2s}
.step.active .step-no{background:var(--brand);color:#fff}
.step.done .step-no{background:var(--ok);color:#fff}
.step b{display:block;font-size:13px;white-space:nowrap;font-weight:600}
.step small{display:block;font-size:11px;color:var(--ink3);margin-top:2px;white-space:nowrap}
.step.active b{color:var(--brand)}
.step-line{flex:1;height:1px;background:var(--line);margin:0 18px;min-width:24px}
.step-line.done{background:var(--ok)}

/* ---------- Step1 输入 ---------- */
.notice{background:#fff8f9;border:1px solid #f4dde1;border-radius:8px;padding:11px 14px;
        font-size:12.5px;color:#8a4050;margin-bottom:16px;display:flex;align-items:center;gap:10px;line-height:1.7}
.notice .warn,.export-note .warn{width:17px;height:17px;border-radius:50%;background:var(--brand);
        color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.notice>span:last-child,.export-note>span:last-child{flex:1;min-width:0}
.notice b{color:var(--brand-d)}
.terminal{width:100%;min-height:240px;background:#111a2b;color:#c6e0ff;border:1px solid #22304a;
          border-radius:9px;padding:16px 18px;font-family:"SFMono-Regular",Consolas,Menlo,monospace;
          font-size:12.5px;line-height:1.8;resize:vertical;letter-spacing:.2px}
.terminal:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(200,16,46,.13)}
.terminal::placeholder{color:#4d6285}
.card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:16px}
.foot-tip{font-size:11.5px;color:var(--ink3)}

/* ---------- Step2 参数与解析结果 ---------- */
.param-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:16px}
.param-item{display:flex;flex-direction:column;gap:8px}
.param-item label{font-size:12.5px;font-weight:600;color:var(--ink)}
.param-item select,.field input,.field select{border:1.5px solid var(--line);border-radius:8px;
        padding:9px 12px;font-size:13px;background:#fff;color:var(--ink);width:100%;transition:.15s}
.param-item select:focus,.field input:focus,.field select:focus{outline:none;border-color:var(--brand);
        box-shadow:0 0 0 3px rgba(200,16,46,.1)}
.check{display:flex;align-items:center;gap:9px;font-size:12.5px;color:var(--ink2);cursor:pointer;margin-bottom:18px}
.check input{width:15px;height:15px;accent-color:var(--brand)}
.result-split{display:grid;grid-template-columns:1fr;gap:18px}
.result-box{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.rb-hd{background:#fafbfc;padding:11px 14px;font-size:12.5px;font-weight:700;color:var(--ink);
       border-bottom:1px solid var(--line)}
.rb-count{float:right;color:var(--brand);font-size:11.5px;font-weight:600}
.table-wrap{overflow:auto;max-height:330px}
.tbl{width:100%;border-collapse:collapse;font-size:12.5px}
.tbl th{background:#fff;color:var(--ink2);text-align:left;padding:10px 13px;font-weight:700;
        white-space:nowrap;border-bottom:1px solid var(--line);position:sticky;top:0;font-size:11.5px}
.tbl td{padding:10px 13px;border-bottom:1px solid var(--line2);white-space:nowrap}
.tbl tr:last-child td{border-bottom:none}
.tbl tbody tr:hover{background:#fafbfc}
.tbl .mono{font-family:Consolas,Menlo,monospace}
.tbl td.idcard{font-weight:600;color:var(--ink)}
.tbl td.idcard::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;
        background:var(--brand);margin-right:7px;vertical-align:1px}
.empty-row td{text-align:center;color:var(--ink3);padding:24px}
/* 航段信息：可手动增删的多行输入表格 */
.btn-xs{padding:4px 11px;font-size:11.5px;border-radius:6px;line-height:1.5;font-weight:600}
.seg-hd{display:flex;align-items:center;gap:10px}
.seg-hd .rb-count{float:none;margin-right:auto}
.seg-tip{padding:9px 14px;font-size:11.5px;color:#7a6234;background:#fffdf6;
         border-bottom:1px solid var(--line);border-left:3px solid #e6c46c;line-height:1.5}
.seg-tbl th{padding:9px 8px}
.seg-tbl td{padding:6px 8px;white-space:normal}
.seg-tbl .c-no{width:36px;text-align:center;color:var(--ink3);font-weight:700}
.seg-tbl .c-op{width:50px;text-align:center}
.seg-tbl .w-flight{width:112px}.seg-tbl .w-date{width:104px}
.seg-tbl .w-route{width:108px}.seg-tbl .w-time{width:148px}
.seg-in{width:100%;min-width:0;box-sizing:border-box;border:1.5px solid var(--line);
        border-radius:6px;padding:6px 8px;font-size:12px;color:var(--ink);background:#fff;font-family:inherit}
.seg-in:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-soft)}
.seg-in::placeholder{color:#c3cad5}
.seg-del{border:1px solid var(--line);background:#fff;color:var(--ink3);border-radius:6px;
         width:24px;height:24px;line-height:1;cursor:pointer;font-size:15px}
.seg-del:hover{border-color:#f0cdd3;color:var(--brand);background:var(--brand-soft)}
.seg-foot{padding:9px 14px;font-size:11px;color:var(--ink3);border-top:1px solid var(--line2)}
/* 乘机人信息：可手动增删 / 编辑 / 上传名单，沿用航段表格样式 */
.pax-hd{flex-wrap:wrap}
.pax-hd b{font-weight:700}
.pax-tbl .w-name{width:180px}.pax-tbl .w-id{width:170px}
.pax-tbl .w-birth{width:118px}.pax-tbl .w-gender{width:76px}
.pax-tbl .w-exp{width:118px}.pax-tbl .w-country{width:78px}
.pax-tbl input.pax-id{background:#fff9fa;border-color:#f0d9de}
.pax-tip b{font-weight:700}
.fn-box{margin-top:16px;background:#fafbfc;border:1px dashed var(--line);border-radius:8px;
        padding:11px 14px;font-size:12px;color:var(--ink2);word-break:break-all}
.fn-box b{color:var(--ink)}
.id-hint{margin-top:14px;background:var(--ok-soft);border:1px solid #d3f0e2;border-radius:8px;
         padding:10px 14px;font-size:12px;color:#1c6b51;display:flex;align-items:center;gap:9px}
.id-hint b{color:#0d5b43}

/* ---------- Step3 类型 / 表单 / 计算 / 预览 ---------- */
.type-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}
.type-card{border:1.5px solid var(--line);border-radius:10px;padding:18px 16px;cursor:pointer;
           transition:.16s;position:relative;background:#fff}
.type-card:hover{border-color:#dcb9bf;transform:translateY(-2px);box-shadow:var(--shadow)}
.type-card.on{border-color:var(--brand);background:var(--brand-soft)}
.type-card.on::after{content:"✓";position:absolute;top:10px;right:11px;width:19px;height:19px;
        border-radius:50%;background:var(--brand);color:#fff;font-size:11px;
        display:flex;align-items:center;justify-content:center}
.type-card b{display:block;font-size:13.5px;margin-bottom:7px}
.type-card small{display:block;font-size:11px;color:var(--ink2);line-height:1.6}
.type-card .tpl-tag{display:inline-block;margin-top:11px;font-size:10px;color:var(--brand-d);
        background:#fff;border:1px solid #f0cdd3;border-radius:5px;padding:2px 8px}
.form-hd,.preview-hd{display:flex;align-items:baseline;gap:14px;margin:6px 0 16px;
        padding-top:22px;border-top:1px solid var(--line)}
.form-hd b,.preview-hd b{font-size:14px}
.form-hd span,.preview-hd span{font-size:11.5px;color:var(--ink3)}
.payee-fixed{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:-4px 0 18px;
        padding:11px 14px;background:var(--line2);border:1px solid var(--line);border-radius:9px}
.payee-fixed .payee-tag{font-size:10px;font-weight:700;color:#fff;background:var(--brand);
        border-radius:4px;padding:2px 7px;letter-spacing:.5px}
.payee-fixed .payee-label{font-size:12px;font-weight:600;color:var(--ink2)}
.payee-fixed b{font-size:13px;color:var(--ink);letter-spacing:.2px}
.payee-fixed .payee-note{font-size:11px;color:var(--ink3)}
.dyn-form{display:grid;grid-template-columns:repeat(3,1fr);gap:16px 18px}
.field{display:flex;flex-direction:column;gap:7px}
.field.full{grid-column:1/-1}
.field label{font-size:12px;font-weight:600;color:var(--ink)}
.field label .req{color:var(--brand);margin-left:2px}
.field label .tip{font-weight:400;color:var(--ink3);font-size:11px;margin-left:6px}
.field label .opt{font-size:10px;font-weight:600;color:var(--ink3);background:var(--line2);
        border:1px solid var(--line);border-radius:4px;padding:1px 6px;margin-left:6px}
.calc-bar{margin-top:20px;background:#fff8f9;border:1px solid #f3d9dd;border-radius:9px;
          padding:14px 18px;display:flex;gap:12px 26px;flex-wrap:wrap;align-items:center;
          font-size:13px;color:#7a3340}
.calc-bar b{color:var(--brand);font-size:14px}
.calc-bar .cap{font-weight:700;color:var(--brand-d)}
.preview-sheet{background:#fff;border:1px solid #e2e6ed;border-radius:4px;padding:38px 44px;
        max-width:880px;margin:0 auto;box-shadow:0 8px 30px rgba(17,28,51,.07);
        font-family:"SimSun","宋体",serif;color:#111;line-height:1.85;font-size:13.5px;
        min-height:190px;max-height:540px;overflow:auto}
.preview-sheet .p-title{text-align:center;font-size:19px;font-weight:700;
        font-family:"SimHei","黑体",serif;letter-spacing:2px;margin-bottom:16px}
.preview-sheet p{margin:3px 0}
.preview-sheet .p-hd{font-weight:700;margin-top:10px}
.preview-sheet .blank{color:var(--brand)}
.preview-sheet .p-pax{width:100%;border-collapse:collapse;margin:8px 0 14px;
        font-size:11.5px;font-family:"SimSun","宋体",serif;color:#111}
.preview-sheet .p-pax th,.preview-sheet .p-pax td{border:1px solid #333;padding:4px 3px;
        text-align:center;vertical-align:middle;line-height:1.4}
.preview-sheet .p-pax th{font-weight:700;background:#fff}
.preview-sheet .p-pax td{word-break:break-word}
.preview-empty{text-align:center;color:var(--ink3);padding:60px 0;font-family:inherit;font-size:13px}
.export-bar{display:flex;align-items:center;gap:12px;margin-top:22px;padding-top:20px;
            border-top:1px solid var(--line)}
.export-note{display:flex;align-items:center;gap:9px;font-size:11.5px;color:var(--ink2);flex:1;line-height:1.6}
.export-note .warn{background:var(--brand);font-size:11px}

/* ---------- 工作台 ---------- */
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:22px}
.stat-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);
           padding:22px 24px;box-shadow:var(--shadow);display:flex;align-items:center;gap:16px}
.stat-ico{width:42px;height:42px;border-radius:10px;display:flex;align-items:center;
          justify-content:center;font-size:19px;flex:0 0 auto;background:#f5f6f8;color:var(--ink2)}
.stat-ico.blue{background:var(--brand-soft);color:var(--brand)}
.stat-ico.gold{background:#fdf6e8;color:#b4842c}
.stat-ico.green{background:var(--ok-soft);color:var(--ok)}
.stat-ico.purple{background:#f1effb;color:#6b5bc0}
.stat-card small{display:block;font-size:11.5px;color:var(--ink2)}
.stat-card b{font-size:27px;font-weight:750;letter-spacing:-.5px}
.stat-card em{font-style:normal;font-size:12px;color:var(--ink3);margin-left:5px}
.stat-card .txt-ok{font-size:19px;color:var(--ok)}
.quick-body{display:flex;gap:32px;align-items:center}
.quick-art{width:196px;height:136px;background:#fbfcfd;border:1px solid var(--line);
           border-radius:10px;position:relative;flex:0 0 auto;padding:26px 22px}
.paper-line{height:7px;background:#e7ebf1;border-radius:4px;margin-bottom:12px}
.paper-line.short{width:58%}
.paper-seal{position:absolute;right:20px;bottom:18px;width:40px;height:40px;border:2px solid var(--brand);
        color:var(--brand);border-radius:50%;display:flex;align-items:center;justify-content:center;
        font-size:15px;font-weight:700;transform:rotate(-14deg);opacity:.7}
.quick-txt h3{font-size:17px;margin-bottom:10px;font-weight:700}
.quick-txt p{font-size:12.5px;color:var(--ink2);line-height:1.9;max-width:640px;margin-bottom:18px}

/* ---------- 模板库 / 指南 / 记录 ---------- */
.tpl-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-bottom:22px}
.tpl-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);
          padding:22px;box-shadow:var(--shadow);display:flex;gap:18px;align-items:flex-start}
.tpl-ico{width:46px;height:56px;border-radius:7px;background:var(--brand-soft);
         border:1px solid #f0cdd3;display:flex;align-items:center;justify-content:center;
         color:var(--brand);font-size:20px;flex:0 0 auto;position:relative}
.tpl-ico::after{content:"章";position:absolute;right:-6px;bottom:-6px;width:22px;height:22px;
        border-radius:50%;background:var(--brand);color:#fff;font-size:10px;
        display:flex;align-items:center;justify-content:center}
.tpl-card b{font-size:14px}
.tpl-card p{font-size:11.5px;color:var(--ink2);margin:7px 0 12px;line-height:1.7}
.tpl-meta{display:flex;gap:8px;flex-wrap:wrap}
.tpl-meta span{font-size:10.5px;background:#f7f8fa;border:1px solid var(--line);
               border-radius:5px;padding:3px 9px;color:var(--ink2)}
.tpl-meta span.ok{background:var(--ok-soft);border-color:#d3f0e2;color:var(--ok)}
.protect-list{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.protect-list>div{border:1px solid var(--line);border-radius:9px;padding:16px 18px;
                  display:flex;gap:12px;align-items:flex-start}
.protect-list span{width:22px;height:22px;border-radius:50%;background:var(--ok);color:#fff;
        display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;flex:0 0 auto}
.protect-list b{font-size:12.5px}
.protect-list p{font-size:11.5px;color:var(--ink2);line-height:1.8;margin-top:4px}
.guide-card{max-width:920px}
.guide-list{list-style:none;counter-reset:g}
.guide-list li{counter-increment:g;position:relative;padding:0 0 20px 44px;
               border-left:1px solid var(--line);margin-left:13px}
.guide-list li:last-child{border-left-color:transparent;padding-bottom:0}
.guide-list li::before{content:counter(g);position:absolute;left:-15px;top:-2px;width:28px;height:28px;
        border-radius:50%;background:var(--brand);color:#fff;font-size:12px;font-weight:800;
        display:flex;align-items:center;justify-content:center}
.guide-list b{font-size:14px}
.guide-list p{font-size:12.5px;color:var(--ink2);line-height:1.9;margin-top:5px}
.guide-list code{background:#f3f5f8;padding:1px 6px;border-radius:4px;
                 font-family:Consolas,monospace;color:var(--brand-d)}
.guide-note{margin-top:22px;background:#fafbfc;border-left:3px solid var(--brand);
            border-radius:6px;padding:13px 16px;font-size:12.5px;color:var(--ink2)}
.guide-note b{color:var(--ink)}

/* ---------- 提示 / 遮罩 ---------- */
.toast{position:fixed;left:50%;bottom:34px;transform:translate(-50%,18px);background:var(--navy);
       color:#fff;padding:11px 22px;border-radius:9px;font-size:13px;
       box-shadow:0 12px 30px rgba(0,0,0,.22);opacity:0;pointer-events:none;
       transition:.28s;z-index:99;max-width:80vw}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast.err{background:var(--brand-d)}
.toast.ok{background:var(--ok)}
.mask{position:fixed;inset:0;background:rgba(17,28,51,.36);z-index:98;
      display:flex;align-items:center;justify-content:center;backdrop-filter:blur(2px)}
.loading{background:#fff;border-radius:12px;padding:24px 34px;display:flex;align-items:center;
         gap:14px;box-shadow:0 18px 50px rgba(17,28,51,.18);font-size:13.5px}
.spin{width:22px;height:22px;border:3px solid var(--brand-soft);border-top-color:var(--brand);
      border-radius:50%;animation:sp .8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}

@media(max-width:1180px){.param-grid,.type-grid,.stat-grid{grid-template-columns:repeat(2,1fr)}
  .dyn-form{grid-template-columns:repeat(2,1fr)}.result-split{grid-template-columns:1fr}}
@media(max-width:820px){.sidebar{display:none}.content{padding:22px 18px}.topbar{padding:0 18px}
  .param-grid,.type-grid,.stat-grid,.dyn-form,.protect-list,.tpl-grid{grid-template-columns:1fr}
  .step small{display:none}.step-line{margin:0 9px}.quick-art{display:none}
  .page-head h1{font-size:22px}.card{padding:20px 18px}.preview-sheet{padding:24px 18px}}

/* ============ v2 新增 ============ */
.nav-hot{ color:var(--brand); }
.nav-hot svg{ fill:currentColor; }
.search-in{
  border:1px solid var(--line); border-radius:8px; padding:6px 12px;
  font-size:13px; color:var(--ink); width:220px; outline:none; background:var(--surface);
}
.search-in:focus{ border-color:var(--brand); }
.check-inline{ padding-top:4px; }
.check-inline .check{ margin:0; }

/* 打印模式：只输出确认单预览 */
@media print {
  body.print-mode .sidebar,
  body.print-mode .topbar,
  body.print-mode .toast,
  body.print-mode .mask,
  body.print-mode .page-head,
  body.print-mode .stepper,
  body.print-mode #step1Card,
  body.print-mode #step2Card,
  body.print-mode .type-grid,
  body.print-mode .form-hd,
  body.print-mode .payee-fixed,
  body.print-mode #dynForm,
  body.print-mode .calc-bar,
  body.print-mode .preview-hd,
  body.print-mode .export-bar,
  body.print-mode #step3Card > .card-hd { display:none !important; }
  body.print-mode{ background:#fff; }
  body.print-mode .content{ padding:0; }
  body.print-mode #page-generate{ display:block !important; }
  body.print-mode #page-workbench,
  body.print-mode #page-history,
  body.print-mode #page-templates,
  body.print-mode #page-guide{ display:none !important; }
  body.print-mode #step3Card{ display:block !important; border:none; box-shadow:none; padding:0; margin:0; }
  body.print-mode #preview{ border:none; box-shadow:none; padding:0; width:100%; max-width:none; }
  body.print-mode #preview .p-title{ text-align:center; }
  body.print-mode #preview p{ margin:2pt 0; font-size:10.5pt; line-height:1.5; }
  body.print-mode #preview .p-hd{ font-weight:700; }
}

/* ===================== 行程单模块 v1 ===================== */
.w-cabin{width:64px}.w-plus{width:56px}.w-bag{width:72px}.w-term{width:88px}
.w-type{width:96px}.w-id{width:150px}

/* 行程单预览（版式参照保盛电子行程单 type=1 中文版） */
.itn-head{display:flex;align-items:center;gap:14px;border-bottom:3px solid #cccaca;padding-bottom:10px;margin-bottom:14px}
.itn-head img{height:40px;width:auto}
.itn-title{font-size:23px;font-weight:700;color:#040404}
.itn-agent{font-size:13px;color:#111;margin-bottom:10px}
.itn-agent-tel{margin-left:120px}
.itn-greet{font-size:12.5px;color:#111;margin:6px 0 12px}
.itn-sec{font-size:12.5px;font-weight:700;margin:14px 0 6px}
.itn-tbl{width:100%;border-collapse:collapse;font-size:12px;margin-left:0}
.itn-tbl td{border:1px solid #ccc;text-align:center;height:26px;padding:2px 6px;color:#111}
.itn-tbl tr.hd td,.itn-tbl td.lb{background:#e7edf8;font-weight:600}
.itn-tbl td.lf{text-align:left}
.itn-tbl td.shd,.itn-tbl tr.shd td{background:#e7edf8;text-align:left;font-weight:600}
.itn-tbl td.itn-empty{color:#9aa3b2}
.itn-seg{margin-bottom:8px}
.itn-total{text-align:right;font-size:12.5px;margin:6px 0 4px;font-weight:700}
.itn-note{margin-top:16px;font-size:12.5px;color:#111;line-height:1.8}
.itn-note>div{display:flex;gap:8px}
.itn-note .nt{flex:0 0 110px;font-weight:700}
.itn-bye{text-align:center;color:#01aaed;margin-top:10px}
.preview-sheet .itn-head img{max-height:40px}

/* 行程单打印 / 存 PDF（print-itn 作用域，与确认单打印互不干扰） */
@media print {
  body.print-mode.print-itn #page-generate,
  body.print-mode #itnPnrCard,
  body.print-mode.print-itn #itnStep2,
  body.print-mode.print-itn #page-history,
  body.print-mode.print-itn #page-templates,
  body.print-mode.print-itn #page-guide{ display:none !important; }
  body.print-mode.print-itn #page-itinerary{ display:block !important; }
  body.print-mode.print-itn #itnStep3{ display:block !important; border:none; box-shadow:none; padding:0; margin:0; }
  body.print-mode.print-itn #itnStep3 > .card-hd{ display:none !important; }
  body.print-mode.print-itn #itnPreview{ border:none; box-shadow:none; padding:0; width:100%; max-width:none; }
  body.print-mode.print-itn #itnPreview p{ margin:2pt 0; font-size:10.5pt; }
  body.print-mode.print-itn #itnPreview .itn-tbl td{ height:auto; padding:2pt 4pt; font-size:9.5pt; }
}
