/* ===== 个体工商户电子税务局（模拟） ===== */
:root {
  --blue-900: #0b2c56;
  --blue-800: #103f75;
  --blue-700: #16508f;
  --blue-600: #1c66b4;
  --blue-500: #2b7fd0;
  --blue-050: #eef4fb;
  --blue-100: #e2ecf8;
  --red-600: #c02b32;
  --red-050: #fdF0f0;
  --green-600: #1f7a4d;
  --green-050: #eaf7f0;
  --amber-600: #a8690a;
  --amber-050: #fdf5e6;
  --bg: #eef2f7;
  --card: #ffffff;
  --line: #dce4ef;
  --line-strong: #c8d4e3;
  --text: #1b2a3c;
  --text-2: #44576e;
  --muted: #6f8199;
  --shadow-sm: 0 1px 2px rgba(16, 46, 83, .06), 0 4px 14px rgba(16, 46, 83, .05);
  --shadow-md: 0 12px 32px rgba(10, 34, 64, .14);
  --radius: 10px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  --num: "SF Mono", "DIN Alternate", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

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

body.modal-open { overflow: hidden; }
body.is-login { background: #e9eff7; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }

[hidden] { display: none !important; }

button { font-family: inherit; }

/* ================= 登录 ================= */
.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(28, 102, 180, .18), transparent 60%),
    radial-gradient(900px 420px at 100% 110%, rgba(192, 43, 50, .10), transparent 60%),
    #e9eff7;
}

.login-wrap {
  width: 100%;
  max-width: 1080px;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(10, 34, 64, .16);
}

.login-brand {
  position: relative;
  padding: 52px 48px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(11, 44, 86, .96), rgba(21, 78, 139, .94)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 22px);
  display: flex;
  flex-direction: column;
}

.login-brand::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, .06);
}

.brand-badge {
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: .08em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .1);
  color: #e8f1ff;
}

.login-brand h1 {
  margin: 34px 0 18px;
  font-size: 40px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: .02em;
}

.brand-desc {
  margin: 0 0 30px;
  color: rgba(232, 241, 255, .82);
  font-size: 14px;
  line-height: 1.9;
  max-width: 400px;
}

.brand-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.brand-points li {
  padding-left: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #6fb3ef;
}
.brand-points b { font-size: 14px; letter-spacing: .04em; }
.brand-points span { font-size: 12.5px; color: rgba(232, 241, 255, .68); }

.brand-note {
  margin: auto 0 0;
  padding-top: 26px;
  font-size: 12px;
  color: rgba(232, 241, 255, .55);
  line-height: 1.8;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.login-card {
  padding: 46px 46px 30px;
  display: flex;
  flex-direction: column;
}

.login-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.login-tabs button {
  border: 0;
  background: none;
  padding: 0 2px 12px;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.login-tabs button.active { color: var(--blue-700); font-weight: 600; border-bottom-color: var(--blue-600); }
.login-tabs button:disabled { color: #b6c2d1; cursor: not-allowed; }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; }

input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(43, 127, 208, .13);
}
input[readonly], input:disabled { background: #f5f8fc; color: var(--text-2); }

.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha {
  width: 118px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: linear-gradient(135deg, #f3f7fc, #e6eef8);
  cursor: pointer;
  font-size: 21px;
  letter-spacing: 6px;
  font-family: "Times New Roman", serif;
  font-style: italic;
  color: var(--blue-700);
  text-indent: 6px;
  user-select: none;
}

.demo-tip {
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--blue-050);
  border: 1px dashed #c3d8ef;
  font-size: 12.5px;
  color: var(--text-2);
}
.demo-tip b { color: var(--blue-700); }
.demo-tip p { margin: 4px 0 0; }
code {
  font-family: var(--num);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--blue-700);
  font-size: 12px;
}

.login-footer { margin: auto 0 0; text-align: center; font-size: 12px; color: #9aa9bb; padding-top: 20px; }

/* ================= 主框架 ================= */
.topbar {
  height: 60px;
  background: linear-gradient(90deg, var(--blue-900), var(--blue-700) 62%, #1a5e9e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 12px rgba(9, 32, 60, .18);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  display: grid;
  place-items: center;
  font-family: "STSong", "SimSun", serif;
  font-size: 19px;
  color: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; letter-spacing: .08em; font-weight: 600; }
.brand-text small { font-size: 11px; color: rgba(255, 255, 255, .62); letter-spacing: .04em; }

.topbar-right { display: flex; align-items: center; gap: 16px; }
.chip {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.chip-sim { background: rgba(255, 214, 102, .16); color: #ffe1a1; border: 1px solid rgba(255, 214, 102, .4); }

.sim-date { font-size: 12px; color: rgba(255, 255, 255, .74); font-family: var(--num); }
.topbar-user { display: flex; flex-direction: column; line-height: 1.3; text-align: right; }
.topbar-user b { font-size: 13px; font-weight: 500; }
.topbar-user em { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .6); font-family: var(--num); }

.btn-text {
  border: 1px solid rgba(255, 255, 255, .28);
  background: transparent;
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-text:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.shell { display: flex; align-items: flex-start; min-height: calc(100vh - 60px - 48px); }

.sidebar {
  width: 218px;
  flex: 0 0 218px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 14px 0 24px;
  position: sticky;
  top: 60px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
.menu { display: flex; flex-direction: column; }
.nav-group {
  font-size: 11.5px;
  color: #93a3b7;
  letter-spacing: .08em;
  padding: 16px 22px 6px;
}
.nav-item {
  display: block;
  padding: 9px 22px;
  font-size: 13.5px;
  color: var(--text-2);
  border-left: 3px solid transparent;
}
.nav-item:hover { background: var(--blue-050); color: var(--blue-700); }
.nav-item.active {
  background: linear-gradient(90deg, #eaf3fd, #f4f9ff);
  border-left-color: var(--blue-600);
  color: var(--blue-700);
  font-weight: 600;
}
.sidebar-foot {
  margin: 26px 20px 0;
  padding: 12px;
  border-radius: 8px;
  background: #f7f9fc;
  font-size: 11.5px;
  color: #93a3b7;
  line-height: 1.8;
  text-align: center;
}

.main { flex: 1; min-width: 0; padding: 20px 24px 40px; }

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 14px 24px;
  text-align: center;
  font-size: 12px;
  color: #94a3b6;
}

/* ================= 通用组件 ================= */
.page-head { margin-bottom: 16px; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.page-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #16324f;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.page-head .sub { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.page-head p { margin: 6px 0 0; color: var(--text-2); font-size: 13px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
  flex-wrap: wrap;
}
.card-head h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: #17395c;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-head h3::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--blue-600);
}
.card-head .head-actions { display: flex; gap: 8px; align-items: center; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .16s, box-shadow .16s, color .16s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 2px 8px rgba(28, 102, 180, .28); }
.btn-primary:hover { background: var(--blue-500); }
.btn-primary:disabled { background: #9db6cf; cursor: not-allowed; box-shadow: none; }
.btn-danger { background: var(--red-600); color: #fff; }
.btn-danger:hover { background: #d43a41; }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn-block { width: 100%; height: 42px; font-size: 15px; letter-spacing: .2em; }
.btn-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue-600);
  font-size: 13px;
  cursor: pointer;
}
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: var(--red-600); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 500;
}
.badge-gray { background: #f0f3f7; color: #64768c; border: 1px solid #e2e8f0; }
.badge-blue { background: var(--blue-050); color: var(--blue-700); border: 1px solid #cfe1f5; }
.badge-amber { background: var(--amber-050); color: var(--amber-600); border: 1px solid #f2ddb4; }
.badge-green { background: var(--green-050); color: var(--green-600); border: 1px solid #c6e8d6; }
.badge-red { background: var(--red-050); color: var(--red-600); border: 1px solid #f5cccc; }

.alert {
  display: flex;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 12px;
  border: 1px solid transparent;
}
.alert b { font-weight: 600; }
.alert-info { background: #f0f6fd; border-color: #d3e4f6; color: #21507f; }
.alert-warn { background: #fdf8ee; border-color: #f0e0bd; color: #8a5c0f; }
.alert-error { background: #fdf2f2; border-color: #f3cdcd; color: #a52328; }
.alert-success { background: #eef8f2; border-color: #c9e8d7; color: #1c6a45; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.alert li { margin: 2px 0; }

/* 统计卡 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--blue-050);
}
.stat .stat-label { font-size: 12.5px; color: var(--muted); position: relative; z-index: 1; }
.stat .stat-value { font-size: 26px; font-weight: 600; color: #14375c; margin-top: 4px; font-family: var(--num); letter-spacing: -.01em; position: relative; z-index: 1; }
.stat .stat-value small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 3px; font-family: var(--sans); }
.stat.accent-red .stat-value { color: var(--red-600); }
.stat.accent-green .stat-value { color: var(--green-600); }

/* 表格 */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #edf1f6; vertical-align: middle; }
.data-table thead th { background: #f8fafd; color: #5a6f88; font-weight: 500; font-size: 12.5px; white-space: nowrap; }
.data-table tbody tr:hover { background: #fafcff; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .num { font-family: var(--num); text-align: right; white-space: nowrap; }
.data-table .center { text-align: center; }
.data-table .actions { text-align: right; white-space: nowrap; }
.data-table .actions .btn + .btn { margin-left: 6px; }
.empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty strong { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 4px; }

/* 快捷键入口 */
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.quick:hover { border-color: #b9d3ef; box-shadow: 0 6px 16px rgba(22, 80, 143, .08); transform: translateY(-1px); }
.quick b { font-size: 13.5px; color: #1b4269; font-weight: 600; }
.quick span { font-size: 12px; color: var(--muted); }

/* 申报表 */
.period-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.period-bar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.period-bar label { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.period-bar select { width: auto; min-width: 300px; height: 34px; font-size: 13px; }
.period-bar .deadline { font-size: 12.5px; color: var(--muted); }
.period-bar .deadline b { color: var(--amber-600); font-family: var(--num); font-weight: 600; }
.period-bar .deadline.is-overdue b { color: var(--red-600); }

.form-title { text-align: center; padding: 6px 0 2px; }
.form-title h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: .06em; color: #15385c; }
.form-title p { margin: 0; font-size: 12.5px; color: var(--muted); }

.form-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 34px;
  font-size: 13px;
  color: var(--text-2);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.form-meta span b { font-weight: 500; color: var(--text); }

.form-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.form-table th, .form-table td {
  border: 1px solid #d9e2ee;
  padding: 7px 12px;
  vertical-align: middle;
}
.form-table thead th {
  background: #eef4fb;
  color: #2b5278;
  font-weight: 600;
  font-size: 12.5px;
  text-align: center;
}
.form-table .col-no { width: 62px; text-align: center; color: var(--muted); font-family: var(--num); }
.form-table .col-amt { width: 210px; }
.form-table td.col-amt { text-align: right; padding: 4px 8px; }
.form-table .row-sub td:first-child, .form-table .row-sub td:nth-child(2) { color: var(--text-2); }
.form-table .row-sub td:nth-child(2) { padding-left: 30px; }
.form-table .row-strong td { background: #f7fafd; font-weight: 600; }
.form-table .row-calc td { background: #f8fbfe; }
.form-table .row-total td { background: #eef6fd; font-weight: 600; color: #14375c; }
.form-table td.out { text-align: right; font-family: var(--num); font-size: 13.5px; color: #14375c; }
.form-table td.out.negative { color: var(--red-600); }

.cell-input {
  height: 30px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-align: right;
  padding: 0 8px;
  font-family: var(--num);
  font-size: 13.5px;
  background: #fbfdff;
}
.cell-input:hover { border-color: #c9d9ea; }
.cell-input:focus { border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 2px rgba(43, 127, 208, .12); }
.cell-input::placeholder { color: #b3c0cf; font-size: 12px; }

.invoice-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.invoice-strip > div { padding: 12px 16px; border-right: 1px solid var(--line); background: #fbfdff; }
.invoice-strip > div:last-child { border-right: 0; background: #f4f9ff; }
.invoice-strip .k { font-size: 12px; color: var(--muted); }
.invoice-strip .v { font-size: 17px; font-family: var(--num); color: #16395d; margin-top: 2px; }

.due-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(90deg, #f2f7fd, #f8fbfe);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.due-bar .due-label { font-size: 13px; color: var(--text-2); }
.due-bar .due-value { font-family: var(--num); font-size: 22px; font-weight: 600; color: var(--red-600); }
.due-bar .due-value.zero { color: var(--green-600); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }

.decl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.aside-card .card-body { padding: 16px; }
.rate-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rate-table th, .rate-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: right; }
.rate-table th { background: #f6f9fd; color: var(--text-2); font-weight: 500; text-align: center; }
.rate-table td:first-child, .rate-table th:first-child { text-align: center; }
.rate-table tr.active td { background: #eaf4ff; color: var(--blue-700); font-weight: 600; }
.rate-note { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 12px 0 0; }

.summary-list { display: grid; gap: 8px; font-size: 13px; }
.summary-list div { display: flex; justify-content: space-between; gap: 12px; }
.summary-list span { color: var(--muted); }
.summary-list b { font-family: var(--num); font-weight: 600; color: #16395d; }
.summary-list .sum { border-top: 1px dashed var(--line-strong); padding-top: 8px; }
.summary-list .sum b { color: var(--red-600); font-size: 16px; }

/* 新手分步指引与白话计算说明 */
.guide-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guide-step {
  position: relative;
  padding: 14px 14px 13px;
  border: 1px solid #dbe7f4;
  border-radius: 8px;
  background: #f8fbff;
}
.guide-step > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-bottom: 9px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  font: 600 13px/1 var(--num);
}
.guide-step b { display: block; color: #183f66; font-size: 13.5px; margin-bottom: 4px; }
.guide-step p { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.75; }
.guide-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.guide-actions > span { color: var(--text-2); font-size: 12.5px; }
.guide-actions .btn { flex: 0 0 auto; }
.prep-box { margin-top: 14px; padding: 13px 16px; border: 1px solid #e3e9f1; border-radius: 8px; background: #fbfcfe; }
.prep-box > b { color: #264d73; font-size: 13px; }
.prep-box ul { margin: 7px 0 0; padding-left: 20px; color: var(--text-2); font-size: 12.5px; }
.prep-box li { margin: 4px 0; line-height: 1.8; }
.prep-box li::marker { color: var(--blue-500); }
.prep-box li b { color: #244b71; }
.prep-box p { margin: 10px 0 0; padding-top: 9px; border-top: 1px dashed var(--line); color: var(--blue-700); font-size: 12.5px; }
.field-name { display: block; line-height: 1.65; }
.field-hint { margin-top: 3px; color: var(--muted); font-size: 11.5px; font-weight: 400; line-height: 1.65; text-align: left; }
.form-table .row-sub .field-hint { color: #7b8da3; }
.calc-explain {
  margin: 16px 18px;
  padding: 15px 17px;
  border: 1px solid #cfe1f3;
  border-left: 4px solid var(--blue-500);
  border-radius: 8px;
  background: #f6faff;
  color: var(--text-2);
  font-size: 12.5px;
}
.aside-card > .calc-explain { margin: 0 0 16px; background: #fff; box-shadow: var(--shadow-sm); }
.explain-title { margin-bottom: 9px; color: #174f83; font-size: 14px; font-weight: 600; }
.calc-explain > p { margin: 0; color: var(--muted); }
.explain-steps { margin: 0; padding-left: 21px; }
.explain-steps li { margin: 7px 0; padding-left: 2px; line-height: 1.85; }
.explain-steps li::marker { color: var(--blue-600); font-family: var(--num); }
.explain-steps li > b { color: #264d73; }
.explain-steps strong { color: #123f6c; font-family: var(--num); font-weight: 600; white-space: nowrap; }
.explain-total { margin-top: 11px; padding: 10px 12px; border-radius: 6px; background: #eaf3fc; color: #254d73; line-height: 1.8; }
.explain-total b { color: var(--red-600); font-family: var(--num); font-size: 15px; white-space: nowrap; }
.explain-note { margin-top: 10px; color: #6b6250; font-size: 12px; line-height: 1.8; }

/* 表单小节标题 */
.form-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #2b5278;
  padding: 12px 18px 8px;
  background: #fff;
}

/* 申报成功 */
.result-card { max-width: 720px; margin: 30px auto; text-align: center; padding: 40px 36px; }
.result-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-050);
  color: var(--green-600);
  display: grid;
  place-items: center;
  font-size: 30px;
  border: 1px solid #c6e8d6;
}
.result-card h3 { margin: 0 0 6px; font-size: 20px; color: #17395c; }
.result-card .result-sub { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.result-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 22px;
  background: #fbfdff;
}
.result-kv div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.result-kv span { color: var(--muted); }
.result-kv b { font-weight: 500; color: var(--text); }
.result-kv b.money { font-family: var(--num); color: var(--red-600); font-weight: 600; }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 完税证明 */
.receipt {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 34px 40px;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}
.receipt h2 { text-align: center; font-size: 20px; letter-spacing: .12em; margin: 0 0 4px; color: #14375c; }
.receipt .receipt-sub { text-align: center; font-size: 12px; color: var(--muted); letter-spacing: .2em; margin-bottom: 22px; }
.receipt .stamp {
  position: absolute;
  right: 46px;
  bottom: 44px;
  width: 104px;
  height: 104px;
  border: 3px solid rgba(192, 43, 50, .72);
  border-radius: 50%;
  color: rgba(192, 43, 50, .82);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  transform: rotate(-12deg);
  opacity: .9;
}
.receipt .stamp b { display: block; font-size: 13px; }
.receipt-note { margin-top: 20px; font-size: 11.5px; color: #94a3b6; line-height: 1.9; }

/* 查询筛选 */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-bar label { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.filter-bar select { width: auto; min-width: 150px; height: 34px; font-size: 13px; }

/* 信息卡 */
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.kv-grid .kv { display: flex; padding: 9px 0; border-bottom: 1px dashed #e8eef6; font-size: 13px; }
.kv-grid .kv span { width: 132px; flex: 0 0 132px; color: var(--muted); }
.kv-grid .kv b { font-weight: 500; color: var(--text); }

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 55, .48);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  animation: fade .16s ease-out;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow: auto;
  box-shadow: var(--shadow-md);
  animation: rise .18s ease-out;
}
@keyframes rise { from { transform: translateY(10px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 16px; color: #17395c; }
.modal-close { border: 0; background: none; font-size: 22px; line-height: 1; color: #93a3b7; cursor: pointer; padding: 0 4px; }
.modal-close:hover { color: var(--text-2); }
.modal-body { padding: 18px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fbfcfe; }

.dl { display: grid; grid-template-columns: 104px 1fr; gap: 8px 12px; font-size: 13px; margin: 0 0 16px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--text); }
.modal-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: #f4f9ff;
  border: 1px solid #d8e8f8;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.modal-total span { color: var(--text-2); font-size: 13px; }
.modal-total b { font-family: var(--num); font-size: 22px; color: var(--red-600); }
.check-line { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); line-height: 1.7; cursor: pointer; }
.check-line input { width: 15px; height: 15px; margin-top: 3px; flex: 0 0 15px; }
.pay-methods { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 14px; }
.pay-methods label {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
}
.pay-methods label.checked { border-color: var(--blue-500); background: #f5faff; }
.pay-methods input { width: 15px; height: 15px; }
.pay-methods em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: auto; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  top: 78px;
  transform: translate(-50%, -14px);
  background: rgba(19, 40, 66, .94);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 200;
  max-width: 82vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-error { background: rgba(160, 30, 36, .96); }
.toast-success { background: rgba(22, 96, 61, .96); }

/* 政策列表 */
.policy-list { display: flex; flex-direction: column; }
.policy-item { padding: 14px 18px; border-bottom: 1px solid #edf1f6; }
.policy-item:last-child { border-bottom: 0; }
.policy-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.policy-top b { font-size: 13.5px; color: #1b4269; font-weight: 600; }
.policy-item p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.8; }

/* 响应式 */
@media (max-width: 1000px) {
  .guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decl-grid { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; min-height: 0; }
  .login-brand { padding: 36px 32px; }
  .login-brand h1 { font-size: 30px; margin-top: 22px; }
  .brand-note { margin-top: 26px; }
  .login-card { padding: 32px; }
}
@media (max-width: 860px) {
  .topbar { height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .sim-date, .topbar-user em { display: none; }
  .shell { flex-direction: column; }
  .sidebar { width: 100%; flex: none; position: static; max-height: none; padding: 8px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .menu { flex-direction: row; overflow-x: auto; padding: 0 8px; }
  .nav-group, .sidebar-foot { display: none; }
  .nav-item { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; padding: 8px 12px; }
  .nav-item.active { border-left: 0; border-bottom-color: var(--blue-600); }
  .main { padding: 16px 14px 30px; }
  .stat-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .invoice-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invoice-strip > div:nth-child(2) { border-right: 0; }
  .kv-grid { grid-template-columns: 1fr; }
  .result-kv { grid-template-columns: 1fr; }
  .period-bar select { min-width: 0; width: 100%; }
  .form-table .col-amt { width: 150px; }
  .receipt { padding: 22px 18px; }
  .receipt .stamp { right: 18px; bottom: 24px; width: 86px; height: 86px; }
}
@media (max-width: 560px) {
  .guide-steps { grid-template-columns: 1fr; }
  .guide-actions { align-items: stretch; flex-direction: column; }
  .guide-actions .btn { text-align: center; }
  .calc-explain { margin: 12px; padding: 13px; }
  .aside-card > .calc-explain { margin: 0 0 16px; }
}

/* 打印 */
@media print {
  body { background: #fff; }
  .topbar, .sidebar, .footer, .no-print, .toast, #modal-root { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  .card, .receipt { box-shadow: none; border-color: #999; }
  .page-head .breadcrumb { display: none; }
  .data-table th, .data-table td, .form-table th, .form-table td { border-color: #888 !important; }
  .form-table thead th, .form-table .row-strong td, .form-table .row-calc td, .form-table .row-total td { background: #fff !important; }
  a { color: inherit; }
}
