/* 独立实用工具页，保持 GuYi Tools 暗色玻璃风格 */
.utility-tools-page {
    display: none;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    padding: 38px 28px 54px;
    box-sizing: border-box;
}
.ut-shell { width: 100%; max-width: 980px; margin: 0 auto; }
.ut-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin: 0 0 30px; }
.ut-heading-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ut-heading-icon { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 17px; color: #ff6b89; font-size: 25px; background: rgba(255,55,95,.11); border: 1px solid rgba(255,55,95,.2); }
.ut-kicker { color: rgba(255,131,157,.75); font-size: 9px; font-weight: 800; letter-spacing: .17em; margin-bottom: 6px; }
.ut-heading h1 { margin: 0; color: rgba(255,255,255,.94); font-size: 24px; line-height: 1.35; font-weight: 700; }
.ut-heading p { margin: 7px 0 0; color: rgba(255,255,255,.46); font-size: 12px; line-height: 1.65; }
.ut-back { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 9px 13px; background: rgba(255,255,255,.035); color: rgba(255,255,255,.68); font-size: 11px; cursor: pointer; white-space: nowrap; }
.ut-back:hover { color: white; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.07); }
.ut-card { padding: 24px; border-radius: 21px; background: rgba(10,10,16,.22); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 48px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.045); }
.ut-label { display: block; margin: 0 0 9px; color: rgba(255,255,255,.76); font-size: 12px; font-weight: 650; }
.ut-input { display: block; width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid rgba(255,255,255,.15); border-radius: 11px; outline: none; padding: 12px 14px; background: rgba(0,0,0,.22); color: rgba(255,255,255,.92); font: 13px/1.5 system-ui, sans-serif; transition: border-color .18s, background .18s; }
.ut-input::placeholder { color: rgba(255,255,255,.28); }
.ut-input:focus { border-color: rgba(255,55,95,.62); background: rgba(0,0,0,.34); }
.ut-input:disabled { opacity: .55; cursor: not-allowed; }
.ut-input-row { display: flex; align-items: stretch; gap: 10px; }
.ut-input-row .ut-input { flex: 1; }
.ut-primary, .ut-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 17px; border-radius: 11px; border: 1px solid rgba(255,255,255,.17); font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: .18s ease; }
.ut-primary { color: white; border-color: rgba(255,55,95,.5); background: rgba(255,55,95,.17); }
.ut-primary:hover { background: rgba(255,55,95,.27); border-color: rgba(255,55,95,.75); }
.ut-secondary { color: rgba(255,255,255,.78); background: rgba(255,255,255,.045); }
.ut-secondary:hover { background: rgba(255,255,255,.09); color: white; }
.ut-primary:disabled, .ut-secondary:disabled { opacity: .45; cursor: not-allowed; }
.ut-hint { margin: 11px 0 0; color: rgba(255,255,255,.36); font-size: 10px; line-height: 1.75; }
.ut-results { margin-top: 22px; }
.ut-message { display: flex; align-items: flex-start; gap: 9px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.035); color: rgba(255,255,255,.68); font-size: 11px; line-height: 1.7; }
.ut-message i { font-size: 16px; margin-top: 1px; color: rgba(255,255,255,.54); flex: 0 0 auto; }
.ut-message.ut-error { border-color: rgba(255,100,120,.24); background: rgba(255,70,90,.055); color: rgba(255,200,207,.86); }
.ut-message.ut-error i { color: #ff8294; }
.ut-message.ut-success { border-color: rgba(48,209,88,.2); background: rgba(48,209,88,.055); color: rgba(205,255,218,.85); }
.ut-message.ut-success i { color: #56d978; }
.ut-result-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 0 0 16px; }
.ut-result-top h2 { color: rgba(255,255,255,.92); font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.ut-result-top p { margin: 5px 0 0; color: rgba(255,255,255,.4); font-size: 10px; }
.ut-text-link, .ut-provider-note a, .ut-fallback-link a { color: #ff91a8; text-decoration: none; font-size: 10px; white-space: nowrap; }
.ut-text-link:hover, .ut-provider-note a:hover, .ut-fallback-link a:hover { text-decoration: underline; }
.ut-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.ut-result-item { min-width: 0; padding: 13px 14px; border: 1px solid rgba(255,255,255,.075); border-radius: 11px; background: rgba(255,255,255,.025); }
.ut-result-item span { display: block; margin-bottom: 6px; color: rgba(255,255,255,.38); font-size: 9px; }
.ut-result-item strong { display: block; color: rgba(255,255,255,.82); font-size: 11px; font-weight: 600; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.ut-raw { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 13px; }
.ut-raw summary { color: rgba(255,255,255,.48); font-size: 10px; cursor: pointer; }
.ut-raw pre { max-height: 360px; overflow: auto; margin-top: 12px; padding: 13px; border-radius: 10px; background: rgba(0,0,0,.28); color: rgba(255,255,255,.64); font: 10px/1.6 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.ut-fallback-link { margin: 12px 2px 0; }
.ut-provider-note { margin-top: 15px; color: rgba(255,255,255,.35); font-size: 10px; }
.ut-icp-record { margin-top: 13px; padding: 15px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.025); }
.ut-record-index { margin-bottom: 11px; color: rgba(255,255,255,.55); font-size: 10px; font-weight: 700; }
.ut-record-count { padding: 5px 9px; border: 1px solid rgba(48,209,88,.2); border-radius: 999px; color: #8fe6a6; font-size: 10px; white-space: nowrap; }
.ut-form-actions { display: flex; gap: 9px; margin-top: 15px; }
.ut-output-group { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
.ut-output-row { display: flex; align-items: stretch; gap: 8px; }
.ut-output-row .ut-input { flex: 1; }
.ut-copy { width: 44px; flex: 0 0 44px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.04); color: rgba(255,255,255,.7); cursor: pointer; }
.ut-copy:hover { color: white; background: rgba(255,255,255,.09); }
.ut-mono { font-family: ui-monospace, Consolas, monospace; }
.ut-textarea { min-height: 110px; resize: vertical; }
.ut-qr-options { display: grid; grid-template-columns: minmax(220px,1fr) 100px 100px; gap: 13px; margin-top: 16px; align-items: start; }
.ut-qr-level-field .ut-hint { margin-top: 7px; max-width: 380px; }
.ut-qr-content-hint { margin-top: 7px; }
.ut-qr-placeholder { display: block; max-width: 230px; padding: 20px; color: rgba(255,255,255,.38); font-size: 11px; line-height: 1.7; text-align: center; border: 1px dashed rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.02); }
.ut-color { width: 100%; height: 43px; padding: 4px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(0,0,0,.22); cursor: pointer; }
.ut-qr-preview-wrap { display: flex; justify-content: center; margin-top: 22px; padding: 20px; border: 1px dashed rgba(255,255,255,.15); border-radius: 15px; background: rgba(0,0,0,.13); }
.ut-qr-preview { min-width: 190px; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: rgba(255,255,255,.25); font-size: 10px; }
.ut-qr-preview canvas { display: block; width: min(100%, 420px); height: auto; image-rendering: pixelated; border-radius: 3px; }
.ut-qr-preview.has-qr { background: transparent; }
.ut-spin { animation: utSpin .8s linear infinite; }
@keyframes utSpin { to { transform: rotate(360deg); } }
@media (max-width: 767px) {
    .utility-tools-page { padding: calc(env(safe-area-inset-top,0px) + 26px) 16px 115px; }
    .ut-heading { gap: 10px; margin-bottom: 22px; }
    .ut-heading-main { gap: 11px; }
    .ut-heading-icon { width: 44px; height: 44px; border-radius: 14px; font-size: 21px; }
    .ut-heading h1 { font-size: 19px; }
    .ut-heading p { font-size: 10px; }
    .ut-back { padding: 8px 10px; font-size: 0; gap: 0; }
    .ut-back i { font-size: 16px; }
    .ut-card { padding: 17px; border-radius: 16px; }
    .ut-input-row { flex-direction: column; }
    .ut-input-row .ut-primary { width: 100%; }
    .ut-result-grid { grid-template-columns: 1fr; }
    .ut-result-top { flex-direction: column; }
    .ut-qr-options { grid-template-columns: 1fr 1fr; }
    .ut-qr-options > div:first-child { grid-column: 1 / -1; }
    .ut-form-actions { flex-wrap: wrap; }
}
