:root {
  --primary-600: #0284c7;
  --secondary-600: #9333ea;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #fff;
  --bg: #f8fafc;
  --danger: #ef4444;
  --ok: #16a34a;
  --radius: 16px;
  --shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.06);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, #f0f9ff 0%, #fdf4ff 100%);
}
button, input { font-family: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(76, 29, 149, 0.18);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255,255,255,.95);
}
.header-link {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
}
#header-service {
  color: #fff;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}
#header-service:hover,
#header-service:focus,
#header-service:active {
  color: #fff;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}
#nav-link:empty { display: none; }

.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 96px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 8px auto 0;
}
.tools-grid > a { display: block; height: 100%; }
.featured { grid-column: 1 / -1; }
.featured-card, .tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.featured-card {
  padding: 36px 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #fdf4ff 100%);
  border-color: #bae6fd;
}
.tool-card { min-height: 168px; padding: 22px 16px; }
.featured-card:hover, .tool-card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12); }
.tool-icon { font-size: 2.6rem; line-height: 1; }
.featured-card .tool-icon { font-size: 3.4rem; }
.tool-title { margin: 10px 0 6px; font-size: 1.25rem; font-weight: 700; }
.featured-card .tool-title { font-size: 1.8rem; }
.tool-desc { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.home-note { text-align: center; color: var(--muted); margin-top: 28px; font-size: 0.9rem; }
.tool-closed {
  max-width: 560px;
  margin: 40px auto 0;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 36px 20px 28px;
  box-shadow: var(--shadow);
}
.tool-closed h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #0f172a;
}
.tool-closed .img-service { margin-top: 12px; }

.img-drop {
  max-width: 720px;
  margin: 28px auto 0;
  border: 2px dashed #93c5fd;
  border-radius: 18px;
  background: #fff;
  padding: 54px 20px 42px;
  text-align: center;
}
.img-drop.dragover { border-color: #0284c7; background: #f0f9ff; }
.img-drop h2 { margin: 0 0 10px; font-size: 1.55rem; }
.img-drop p { margin: 0 0 22px; color: var(--muted); }
.img-service {
  max-width: 720px;
  margin: 22px auto 0;
  text-align: center;
  color: #334155;
}
.img-service button {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-weight: 700;
  font-size: 1rem;
  padding: 0;
}
.img-list { display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin: 8px auto 0; }
.img-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.img-thumb {
  width: 104px;
  height: 104px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background-color: #f8fafc;
  background-image: repeating-linear-gradient(45deg, #eef2f6 0 8px, #e2e8f0 8px 16px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-thumb img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}
.img-thumb img.rot-90 { transform: rotate(90deg); }
.img-thumb img.rot-180 { transform: rotate(180deg); }
.img-thumb img.rot-270 { transform: rotate(270deg); }
.merge-file-mark {
  width: 64px; height: 64px; border-radius: 10px;
  background: #ef4444; color: #fff; font-weight: 800;
  display: grid; place-items: center;
}
.seq-badge {
  position: absolute; left: 0; top: 0; z-index: 1;
  min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 2px; background: #2f6bff; color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.img-name { font-weight: 700; word-break: break-all; }
.img-size { color: var(--muted); font-size: 0.88rem; margin: 2px 0 8px; }
.img-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.img-ops button {
  border: 0; background: transparent; color: #64748b;
  border-radius: 8px; padding: 6px 8px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.img-ops button:disabled { opacity: .35; cursor: not-allowed; }
.img-ops .danger { background: #fee2e2; color: #ef4444; }
.img-export-bar {
  background: #fff;
  gap: 18px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
}
.img-export-bar .btn {
  min-width: 210px;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  color: #fff;
  font-size: 1.05rem;
  background: linear-gradient(90deg, #5b7cfa 0%, #7b4dff 100%);
  box-shadow: 0 8px 18px rgba(91, 90, 230, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.img-export-bar .btn svg { stroke: #fff; }

.orders { max-width: 720px; margin: 28px auto 0; }
.orders h3 { margin: 0 0 10px; font-size: 1.15rem; }
.orders-note {
  background: #fef2f2;
  color: #dc2626;
  border-radius: 8px;
  border-left: 4px solid #ef4444;
  padding: 10px 12px;
  font-size: 0.9rem;
  line-height: 1.55;
}
.order-card {
  display: flex; gap: 12px; align-items: center;
  background: #fff; border-radius: 12px; padding: 12px; margin-top: 10px;
  box-shadow: var(--shadow);
}
.order-icon {
  width: 42px; height: 42px; border-radius: 10px; background: #7c3aed; color: #fff;
  display: grid; place-items: center; font-weight: 800; flex: none;
}
.order-main { min-width: 0; flex: 1; }
.order-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-time { color: #94a3b8; font-size: 0.85rem; margin-top: 2px; }
.order-actions { display: flex; gap: 8px; flex: none; }
.order-actions button { border: 0; border-radius: 8px; padding: 8px 14px; color: #fff; font-weight: 700; }
.order-actions .del { background: #ef4444; }
.order-actions .dl { background: #3b82f6; }

.success-wrap { max-width: 560px; margin: 12px auto 0; text-align: center; }
.success-title {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #16a34a; font-size: 1.8rem; font-weight: 800; margin: 0 0 16px;
}
.success-title i {
  width: 36px; height: 36px; border-radius: 50%; background: #22c55e; color: #fff;
  display: grid; place-items: center; font-style: normal; font-size: 1.2rem;
}
.success-card {
  background: #fff; border-radius: 18px; padding: 28px 18px 22px;
  box-shadow: var(--shadow);
}
.pdf-mark {
  width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 14px;
  background: #ef4444; color: #fff; font-weight: 800; font-size: 1.25rem;
  display: grid; place-items: center;
}
.pdf-mark.zip { background: #7c3aed; }
.pdf-mark.jpg { background: #0284c7; }
.pdf-mark.docx { background: #2563eb; }
.file-title { color: #16a34a; font-weight: 700; word-break: break-all; margin: 0; }
.rename-row { margin: 12px 0 8px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.rename-btn {
  border: 0; background: #fef3c7; color: #2563eb; border-radius: 8px;
  padding: 6px 12px; font-weight: 700;
}
.rename-input {
  width: 168px; border: 1px solid #f6d36b; border-radius: 6px;
  padding: 7px 10px; font-size: 1rem; text-align: center; background: #fff;
  outline: none;
}
.rename-input:focus { border-color: #f5c542; box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.28); }
.doc-preview {
  position: fixed; inset: 0; z-index: 60;
  background: #e8ebf0;
  display: flex; flex-direction: column;
}
.doc-preview-scroll {
  flex: 1 1 auto; min-height: 0; overflow: auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px; padding: 28px 16px 20px;
}
.doc-preview-scroll.single .doc-page { margin-top: auto; margin-bottom: auto; }
.doc-preview-loading { color: #64748b; margin: auto; }
.doc-page {
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.16);
  line-height: 0;
}
.doc-page canvas { display: block; }
.doc-page img { display: block; max-width: min(780px, calc(100vw - 48px)); height: auto; }
.doc-preview-label {
  text-align: center; color: #1f2937; font-size: 15px;
  padding: 4px 0 8px; background: #e8ebf0;
}
.doc-exit-bar {
  min-height: 72px;
  background: linear-gradient(90deg, #5b7cfa 0%, #7b4dff 100%);
  display: flex; align-items: center; justify-content: center;
}
.doc-exit-bar button {
  border: 0; background: transparent; color: #fff;
  font-size: 1.2rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
}
.meta-line { color: #4d7c0f; margin: 4px 0; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.success-actions .btn { background: #22c55e; color: #fff; min-width: 140px; border-radius: 12px; }
.success-foot { color: #64748b; font-size: 0.85rem; line-height: 1.7; margin-top: 16px; }
.success-foot button { border: 0; background: none; color: #2563eb; font-weight: 700; padding: 0; cursor: pointer; }
.preview-frame { width: min(920px, 96vw); height: 78vh; border: 0; background: #fff; border-radius: 12px; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.panel h2 { margin: 0 0 6px; font-size: 1.35rem; }
.sub {  color: var(--muted); }

.drop {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 36px 16px;
  text-align: center;
  background: #f8fafc;
}
.drop.dragover { border-color: #0284c7; background: #f0f9ff; }
.drop strong { display: block; font-size: 1.15rem; margin-bottom: 6px; }
.drop p { margin: 0 0 14px; color: var(--muted); }

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  background: #e2e8f0;
  color: #0f172a;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, #0284c7, #7c3aed); color: #fff; }
.btn.danger { background: #fee2e2; color: #b91c1c; }
.btn.ghost { background: #fff; border: 1px solid var(--line); }

.file-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.file-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.thumb {
  width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #f1f5f9;
  display: grid; place-items: center; font-size: 1.6rem;
}
.file-name { font-weight: 700; word-break: break-all; }
.file-meta { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.file-ops { display: flex; gap: 6px; }
.file-ops button { padding: 6px 8px; }

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.fixed-actions {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94);
  border-top: 1px solid var(--line);
  z-index: 15;
}
.fixed-actions .btn { min-width: 140px; }

.info-grid { display: grid; gap: 8px; margin-bottom: 16px; }
.info-row { display: flex; gap: 8px; }
.info-row span { color: var(--muted); }

.split-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}
.split-option.selected { border-color: #0284c7; background: #f0f9ff; }
.split-option h3 { margin: 0 0 4px; font-size: 1rem; }
.split-option p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.inline-num { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.inline-num input { width: 72px; padding: 6px 8px; border-radius: 8px; border: 1px solid #cbd5e1; }

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.page-card {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}
.page-card canvas, .page-card img { width: 100%; height: auto; display: block; background: #f8fafc; }
.page-card .cap { text-align: center; font-size: 0.85rem; padding: 6px; color: var(--muted); }
.page-card.selected.delete { border-color: var(--danger); background: #fef2f2; }
.page-card.selected.extract { border-color: var(--ok); background: #f0fdf4; }
.page-card .mark {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid #cbd5e1;
}
.page-card.selected.delete .mark { background: var(--danger); border-color: var(--danger); }
.page-card.selected.extract .mark { background: var(--ok); border-color: var(--ok); }
.page-card.selected .mark::after {
  content: "";
  position: absolute; left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.sheet-mask, .modal-mask {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-mask { align-items: center; padding: 16px; }
.sheet, .modal {
  background: #fff;
  width: min(640px, 100%);
  border-radius: 18px 18px 0 0;
  padding: 18px;
  max-height: 90vh;
  overflow: auto;
}
.modal { border-radius: 18px; }
.service-qr-modal { width: min(360px, 100%); text-align: center; }
.service-qr-modal img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  display: block;
  margin: 12px auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.service-qr-modal .muted { color: var(--muted); margin: 0 0 8px; }
.service-qr-modal .btn { min-width: 120px; }
.font-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.font-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
}
.font-card.active { border-color: #0284c7; background: #f0f9ff; }
.font-card input { display: none; }
.font-card b { display: block; font-size: 1.2rem; }
.font-card small { color: var(--muted); }

.pdf-stage { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.pdf-page {
  position: relative;
  width: min(800px, 100%);
  background: #fff;
  box-shadow: var(--shadow);
}
.pdf-page canvas { width: 100%; height: auto; display: block; }
.sig-box {
  position: absolute;
  border: 1px dashed #7c3aed;
  background: rgba(255,255,255,.2);
  touch-action: none;
}
.sig-box img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.sig-box .x {
  position: absolute; top: -12px; right: -12px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: #ef4444; color: #fff; font-weight: 700;
}
.sig-box .handle {
  position: absolute; right: -7px; bottom: -7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #7c3aed; border: 2px solid #fff;
  cursor: nwse-resize;
}
.stamp {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 16;
  width: 84px;
  border: 0;
  background: transparent;
  color: #6d28d9;
  font-weight: 700;
}
.stamp .bubble {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  font-size: 0.8rem;
}
.stamp .stamp-img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: block;
}
.mizige {
  width: min(360px, 80vw);
  height: min(360px, 80vw);
  margin: 8px auto;
  position: relative;
  border: 2px solid #d1d5db;
  background:
    linear-gradient(#e5e7eb, #e5e7eb) center/100% 1px no-repeat,
    linear-gradient(#e5e7eb, #e5e7eb) center/1px 100% no-repeat,
    linear-gradient(to top right, transparent calc(50% - .5px), #e5e7eb, transparent calc(50% + .5px)),
    linear-gradient(to top left, transparent calc(50% - .5px), #e5e7eb, transparent calc(50% + .5px)),
    #fff;
  touch-action: none;
}
.mizige canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.char-row { display: flex; gap: 10px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }
.char-box {
  width: 64px; height: 64px; border: 1px dashed #cbd5e1; border-radius: 10px;
  display: grid; place-items: center; position: relative; background: #fff; cursor: pointer;
}
.char-box.current { border-color: #7c3aed; box-shadow: 0 0 0 2px rgba(124,58,237,.2); }
.char-box img { width: 100%; height: 100%; object-fit: contain; }
.char-box .del {
  position: absolute; top: -8px; right: -8px; width: 20px; height: 20px;
  border-radius: 50%; border: 0; background: #ef4444; color: #fff;
}
.preview-sign { max-width: 100%; max-height: 160px; background:
  linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
  linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
  linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
  linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
  background-size: 20px 20px;
  background-color: #fff;
}

.toast {
  position: fixed; left: 50%; top: 76px; transform: translateX(-50%);
  background: #0f172a; color: #fff; padding: 10px 14px; border-radius: 10px;
  z-index: 110; max-width: min(90vw, 480px); text-align: center;
}
.toast.error { background: #b91c1c; }

.wx-browser-guide {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(15, 23, 42, .72);
  color: #fff;
}
.wx-browser-guide-arrow {
  position: absolute; top: 8px; right: 18px;
  font-size: 36px; font-weight: 700; line-height: 1;
  animation: wx-guide-bounce 1.1s ease-in-out infinite;
}
@keyframes wx-guide-bounce {
  0%, 100% { transform: translate(0, 0); opacity: 1; }
  50% { transform: translate(4px, -6px); opacity: .75; }
}
.wx-browser-guide-card {
  position: absolute; left: 50%; top: 28%;
  transform: translateX(-50%);
  width: min(320px, calc(100vw - 40px));
  background: #fff; color: #0f172a;
  border-radius: 16px; padding: 18px 16px 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  text-align: center;
}
.wx-browser-guide-card h3 { margin: 0 0 8px; font-size: 18px; }
.wx-browser-guide-card p { margin: 0; color: #475569; font-size: 14px; line-height: 1.55; }
.wx-browser-guide-card p b { color: #0f172a; }
.wx-browser-guide-extra { margin-top: 8px !important; color: #64748b !important; font-size: 13px !important; }
.wx-browser-guide-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px;
}
.wx-browser-guide-actions .btn { min-width: 120px; }

.wx-zip-save-tip {
  margin: 0 12px 12px; padding: 10px 12px;
  background: #ecfdf5; color: #047857;
  border: 1px solid #a7f3d0; border-radius: 10px;
  font-size: 14px; text-align: center; line-height: 1.45;
}
.wx-zip-browser-btn {
  margin-left: auto;
  border: 0; background: transparent;
  color: #fff; font-size: 14px; padding: 8px 10px;
}
.loading-mask {
  position: fixed; inset: 0; background: rgba(255,255,255,.72);
  display: grid; place-items: center; z-index: 50;
}
.loading-card { background: #fff; padding: 18px 22px; border-radius: 14px; box-shadow: var(--shadow); font-weight: 700; }
.banner {
  background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 12px;
}
.hidden { display: none !important; }

.pay-mask.modal-mask { z-index: 80; background: rgba(0, 0, 0, .55); }
.service-qr-mask.modal-mask { z-index: 100; }
.pay-modal {
  width: min(390px, 92vw);
  background: #2b2b2b;
  color: #fff;
  border-radius: 14px;
  padding: 38px 18px 18px;
  position: relative;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.pay-close {
  position: absolute; top: 4px; right: 6px;
  border: 0; background: transparent; color: #e5e7eb;
  font-size: 22px; line-height: 1; padding: 4px 8px;
}
.pay-plans { display: flex; flex-direction: column; gap: 8px; }
.pay-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #3a3a3a;
  border: 1.5px solid transparent;
  border-radius: 10px;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}
.pay-plan.active { border-color: #3ddc84; }
.pay-plan-left { min-width: 0; flex: 1; }
.pay-plan .name { font-size: 15px; font-weight: 800; line-height: 1.25; }
.pay-plan .sub { color: #c4c4c4; font-size: 12px; line-height: 1.35; margin-top: 2px; }
.pay-plan .price {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  flex: none;
  white-space: nowrap;
}
.pay-plan.active .name,
.pay-plan.active .price { color: #3ddc84; }
.pay-wechat, .pay-verify, .pay-copy, .pay-back, .pay-cancel, .pay-confirm {
  width: 100%;
  border: 0;
  border-radius: 9px;
  font-weight: 800;
  margin-top: 8px;
}
.pay-wechat, .pay-verify { font-size: 16px; padding: 10px 8px; }
.pay-wechat { background: #22c55e; color: #fff; }
.pay-verify { background: #f5c518; color: #1f1f1f; }
.pay-wechat:disabled { opacity: .7; }
.pay-foot { color: #9ca3af; font-size: 11px; text-align: center; margin: 10px 0 2px; line-height: 1.5; }
.pay-foot button { border: 0; background: none; color: #93c5fd; padding: 0; font-weight: 700; }
.pay-label { color: #d1d5db; font-size: 12px; text-align: center; margin: 6px 0; line-height: 1.45; }
.pay-qr {
  width: min(200px, 64vw);
  height: auto;
  display: block;
  margin: 4px auto;
  background: #fff;
  border-radius: 8px;
}
.pay-msg {
  background: #1f1f1f;
  border-radius: 8px;
  padding: 8px 10px;
  color: #f3f4f6;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
}
.pay-copy, .pay-back, .pay-cancel { background: #3a3a3a; color: #fff; padding: 9px; }
.pay-phone-title {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  margin: 4px 0 12px;
  line-height: 1.45;
}
.pay-input {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 15px;
  margin-top: 2px;
  background: #3a3a3a;
  color: #fff;
  box-sizing: border-box;
}
.pay-input::placeholder { color: #9ca3af; }
.pay-phone-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.pay-phone-actions .pay-cancel,
.pay-phone-actions .pay-confirm {
  margin-top: 0;
  padding: 10px 8px;
  font-size: 15px;
}
.pay-confirm { background: #22c55e; color: #fff; }
.pay-confirm:disabled { opacity: .7; }

@media (max-width: 768px) {
  .tools-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .featured { grid-column: 1 / -1; }
  .tool-card { min-height: 132px; padding: 12px 8px; }
  .tool-title { font-size: 0.95rem; }
  .tool-desc { font-size: 0.75rem; }
  .featured-card .tool-title { font-size: 1.25rem; }
}
