:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --primary: #2563ff;
  --primary-dark: #1d4ed8;
  --accent: #00c2a8;
  --accent-dark: #059b8c;
  --danger: #dc2626;
  --success: #0f9f6e;
  --warning: #b7791f;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
  --shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: linear-gradient(135deg, rgba(37,99,255,.08), transparent 34%), linear-gradient(225deg, rgba(0,194,168,.08), transparent 28%), linear-gradient(180deg, #f5f7fb 0%, #f8fafc 52%, #eef3fb 100%); font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(148,163,184,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.11) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, rgba(15,23,42,.14), transparent 72%); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .62; }
.shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 58px; }
.topbar, .page-intro, .tool-card, .panel, .info-section, .more-tools { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-soft); backdrop-filter: blur(18px); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; padding: 14px 18px; border-radius: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 850; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 16px 30px rgba(37,99,255,.2); }
.nav { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 14px; font-weight: 750; }
.nav a:hover { color: var(--primary); }
.page-intro { margin-top: 30px; padding: clamp(28px, 4.6vw, 50px); border-radius: 34px; box-shadow: var(--shadow); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 22px 0 -10px; color: var(--muted); font-size: 13px; font-weight: 750; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span::before { content: ">"; margin-right: 8px; color: rgba(100,116,139,.7); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--primary); font-size: 13px; font-weight: 900; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 8px rgba(0,194,168,.12); }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; }
.lead { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 18px; line-height: 1.78; }
.section-head { margin: 38px 0 18px; }
.section-head h2 { margin-bottom: 8px; font-size: clamp(26px, 3vw, 36px); }
.section-head p { max-width: 720px; margin-bottom: 0; color: var(--muted); line-height: 1.7; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.tool-card { display: flex; flex-direction: column; min-height: 190px; padding: 22px; border-radius: 26px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
a.tool-card:hover { transform: translateY(-2px); border-color: rgba(37,99,255,.18); box-shadow: 0 22px 54px rgba(15,23,42,.1); }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; color: var(--primary); background: rgba(37,99,255,.1); font-weight: 950; }
.card-icon.accent { color: var(--accent-dark); background: rgba(0,194,168,.12); }
.card-icon.warning { color: var(--warning); background: rgba(245,158,11,.13); }
.tool-card h3 { margin: 18px 0 8px; font-size: 18px; }
.tool-card p { flex: 1; margin-bottom: 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.card-link { color: var(--primary); font-size: 14px; font-weight: 900; }
.workbench { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(330px,.95fr); gap: 18px; margin-top: 28px; }
.workbench.two-col { align-items: start; }
.panel { border-radius: 28px; padding: 22px; }
.panel h2 { margin-bottom: 14px; font-size: 22px; }
.field { display: grid; gap: 8px; margin-bottom: 14px; color: var(--text-soft); font-size: 14px; font-weight: 850; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid rgba(15,23,42,.1); border-radius: 16px; outline: none; background: #fff; color: var(--text); padding: 12px 14px; transition: border-color .18s ease, box-shadow .18s ease; }
.field textarea { resize: vertical; line-height: 1.65; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(37,99,255,.5); box-shadow: 0 0 0 4px rgba(37,99,255,.1); }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 15px; font-weight: 850; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: linear-gradient(180deg, var(--primary), var(--primary-dark)); box-shadow: 0 14px 28px rgba(37,99,255,.22); }
.button.secondary { color: var(--primary); background: rgba(37,99,255,.08); }
.hint, .status { color: var(--muted); font-size: 14px; line-height: 1.65; }
.status.success { color: var(--success); font-weight: 850; }
.status.error { color: var(--danger); font-weight: 850; }
.qr-output { display: grid; place-items: center; gap: 12px; min-height: 360px; padding: 18px; border-radius: 22px; background: rgba(248,250,252,.9); border: 1px dashed rgba(15,23,42,.1); text-align: center; }
.qr-output canvas { width: min(100%, 360px); height: auto; max-height: 420px; border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(15,23,42,.08); }
.check-row { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 10px; color: var(--text-soft); font-weight: 800; }
.batch-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; max-height: 640px; overflow: auto; padding-right: 4px; }
.batch-item { padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.batch-item canvas { width: 100%; height: auto; border-radius: 12px; background: #fff; }
.batch-item strong { display: block; margin: 8px 0 4px; font-size: 13px; }
.batch-item p { margin: 0 0 10px; color: var(--muted); font-size: 12px; word-break: break-all; line-height: 1.45; }
.empty-box { grid-column: 1 / -1; display: grid; place-items: center; min-height: 220px; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; background: rgba(255,255,255,.72); }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.drop-box { display: grid; place-items: center; min-height: 260px; padding: 26px; border: 1px dashed rgba(15,23,42,.16); border-radius: 26px; background: rgba(255,255,255,.78); text-align: center; }
.drop-box.dragging { border-color: rgba(37,99,255,.55); box-shadow: 0 0 0 4px rgba(37,99,255,.08); }
.upload-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 18px 38px rgba(37,99,255,.2); font-size: 32px; }
.decode-preview img { display: block; max-width: 100%; max-height: 360px; margin-top: 16px; border-radius: 20px; box-shadow: var(--shadow-soft); }
.info-section, .more-tools { margin-top: 30px; border-radius: 28px; padding: 24px; }
.info-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.info-grid > div { padding: 16px; border-radius: 18px; background: rgba(248,250,252,.86); }
.info-grid p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.more-tools h2 { font-size: 22px; margin-bottom: 14px; }
.more-links { display: flex; flex-wrap: wrap; gap: 10px; }
.more-links a, .more-current { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 999px; background: rgba(37,99,255,.08); color: var(--primary); font-size: 14px; font-weight: 850; }
.more-current { color: var(--text); background: rgba(15,23,42,.08); }
@media (max-width: 900px) { .topbar { align-items: flex-start; flex-direction: column; } .workbench, .tool-grid, .info-grid { grid-template-columns: 1fr; } .settings-grid { grid-template-columns: 1fr; } .batch-grid { grid-template-columns: 1fr; } h1 { font-size: 38px; } }
@media (max-width: 560px) { .shell { width: min(100% - 20px, 1180px); } .panel, .page-intro, .info-section, .more-tools { padding: 18px; border-radius: 22px; } .actions .button { width: 100%; } .qr-output { min-height: 280px; } .nav { gap: 12px; font-size: 13px; } }
