:root{
  --blue:#0e55b8;
  --blue2:#2f8dff;
  --blue3:#8ed0ff;
  --deep:#08336f;
  --text:#0d2c5d;
  --muted:#55739b;
  --glass:rgba(255,255,255,.48);
  --glass2:rgba(255,255,255,.28);
  --line:rgba(255,255,255,.68);
  --line2:rgba(88,153,230,.22);
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  font-family:Arial,"Microsoft YaHei",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(255,255,255,.96) 0, rgba(255,255,255,.46) 18%, transparent 36%),
    radial-gradient(circle at 86% 10%, rgba(93,164,255,.32) 0, transparent 34%),
    radial-gradient(circle at 35% 92%, rgba(167,221,255,.34) 0, transparent 36%),
    linear-gradient(135deg,#f8fcff 0%,#eaf6ff 38%,#bddfff 70%,#87bcff 100%);
  background-attachment:fixed;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.45;
  background:
    radial-gradient(ellipse at 28% 75%, rgba(255,255,255,.45), transparent 45%),
    radial-gradient(ellipse at 78% 72%, rgba(255,255,255,.28), transparent 40%);
}
.navbar{
  background:rgba(7,42,96,.35);
  border-bottom:1px solid rgba(255,255,255,.46);
  backdrop-filter:blur(24px) saturate(170%);
  -webkit-backdrop-filter:blur(24px) saturate(170%);
  box-shadow:0 10px 36px rgba(23,98,185,.16);
}
.card{
  border:1px solid rgba(255,255,255,.62);
  border-radius:26px;
  background:linear-gradient(145deg,rgba(255,255,255,.55),rgba(255,255,255,.22));
  backdrop-filter:blur(26px) saturate(165%);
  -webkit-backdrop-filter:blur(26px) saturate(165%);
  box-shadow:0 24px 70px rgba(36,113,202,.18), inset 0 1px 0 rgba(255,255,255,.8);
}
.card h4,.card h5{color:#0b4fa2}
.form-control,.form-select{
  border-radius:16px;
  border:1px solid rgba(96,166,245,.36);
  background:rgba(255,255,255,.52);
  color:#12305d;
}
.form-control:focus,.form-select:focus{
  border-color:rgba(42,130,255,.76);
  background:rgba(255,255,255,.76);
  box-shadow:0 0 0 .25rem rgba(67,151,255,.14),0 0 22px rgba(111,190,255,.25);
}
.btn-brand{
  border:none;
  border-radius:999px;
  padding:.72rem 1.35rem;
  color:#fff;
  background:linear-gradient(135deg,#1c6dff,#67c7ff);
  box-shadow:0 14px 36px rgba(45,130,255,.32), inset 0 1px 0 rgba(255,255,255,.46);
}
.btn-brand:hover{color:#fff;transform:translateY(-1px);box-shadow:0 18px 48px rgba(45,130,255,.42)}
.btn-soft{
  color:#0b4fa2;
  border:1px solid rgba(255,255,255,.7);
  border-radius:999px;
  background:linear-gradient(135deg,rgba(255,255,255,.70),rgba(218,239,255,.38));
  backdrop-filter:blur(16px);
}
.btn-outline-secondary,.btn-outline-danger{border-radius:999px;background:rgba(255,255,255,.34)}
.table td,.table th{border-color:rgba(87,152,235,.18)}
.alert-light{
  color:#12305f;
  background:rgba(255,255,255,.46);
  border-color:rgba(255,255,255,.65)!important;
  border-radius:20px;
}

/* A4报价单：重新设计，去掉任何居中分割线 */
.quote-paper{
  position:relative;
  width:210mm;
  min-height:297mm;
  margin:20px auto;
  padding:16mm;
  overflow:hidden;
  border-radius:26px;
  color:#0b2d61;
  background:
    radial-gradient(circle at 17% 12%, rgba(255,255,255,.96), rgba(255,255,255,.32) 28%, transparent 45%),
    radial-gradient(circle at 85% 18%, rgba(134,197,255,.32), transparent 38%),
    linear-gradient(150deg,#f8fcff 0%,#e8f5ff 42%,#c8e6ff 74%,#abd7ff 100%);
  border:1px solid rgba(255,255,255,.82);
  box-shadow:0 30px 90px rgba(40,112,205,.25), inset 0 1px 0 rgba(255,255,255,.88);
}
.quote-bg-wave{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse at 24% 70%, rgba(255,255,255,.72) 0, rgba(255,255,255,.22) 25%, transparent 53%),
    radial-gradient(ellipse at 74% 76%, rgba(255,255,255,.42) 0, transparent 45%),
    linear-gradient(28deg, transparent 0 44%, rgba(255,255,255,.18) 45%, transparent 47% 100%),
    linear-gradient(158deg, transparent 0 61%, rgba(255,255,255,.18) 62%, transparent 64% 100%);
  opacity:.85;
}
.quote-bg-wave::before{
  content:"";
  position:absolute;
  left:-18%;
  right:-10%;
  bottom:22%;
  height:32%;
  border-radius:50%;
  border-top:2px solid rgba(255,255,255,.42);
  transform:rotate(-8deg);
  filter:blur(.2px);
}
.quote-bg-wave::after{
  content:"";
  position:absolute;
  left:-8%;
  right:-20%;
  bottom:12%;
  height:26%;
  border-radius:50%;
  border-top:1px solid rgba(255,255,255,.35);
  transform:rotate(-4deg);
}
.quote-paper::before{
  content:"";
  position:absolute;
  inset:7mm;
  border:1px solid rgba(255,255,255,.64);
  border-radius:22px;
  pointer-events:none;
  box-shadow:inset 0 0 38px rgba(255,255,255,.25);
}
.quote-paper::after{
  content:"ZHENYAN";
  position:absolute;
  left:27%;
  top:54%;
  transform:translate(-50%,-50%) rotate(-18deg);
  font-size:58px;
  letter-spacing:.20em;
  font-weight:800;
  color:rgba(255,255,255,.33);
  text-shadow:0 0 28px rgba(41,126,255,.08);
  pointer-events:none;
  white-space:nowrap;
}
.quote-paper > *{position:relative;z-index:1}

.quote-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  padding-bottom:15px;
  border-bottom:1px solid rgba(255,255,255,.68);
}
.brand-box{display:flex;align-items:center;gap:14px}
.brand-logo{width:72px;max-height:72px;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(42,128,255,.22))}
.brand-logo-fallback{
  width:70px;height:70px;border-radius:22px;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:42px;font-weight:900;
  background:linear-gradient(135deg,#1d6fff,#9bdfff);
  box-shadow:0 12px 30px rgba(47,128,255,.24), inset 0 1px 0 rgba(255,255,255,.6);
}
.brand-box h1{
  margin:0;
  font-size:29px;
  font-weight:900;
  color:#0b4fa2;
  letter-spacing:.05em;
  text-shadow:0 1px 0 rgba(255,255,255,.75);
}
.brand-box p{
  margin:5px 0 0;
  color:#416fa5;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.quote-title{text-align:right}
.quote-title h2{
  margin:0 0 8px;
  color:#0b4fa2;
  font-size:29px;
  font-weight:900;
  letter-spacing:.18em;
}
.quote-title p{margin:4px 0;color:#446c9b;font-size:13px}

.info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  margin:18px 0;
  padding:17px 20px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.70);
  background:linear-gradient(145deg,rgba(255,255,255,.58),rgba(255,255,255,.28));
  box-shadow:0 16px 38px rgba(45,120,205,.12), inset 0 1px 0 rgba(255,255,255,.78);
}
.info-col div{
  display:grid;
  grid-template-columns:100px 1fr;
  min-height:28px;
  align-items:center;
  font-size:13px;
}
.info-col b{color:#0b4fa2}
.info-col span{color:#0b244c}

.quote-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:20px;
  font-size:13px;
  background:rgba(255,255,255,.46);
  border:1px solid rgba(255,255,255,.66);
  box-shadow:0 14px 34px rgba(38,111,205,.10);
}
.quote-table th{
  padding:10px 8px;
  color:#073a80;
  background:linear-gradient(180deg,rgba(255,255,255,.76),rgba(199,226,255,.58));
  border-bottom:1px solid rgba(93,159,240,.24);
  font-weight:900;
}
.quote-table td{
  padding:10px 8px;
  border-bottom:1px solid rgba(111,174,255,.16);
  border-right:1px solid rgba(111,174,255,.13);
  color:#0b244c;
  vertical-align:middle;
}
.quote-table td:last-child,.quote-table th:last-child{border-right:none}
.quote-table tbody tr:nth-child(even){background:rgba(255,255,255,.24)}
.quote-table th:nth-child(1),.quote-table td:nth-child(1){width:42px;text-align:center}
.quote-table th:nth-child(3),.quote-table td:nth-child(3),
.quote-table th:nth-child(4),.quote-table td:nth-child(4),
.quote-table th:nth-child(5),.quote-table td:nth-child(5),
.quote-table th:nth-child(6),.quote-table td:nth-child(6),
.quote-table th:nth-child(7),.quote-table td:nth-child(7){text-align:center}

.middle-grid{
  display:grid;
  grid-template-columns:1fr 78mm;
  gap:20px;
  margin-top:18px;
  align-items:start;
}
.terms-box{
  min-height:72mm;
  padding:12px 0 0;
}
.terms-box h4,
.qr-card h4{
  margin:0 0 9px;
  color:#0b4fa2;
  font-size:15px;
  font-weight:900;
}
.terms-box p{
  margin:0;
  color:#42699b;
  font-size:12px;
  line-height:1.8;
}
.summary-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.58),rgba(255,255,255,.30));
  border:1px solid rgba(255,255,255,.68);
  box-shadow:0 16px 38px rgba(38,111,205,.12);
}
.summary-table td{
  padding:10px 14px;
  border-bottom:1px solid rgba(111,174,255,.16);
}
.summary-table td:first-child{color:#557198;font-weight:700}
.summary-table td:last-child{text-align:right;font-weight:900;color:#0b3b82}
.summary-table .total td{
  font-size:20px;
  color:#0058c9;
  background:linear-gradient(135deg,rgba(229,243,255,.90),rgba(178,218,255,.58));
}
.summary-table .balance td{font-size:16px;color:#0a64d8}

.note-box{
  margin-top:14px;
  padding:12px 14px;
  border-radius:18px;
  color:#345b8d;
  background:rgba(255,255,255,.42);
  border:1px solid rgba(255,255,255,.58);
}
.quote-footer{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:20px;
  margin-top:16px;
  align-items:end;
}
.qr-card{
  padding:14px 16px;
  border-radius:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.55),rgba(255,255,255,.25));
  border:1px solid rgba(255,255,255,.68);
  box-shadow:0 14px 34px rgba(38,111,205,.10);
}
.qr-list{display:flex;gap:16px;flex-wrap:wrap}
.qr-item{text-align:center;color:#0b4fa2;font-size:12px;font-weight:700}
.qr-item img{
  width:72px;height:72px;
  object-fit:contain;
  border-radius:14px;
  padding:6px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(255,255,255,.78);
  box-shadow:0 10px 22px rgba(42,128,255,.12);
  display:block;
  margin-bottom:5px;
}
.stamp-area{
  text-align:right;
  min-height:90px;
  position:relative;
  padding-right:92px;
}
.footer-brand{font-weight:900;color:#0b4fa2;font-size:16px;margin-top:24px}
.footer-subtitle{font-size:10px;color:#416fa5;letter-spacing:.08em;text-transform:uppercase}
.stamp{
  position:absolute;
  right:0;
  bottom:0;
  width:82px;height:82px;
  object-fit:contain;
  opacity:.78;
  filter:drop-shadow(0 8px 16px rgba(42,128,255,.14));
}
.thanks-line{
  text-align:center;
  margin-top:16px;
  color:#0b4fa2;
  font-size:13px;
  letter-spacing:.03em;
}

/* 手机浏览：只影响预览，不影响导出 */
@media(max-width:900px){
  .quote-paper{
    width:100%;
    min-height:auto;
    padding:18px;
    border-radius:22px;
    margin:12px auto;
  }
  .quote-paper::before{inset:8px;border-radius:18px}
  .quote-paper::after{font-size:38px;left:35%}
  .quote-top{display:block}
  .quote-title{text-align:left;margin-top:14px}
  .info-grid,.middle-grid,.quote-footer{grid-template-columns:1fr;display:grid}
  .info-col div{grid-template-columns:86px 1fr}
  .quote-table{font-size:12px}
  .quote-table th,.quote-table td{padding:8px 5px}
  .stamp-area{text-align:left;padding-right:92px}
}

/* 导出锁定：手机、电脑导出完全同版式 */
.mobile-preview-note{
  max-width:900px;
  margin:0 auto 12px;
  padding:10px 14px;
  color:#0b4fa2;
  background:rgba(255,255,255,.42);
  border:1px solid rgba(255,255,255,.62);
  border-radius:18px;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  text-align:center;
  font-size:13px;
}
body.exporting-a4{
  min-width:1200px!important;
  overflow:auto!important;
}
.export-lock-a4{
  width:210mm!important;
  min-height:297mm!important;
  padding:16mm!important;
  margin:20px auto!important;
  max-width:none!important;
  transform:none!important;
  border-radius:26px!important;
}
.export-lock-a4 .quote-top{display:flex!important}
.export-lock-a4 .info-grid{display:grid!important;grid-template-columns:1fr 1fr!important}
.export-lock-a4 .middle-grid{display:grid!important;grid-template-columns:1fr 78mm!important}
.export-lock-a4 .quote-footer{display:grid!important;grid-template-columns:1.1fr .9fr!important}
.export-lock-a4 .quote-title{text-align:right!important;margin-top:0!important}
.export-lock-a4 .quote-paper::after{font-size:58px!important}
.export-lock-a4 .info-col div{grid-template-columns:100px 1fr!important}
.export-lock-a4::before{inset:7mm!important;border-radius:22px!important}
.export-lock-a4::after{font-size:58px!important;left:27%!important}

@media print{
  .no-print,.mobile-preview-note{display:none!important}
  body{background:#fff}
  body::before{display:none}
  .quote-paper{box-shadow:none;margin:0;width:100%;min-height:auto;border-radius:0}
}
