:root {
    --bg: #f0f2f5;
    --surface: rgba(255,255,255,0.92);
    --surface-strong: #ffffff;
    --surface-hover: rgba(255,255,255,0.98);
    --border: rgba(220,224,230,0.72);
    --border-hover: rgba(180,188,200,0.92);
    --text-main: #111827;
    --text-muted: #5f6b7a;
    --accent: #002577;
    --accent-2: #FF9D00;
    --accent-3: #7c3aed;
    --warning: #FF9D00;
    --shadow: rgba(0,0,0,0.06);
    --shadow-lg: rgba(0,0,0,0.1);
    --header-bg: rgba(255,255,255,0.76);
}

body.dark-mode {
    --bg: #1a1a1e;
    --surface: rgba(30,30,36,0.88);
    --surface-strong: #222228;
    --surface-hover: rgba(42,42,50,0.96);
    --border: rgba(50,50,60,0.72);
    --border-hover: rgba(75,75,88,0.92);
    --text-main: #eaeaea;
    --text-muted: #8a8fa0;
    --accent: #FF9D00;
    --accent-2: #FF9D00;
    --warning: #FF9D00;
    --shadow: rgba(0,0,0,0.45);
    --shadow-lg: rgba(0,0,0,0.6);
    --header-bg: rgba(22,22,26,0.86);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }
::selection { background: rgba(0,37,119,0.18); color: var(--text-main); }

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0,37,119,0.1), transparent 34vw),
        radial-gradient(circle at 82% 12%, rgba(255,157,0,0.075), transparent 28vw),
        var(--bg);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.35s ease, color 0.35s ease;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.dark-mode {
    background:
        radial-gradient(circle at top left, rgba(0,37,119,0.28), transparent 34vw),
        radial-gradient(circle at 82% 12%, rgba(255,157,0,0.12), transparent 28vw),
        var(--bg);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.32;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}

body.dark-mode::before { opacity: 0.12; }

a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 30px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
}

.logo-link { position: relative; display: inline-block; width: 163px; height: 43px; text-decoration: none; flex: 0 0 auto; }
.logo-link img { position: absolute; left: 0; top: 50%; height: 43px; width: auto; display: block; transform: translateY(-50%); transition: opacity 0.25s ease; }
.logo-light { opacity: 1; }
.logo-dark { opacity: 0; pointer-events: none; }
body.dark-mode .logo-light { opacity: 0; pointer-events: none; }
body.dark-mode .logo-dark { opacity: 1; pointer-events: auto; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.nav-btn:hover { transform: translateY(-2px); border-color: var(--border-hover); box-shadow: 0 8px 22px var(--shadow); }
.nav-btn:focus-visible, .primary-btn:focus-visible, .secondary-btn:focus-visible, .small-btn:focus-visible, .segmented button:focus-visible, .chip:focus-visible, .drop-zone:focus-visible, .input:focus-visible, .textarea:focus-visible, .select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0,37,119,0.14);
    border-color: rgba(0,37,119,0.48);
}
.nav-btn svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; }

.page-shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 72px; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 34px;
    align-items: center;
    min-height: 420px;
    padding: 34px 0 48px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 0%, rgba(0,37,119,0.12), transparent 34%),
        linear-gradient(145deg, var(--surface), rgba(255,255,255,0.62));
    box-shadow: 0 26px 86px -46px var(--shadow-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.dark-mode .hero-card {
    background:
        radial-gradient(circle at 12% 0%, rgba(0,37,119,0.18), transparent 34%),
        linear-gradient(145deg, var(--surface), rgba(42,42,50,0.66));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    margin-bottom: 18px;
    border: 1px solid rgba(0,37,119,0.18);
    border-radius: 999px;
    background: rgba(0,37,119,0.08);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 5px rgba(255,157,0,0.14); }

.hero h1 {
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.055em;
    font-weight: 920;
    margin-bottom: 18px;
}

.hero h1 span { color: var(--accent); }

.hero-desc {
    color: var(--text-muted);
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.75;
    max-width: 720px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.primary-btn, .secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.25s;
}

.primary-btn { color: #fff; background: var(--accent); box-shadow: 0 18px 40px -18px rgba(0,37,119,0.72); }
.secondary-btn { color: var(--text-main); background: var(--surface); border-color: var(--border); }
.primary-btn:hover, .secondary-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -24px var(--shadow-lg); }
.primary-btn svg, .secondary-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }

.hero-visual {
    position: relative;
    min-height: 360px;
    border-radius: 30px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 30px 90px -42px var(--shadow-lg);
}

.visual-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    filter: blur(34px);
    opacity: 0.65;
}

.visual-glow.blue { right: -70px; top: -70px; background: rgba(0,37,119,0.36); }
.visual-glow.green { left: -80px; bottom: -80px; background: rgba(0,193,118,0.34); }

.floating-panel {
    position: absolute;
    inset: 28px;
    display: grid;
    gap: 14px;
    align-content: center;
}

.floating-panel::after {
    content: "本地处理\A 浏览器内完成，结果可复制或导出";
    white-space: pre-line;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 15px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0,37,119,0.08), rgba(255,157,0,0.055)), rgba(255,255,255,0.7);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.55;
    backdrop-filter: blur(12px);
}

body.dark-mode .floating-panel::after { background: linear-gradient(135deg, rgba(143,177,255,0.12), rgba(255,157,0,0.08)), rgba(30,30,36,0.7); }

.mini-tool {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,0.68);
    backdrop-filter: blur(12px);
}

body.dark-mode .mini-tool { background: rgba(30,30,36,0.68); }

.mini-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(0,37,119,0.1);
    color: var(--accent);
}

.mini-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.mini-tool strong { display: block; font-size: 14px; margin-bottom: 3px; }
.mini-tool span { color: var(--text-muted); font-size: 12px; }
.mini-badge { padding: 5px 8px; border-radius: 999px; background: rgba(0,193,118,0.12); color: var(--accent-2); font-size: 11px; font-weight: 800; }

.section { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-kicker { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; margin-bottom: 8px; }
.section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 900; letter-spacing: -0.04em; }
.section-desc { color: var(--text-muted); margin-top: 8px; max-width: 720px; line-height: 1.7; }

.tools-filter {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0,37,119,0.06), rgba(0,193,118,0.035)), var(--surface);
    box-shadow: 0 18px 52px -46px var(--shadow-lg);
}
.tools-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}
.tools-search-input { min-height: 48px; }
.tool-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}
.tools-category-tabs { gap: 9px; }
.tool-empty { margin-bottom: 18px; }
.tool-card[hidden] { display: none; }

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-card {
    position: relative;
    min-height: 210px;
    padding: 22px 22px 70px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s, background 0.28s;
}

.tool-card:hover { transform: translateY(-4px); border-color: rgba(0,37,119,0.24); box-shadow: 0 22px 50px -32px var(--shadow-lg); background: var(--surface-hover); }
.tool-card.featured { grid-column: span 2; background: var(--surface); }
.tool-card > * { position: relative; z-index: 1; }
.tool-card::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: none;
    pointer-events: none;
}
.tool-card.featured::after { background: none; }
.tool-card.disabled { opacity: 0.72; cursor: default; }
.tool-card.disabled:hover { transform: none; box-shadow: none; border-color: var(--border); }
.tool-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 0; margin-bottom: 18px; background: transparent; color: var(--text-muted); opacity: 0.7; }
.tool-icon.green, .tool-icon.purple, .tool-icon.orange { background: transparent; color: var(--text-muted); }
.tool-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool-card h3 { font-size: 19px; font-weight: 900; letter-spacing: -0.025em; margin-bottom: 8px; }
.tool-card p { color: var(--text-muted); font-size: 13.5px; line-height: 1.68; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tool-tags span { padding: 5px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); background: rgba(255,255,255,0.34); font-size: 11px; font-weight: 750; }
body.dark-mode .tool-tags span { background: rgba(255,255,255,0.04); }
.card-arrow { position: absolute; right: 22px; top: 22px; width: 32px; height: 32px; min-width: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(0,37,119,0.12); border-radius: 50%; background: rgba(255,255,255,0.56); color: var(--text-muted); transition: transform 0.22s, color 0.22s, background 0.22s, border-color 0.22s; }
.card-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.tool-card:hover .card-arrow { transform: translate(2px, -2px); color: var(--accent); border-color: rgba(0,37,119,0.24); background: var(--surface-strong); }

.benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.benefit-card { padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 16px 44px -40px var(--shadow-lg); }
.benefit-card strong { display: block; font-size: 15px; margin-bottom: 8px; }
.benefit-card p { color: var(--text-muted); font-size: 13px; line-height: 1.65; }
.feature-block-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-block { padding: 20px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: 0 18px 52px -46px var(--shadow-lg); }
.feature-block h2 { font-size: 18px; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 8px; }
.feature-block p { color: var(--text-muted); font-size: 13px; line-height: 1.7; }

.tool-layout { display: grid; grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: 18px; align-items: start; padding-top: 24px; }
.panel { border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: 0 22px 68px -44px var(--shadow-lg); overflow: hidden; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s; }
.panel:hover { border-color: var(--border-hover); box-shadow: 0 24px 68px -46px var(--shadow-lg); }
.tool-layout > .panel:last-child { position: sticky; top: 86px; }
.panel-head { padding: 20px 22px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, rgba(0,37,119,0.045), transparent); }
.panel-head h2, .panel-head h3 { font-size: 18px; font-weight: 900; letter-spacing: -0.03em; }
.panel-head p { color: var(--text-muted); font-size: 13px; margin-top: 6px; line-height: 1.6; }
.panel-body { padding: 22px; }
.form-grid { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 850; color: var(--text-main); }
.field small { color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.input, .textarea, .select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-strong);
    color: var(--text-main);
    font: inherit;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.input, .select { min-height: 46px; padding: 11px 13px; }
.textarea { min-height: 136px; padding: 13px; resize: vertical; line-height: 1.65; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--border-hover); }
.input:focus, .textarea:focus, .select:focus { border-color: rgba(0,37,119,0.48); box-shadow: 0 0 0 4px rgba(0,37,119,0.1); }
.option-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.color-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; }
.color-row input[type="color"] { width: 48px; height: 44px; padding: 3px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-strong); cursor: pointer; }
.range-row { display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 12px; align-items: center; }
.range-row input[type="range"] { width: 100%; accent-color: var(--accent); }
.range-value { color: var(--text-muted); font-size: 12px; text-align: right; font-weight: 750; }
.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.segmented button, .chip {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-strong);
    color: var(--text-main);
    min-height: 42px;
    padding: 9px 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.25s;
}
.segmented button.active, .chip.active { border-color: rgba(0,37,119,0.42); background: linear-gradient(135deg, rgba(0,37,119,0.13), rgba(0,193,118,0.08)); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.32); }
.segmented button:hover, .chip:hover { transform: translateY(-1px); border-color: var(--border-hover); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.file-input { position: relative; display: grid; gap: 8px; }
.file-input input[type="file"], input[type="file"].input {
    min-height: 64px;
    padding: 12px;
    border: 1.5px dashed rgba(0,37,119,0.28);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0,37,119,0.07), rgba(0,193,118,0.05)), var(--surface-strong);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
}
.file-input input[type="file"]:hover, input[type="file"].input:hover {
    border-color: rgba(0,37,119,0.48);
    background: linear-gradient(135deg, rgba(0,37,119,0.1), rgba(0,193,118,0.07)), var(--surface-strong);
}
.file-input input[type="file"]:focus, input[type="file"].input:focus {
    border-color: rgba(0,37,119,0.56);
    box-shadow: 0 0 0 4px rgba(0,37,119,0.1);
}
.file-input input[type="file"]::file-selector-button, input[type="file"].input::file-selector-button {
    margin-right: 12px;
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--accent), #00a3ff);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}
body.dark-mode .file-input input[type="file"], body.dark-mode input[type="file"].input {
    border-color: rgba(255,157,0,0.34);
    background: linear-gradient(135deg, rgba(0,37,119,0.12), rgba(0,193,118,0.07)), var(--surface-strong);
}
.drop-zone {
    display: grid;
    gap: 6px;
    place-items: center;
    min-height: 88px;
    padding: 16px;
    border: 1.5px dashed rgba(0,37,119,0.3);
    border-radius: 18px;
    background: rgba(0,37,119,0.05);
    color: var(--text-muted);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.drop-zone strong { color: var(--text-main); font-size: 14px; }
.drop-zone span { font-size: 12px; line-height: 1.55; }
.drop-zone.drag-over { border-color: rgba(0,37,119,0.65); background: rgba(0,37,119,0.12); transform: translateY(-1px); }
.progress-wrap { display: grid; gap: 8px; margin-top: 10px; }
.progress-wrap[hidden] { display: none; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--text-muted); font-size: 12px; font-weight: 750; }
.progress-bar { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(0,37,119,0.12); }
.progress-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.2s ease; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.actions-row .primary-btn, .actions-row .secondary-btn { flex: 1; min-width: 130px; }
.preview-wrap { display: grid; place-items: center; min-height: 520px; padding: 22px; background: radial-gradient(circle at center, rgba(0,37,119,0.08), transparent 55%); }
.qr-stage { width: min(100%, 520px); aspect-ratio: 1; display: grid; place-items: center; padding: 24px; border: 1px dashed var(--border-hover); border-radius: 28px; background: rgba(255,255,255,0.5); }
body.dark-mode .qr-stage { background: rgba(255,255,255,0.04); }
#qrPreview { width: 100%; display: grid; place-items: center; }
#qrPreview svg { width: 100%; height: auto; max-width: 430px; filter: drop-shadow(0 16px 30px rgba(0,0,0,0.08)); }
.status { display: flex; align-items: center; justify-content: center; margin-top: 12px; min-height: 42px; padding: 10px 13px; border: 1px solid rgba(0,37,119,0.14); border-radius: 14px; background: linear-gradient(135deg, rgba(0,37,119,0.07), rgba(0,193,118,0.045)); color: var(--text-muted); font-size: 12px; text-align: center; line-height: 1.55; }
body.dark-mode .status { background: rgba(0,37,119,0.1); }
.info-list { display: grid; gap: 10px; margin-top: 16px; color: var(--text-muted); font-size: 13px; line-height: 1.65; }
.info-list li { margin-left: 18px; }
.empty-state { color: var(--text-muted); font-size: 14px; text-align: center; line-height: 1.7; padding: 46px 16px; border: 1px dashed var(--border-hover); border-radius: 18px; }
.image-result-list { display: grid; gap: 14px; }
.image-result-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-strong);
}
.image-preview {
    width: 112px;
    height: 112px;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: linear-gradient(45deg, rgba(0,0,0,0.04) 25%, transparent 25%), linear-gradient(-45deg, rgba(0,0,0,0.04) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.04) 75%), linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.04) 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.image-preview img { width: 100%; height: 100%; object-fit: contain; display: block; }
.image-meta { min-width: 0; }
.image-meta h3 {
    font-size: 14px;
    font-weight: 850;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.image-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.image-stats span {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0,37,119,0.08);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 750;
}
.image-stats span.good { color: var(--accent-2); background: rgba(0,193,118,0.12); }
.image-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.small-btn:hover { transform: translateY(-1px); border-color: var(--border-hover); box-shadow: 0 10px 22px -18px var(--shadow-lg); }
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
    align-items: stretch;
}
.metric-card {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-strong);
    min-height: 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.metric-card strong {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 6px;
}
.metric-card span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 750;
}
.output-textarea {
    min-height: 320px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
}
.table-preview-wrap {
    margin-bottom: 14px;
}
.zip-filter-controls {
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-strong);
}
.zip-filter-controls[hidden] { display: none; }
.zip-filter-controls .actions-row { margin-top: 0; }
.table-preview-scroll {
    overflow: auto;
    max-height: 360px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-strong);
}
.table-preview {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 12px;
}
.table-preview th,
.table-preview td {
    max-width: 220px;
    padding: 9px 10px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    color: var(--text-main);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table-preview th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(0,37,119,0.08);
    font-weight: 850;
}
.table-preview tr:last-child td { border-bottom: 0; }
.table-preview th:last-child,
.table-preview td:last-child { border-right: 0; }
.table-preview-note {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}
.table-checks input {
    margin-right: 6px;
    accent-color: var(--accent);
}
body.dark-mode .table-preview th { background: rgba(255,157,0,0.16); }
.pdf-workbench { grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr); gap: 20px; }
.pdf-workbench .pdf-control-panel { border-radius: 28px; }
.pdf-workbench .pdf-control-panel .panel-head { background: linear-gradient(135deg, rgba(229,50,45,0.08), rgba(0,37,119,0.04)); }
.pdf-workbench #pdfModeTabs { padding: 10px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-strong); grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.pdf-workbench .file-stage { padding: 16px; border: 1.5px dashed rgba(229,50,45,0.26); border-radius: 20px; background: linear-gradient(135deg, rgba(229,50,45,0.07), rgba(0,37,119,0.035)), var(--surface-strong); }
.pdf-workbench .pdf-result-panel .panel-body { min-height: 360px; background: radial-gradient(circle at top, rgba(229,50,45,0.08), transparent 56%); }
.image-studio { grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 20px; }
.image-studio .image-control-panel .panel-head { background: linear-gradient(135deg, rgba(40,181,86,0.08), rgba(0,37,119,0.035)); }
.image-studio .image-upload-field input[type="file"] { min-height: 96px; border-color: rgba(40,181,86,0.32); background: linear-gradient(135deg, rgba(40,181,86,0.08), rgba(0,37,119,0.035)), var(--surface-strong); }
.image-studio .chip-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.image-studio .image-result-panel .panel-body { min-height: 360px; background: radial-gradient(circle at top left, rgba(40,181,86,0.1), transparent 54%); }
.watermark-studio { grid-template-columns: minmax(340px, 460px) minmax(0, 1fr); gap: 20px; }
.watermark-studio .watermark-control-panel .panel-head { background: linear-gradient(135deg, rgba(40,181,86,0.08), rgba(255,138,0,0.035)); }
.watermark-studio .watermark-upload-stage, .watermark-studio .watermark-logo-stage { padding: 14px; border: 1px solid rgba(40,181,86,0.14); border-radius: 18px; background: rgba(40,181,86,0.035); }
.watermark-studio .watermark-upload-stage input[type="file"], .watermark-studio .watermark-logo-stage input[type="file"] { min-height: 84px; border-color: rgba(40,181,86,0.34); background: linear-gradient(135deg, rgba(40,181,86,0.08), rgba(255,138,0,0.04)), var(--surface-strong); }
.watermark-studio .watermark-result-panel .panel-body { min-height: 390px; background: radial-gradient(circle at top left, rgba(40,181,86,0.1), transparent 54%); }
.photo-studio { grid-template-columns: minmax(320px, 410px) minmax(0, 1fr); gap: 20px; }
.photo-studio .photo-control-panel .panel-head { background: linear-gradient(135deg, rgba(0,37,119,0.08), rgba(40,181,86,0.035)); }
.photo-studio .photo-upload-stage input[type="file"] { min-height: 96px; border-color: rgba(0,37,119,0.34); background: linear-gradient(135deg, rgba(0,37,119,0.08), rgba(40,181,86,0.04)), var(--surface-strong); }
.photo-studio .photo-result-panel .panel-body { min-height: 390px; background: radial-gradient(circle at top, rgba(0,37,119,0.08), transparent 56%); }
.qr-studio { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); grid-template-areas: "content preview" "style preview"; gap: 20px; }
.qr-studio .qr-content-panel { grid-area: content; }
.qr-studio .qr-style-panel { grid-area: style; }
.qr-studio .qr-preview-panel { grid-area: preview; position: sticky; top: 86px; }
.qr-studio .qr-content-panel .panel-head { background: linear-gradient(135deg, rgba(43,162,69,0.08), rgba(0,193,118,0.035)); }
.qr-studio .qr-style-panel .panel-head { background: linear-gradient(135deg, rgba(0,37,119,0.07), rgba(124,58,237,0.035)); }
.qr-studio .qr-preview-panel .panel-head { background: linear-gradient(135deg, rgba(17,24,39,0.05), rgba(0,37,119,0.035)); }
.qr-studio .preview-wrap { min-height: 520px; padding: 24px; background: radial-gradient(circle at 50% 38%, rgba(43,162,69,0.14), transparent 48%), radial-gradient(circle at center, rgba(0,37,119,0.08), transparent 58%); }
.qr-studio .preview-wrap > div { width: min(100%, 520px); display: grid; justify-items: center; }
.qr-studio .qr-stage { width: min(100%, 360px); margin: 0 auto; padding: 18px; border-radius: 26px; background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(0,193,118,0.055)); box-shadow: 0 24px 54px -42px var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.46); }
body.dark-mode .qr-studio .qr-stage { background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(143,177,255,0.06)); }
.qr-studio #qrPreview { display: grid; place-items: center; width: 100%; }
.qr-studio #qrPreview svg { max-width: 304px; display: block; margin: auto; }
.qr-studio .status, .qr-studio #qrMetricGrid { width: 100%; }
.qr-studio #qrMetricGrid { margin-top: 14px; }
.zip-workbench { grid-template-columns: minmax(320px, 430px) minmax(0, 1fr); gap: 20px; }
.zip-workbench .zip-control-panel .panel-head { background: linear-gradient(135deg, rgba(6,123,239,0.08), rgba(0,193,118,0.035)); }
.zip-workbench .zip-result-panel .panel-body { min-height: 380px; background: radial-gradient(circle at top right, rgba(6,123,239,0.08), transparent 56%); }
.zip-workbench .file-input { padding: 14px; border: 1px solid rgba(6,123,239,0.14); border-radius: 18px; background: rgba(6,123,239,0.035); }
.zip-workbench .drop-zone { min-height: 126px; border-color: rgba(6,123,239,0.36); background: linear-gradient(135deg, rgba(6,123,239,0.08), rgba(0,193,118,0.045)), var(--surface-strong); }
.table-workbench { grid-template-columns: minmax(340px, 460px) minmax(0, 1fr); gap: 20px; }
.table-workbench .table-input-panel .panel-head { background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(0,37,119,0.035)); }
.table-workbench .table-output-panel .panel-body { min-height: 420px; background: radial-gradient(circle at top left, rgba(124,58,237,0.08), transparent 54%); }
.table-workbench .table-text-stage .textarea { min-height: 180px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.table-workbench .table-file-stage { padding: 14px; border: 1px solid rgba(124,58,237,0.14); border-radius: 18px; background: rgba(124,58,237,0.035); }
.favicon-studio { grid-template-columns: minmax(320px, 410px) minmax(0, 1fr); gap: 20px; }
.favicon-studio .favicon-control-panel .panel-head { background: linear-gradient(135deg, rgba(0,37,119,0.08), rgba(255,138,0,0.035)); }
.favicon-studio .favicon-result-panel .panel-body { min-height: 380px; background: radial-gradient(circle at top, rgba(0,37,119,0.08), transparent 56%); }
.favicon-studio .favicon-upload-stage input[type="file"] { min-height: 96px; border-color: rgba(0,37,119,0.34); background: linear-gradient(135deg, rgba(0,37,119,0.08), rgba(255,138,0,0.04)), var(--surface-strong); }
.favicon-studio #faviconSizeOptions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.text-workbench, .dev-workbench { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr); gap: 20px; }
.text-workbench .text-input-panel .panel-head { background: linear-gradient(135deg, rgba(0,37,119,0.07), rgba(0,193,118,0.035)); }
.text-workbench .text-output-panel .panel-body { min-height: 420px; display: flex; flex-direction: column; background: radial-gradient(circle at top right, rgba(0,37,119,0.08), transparent 56%); }
.text-workbench #metricGrid { margin: auto 0; }
.text-workbench .text-editor-stage .textarea { min-height: 280px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.text-json-preview {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-strong);
}
.text-json-preview[hidden] { display: none; }
.text-json-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}
.text-json-preview-head strong { color: var(--text-main); font-size: 14px; }
.text-json-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.text-json-chip {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(0,37,119,0.08);
    color: var(--accent);
    font-size: 12px;
    font-weight: 850;
}
.text-json-chip.ok { color: #087443; background: rgba(0,193,118,0.12); }
.text-json-chip.error { color: #b42318; background: rgba(229,50,45,0.12); }
.text-json-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.text-json-summary span {
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 800;
}
.text-json-keys {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
}
.text-json-keys span {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0,37,119,0.07);
    color: var(--text-main);
    font-weight: 800;
}
.text-json-error-message {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(229,50,45,0.10);
    color: #b42318;
    font-size: 13px;
    font-weight: 800;
}
.text-json-snippet {
    display: grid;
    gap: 4px;
    max-height: 180px;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
}
.text-json-snippet div {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
}
.text-json-snippet strong { color: var(--text-muted); text-align: right; }
.text-json-snippet code {
    min-width: 0;
    color: var(--text-main);
    white-space: pre;
    overflow-wrap: normal;
}
.text-json-snippet .json-error-caret { color: #b42318; font-weight: 900; }
body.dark-mode .text-json-chip.error,
body.dark-mode .text-json-error-message { color: #ffb4ad; background: rgba(229,50,45,0.16); }
@media (max-width: 720px) {
    .text-json-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .text-json-preview-head { align-items: flex-start; flex-direction: column; }
}
.dev-workbench .dev-input-panel .panel-head { background: linear-gradient(135deg, rgba(52,152,219,0.08), rgba(124,58,237,0.035)); }
.dev-workbench .dev-output-panel .panel-body { min-height: 420px; display: flex; flex-direction: column; background: radial-gradient(circle at top right, rgba(52,152,219,0.08), transparent 56%); }
.dev-workbench .dev-editor-stage .textarea { min-height: 260px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.dev-visual-preview {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-strong);
}
.dev-visual-preview[hidden] { display: none; }
.dev-visual-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}
.dev-visual-preview-head strong { color: var(--text-main); font-size: 14px; }
.dev-preview-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dev-preview-chip {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(52,152,219,0.10);
    color: #1769aa;
    font-size: 12px;
    font-weight: 850;
}
.dev-preview-chip.ok { color: #087443; background: rgba(0,193,118,0.12); }
.dev-preview-chip.warn { color: #9a5b00; background: rgba(255,138,0,0.14); }
.dev-preview-chip.danger { color: #b42318; background: rgba(229,50,45,0.12); }
.dev-preview-chip.neutral { color: var(--text-muted); background: rgba(17,24,39,0.06); }
.dev-preview-warning {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,138,0,0.10);
    color: #8a4b00;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.7;
}
.dev-preview-error {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(229,50,45,0.10);
    color: #b42318;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.7;
}
.dev-preview-kv {
    display: grid;
    gap: 8px;
}
.dev-preview-kv-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    font-size: 12px;
}
.dev-preview-kv-row span { color: var(--text-muted); font-weight: 750; }
.dev-preview-kv-row strong {
    min-width: 0;
    color: var(--text-main);
    font-weight: 850;
    overflow-wrap: anywhere;
}
.dev-preview-kv-row.muted strong { color: var(--text-muted); font-weight: 750; }
.dev-preview-keys {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
}
.dev-preview-keys span {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(52,152,219,0.10);
    color: var(--text-main);
    font-weight: 800;
}
.dev-preview-keys em { font-style: normal; font-weight: 850; }
.dev-regex-highlight {
    max-height: 190px;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text-main);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.8;
}
.dev-regex-mark {
    padding: 1px 3px;
    border-radius: 5px;
    background: rgba(52,152,219,0.20);
    color: #0d4f8b;
    font-weight: 900;
}
.dev-regex-mark.empty {
    background: rgba(255,138,0,0.18);
    color: #8a4b00;
}
.dev-regex-match-list {
    display: grid;
    gap: 8px;
}
.dev-regex-match {
    display: grid;
    gap: 6px;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}
.dev-regex-match strong { color: var(--text-main); font-size: 12px; }
.dev-regex-match code {
    min-width: 0;
    color: var(--text-muted);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.dev-regex-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dev-regex-groups span {
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(124,58,237,0.10);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 800;
}
.dev-preview-empty,
.dev-preview-muted {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 750;
}
body.dark-mode .dev-preview-chip.warn,
body.dark-mode .dev-preview-warning,
body.dark-mode .dev-regex-mark.empty { color: #ffd29a; background: rgba(255,138,0,0.18); }
body.dark-mode .dev-preview-chip.danger,
body.dark-mode .dev-preview-error { color: #ffb4ad; background: rgba(229,50,45,0.16); }
body.dark-mode .dev-regex-mark { color: #bfe2ff; background: rgba(52,152,219,0.24); }
@media (max-width: 720px) {
    .dev-visual-preview-head { align-items: flex-start; flex-direction: column; }
    .dev-preview-kv-row { grid-template-columns: 1fr; }
}
.seo-workbench { grid-template-columns: minmax(340px, 460px) minmax(0, 1fr); gap: 20px; }
.seo-workbench .seo-config-panel .panel-head { background: linear-gradient(135deg, rgba(255,138,0,0.08), rgba(0,37,119,0.035)); }
.seo-workbench .seo-output-panel .panel-body { min-height: 420px; background: radial-gradient(circle at top left, rgba(255,138,0,0.08), transparent 54%); }
.seo-workbench .seo-text-stage .textarea { min-height: 220px; }
.seo-risk-preview {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-strong);
}
.seo-risk-preview[hidden] { display: none; }
.seo-risk-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}
.seo-risk-preview-head strong { color: var(--text-main); font-size: 14px; }
.seo-risk-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.seo-risk-chip {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}
.seo-risk-chip.ok { color: #087443; background: rgba(0,193,118,0.12); }
.seo-risk-chip.medium { color: #9a4c00; background: rgba(255,157,0,0.16); }
.seo-risk-chip.high { color: #b42318; background: rgba(229,50,45,0.12); }
.seo-risk-highlight {
    max-height: 220px;
    overflow: auto;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.seo-risk-mark {
    padding: 1px 4px;
    border-radius: 6px;
    color: inherit;
}
.seo-risk-mark.medium { background: rgba(255,157,0,0.22); box-shadow: inset 0 0 0 1px rgba(255,157,0,0.34); }
.seo-risk-mark.high { background: rgba(229,50,45,0.18); box-shadow: inset 0 0 0 1px rgba(229,50,45,0.32); }
body.dark-mode .seo-risk-chip.medium { color: #ffd28a; background: rgba(255,157,0,0.14); }
body.dark-mode .seo-risk-chip.high { color: #ffb4ad; background: rgba(229,50,45,0.16); }
.webmaster-workbench { grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); gap: 20px; }
.webmaster-workbench .webmaster-config-panel .panel-head { background: linear-gradient(135deg, rgba(67,149,255,0.08), rgba(0,37,119,0.035)); }
.webmaster-workbench .webmaster-output-panel .panel-body { min-height: 420px; background: radial-gradient(circle at top left, rgba(67,149,255,0.08), transparent 54%); }
.webmaster-workbench .webmaster-common-fields .textarea { min-height: 120px; }
.webmaster-preview {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-strong);
}
.webmaster-preview[hidden] { display: none; }
.webmaster-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}
.webmaster-preview-head strong { color: var(--text-main); font-size: 14px; }
.webmaster-search-card, .webmaster-social-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 16px 36px -30px var(--shadow-lg);
}
.webmaster-search-card { padding: 16px; }
.webmaster-search-url { color: #188038; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.webmaster-search-title { margin-top: 4px; color: #1a0dab; font-size: 18px; font-weight: 500; line-height: 1.35; }
.webmaster-search-desc { margin-top: 5px; color: var(--text-muted); font-size: 13px; line-height: 1.65; }
.webmaster-social-card {
    display: grid;
    grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
    overflow: hidden;
}
.webmaster-social-image {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 6px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(0,37,119,0.16), rgba(255,157,0,0.08));
    color: var(--text-main);
}
.webmaster-social-image strong { font-size: 14px; }
.webmaster-social-image span { color: var(--text-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.webmaster-social-content {
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 14px;
}
.webmaster-social-content strong { font-size: 15px; line-height: 1.45; }
.webmaster-social-content p { color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.webmaster-social-content span { color: var(--accent); font-size: 12px; font-weight: 800; }
.webmaster-preview-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.webmaster-preview-status {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}
.webmaster-preview-status.ok { color: #087443; background: rgba(0,193,118,0.12); }
.webmaster-preview-status.warn { color: #9a4c00; background: rgba(255,157,0,0.16); }
body.dark-mode .webmaster-search-title { color: #8fb1ff; }
body.dark-mode .webmaster-search-url { color: #7dd3a7; }
body.dark-mode .webmaster-preview-status.warn { color: #ffd28a; background: rgba(255,157,0,0.14); }
@media (max-width: 640px) {
    .webmaster-social-card { grid-template-columns: 1fr; }
    .webmaster-social-image { min-height: 112px; }
}
.calc-workbench { grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); gap: 20px; }
.calc-workbench .calc-input-panel .panel-head { background: linear-gradient(135deg, rgba(6,123,239,0.08), rgba(0,193,118,0.035)); }
.calc-workbench .calc-output-panel .panel-body { min-height: 420px; background: radial-gradient(circle at top, rgba(6,123,239,0.08), transparent 56%); }
.calc-workbench .calc-fields-stage { padding: 14px; border: 1px solid rgba(6,123,239,0.12); border-radius: 18px; background: rgba(6,123,239,0.035); }
.generator-workbench { grid-template-columns: minmax(340px, 450px) minmax(0, 1fr); gap: 20px; }
.generator-workbench .generator-config-panel .panel-head { background: linear-gradient(135deg, rgba(0,193,118,0.08), rgba(124,58,237,0.035)); }
.generator-workbench .generator-output-panel .panel-body { min-height: 420px; background: radial-gradient(circle at top right, rgba(0,193,118,0.08), transparent 56%); }
.generator-workbench .generator-fields-stage { padding: 14px; border: 1px solid rgba(0,193,118,0.13); border-radius: 18px; background: rgba(0,193,118,0.035); }
.generator-visual-preview {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-strong);
}
.generator-visual-preview[hidden] { display: none; }
.generator-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}
.generator-preview-head strong { color: var(--text-main); font-size: 14px; }
.generator-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 10px;
}
.generator-color-card {
    min-height: 96px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text-main);
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.generator-color-card:hover { transform: translateY(-2px); border-color: rgba(0,37,119,0.28); box-shadow: 0 14px 30px -24px var(--shadow-lg); }
.generator-color-swatch {
    display: block;
    height: 44px;
    margin-bottom: 10px;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.generator-color-card strong {
    display: block;
    font-size: 13px;
    letter-spacing: 0.03em;
}
.generator-gradient-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}
.generator-gradient-swatch { min-height: 150px; }
.generator-gradient-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
}
.generator-gradient-meta strong {
    min-width: 0;
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.network-workbench { grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); gap: 20px; }
.network-workbench .network-query-panel .panel-head { background: linear-gradient(135deg, rgba(41,50,225,0.08), rgba(0,37,119,0.035)); }
.network-workbench .network-output-panel .panel-body { min-height: 420px; background: radial-gradient(circle at top right, rgba(41,50,225,0.08), transparent 56%); }
.network-workbench .network-input-stage .textarea { min-height: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.network-url-preview {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-strong);
}
.network-url-preview[hidden] { display: none; }
.network-url-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}
.network-url-preview-head strong { color: var(--text-main); font-size: 14px; }
.network-param-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.network-param-chip {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}
.network-param-chip.ok { color: #087443; background: rgba(0,193,118,0.12); }
.network-param-chip.warn { color: #9a4c00; background: rgba(255,157,0,0.16); }
body.dark-mode .network-param-chip.warn { color: #ffd28a; background: rgba(255,157,0,0.14); }
.tool-layout .panel { border-color: rgba(210,216,226,0.72); border-radius: 24px; background: var(--surface); box-shadow: 0 18px 56px -44px var(--shadow-lg); }
.tool-layout .panel:hover { border-color: rgba(168,176,190,0.8); box-shadow: 0 22px 64px -48px var(--shadow-lg); }
.tool-layout .panel-head { background: rgba(255,255,255,0.28) !important; border-bottom-color: rgba(216,222,232,0.66); }
body.dark-mode .tool-layout .panel-head { background: rgba(255,255,255,0.035) !important; border-bottom-color: rgba(70,76,90,0.72); }
.tool-layout .panel-body, .preview-wrap, .pdf-workbench .pdf-result-panel .panel-body, .image-studio .image-result-panel .panel-body, .watermark-studio .watermark-result-panel .panel-body, .photo-studio .photo-result-panel .panel-body, .zip-workbench .zip-result-panel .panel-body, .table-workbench .table-output-panel .panel-body, .favicon-studio .favicon-result-panel .panel-body, .text-workbench .text-output-panel .panel-body, .dev-workbench .dev-output-panel .panel-body, .seo-workbench .seo-output-panel .panel-body, .webmaster-workbench .webmaster-output-panel .panel-body, .calc-workbench .calc-output-panel .panel-body, .generator-workbench .generator-output-panel .panel-body, .network-workbench .network-output-panel .panel-body { background: transparent !important; }
.segmented button.active, .chip.active { background: rgba(0,37,119,0.08); border-color: rgba(0,37,119,0.34); box-shadow: none; }
.file-input input[type="file"], input[type="file"].input, .drop-zone, .pdf-workbench .file-stage, .zip-workbench .file-input, .table-workbench .table-file-stage, .watermark-studio .watermark-upload-stage, .watermark-studio .watermark-logo-stage, .calc-workbench .calc-fields-stage, .generator-workbench .generator-fields-stage { background: var(--surface-strong) !important; border-color: rgba(188,198,212,0.72); }
.file-input input[type="file"]:hover, input[type="file"].input:hover, .drop-zone.drag-over { background: var(--surface-hover) !important; border-color: rgba(0,37,119,0.36); }
.file-input input[type="file"]::file-selector-button, input[type="file"].input::file-selector-button { background: #111827; box-shadow: none; }
body.dark-mode .file-input input[type="file"]::file-selector-button, body.dark-mode input[type="file"].input::file-selector-button { background: #e5e7eb; color: #111827; }
.status { background: rgba(0,37,119,0.045); border-color: rgba(0,37,119,0.12); }
body.dark-mode .status { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
body { background: var(--bg); }
body.dark-mode { background: var(--bg); }
body::before { opacity: 0.16; }
.hero-card { background: var(--surface) !important; box-shadow: 0 24px 72px -52px var(--shadow-lg); }
body.dark-mode .hero-card { background: var(--surface) !important; }
.eyebrow { background: var(--surface-strong); border-color: var(--border); color: var(--text-muted); }
.eyebrow-dot { background: var(--accent); box-shadow: none; }
.hero-visual { background: var(--surface); box-shadow: 0 22px 72px -54px var(--shadow-lg); }
.visual-glow { opacity: 0.12; filter: blur(52px); }
.mini-tool { background: var(--surface-strong); border-color: rgba(210,216,226,0.72); box-shadow: 0 10px 34px -30px var(--shadow-lg); }
body.dark-mode .mini-tool { background: var(--surface-strong); border-color: rgba(70,76,90,0.72); }
.mini-icon { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.mini-badge { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.primary-btn { background: #111827; box-shadow: 0 18px 42px -28px rgba(17,24,39,0.56); border-color: #111827; }
body.dark-mode .primary-btn { background: #f3f4f6; color: #111827; border-color: #f3f4f6; box-shadow: 0 18px 42px -30px rgba(255,255,255,0.38); }
.secondary-btn { background: var(--surface-strong); }
.tools-filter, .tool-card.featured { background: var(--surface) !important; }
.tool-card, .benefit-card, .feature-block, .faq-item { box-shadow: 0 16px 48px -42px var(--shadow-lg); }
.tool-card:hover { border-color: rgba(168,176,190,0.86); box-shadow: 0 22px 58px -44px var(--shadow-lg); }
.tool-icon { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.tool-icon.green, .tool-icon.purple, .tool-icon.orange { background: transparent; color: var(--text-main); }
.card-arrow { background: var(--surface-strong); border: 1px solid var(--border); color: var(--text-muted); }
.tool-card:hover .card-arrow { color: var(--accent); border-color: var(--border-hover); }
.progress-bar span { background: #111827; }
body.dark-mode .progress-bar span { background: #e5e7eb; }
.page-shell { width: min(1200px, calc(100% - 48px)); padding-top: 48px; }
.hero { grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr); align-items: stretch; gap: 24px; min-height: 430px; padding: 28px 0 42px; }
.hero-card, .hero-visual { min-height: 430px; height: 100%; border-radius: 30px; }
.hero-card { display: flex; flex-direction: column; justify-content: center; padding: 44px; border-color: rgba(214,220,230,0.76); box-shadow: 0 1px 0 rgba(255,255,255,0.74) inset, 0 26px 80px -62px var(--shadow-lg); }
body.dark-mode .hero-card { border-color: rgba(72,78,92,0.78); box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 28px 86px -62px var(--shadow-lg); }
.hero h1 { max-width: 760px; letter-spacing: -0.065em; }
.hero h1 span { color: var(--text-main); text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.12em; text-decoration-color: rgba(0,37,119,0.28); }
.hero-desc { max-width: 680px; }
.hero-visual { display: grid; place-items: stretch; padding: 18px; border-color: rgba(214,220,230,0.76); box-shadow: 0 1px 0 rgba(255,255,255,0.74) inset, 0 26px 80px -62px var(--shadow-lg); }
body.dark-mode .hero-visual { border-color: rgba(72,78,92,0.78); box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 28px 86px -62px var(--shadow-lg); }
.floating-panel { position: relative; inset: auto; align-content: stretch; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; height: 100%; }
.mini-tool { grid-template-columns: 44px minmax(0, 1fr) 58px; gap: 12px; padding: 15px 16px; border-radius: 20px; align-items: center; }
.mini-icon { width: 44px; height: 44px; border-radius: 15px; }
.mini-tool strong { font-size: 14.5px; letter-spacing: -0.015em; }
.mini-tool span { font-size: 12px; line-height: 1.42; }
.mini-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; padding: 6px 8px; font-size: 10.5px; letter-spacing: 0.02em; }
.floating-panel::after { border-radius: 20px; padding: 15px 18px; font-size: 14px; }
.section { padding: 38px 0; }
.section-head { align-items: flex-start; margin-bottom: 22px; }
.section-kicker { color: var(--text-muted); letter-spacing: 0.14em; }
.section-title { letter-spacing: -0.055em; }
.tools-filter { padding: 14px; border-radius: 24px; margin-bottom: 20px; box-shadow: 0 1px 0 rgba(255,255,255,0.72) inset, 0 18px 58px -52px var(--shadow-lg); }
body.dark-mode .tools-filter { box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 18px 58px -52px var(--shadow-lg); }
.tools-search-row { grid-template-columns: minmax(0, 1fr) 104px; }
.tools-search-input { min-height: 50px; border-radius: 16px; padding-left: 16px; }
.tool-count { min-height: 50px; border-radius: 16px; }
.tools-category-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.tools-category-tabs .chip { min-height: 40px; border-radius: 14px; }
.tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.tool-card { min-height: 236px; display: flex; flex-direction: column; padding: 24px; border-radius: 26px; border-color: rgba(214,220,230,0.76); box-shadow: 0 1px 0 rgba(255,255,255,0.72) inset, 0 16px 54px -50px var(--shadow-lg); }
body.dark-mode .tool-card { border-color: rgba(72,78,92,0.78); box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 18px 60px -52px var(--shadow-lg); }
.tool-card.featured { min-height: 236px; }
.tool-card.featured .tool-icon { width: 56px; height: 56px; border-radius: 18px; }
.tool-card.featured h3 { font-size: 22px; padding-right: 44px; }
.tool-card.featured p { max-width: 760px; font-size: 13.5px; }
.tool-card:hover { transform: translateY(-3px); background: var(--surface-hover); box-shadow: 0 1px 0 rgba(255,255,255,0.76) inset, 0 30px 76px -58px var(--shadow-lg); }
body.dark-mode .tool-card:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 30px 76px -58px var(--shadow-lg); }
.tool-icon { width: 48px; height: 48px; border-radius: 16px; margin-bottom: 20px; flex: 0 0 auto; }
.tool-icon svg { width: 24px; height: 24px; stroke-width: 2; }
.tool-card h3 { padding-right: 34px; font-size: 18px; line-height: 1.25; margin-bottom: 9px; }
.tool-card p { font-size: 13px; line-height: 1.72; }
.tool-tags { margin-top: auto; padding-top: 18px; gap: 6px; }
.tool-tags span { background: transparent; border-color: rgba(216,222,232,0.78); padding: 5px 8px; }
.card-arrow { right: 22px; top: 22px; width: 32px; height: 32px; }
.benefit-card, .feature-block, .faq-item { border-color: rgba(214,220,230,0.76); box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 14px 48px -44px var(--shadow-lg); }
body.dark-mode .benefit-card, body.dark-mode .feature-block, body.dark-mode .faq-item { border-color: rgba(72,78,92,0.78); box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 14px 48px -44px var(--shadow-lg); }
.tool-layout { gap: 22px; padding-top: 28px; }
.tool-layout .panel { position: relative; box-shadow: 0 1px 0 rgba(255,255,255,0.72) inset, 0 22px 70px -58px var(--shadow-lg); }
body.dark-mode .tool-layout .panel { box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 22px 70px -58px var(--shadow-lg); }
.tool-layout .panel-head { padding: 22px 24px; }
.tool-layout .panel-body { padding: 24px; }
.input, .textarea, .select { border-color: rgba(205,212,224,0.86); box-shadow: 0 1px 0 rgba(255,255,255,0.72) inset; }
body.dark-mode .input, body.dark-mode .textarea, body.dark-mode .select { border-color: rgba(70,76,90,0.82); box-shadow: 0 1px 0 rgba(255,255,255,0.035) inset; }
.hero-card::after, .hero-visual::after, .tool-card::after, .tool-layout .panel::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.72), inset 0 -1px 0 rgba(17,24,39,0.035);
}
body.dark-mode .hero-card::after, body.dark-mode .hero-visual::after, body.dark-mode .tool-card::after, body.dark-mode .tool-layout .panel::after { box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), inset 0 -1px 0 rgba(0,0,0,0.22); }
.hero-visual::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 22px;
    border: 1px solid rgba(214,220,230,0.5);
    pointer-events: none;
}
body.dark-mode .hero-visual::before { border-color: rgba(72,78,92,0.42); }
.floating-panel { z-index: 1; }
.mini-tool { transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; }
.mini-tool:hover { transform: translateY(-2px); border-color: rgba(168,176,190,0.86); box-shadow: 0 18px 54px -44px var(--shadow-lg); }
.tool-card.featured {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    column-gap: 18px;
}
.tool-card.featured .tool-icon { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
.tool-card.featured h3 { grid-column: 2; grid-row: 1; align-self: end; margin-top: 2px; }
.tool-card.featured p { grid-column: 2; grid-row: 2; }
.tool-card.featured .tool-tags { grid-column: 1 / -1; grid-row: 4; align-self: end; }
.tool-card h3, .tool-card p, .tool-tags, .tool-icon { position: relative; z-index: 1; }
.tool-tags span { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tool-card:hover .tool-icon { border-color: rgba(168,176,190,0.88); }
.tool-card:hover .tool-tags span { border-color: rgba(188,198,212,0.92); color: var(--text-main); }
.tool-layout .panel-head h2 { line-height: 1.2; }
.tool-layout .panel-head p { max-width: 720px; }
.tool-layout .panel:hover::after { box-shadow: inset 0 1px 0 rgba(255,255,255,0.84), inset 0 -1px 0 rgba(17,24,39,0.04); }
body.dark-mode .tool-layout .panel:hover::after { box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), inset 0 -1px 0 rgba(0,0,0,0.24); }
.tools-home-visual .floating-panel { grid-template-rows: auto repeat(3, minmax(0, 1fr)) auto; }
.tools-home-visual .floating-panel::after { content: none; }
.visual-dashboard-head, .visual-metric-row {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(214,220,230,0.76);
    background: var(--surface-strong);
    box-shadow: 0 1px 0 rgba(255,255,255,0.72) inset, 0 12px 38px -34px var(--shadow-lg);
}
body.dark-mode .visual-dashboard-head, body.dark-mode .visual-metric-row { border-color: rgba(72,78,92,0.78); box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 38px -34px var(--shadow-lg); }
.visual-dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 22px;
}
.visual-dashboard-head span { display: block; color: var(--text-muted); font-size: 11px; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.visual-dashboard-head strong { display: block; font-size: 17px; letter-spacing: -0.025em; }
.visual-dashboard-head em { flex: 0 0 auto; font-style: normal; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); font-size: 11px; font-weight: 850; }
.visual-metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border-radius: 22px;
}
.visual-metric-row div { padding: 14px; text-align: center; border-right: 1px solid var(--border); }
.visual-metric-row div:last-child { border-right: 0; }
.visual-metric-row strong { display: block; font-size: 13px; margin-bottom: 4px; }
.visual-metric-row span { display: block; color: var(--text-muted); font-size: 11px; }
.hero h1 span, .tool-card h3, .panel-head h2, .panel-head h3 { color: var(--accent); }
.section-title { color: var(--accent); }
.eyebrow-dot { background: var(--accent-2); }
.primary-btn { background: var(--accent); border-color: var(--accent); box-shadow: 0 18px 42px -30px rgba(0,37,119,0.72); }
body.dark-mode .primary-btn { background: #FF9D00; color: #111827; border-color: #FF9D00; box-shadow: 0 18px 42px -30px rgba(255,157,0,0.42); }
.visual-glow.blue { background: rgba(0,37,119,0.24); }
.visual-glow.green { background: rgba(255,157,0,0.16); }
.segmented button.active, .chip.active { background: rgba(0,37,119,0.07); border-color: rgba(0,37,119,0.3); color: var(--accent); }
.input:focus, .textarea:focus, .select:focus { border-color: rgba(0,37,119,0.44); box-shadow: 0 0 0 4px rgba(0,37,119,0.1); }
body.dark-mode .segmented button.active, body.dark-mode .chip.active { background: rgba(255,157,0,0.12); border-color: rgba(255,157,0,0.42); color: #FF9D00; }
body.dark-mode .input:focus, body.dark-mode .textarea:focus, body.dark-mode .select:focus { border-color: rgba(255,157,0,0.48); box-shadow: 0 0 0 4px rgba(255,157,0,0.12); }
.tool-card:hover { border-color: rgba(0,37,119,0.22); }
.tool-card:hover .card-arrow, .tool-card:hover .tool-icon { color: var(--accent); border-color: rgba(0,37,119,0.26); }
.tool-grid .tool-card.featured { background: var(--surface) !important; }
.tool-grid .tool-card::after { background: none; }
.tool-grid .tool-icon,
.tool-grid .tool-icon.green,
.tool-grid .tool-icon.purple,
.tool-grid .tool-icon.orange,
.tool-grid .tool-card.featured .tool-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
    opacity: 0.7;
}
.tool-grid .tool-icon svg,
.tool-grid .tool-card.featured .tool-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 2;
}
.tool-grid .tool-icon svg path,
.tool-grid .tool-icon svg circle {
    stroke: currentColor;
    vector-effect: non-scaling-stroke;
}
.tool-grid .tool-card:hover .tool-icon { opacity: 1; border-color: transparent; }
.tool-grid .tool-card[href="pdf-tools.html"]:hover .tool-icon { color: #E5322D; }
.tool-grid .tool-card[href="image-tools.html"]:hover .tool-icon,
.tool-grid .tool-card[href="watermark-tools.html"]:hover .tool-icon,
.tool-grid .tool-card[href="photo-tools.html"]:hover .tool-icon { color: #28A84E; }
.tool-grid .tool-card[href="qr-code.html"]:hover .tool-icon { color: #2BA245; }
.tool-grid .tool-card[href="table-tools.html"]:hover .tool-icon,
.tool-grid .tool-card[href="zip-tools.html"]:hover .tool-icon,
.tool-grid .tool-card[href="calc-tools.html"]:hover .tool-icon,
.tool-grid .tool-card[href="favicon-tools.html"]:hover .tool-icon { color: #067BEF; }
.tool-grid .tool-card[href="dev-tools.html"]:hover .tool-icon { color: #3498DB; }
.tool-grid .tool-card[href="seo-tools.html"]:hover .tool-icon,
.tool-grid .tool-card[href="webmaster-tools.html"]:hover .tool-icon { color: #FF9D00; }
.tool-grid .tool-card[href="network-tools.html"]:hover .tool-icon { color: #2932E1; }
.tool-grid .tool-card[href="text-tools.html"]:hover .tool-icon,
.tool-grid .tool-card[href="generator-tools.html"]:hover .tool-icon { color: #002577; }
.progress-bar span { background: var(--accent); }
body.dark-mode .progress-bar span { background: #FF9D00; }
.file-input input[type="file"], input[type="file"].input, .drop-zone, .pdf-workbench .file-stage, .image-studio .image-upload-field, .watermark-studio .watermark-upload-stage, .watermark-studio .watermark-logo-stage, .photo-studio .photo-upload-stage, .zip-workbench .file-input, .table-workbench .table-file-stage, .favicon-studio .favicon-upload-stage {
    border-color: rgba(0,37,119,0.28) !important;
    background: linear-gradient(135deg, rgba(0,37,119,0.052), rgba(0,37,119,0.018)), var(--surface-strong) !important;
}
.file-input input[type="file"]:hover, input[type="file"].input:hover, .drop-zone:hover, .drop-zone.drag-over {
    border-color: rgba(0,37,119,0.46) !important;
    background: linear-gradient(135deg, rgba(0,37,119,0.075), rgba(0,37,119,0.026)), var(--surface-hover) !important;
}
.file-input input[type="file"]:focus, input[type="file"].input:focus, .drop-zone:focus-visible {
    border-color: rgba(0,37,119,0.52) !important;
    box-shadow: 0 0 0 4px rgba(0,37,119,0.12) !important;
}
.file-input input[type="file"]::file-selector-button, input[type="file"].input::file-selector-button {
    background: #002577 !important;
    color: #fff !important;
    box-shadow: 0 10px 24px -18px rgba(0,37,119,0.66) !important;
}
body.dark-mode .file-input input[type="file"], body.dark-mode input[type="file"].input, body.dark-mode .drop-zone, body.dark-mode .pdf-workbench .file-stage, body.dark-mode .image-studio .image-upload-field, body.dark-mode .watermark-studio .watermark-upload-stage, body.dark-mode .watermark-studio .watermark-logo-stage, body.dark-mode .photo-studio .photo-upload-stage, body.dark-mode .zip-workbench .file-input, body.dark-mode .table-workbench .table-file-stage, body.dark-mode .favicon-studio .favicon-upload-stage {
    border-color: rgba(255,157,0,0.34) !important;
    background: linear-gradient(135deg, rgba(255,157,0,0.105), rgba(255,157,0,0.032)), var(--surface-strong) !important;
}
body.dark-mode .file-input input[type="file"]:hover, body.dark-mode input[type="file"].input:hover, body.dark-mode .drop-zone:hover, body.dark-mode .drop-zone.drag-over {
    border-color: rgba(255,157,0,0.56) !important;
    background: linear-gradient(135deg, rgba(255,157,0,0.14), rgba(255,157,0,0.046)), var(--surface-hover) !important;
}
body.dark-mode .file-input input[type="file"]:focus, body.dark-mode input[type="file"].input:focus, body.dark-mode .drop-zone:focus-visible {
    border-color: rgba(255,157,0,0.62) !important;
    box-shadow: 0 0 0 4px rgba(255,157,0,0.14) !important;
}
body.dark-mode .file-input input[type="file"]::file-selector-button, body.dark-mode input[type="file"].input::file-selector-button {
    background: #FF9D00 !important;
    color: #111827 !important;
    box-shadow: 0 10px 24px -18px rgba(255,157,0,0.72) !important;
}
.status, .progress-bar {
    border-color: rgba(0,37,119,0.14);
    background: rgba(0,37,119,0.045);
}
body.dark-mode .status, body.dark-mode .progress-bar {
    border-color: rgba(255,157,0,0.18);
    background: rgba(255,157,0,0.08);
}
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.faq-item { padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.faq-item h3 { font-size: 15px; margin-bottom: 8px; }
.faq-item p { color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.footer { padding: 28px 20px 36px; text-align: center; color: var(--text-muted); font-size: 12px; line-height: 1.8; }
.footer a { color: var(--text-muted); text-decoration: none; }

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-card, .hero-visual { min-height: auto; }
    .hero-visual { height: auto; min-height: 0; padding: 14px; overflow: visible; }
    .floating-panel { height: auto; grid-template-rows: none; }
    .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tool-card.featured { grid-column: span 2; }
    .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-block-grid { grid-template-columns: 1fr; }
    .tools-category-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tool-layout { grid-template-columns: 1fr; }
    .tool-layout > .panel:last-child { position: static; }
    .pdf-workbench, .image-studio, .watermark-studio, .photo-studio, .zip-workbench, .table-workbench, .favicon-studio, .text-workbench, .dev-workbench, .seo-workbench, .webmaster-workbench, .calc-workbench, .generator-workbench, .network-workbench { grid-template-columns: 1fr; }
    .qr-studio { grid-template-columns: 1fr; grid-template-areas: "content" "style" "preview"; }
    .qr-studio .qr-preview-panel { position: static; }
    .preview-wrap { min-height: 420px; }
}

@media (max-width: 680px) {
    .header { padding: 10px 14px; }
    .logo-link { width: 128px; height: 31px; }
    .logo-link img { height: 31px; }
    .nav-actions { gap: 8px; }
    .nav-btn { padding: 8px 10px; font-size: 12px; }
    .nav-btn span.optional { display: none; }
    .page-shell { width: min(100% - 28px, 1180px); padding: 34px 0 52px; }
    .hero { padding: 22px 0 28px; gap: 18px; }
    .hero-card { padding: 24px 20px; border-radius: 22px; }
    .hero h1 { font-size: clamp(29px, 9vw, 38px); }
    .hero-desc { font-size: 14.5px; }
    .hero-actions { flex-direction: column; }
    .primary-btn, .secondary-btn { width: 100%; }
    .hero-visual { min-height: 0; border-radius: 22px; }
    .floating-panel { inset: auto; gap: 10px; }
    .mini-tool { grid-template-columns: 38px minmax(0, 1fr); padding: 13px 14px; border-radius: 18px; }
    .mini-icon { width: 38px; height: 38px; border-radius: 13px; }
    .mini-badge { display: none; }
    .visual-dashboard-head { padding: 14px; border-radius: 18px; }
    .visual-dashboard-head strong { font-size: 15px; }
    .visual-dashboard-head em { display: none; }
    .visual-metric-row { border-radius: 18px; }
    .visual-metric-row div { padding: 11px 8px; }
    .visual-metric-row strong { font-size: 12px; }
    .tools-search-row { grid-template-columns: 1fr; }
    .tools-category-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .benefit-grid, .faq-grid { grid-template-columns: 1fr; }
    .tools-filter { padding: 14px; border-radius: 18px; }
    .tool-count { justify-content: flex-start; }
    .tool-card, .tool-card.featured { grid-column: span 1; min-height: 190px; padding: 20px; border-radius: 20px; }
    .tool-card.featured { display: flex; }
    .tool-card.featured .tool-icon { width: 36px; height: 36px; margin-bottom: 18px; }
    .tool-card.featured h3 { font-size: 18px; }
    .tool-card.featured p { font-size: 13px; }
    .card-arrow { min-width: 38px; width: 38px; padding: 0; }
    .panel { border-radius: 18px; }
    .panel-head, .panel-body { padding: 18px; }
    .option-row { grid-template-columns: 1fr; }
    .segmented { grid-template-columns: 1fr; }
    .image-studio .chip-row { grid-template-columns: 1fr; }
    .favicon-studio #faviconSizeOptions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .preview-wrap { min-height: 340px; padding: 16px; }
    .qr-studio .preview-wrap { min-height: 420px; }
    .qr-stage { padding: 16px; border-radius: 20px; }
    .faq-grid { grid-template-columns: 1fr; }
    .image-result-card { grid-template-columns: 84px minmax(0, 1fr); padding: 12px; }
    .image-preview { width: 84px; height: 84px; }
    .image-card-actions { flex-direction: column; }
    .small-btn { width: 100%; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .output-textarea { min-height: 240px; }
}

@media (max-width: 380px) {
    .page-shell { width: min(100% - 22px, 1180px); }
    .nav-btn { padding-left: 9px; padding-right: 9px; }
    .hero-card { padding: 22px 16px; }
    .mini-tool span { font-size: 11.5px; }
    .actions-row { flex-direction: column; }
    .metric-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
