/* 工具共用樣式（站內版）：選擇器都加了 body.ui26 .st-tool 範圍，按鈕底色加 !important 才蓋得過 ui26.css */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&family=Noto+Serif+TC:wght@700;900&family=Poppins:wght@800&display=swap');
body.ui26 .st-tool {
  --bg: #f2f6fc;
  --card: #ffffff;
  --ink: #1b2236;
  --muted: #5d6679;
  --faint: #8a93a6;
  --line: #e2e7f0;
  --line-strong: #cfd7e5;
  --brand: #10317e;
  --brand-deep: #0b2462;
  --brand-ink: #ffffff;
  --brand-soft: #edf2fb;
  --brand-tint: #cddaef;
  --accent: #ffd166;
  --accent-ink: #3b2a00;
  --accent-soft: #fff7dd;
  --ok: #1e7a4f;
  --ok-soft: #e7f4ee;
  --warn: #8a6100;
  --warn-soft: #fff6db;
  --bad: #b42d2d;
  --bad-soft: #fcebeb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 44, 108, .04), 0 8px 24px rgba(20, 44, 108, .06);
  --shadow-lg: 0 12px 40px rgba(20, 44, 108, .14);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
}
body.ui26 .st-tool, body.ui26 .st-tool * { box-sizing: border-box; }
body.ui26 .st-tool { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.ui26 .st-tool {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1200px 500px at 85% -10%, #e4ebf8 0%, rgba(228, 235, 248, 0) 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.ui26 .st-tool img { max-width: 100%; }
body.ui26 .st-tool a { color: var(--brand); text-underline-offset: 3px; }
body.ui26 .st-tool [hidden] { display: none !important; }
body.ui26 .st-tool ::selection { background: var(--brand-tint); }
body.ui26 .st-tool .wrap { max-width: 860px; margin: 0 auto; padding: 0 16px 40px; }
body.ui26 .st-tool .site-nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(16, 49, 126, .05); }
body.ui26 .st-tool .site-nav .in { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 80px; display: flex; align-items: center; gap: 28px; }
body.ui26 .st-tool .logo { flex: none; display: inline-flex; align-items: center; text-decoration: none; color: var(--brand); }
body.ui26 .st-tool .logo b { font-family: "Poppins", var(--font); font-size: 32px; font-weight: 800; letter-spacing: -.01em; line-height: 1; }
body.ui26 .st-tool .nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
body.ui26 .st-tool .nav-links a { color: #3a4255; text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
body.ui26 .st-tool .nav-links a:hover, body.ui26 .st-tool .nav-links a.on { color: var(--brand); }
body.ui26 .st-tool .nav-links a.on { font-weight: 700; }
body.ui26 .st-tool .nav-cta { display: flex; align-items: center; gap: 14px; flex: none; margin-left: auto; }
body.ui26 .st-tool .btn-vip { position: relative; display: inline-flex; align-items: center; gap: 6px; background: var(--accent) !important; color: var(--brand); font-weight: 900; font-size: 15px; text-decoration: none; padding: 0 20px; height: 46px; border-radius: 8px; border: 1px solid #f5c24a; white-space: nowrap; }
body.ui26 .st-tool .btn-vip::after { content: ""; position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: #e5484d !important; border: 2px solid #fff; }
body.ui26 .st-tool .btn-vip:hover { background: #ffc94d !important; }
body.ui26 .st-tool .btn-trial { display: inline-flex; align-items: center; background: var(--brand) !important; color: #fff; font-weight: 900; font-size: 15px; text-decoration: none; padding: 0 24px; height: 50px; border-radius: 8px; white-space: nowrap; box-shadow: 0 8px 18px rgba(16, 49, 126, .25); }
body.ui26 .st-tool .btn-trial:hover { background: var(--brand-deep) !important; }
body.ui26 .st-tool .nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--brand); cursor: pointer; align-items: center; justify-content: center; }
body.ui26 .st-tool .nav-drawer { display: none; }
@media (max-width: 1180px) {
body.ui26 .st-tool .nav-links a { font-size: 15px; padding: 8px 8px; }
body.ui26 .st-tool .site-nav .in { gap: 16px; }
}
@media (max-width: 1060px) {
body.ui26 .st-tool .nav-links, body.ui26 .st-tool .nav-cta { display: none; }
body.ui26 .st-tool .nav-toggle { display: inline-flex; }
body.ui26 .st-tool .site-nav .in { height: 64px; padding: 0 16px; }
body.ui26 .st-tool .logo b { font-size: 26px; }
body.ui26 .st-tool .nav-drawer { border-top: 1px solid var(--line); background: #fff; padding: 8px 16px 18px; }
body.ui26 .st-tool .nav-drawer.open { display: block; }
body.ui26 .st-tool .nav-drawer a.lk { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
body.ui26 .st-tool .nav-drawer a.lk.on { color: var(--brand); font-weight: 700; }
body.ui26 .st-tool .nav-drawer .cta2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
body.ui26 .st-tool .nav-drawer .cta2 a { justify-content: center; }
}
body.ui26 .st-tool .tool-head { padding: 28px 0 8px; }
body.ui26 .st-tool .crumb { font-size: 13px; color: var(--faint); margin-bottom: 18px; }
body.ui26 .st-tool .crumb a { color: var(--muted); text-decoration: none; }
body.ui26 .st-tool .crumb a:hover { color: var(--brand); }
body.ui26 .st-tool .pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; color: var(--ink); box-shadow: 0 1px 2px rgba(20, 44, 108, .04); }
body.ui26 .st-tool .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb36d; box-shadow: 0 0 0 3px rgba(47, 179, 109, .15); }
body.ui26 .st-tool .tool-head h1 { font-family: var(--serif); font-weight: 900; color: var(--brand); font-size: 34px; line-height: 1.3; letter-spacing: .01em; margin: 18px 0 10px; }
body.ui26 .st-tool .tool-head .lead { margin: 0; color: var(--muted); font-size: 17px; max-width: 640px; }
body.ui26 .st-tool .hl { background: linear-gradient(transparent 64%, var(--brand-tint) 64%); padding: 0 2px; }
@media (max-width: 560px) {
body.ui26 .st-tool .tool-head { padding-top: 20px; }
body.ui26 .st-tool .tool-head h1 { font-size: 27px; }
body.ui26 .st-tool .tool-head .lead { font-size: 16px; }
}
body.ui26 .st-tool .badges { display: none; }
body.ui26 .st-tool .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin: 18px 0; }
body.ui26 .st-tool .card h2 { font-size: 20px; font-weight: 700; color: var(--brand-deep); margin: 0 0 14px; letter-spacing: .01em; }
body.ui26 .st-tool .card h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 22px 0 10px; }
body.ui26 .st-tool .card > h3:first-child { margin-top: 0; }
@media (max-width: 560px) {
body.ui26 .st-tool .card { padding: 18px 16px; border-radius: 14px; } }
body.ui26 .st-tool .step { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; margin-right: 8px; vertical-align: 1px; flex: none; }
body.ui26 .st-tool .hint { font-size: 13.5px; color: var(--faint); margin: 6px 0 0; line-height: 1.6; }
body.ui26 .st-tool .note { font-size: 13.5px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 16px 0 0; line-height: 1.7; }
body.ui26 .st-tool .privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ok); background: var(--ok-soft); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 18px; }
body.ui26 .st-tool .privacy::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; background: currentColor; -webkit-mask: var(--i-lock) center / contain no-repeat; mask: var(--i-lock) center / contain no-repeat; }
body.ui26 .st-tool .note { display: flex; gap: 10px; align-items: flex-start; }
body.ui26 .st-tool .note::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; background: var(--brand); -webkit-mask: var(--i-info) center / contain no-repeat; mask: var(--i-info) center / contain no-repeat; }
body.ui26 .st-tool {
  --i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='10.5' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  --i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E");
  --i-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5L2.5 20h19L12 3.5z'/%3E%3Cpath d='M12 10v4.5M12 17.5v.3'/%3E%3C/svg%3E");
  --i-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H10l-5 4v-4H4z'/%3E%3C/svg%3E");
  --i-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M9.5 11h6M9.5 15h6'/%3E%3C/svg%3E");
  --i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='6.5' y='2.5' width='11' height='19' rx='2.5'/%3E%3Cpath d='M11 18.5h2'/%3E%3C/svg%3E");
  --i-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2.5'/%3E%3Ccircle cx='9' cy='9.5' r='1.8'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/svg%3E");
  --i-palette: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18c1.4 0 2-1 2-2 0-1.6-1.5-1.6-1.5-3 0-1 .8-1.8 2-1.8H17a4 4 0 0 0 4-4C21 6.4 17 3 12 3z'/%3E%3Ccircle cx='7.5' cy='11' r='1'/%3E%3Ccircle cx='10' cy='7' r='1'/%3E%3Ccircle cx='15' cy='7.5' r='1'/%3E%3C/svg%3E");
  --i-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z'/%3E%3C/svg%3E");
  --i-star-o: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z'/%3E%3C/svg%3E");
  --i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  --i-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3C/svg%3E");
}
body.ui26 .st-tool .ic { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; flex: none; }
body.ui26 .st-tool .ic { margin-right: .35em; }
body.ui26 .st-tool .ic-lock { --i: var(--i-lock); }
body.ui26 .st-tool .ic-info { --i: var(--i-info); }
body.ui26 .st-tool .ic-warn { --i: var(--i-warn); color: var(--warn); }
body.ui26 .st-tool .ic-chat { --i: var(--i-chat); }
body.ui26 .st-tool .ic-doc { --i: var(--i-doc); }
body.ui26 .st-tool .ic-phone { --i: var(--i-phone); }
body.ui26 .st-tool .ic-image { --i: var(--i-image); }
body.ui26 .st-tool .ic-palette { --i: var(--i-palette); }
body.ui26 .st-tool .ic-star { --i: var(--i-star); color: var(--accent); }
body.ui26 .st-tool .ic-star-o { --i: var(--i-star-o); }
body.ui26 .st-tool .ic-x { --i: var(--i-x); margin-right: 0; }
body.ui26 .st-tool .ic-box { --i: var(--i-box); }
body.ui26 .st-tool label { display: block; font-weight: 700; font-size: 15px; color: var(--ink); margin: 18px 0 8px; }
body.ui26 .st-tool label:first-child { margin-top: 0; }
body.ui26 .st-tool input[type=text], body.ui26 .st-tool input[type=number], body.ui26 .st-tool input[type=url], body.ui26 .st-tool input[type=tel], body.ui26 .st-tool input[type=email], body.ui26 .st-tool input[type=search], body.ui26 .st-tool input[type=date], body.ui26 .st-tool input[type=datetime-local], body.ui26 .st-tool input[type=time], body.ui26 .st-tool input[type=month], body.ui26 .st-tool select, body.ui26 .st-tool textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; 
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
body.ui26 .st-tool select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235d6679' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
body.ui26 .st-tool input[type=checkbox], body.ui26 .st-tool input[type=radio] { accent-color: var(--brand); width: 18px; height: 18px; vertical-align: -3px; }
body.ui26 .st-tool input[type=color] { width: 48px; height: 48px; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
body.ui26 .st-tool input[type=file] { font: inherit; font-size: 15px; max-width: 100%; }
body.ui26 .st-tool input[type=file]::file-selector-button { font: inherit; font-weight: 700; color: var(--brand); background: var(--brand-soft); border: 0; border-radius: 8px; padding: 9px 14px; margin-right: 10px; cursor: pointer; }
body.ui26 .st-tool input[type=range] { accent-color: var(--brand); width: 100%; }
body.ui26 .st-tool textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
body.ui26 .st-tool input::placeholder, body.ui26 .st-tool textarea::placeholder { color: #a3abbb; }
body.ui26 .st-tool input:hover, body.ui26 .st-tool select:hover, body.ui26 .st-tool textarea:hover { border-color: #b5c0d4; }
body.ui26 .st-tool input:focus, body.ui26 .st-tool select:focus, body.ui26 .st-tool textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(16, 49, 126, .12); }
body.ui26 .st-tool .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
body.ui26 .st-tool .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 560px) {
body.ui26 .st-tool .grid2, body.ui26 .st-tool .grid3 { grid-template-columns: 1fr; } }
body.ui26 .st-tool .chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.ui26 .st-tool .chips label { margin: 0; font-weight: 500; }
body.ui26 .st-tool .chips input { position: absolute; opacity: 0; pointer-events: none; }
body.ui26 .st-tool .chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; cursor: pointer; font-size: 15px; color: var(--ink); transition: background .15s, border-color .15s, color .15s; }
body.ui26 .st-tool .chips span:hover { border-color: var(--brand); color: var(--brand); }
body.ui26 .st-tool .chips input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
body.ui26 .st-tool .chips input:focus-visible + span { outline: 3px solid rgba(16, 49, 126, .3); outline-offset: 2px; }
body.ui26 .st-tool .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 15px; letter-spacing: .02em;
  padding: 11px 22px; border-radius: var(--radius-sm); border: 1px solid var(--brand);
  background: var(--brand) !important; color: var(--brand-ink); cursor: pointer; text-decoration: none;
  min-height: 48px;
  box-shadow: 0 6px 16px rgba(16, 49, 126, .18);
  transition: background .15s, box-shadow .15s, transform .05s;
}
body.ui26 .st-tool .btn:hover { background: var(--brand-deep) !important; border-color: var(--brand-deep); }
body.ui26 .st-tool .btn:active { transform: translateY(1px); }
body.ui26 .st-tool .btn:focus-visible { outline: 3px solid rgba(16, 49, 126, .35); outline-offset: 2px; }
body.ui26 .st-tool .btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
body.ui26 .st-tool .btn.ghost { background: #fff !important; color: var(--brand); border-color: var(--line-strong); box-shadow: none; }
body.ui26 .st-tool .btn.ghost:hover { background: var(--brand-soft) !important; border-color: var(--brand); }
body.ui26 .st-tool .btn.accent { background: var(--accent) !important; border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(255, 209, 102, .3); }
body.ui26 .st-tool .btn.accent:hover { background: #ffc53d !important; border-color: #ffc53d; }
body.ui26 .st-tool .btn.small { padding: 6px 14px; font-size: 14px; min-height: 38px; box-shadow: none; }
body.ui26 .st-tool .btn.block { width: 100%; }
body.ui26 .st-tool .btn.big { font-size: 17px; padding: 14px 28px; min-height: 56px; }
body.ui26 .st-tool .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 560px) {
body.ui26 .st-tool .row > .btn.big, body.ui26 .st-tool .row > .btn:first-child:not(.small) { flex: 1 1 100%; }
}
body.ui26 .st-tool #result { scroll-margin-top: 80px; border-top: 4px solid var(--brand); }
body.ui26 .st-tool .result-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
body.ui26 .st-tool .result-title h2 { margin: 0; }
body.ui26 .st-tool .big-num { font-size: 44px; font-weight: 900; color: var(--brand-deep); line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
body.ui26 .st-tool .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
body.ui26 .st-tool .stat { background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; }
body.ui26 .st-tool .stat .k { font-size: 13px; color: var(--muted); }
body.ui26 .st-tool .stat .v { font-size: 26px; font-weight: 900; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
body.ui26 .st-tool .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; }
body.ui26 .st-tool table { width: 100%; border-collapse: collapse; font-size: 15px; }
body.ui26 .st-tool th, body.ui26 .st-tool td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
body.ui26 .st-tool tr:last-child td { border-bottom: 0; }
body.ui26 .st-tool th { background: #f7f9fc; font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
body.ui26 .st-tool td.num, body.ui26 .st-tool th.num { text-align: right; font-variant-numeric: tabular-nums; }
body.ui26 .st-tool .tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
body.ui26 .st-tool .tag.ok { background: var(--ok-soft); color: var(--ok); }
body.ui26 .st-tool .tag.warn { background: var(--warn-soft); color: var(--warn); }
body.ui26 .st-tool .tag.bad { background: var(--bad-soft); color: var(--bad); }
body.ui26 .st-tool tr.warn td { background: var(--warn-soft); }
body.ui26 .st-tool tr.bad td { background: var(--bad-soft); }
body.ui26 .st-tool tr.ok td { background: var(--ok-soft); }
body.ui26 .st-tool .out { white-space: pre-wrap; background: #f8fafd; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 8px 0; line-height: 1.8; }
body.ui26 .st-tool .out-block { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 12px 0; background: #fff; }
body.ui26 .st-tool .out-block .out-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
body.ui26 .st-tool .out-block .out-head strong { font-size: 15px; color: var(--brand-deep); }
body.ui26 .st-tool .score-ring { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; font-weight: 900; margin: 0 auto 8px; color: var(--brand-deep); }
body.ui26 .st-tool .ai-badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }
body.ui26 .st-tool .loading { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
body.ui26 .st-tool .btn.ghost .loading { border-color: rgba(16, 49, 126, .2); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
body.ui26 .st-tool .next-card { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; border-radius: var(--radius); padding: 24px; margin: 24px 0; box-shadow: var(--shadow-lg); }
body.ui26 .st-tool .next-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
body.ui26 .st-tool .next-card .next-label { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .2em; }
body.ui26 .st-tool .next-card p { margin: 8px 0 0; font-size: 17px; font-weight: 700; line-height: 1.6; position: relative; z-index: 1; }
body.ui26 .st-tool .next-card .row { position: relative; z-index: 1; }
body.ui26 .st-tool .next-card .btn { background: var(--accent) !important; border-color: var(--accent); color: var(--accent-ink); box-shadow: none; }
body.ui26 .st-tool .next-card .btn:hover { background: #ffc53d !important; border-color: #ffc53d; }
body.ui26 .st-tool .next-card .btn.ghost { background: transparent !important; border-color: rgba(255, 255, 255, .4); color: #fff; }
body.ui26 .st-tool .next-card .btn.ghost:hover { background: rgba(255, 255, 255, .1) !important; }
body.ui26 .st-tool .tool-foot { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 14px; }
body.ui26 .st-tool .tool-foot .in { max-width: 860px; margin: 0 auto; padding: 28px 16px 40px; text-align: center; }
body.ui26 .st-tool .foot-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
body.ui26 .st-tool .tool-foot p { margin: 0; }
body.ui26 .st-tool .tool-foot a { color: var(--brand); font-weight: 700; text-decoration: none; }
body.ui26 .st-tool .st-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--brand-deep); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; transition: .2s; pointer-events: none; z-index: 99; box-shadow: var(--shadow-lg); }
body.ui26 .st-tool .st-toast.show { opacity: 1; transform: translate(-50%, 0); }
body.ui26 .st-tool .print-only { display: none; }
@media print {
body.ui26 .st-tool { background: #fff; }
body.ui26 .st-tool .no-print, body.ui26 .st-tool .site-nav, body.ui26 .st-tool .tool-head, body.ui26 .st-tool .tool-foot, body.ui26 .st-tool .next-card, body.ui26 .st-tool .st-toast { display: none !important; }
body.ui26 .st-tool .print-only { display: block; }
body.ui26 .st-tool .card { box-shadow: none; border: 0; padding: 0; margin: 0; }
body.ui26 .st-tool #result { border-top: 0; }
body.ui26 .st-tool .wrap { max-width: none; padding: 0; }
}
body.ui26 .st-tool .st-toast { max-width: calc(100vw - 32px); width: max-content; box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; border-radius: 16px; }
body.ui26 .st-tool .tool-fit {margin:18px 0;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:14px;line-height:1.65;color:var(--ink);text-align:left}
body.ui26 .st-tool .tool-fit p {margin:5px 0;overflow-wrap:anywhere}
body.ui26 .st-tool .tool-fit summary, body.ui26 .st-tool .service-option summary {cursor:pointer;font-weight:700}
body.ui26 .st-tool .tool-fit details {margin-top:8px}
body.ui26 .st-tool .tool-fit summary {color:var(--brand)}
body.ui26 .st-tool .service-option {margin-top:20px;border-top:1px solid rgba(255,255,255,.3);padding-top:14px}
body.ui26 .st-tool .related-tools a {white-space:normal}
body.ui26 .st-tool .tool-item .tool-use {font-size:12px;color:var(--muted)}
body.ui26 .st-tool .filters>div {min-width:0}
body.ui26 .st-tool .filters select {max-width:100%}

@media(max-width:560px){
body.ui26 .st-tool .filters {position:static}
body.ui26 .st-tool .filters .chips {width:100%}}

/* 工具數據：瀏覽、使用、熱門度 */
body.ui26 .st-tool .tool-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
body.ui26 .st-tool .tool-stats > span { display: inline-flex; align-items: baseline; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
body.ui26 .st-tool .tool-stats em { font-style: normal; color: var(--muted); font-size: 13px; }
body.ui26 .st-tool .tool-stats b { color: var(--brand); font-variant-numeric: tabular-nums; }
body.ui26 .st-tool .tool-stats small { color: var(--faint); font-size: 12px; }
body.ui26 .st-tool .tool-stats .hot i { font-style: normal; font-size: 13px; filter: grayscale(1); opacity: .3; }
body.ui26 .st-tool .tool-stats .hot i.on { filter: none; opacity: 1; }

/* 表格型工具的明細輸入（ops-grid.js）：電腦是表格，手機每列一張卡片 */
body.ui26 .st-tool .ops-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; }
body.ui26 .st-tool .ops-head strong { font-size: 17px; color: var(--ink); }
body.ui26 .st-tool .ops-count { font-size: 13px; color: var(--ok); font-weight: 700; }
body.ui26 .st-tool .ops-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
body.ui26 .st-tool .ops-upload { cursor: pointer; margin: 0; }
body.ui26 .st-tool .ops-upload:focus-within { outline: 3px solid rgba(16, 49, 126, .35); outline-offset: 2px; }
body.ui26 .st-tool .ops-hint { font-size: 13px; color: var(--muted); margin: 4px 0 8px; line-height: 1.7; }
body.ui26 .st-tool .ops-msg { font-size: 14px; margin: 0 0 8px; min-height: 0; }
body.ui26 .st-tool .ops-msg:empty { display: none; }
body.ui26 .st-tool .ops-msg.ok { color: var(--ok); background: var(--ok-soft); padding: 8px 12px; border-radius: 8px; }
body.ui26 .st-tool .ops-msg.bad { color: var(--bad); background: var(--bad-soft); padding: 8px 12px; border-radius: 8px; }
body.ui26 .st-tool .ops-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
body.ui26 .st-tool .ops-grid { width: 100%; border-collapse: collapse; font-size: 14px; }
body.ui26 .st-tool .ops-grid th { background: var(--brand-soft); color: var(--brand); text-align: left; font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: bottom; }
body.ui26 .st-tool .ops-grid th small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
body.ui26 .st-tool .ops-grid td { padding: 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
body.ui26 .st-tool .ops-grid tr:last-child td { border-bottom: 0; }
body.ui26 .st-tool .ops-grid input, body.ui26 .st-tool .ops-grid select { width: 100%; min-width: 96px; min-height: 40px; padding: 6px 8px; font-size: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; margin: 0; }
body.ui26 .st-tool .ops-grid input:focus, body.ui26 .st-tool .ops-grid select:focus { border-color: var(--brand); outline: 2px solid rgba(16, 49, 126, .15); }
body.ui26 .st-tool .ops-grid .ops-bad { border-color: var(--bad); background: var(--bad-soft); }
body.ui26 .st-tool .ops-grid .ops-n { width: 34px; text-align: center; color: var(--faint); font-variant-numeric: tabular-nums; }
body.ui26 .st-tool .ops-grid .ops-x { width: 40px; text-align: center; }
body.ui26 .st-tool .ops-del { width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--faint); font-size: 20px; line-height: 1; cursor: pointer; }
body.ui26 .st-tool .ops-del:hover { background: var(--bad-soft); color: var(--bad); }
body.ui26 .st-tool .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 640px) {
  body.ui26 .st-tool .ops-wrap { border: 0; background: transparent; overflow: visible; }
  body.ui26 .st-tool .ops-grid thead { display: none; }
  body.ui26 .st-tool .ops-grid, body.ui26 .st-tool .ops-grid tbody, body.ui26 .st-tool .ops-grid tr, body.ui26 .st-tool .ops-grid td { display: block; width: 100%; }
  body.ui26 .st-tool .ops-grid tr { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 30px 10px 8px; margin-bottom: 10px; }
  body.ui26 .st-tool .ops-grid td { border: 0; padding: 4px 0; display: grid; grid-template-columns: 38% 1fr; gap: 8px; align-items: center; }
  body.ui26 .st-tool .ops-grid td::before { content: attr(data-label); font-size: 13px; color: var(--muted); }
  body.ui26 .st-tool .ops-grid td.ops-n { position: absolute; top: 6px; left: 10px; width: auto; display: block; text-align: left; font-weight: 700; color: var(--brand); padding: 0; }
  body.ui26 .st-tool .ops-grid td.ops-n::before { content: '第 '; }
  body.ui26 .st-tool .ops-grid td.ops-n::after { content: ' 列'; }
  body.ui26 .st-tool .ops-grid td.ops-x { position: absolute; top: 2px; right: 4px; width: auto; display: block; padding: 0; }
  body.ui26 .st-tool .ops-grid td.ops-x::before { content: none; }
  body.ui26 .st-tool .ops-grid input, body.ui26 .st-tool .ops-grid select { min-width: 0; }
}
