:root {
  --brand: #0067e3;
  --brand-dark: #0059c3;
  --ink: #123b68;
  --muted: #5d7390;
  --line: #dbe8f6;
  --surface: #fff;
  --page: #f4f8fc;
  --shadow: 0 12px 35px rgba(0, 74, 173, 0.08);
}

html { scroll-behavior: smooth; }
body { background: var(--page); color: var(--ink); }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
a { color: var(--brand); }
.site-brand-title { letter-spacing: .02em; }

.intro-box { background: #0067e3 !important; }
.intro-box .h1-des { max-width: 860px; }
.intro-points span { box-shadow: 0 6px 16px rgba(0, 62, 145, .12); }

.home-section { padding: 70px 0 10px; }
.section-head { margin-bottom: 28px; }
.section-head h2 { color: var(--ink); margin-bottom: 12px; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.product-box__grid .cell { margin-bottom: 24px; }
.product-box-item { min-height: 258px; display: flex; flex-direction: column; justify-content: flex-start; padding: 26px 24px 22px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, #fff 0%, #fbfdff 100%); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product-box-item:hover { transform: translateY(-3px); border-color: #b8d4f4; box-shadow: 0 18px 40px rgba(0, 74, 173, .13); text-decoration: none; }
.product-box-item__tag { align-self: flex-start; margin-bottom: 16px; padding: 5px 11px; border-radius: 999px; background: #eef6ff; color: var(--brand); font-size: 13px; line-height: 1.3; }
.product-box-item__name { color: var(--ink); font-size: 28px; font-weight: 700; line-height: 1.35; }
.product-box-item__intro { min-height: 54px; margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.product-box-item__btn { align-self: flex-start; margin-top: auto; padding: 11px 30px; border-radius: 10px; background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(0, 103, 227, .2); font-size: 14px; }
.product-box-item:hover .product-box-item__btn { background: #0e72ec; }

.why-us, .scene-box { padding: 56px 0 12px; }
.why-us { background: #eef5fc; }
.why-us__grid .cell, .scene-box__grid .cell { margin-bottom: 22px; }
.why-us-item, .scene-item { height: 100%; padding: 24px 22px; border-radius: 16px; background: rgba(255, 255, 255, .86); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 74, 173, .05); }
.why-us-item__img { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 14px; background: #edf6ff; color: var(--brand); font-size: 23px; }
.why-us-item__img img { width: 30px; height: 30px; object-fit: contain; }
.why-us-item__name, .scene-item__name { color: var(--ink); font-size: 18px; font-weight: 700; }
.why-us-item__intro, .scene-item__intro { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.scene-box { background: #fff; }
.scene-item { display: flex; gap: 14px; align-items: flex-start; }
.scene-item__icon { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #eef6ff; color: var(--brand); font-size: 18px; }
.risk-note { margin: 34px 0 0; padding: 14px 18px; border: 1px solid #f3df9f; border-radius: 12px; background: #fff9e8; color: #87660c; font-size: 13px; line-height: 1.8; text-align: center; }

.support-float { position: fixed; z-index: 20; right: 24px; bottom: 130px; display: grid; gap: 10px; }
.support-float a { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #cfe3fb; border-radius: 14px; background: rgba(255, 255, 255, .94); color: var(--brand); box-shadow: 0 10px 26px rgba(0, 74, 173, .12); font-size: 23px; }
.support-float a:hover { transform: translateY(-2px); color: var(--brand-dark); }

.tool-page main { min-height: 600px; }
.tool-intro { padding: 8px 0 32.5px; margin-top: -1px; background: #0067e3 !important; color: #fff; text-align: center; }
.tool-intro h1 { margin: 0 0 10px; color: #fff; font-size: 32px; line-height: 1.3; }
.tool-intro p { max-width: 820px; margin: 0 auto; color: rgba(255, 255, 255, .92); font-size: 16px; line-height: 1.5; }
.tool-shell { padding: 24px 15px 10px; box-sizing: border-box; }
body.page-tool .tool-workspace > .tool-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.tool-notice-bar .fa { margin-right: 5px; color: var(--brand); }
.maker-tool-ui { padding-top: 36px !important; }
.maker-tool-ui > .tool-grid { display: flex; flex-direction: column; margin: 0 22px; }
.maker-tool-ui > .tool-grid > .tool-field:has(#maker-region) { order: 80; }
.maker-tool-ui > .tool-grid > .tool-field:has([name="maker-format"]) { order: 70; }
.maker-tool-ui > .tool-grid > .tool-field:has(#maker-quantity),
.maker-tool-ui > .tool-grid > .tool-field:has(#maker-preview) { order: 90; }
.maker-tool-ui > .tool-grid > .tool-field { margin-bottom: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
body.page-tool .maker-tip { margin: 0 22px 16px; padding: 10px 14px; }
body.page-tool .maker-tip .tool-notice-bar__text { line-height: 1.65; }
.tool-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.tool-card + .tool-card { margin-top: 18px; }
.tool-card h2, .tool-card h3 { margin-top: 0; color: var(--ink); }
.tool-card h2 { font-size: 20px; }
.tool-card h3 { font-size: 16px; }
.tool-card p, .tool-card li { color: var(--muted); font-size: 14px; line-height: 1.85; }
.tool-card label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; font-weight: 700; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-field { min-width: 0; }
.tool-field--wide { grid-column: 1 / -1; }
.tool-input, .tool-select, .tool-textarea { width: 100%; box-sizing: border-box; border: 1px solid #cddded; border-radius: 9px; background: #fff; color: #284e76; font-size: 14px; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.tool-input, .tool-select { height: 42px; padding: 0 12px; }
.tool-textarea { min-height: 140px; padding: 12px; resize: vertical; line-height: 1.7; }
.tool-input:focus, .tool-select:focus, .tool-textarea:focus { border-color: #6caaf3; box-shadow: 0 0 0 3px rgba(0, 103, 227, .1); }
.tool-help { margin-top: 6px; color: #7b91aa; font-size: 12px; line-height: 1.6; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.tool-button { min-height: 40px; padding: 0 18px; border: 1px solid var(--brand); border-radius: 9px; background: var(--brand); color: #fff; font-size: 14px; }
.tool-button:hover { background: #0e72ec; }
.tool-button.secondary { border-color: #cbdced; background: #f6f9fd; color: #48657f; }
.tool-button.secondary:hover { background: #eef5fc; }
.tool-button.ghost { border-color: transparent; background: transparent; color: var(--brand); }
.tool-button.danger { border-color: #e06a6a; background: #fff3f3; color: #b52e2e; }
.tool-checks { display: flex; flex-wrap: wrap; gap: 9px 15px; }
.tool-check { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; color: #4e6b88 !important; font-size: 13px !important; font-weight: 400 !important; }
.tool-check input { accent-color: var(--brand); }
.tool-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tool-tab { padding: 9px 14px; border: 1px solid #d5e4f4; border-radius: 999px; background: #f8fbff; color: #52708d; font-size: 13px; }
.tool-tab.active { border-color: #9dc5f4; background: #edf6ff; color: var(--brand); font-weight: 700; }
body.page-tool .tool-tabs { display: flex; flex-wrap: nowrap; gap: 4px; margin: 0 0 20px; padding: 8px 8px 0; border: 1px solid #e1ebf6; background: #fbfdff; overflow-x: auto; }
body.page-tool .tool-tabs .tool-tab { flex: 1 0 0; min-width: 0; padding: 10px 8px; border: 0; border-radius: 9px 9px 0 0; background: #edf4fd; color: #52708d; text-align: center; white-space: nowrap; }
body.page-tool .tool-tabs .tool-tab.active { background: #2f8cff; color: #fff; box-shadow: 0 -1px 0 #2f8cff; }
body.page-tool:has(.number-tool-ui) .tool-card-app { padding: 0; }
body.page-tool .number-tool-ui > .tool-grid:first-child { display: flex; align-items: center; gap: 14px; height: 56px; min-height: 56px; padding: 0 15px; box-sizing: border-box; border: 1px solid #dbe7f5; border-radius: 12px; background: #fbfdff; }
body.page-tool .number-tool-ui > .tool-grid:first-child > .tool-field:first-child { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; height: 42px; margin: 0; }
body.page-tool .number-tool-ui > .tool-grid:first-child > .tool-field:first-child label { margin: 0; white-space: nowrap; }
body.page-tool .number-tool-ui > .tool-grid:first-child > .tool-field:first-child .tool-select { width: 160px; }
body.page-tool .number-tool-ui > .tool-grid:first-child > .tool-field:nth-child(2) { flex: 0 0 300px; height: 42px; margin: 0; }
body.page-tool .number-tool-ui > .tool-grid:first-child > .tool-field:nth-child(2) > label { display: none; }
body.page-tool .number-tool-ui > .tool-tabs { min-height: 49px; margin-top: 16px; }
body.page-tool .phone-tool-ui > .tool-tabs, body.page-tool .text-tool-ui > .tool-tabs { min-height: 45px; }
.tool-notice-bar--large { min-height: 97px; box-sizing: border-box; align-items: flex-start !important; }
.number-tool-ui { margin-top: 10px; }
.vcf-tool-ui > .tool-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.qrcode-tool-ui > .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
body.page-tool .text-tool-ui > .tool-tabs { margin-right: 62px; margin-left: 62px; }
.tool-result { margin-top: 18px; padding: 15px; border: 1px solid #dbe8f6; border-radius: 10px; background: #f8fbff; }
.qr-confirm-dialog { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(18, 59, 104, .32); }
.qr-confirm-dialog__panel { width: min(420px, 100%); padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 22px 60px rgba(18, 59, 104, .2); }
.qr-confirm-dialog__title { color: var(--ink); font-size: 16px; font-weight: 700; }
.qr-confirm-dialog__panel p { margin: 14px 0 0; color: var(--muted); line-height: 1.7; }
.qr-confirm-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.tool-result__title { color: var(--ink); font-size: 14px; font-weight: 700; }
.tool-result__meta { margin-top: 5px; color: #6a849d; font-size: 12px; }
.tool-result__text { width: 100%; min-height: 150px; margin-top: 10px; box-sizing: border-box; border: 1px solid #d4e3f3; border-radius: 8px; background: #fff; color: #294f74; line-height: 1.65; }
.tool-table-wrap { overflow-x: auto; margin-top: 12px; }
.tool-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tool-table th, .tool-table td { padding: 10px 11px; border-bottom: 1px solid #e4edf7; text-align: left; white-space: nowrap; }
.tool-table th { background: #f1f7fd; color: #3b5f82; font-weight: 700; }
.tool-table td { color: #54708b; }
.tool-chip { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #edf6ff; color: var(--brand); font-size: 12px; }
.tool-chip.warn { background: #fff7e6; color: #a26d13; }
.tool-chip.danger { background: #fff1f1; color: #b43131; }
.tool-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.tool-stat { padding: 15px; border: 1px solid #dce9f6; border-radius: 10px; background: #fbfdff; }
.tool-stat strong { display: block; color: var(--brand); font-size: 24px; }
.tool-stat span { color: #6d879f; font-size: 12px; }
.tool-faq { padding: 14px 0; border-bottom: 1px solid #e5eef7; }
.tool-faq:last-child { border-bottom: 0; }
.tool-faq h3 { margin-bottom: 6px; }
.tool-faq p { margin-bottom: 0; }
.free-notice { padding: 12px 14px; border: 1px solid #cfe3fb; border-radius: 10px; background: #f1f8ff; color: #436789; font-size: 13px; line-height: 1.75; }
.empty-state { padding: 26px 12px; color: #7890a8; text-align: center; font-size: 14px; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 15px; }
.qr-item { padding: 10px; border: 1px solid #dce8f4; border-radius: 10px; background: #fff; text-align: center; }
.qr-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; cursor: pointer; }
.qr-item span { display: block; overflow: hidden; margin-top: 7px; color: #6e879f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-drop { position: relative; min-height: 110px; display: grid; place-items: center; border: 2px dashed #c6d9ed; border-radius: 12px; background: #fafdff; color: #7690aa; text-align: center; }
.file-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop strong { display: block; margin-bottom: 4px; color: #4f6f8d; }
.mono { font-family: Consolas, Monaco, monospace; }

footer.site-footer .site-footer-brand p { max-width: 650px; }
footer.site-footer .site-footer-records { gap: 10px 18px; }

#toast-root { position: fixed; z-index: 100; top: 20px; right: 20px; display: grid; gap: 10px; width: min(360px, calc(100vw - 40px)); }
.toast { padding: 12px 15px; border: 1px solid #cfe3fb; border-radius: 10px; background: #fff; color: #355b7e; box-shadow: 0 12px 30px rgba(0, 45, 110, .15); font-size: 13px; line-height: 1.55; }
.toast.error { border-color: #efc2c2; background: #fff7f7; color: #a62f2f; }

@media (max-width: 760px) {
  .home-section { padding-top: 48px; }
  .product-box-item { min-height: 220px; padding: 22px 17px 18px; }
  .product-box-item__name { font-size: 23px; }
  .product-box-item__intro { font-size: 14px; }
  .why-us, .scene-box { padding-top: 42px; }
  .support-float { right: 12px; bottom: 84px; gap: 8px; }
  .support-float a { width: 44px; height: 44px; font-size: 19px; }
  .tool-intro { padding: 4px 0 22px; }
  .tool-intro h1 { font-size: 24px; }
  .tool-intro p { font-size: 13px; }
  .tool-shell { padding: 30px 10px 8px; }
  .tool-card { padding: 16px; }
  .tool-card.tool-card-app { padding: 10px; }
  .maker-tool-ui { padding-top: 22px !important; }
  .maker-tool-ui > .tool-grid { margin: 0 8px; }
  .maker-tool-ui > .tool-grid > .tool-field { padding: 12px 10px; }
  body.page-tool .maker-tip { margin: 0 8px 12px; padding: 8px 10px; }
  .tool-grid, .tool-grid--three { grid-template-columns: 1fr; }
  .vcf-tool-ui > .tool-grid, .qrcode-tool-ui > .tool-grid { grid-template-columns: 1fr; }
  .tool-field--wide { grid-column: auto; }
  .tool-stat-grid { grid-template-columns: 1fr; }
  .tool-actions { align-items: stretch; }
  .tool-button { flex: 1 1 auto; }
  body.page-tool .tool-tabs { margin-right: 0; margin-left: 0; }
  .text-tool-ui > .tool-tabs { margin-right: 0; margin-left: 0; }
  body.page-tool .number-tool-ui > .tool-grid:first-child { display: block; height: auto; min-height: 0; padding: 12px 10px; }
  body.page-tool .number-tool-ui > .tool-grid:first-child > .tool-field:first-child { display: block; }
  body.page-tool .number-tool-ui > .tool-grid:first-child > .tool-field:first-child label { display: block; margin-bottom: 7px; }
  body.page-tool .number-tool-ui > .tool-grid:first-child > .tool-field:first-child .tool-select { width: 100%; }
  body.page-tool .number-tool-ui > .tool-grid:first-child > .tool-field:nth-child(2) { width: auto; margin-top: 12px; }
  footer.site-footer .site-footer-bottom { display: block; }
  footer.site-footer .site-footer-records { justify-content: flex-start; margin-top: 12px; }
}
