/* ============================================================
   SUPER 3.0 — simplified skin
   Clean, light, tool-first. Loaded after style.css.
   ============================================================ */

:root {
  --bg: #f5f6f8;
  --bg-2: #f0f2f5;
  --bg-3: #e8ebef;
  --panel: #ffffff;
  --panel-hover: #f8f9fb;
  --panel-solid: #ffffff;
  --line: #e6e8ec;
  --line-2: #d8dce2;
  --ink: #1f2329;
  --ink-2: #4d5560;
  --ink-3: #7a828e;
  --ink-4: #a3aab4;
  --accent: #2f6fed;
  --accent-2: #5b8ff9;
  --accent-ink: #ffffff;
  --accent-soft: #edf3ff;
  --accent-line: #cfdffd;
  --ok: #18865b;
  --warn: #b7791f;
  --err: #c2413b;
  --ok-bg: #edf9f3;
  --err-bg: #fdf0ef;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-2: 0 12px 30px -16px rgba(16, 24, 40, .18);
  --font-serif: var(--font-sans);
}

[data-theme="dark"] {
  --bg: #111418;
  --bg-2: #161b21;
  --bg-3: #1d232b;
  --panel: #181d23;
  --panel-hover: #1e242c;
  --panel-solid: #181d23;
  --line: #2a313a;
  --line-2: #3a434e;
  --ink: #eef1f5;
  --ink-2: #c3cad3;
  --ink-3: #929ba7;
  --ink-4: #6f7884;
  --accent: #76a2ff;
  --accent-2: #9bbaff;
  --accent-ink: #0e1626;
  --accent-soft: rgba(94, 145, 255, .13);
  --accent-line: rgba(118, 162, 255, .3);
  --ok: #6fd6a5;
  --warn: #e5b86a;
  --err: #f18d87;
  --ok-bg: rgba(111, 214, 165, .1);
  --err-bg: rgba(241, 141, 135, .1);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .16);
  --shadow-2: 0 18px 40px -20px rgba(0, 0, 0, .5);
}

html { scroll-behavior: auto; }
body { background: var(--bg); color: var(--ink); font-size: 14px; }

.ambient,
.hero-visual,
.marquee,
.new-strip,
.footer-wordmark,
.stage-bar .dots { display: none !important; }

::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink-4) 45%, transparent); border: 3px solid var(--bg); }

/* Header */
.site-header {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { max-width: 1440px; height: 62px; padding: 0 24px; gap: 22px; }
.brand { gap: 9px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent); border: 0; color: var(--accent-ink); box-shadow: none;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-text { display: none; }
.brand-divider { display: none; }
.brand-cn { display: inline; color: var(--ink); font-size: 15px; font-weight: 650; letter-spacing: .02em; }
.main-nav { margin-left: 6px; gap: 0; }
.main-nav a { padding: 7px 12px; font-size: 13px; color: var(--ink-3); border-radius: 7px; }
.main-nav a:hover { background: var(--bg-2); color: var(--ink); }
.main-nav a.active { color: var(--accent); background: var(--accent-soft); }
.main-nav a.active::after { display: none; }
.header-actions { gap: 6px; }
.search-trigger {
  min-width: 238px; height: 36px; padding: 0 10px 0 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink-3); box-shadow: var(--shadow-1);
}
.search-trigger:hover { border-color: var(--line-2); background: var(--panel); color: var(--ink-2); }
.search-trigger kbd { background: var(--bg-2); }
.icon-btn { width: 34px; height: 34px; border-radius: 7px; }
.icon-btn:hover { background: var(--bg-2); border-color: transparent; }

/* Shell + rail */
.app-shell { max-width: 1440px; grid-template-columns: 208px minmax(0, 1fr); }
.cat-rail {
  top: 62px; max-height: calc(100vh - 62px); padding: 18px 10px 30px;
  border-right: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 52%, var(--bg));
}
.rail-title { padding: 0 9px 10px; font-family: var(--font-sans); font-size: 11px; letter-spacing: .02em; color: var(--ink-4); }
.rail-group-title { padding: 17px 9px 7px; font-family: var(--font-sans); font-size: 10px; letter-spacing: .08em; color: var(--ink-4); }
.rail-all, .rail-item { min-height: 35px; padding: 7px 9px; gap: 8px; font-size: 13px; color: var(--ink-2); border: 0; border-radius: 7px; }
.rail-all svg, .rail-item svg { width: 16px; height: 16px; color: var(--ink-4); }
.rail-all em, .rail-item em { font-family: var(--font-sans); font-size: 10px; color: var(--ink-4); }
.rail-all:hover, .rail-item:hover { background: color-mix(in srgb, var(--panel) 75%, transparent); color: var(--ink); }
.rail-all.active, .rail-item.active { background: var(--panel); color: var(--accent); box-shadow: var(--shadow-1); border: 0; }
.rail-all.active svg, .rail-item.active svg, .rail-all.active em, .rail-item.active em { color: var(--accent); }
.rail-all { margin-bottom: 2px; }
.rail-all svg { color: var(--accent); }
.app { min-width: 0; }
.wrap { max-width: 1180px; padding: 0 24px; }

/* Home intro */
.hero { padding: 36px 0 26px; background: var(--panel); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 1180px; padding: 0 24px; display: block; }
.hero-copy { max-width: none; }
.hero .eyebrow { margin-bottom: 8px; font-size: 10px; letter-spacing: .08em; color: var(--ink-4); }
.hero h1 {
  font-family: var(--font-sans); font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.22; font-weight: 680; letter-spacing: -.025em; margin-bottom: 7px;
}
.hero h1 .line { display: inline; }
.hero h1 .accent-word { color: var(--ink); }
.hero h1 .accent-word svg { display: none; }
.hero .lede { max-width: 780px; font-size: 13.5px; line-height: 1.7; color: var(--ink-3); }
.hero-usage { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--ink-4); }
.hero-usage b { color: var(--accent); font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
.hero-usage span { color: var(--line-2); }
.hero-search {
  max-width: 700px; height: 46px; margin-top: 18px; padding: 0 13px;
  border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--bg-2); box-shadow: none;
}
.hero-search:hover { border-color: var(--accent-line); background: var(--panel); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero-search > svg { width: 17px; height: 17px; }
.hero-quick { margin-top: 12px; gap: 7px; }
.hero-quick .label { font-family: var(--font-sans); font-size: 10px; color: var(--ink-4); }
.quick-chip { padding: 4px 9px; font-size: 12px; border-radius: 6px; background: var(--panel); border-color: var(--line); color: var(--ink-3); }
.quick-chip:hover { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }

/* Sections */
.section { padding: 30px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { align-items: center; margin-bottom: 15px; gap: 16px; }
.section-head .eyebrow { display: none; }
.section-head h2 { font-family: var(--font-sans); font-size: 20px; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
.section-head p { margin-top: 2px; font-size: 12.5px; color: var(--ink-4); max-width: 640px; }
.section-link { font-size: 12px; color: var(--accent); border: 0; padding: 0; gap: 4px; }
.section-link:hover { color: var(--accent); text-decoration: underline; }
.section-link svg { width: 12px; height: 12px; }
.eyebrow { font-family: var(--font-sans); font-size: 10px; letter-spacing: .06em; color: var(--ink-4); }
.pulse { width: 5px; height: 5px; animation: none; box-shadow: none; background: var(--accent); }

/* Cards */
.tool-grid, .featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.featured-grid { grid-auto-rows: auto; }
.tool-card {
  flex-direction: row; align-items: flex-start; gap: 11px;
  min-height: 94px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); box-shadow: var(--shadow-1); overflow: visible;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.tool-card::before { display: none; }
.tool-card:hover { transform: none; border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); background: var(--panel); box-shadow: 0 4px 14px -8px rgba(16,24,40,.18); }
.tool-card .tool-icon {
  width: 38px; height: 38px; border-radius: 9px; flex: 0 0 38px;
  background: var(--cat-soft, var(--accent-soft)); border: 0; color: var(--cat, var(--accent));
}
.tool-card .tool-icon svg { width: 19px; height: 19px; }
.tool-card:hover .tool-icon { transform: none; background: var(--cat-soft, var(--accent-soft)); }
.tool-card .card-index, .tool-card .card-foot { display: none; }
.tool-card .card-body { flex: 1; min-width: 0; padding-right: 2px; }
.tool-card h3 { font-size: 13.5px; font-weight: 600; line-height: 1.4; margin: 0 0 3px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-card p { font-size: 11.5px; line-height: 1.55; color: var(--ink-4); margin: 0; flex: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-fav { top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 5px; opacity: 0; }
.tool-card:hover .card-fav, .card-fav.is-fav { opacity: 1; }
.card-fav svg { width: 12px; height: 12px; }
.card-fav:hover { background: var(--bg-2); color: var(--accent); }

.tool-card[data-cat="encoding"] { --cat: #2563eb; --cat-soft: #eaf1ff; }
.tool-card[data-cat="crypto"] { --cat: #7c3aed; --cat-soft: #f2edff; }
.tool-card[data-cat="text"] { --cat: #0f8a78; --cat-soft: #e8f7f3; }
.tool-card[data-cat="dev"] { --cat: #dc5a18; --cat-soft: #fff1e8; }
.tool-card[data-cat="design"] { --cat: #db2777; --cat-soft: #fdecf4; }
.tool-card[data-cat="image"] { --cat: #9333ea; --cat-soft: #f5edff; }
.tool-card[data-cat="web"] { --cat: #0284c7; --cat-soft: #e8f5fd; }
.tool-card[data-cat="calc"] { --cat: #b45309; --cat-soft: #fff6e6; }
.tool-card[data-cat="time"] { --cat: #0d9488; --cat-soft: #e7f8f5; }
.tool-card[data-cat="device"] { --cat: #475569; --cat-soft: #eef1f5; }
.tool-card[data-cat="fun"] { --cat: #e11d48; --cat-soft: #ffedf1; }
.tool-card[data-cat="health"] { --cat: #16a34a; --cat-soft: #eaf8ee; }
.tool-card[data-cat="pdf"] { --cat: #b91c1c; --cat-soft: #fdeeee; }
.tool-card[data-cat="reference"] { --cat: #4f46e5; --cat-soft: #eeefff; }
.tool-card[data-cat="ai"] { --cat: #0891b2; --cat-soft: #e8f8fb; }
.tool-card[data-cat="ai-tools"] { --cat: #0891b2; --cat-soft: #e8f8fb; }
.tool-card[data-cat="ecommerce"] { --cat: #b45309; --cat-soft: #fff6e6; }
.tool-card[data-cat="finance"] { --cat: #15803d; --cat-soft: #eefbf3; }
.tool-card[data-cat="seo"] { --cat: #c2410c; --cat-soft: #fff4ed; }
.tool-card[data-cat="cheatsheet"] { --cat: #4f46e5; --cat-soft: #eef0ff; }
.tool-card[data-cat="netdisk"] { --cat: #0891b2; --cat-soft: #e8f8fb; }

/* Category cards */
.cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cat-card {
  display: flex; flex-direction: row; align-items: center; gap: 11px;
  min-height: 68px; padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); box-shadow: var(--shadow-1); overflow: visible;
}
.cat-card:hover { transform: none; border-color: var(--accent-line); background: var(--panel); box-shadow: 0 4px 14px -8px rgba(16,24,40,.18); }
.cat-card .cat-num { display: none; }
.cat-card .cat-icon { position: static; width: 36px; height: 36px; border-radius: 9px; flex: 0 0 36px; background: var(--accent-soft); border: 0; color: var(--accent); }
.cat-card .cat-icon svg { width: 18px; height: 18px; }
.cat-card h3 { font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; margin: 0 0 2px; line-height: 1.4; }
.cat-card .cat-desc { font-size: 11.5px; color: var(--ink-4); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 145px; }
.cat-card .cat-count { position: static; margin-left: auto; font-size: 10px; color: var(--ink-4); letter-spacing: .02em; }

/* Page headings */
.page-head { padding: 22px 0 6px; }
.page-head h1 { font-family: var(--font-sans); font-size: 28px; font-weight: 680; letter-spacing: -.02em; line-height: 1.25; }
.page-head p { margin-top: 6px; font-size: 13px; color: var(--ink-3); max-width: 680px; }
.page-head .eyebrow { margin-bottom: 6px; }
.breadcrumb { margin-top: 12px; font-size: 12px; color: var(--ink-4); }
.filter-bar { margin: 16px 0 10px; gap: 6px; }
.filter-chip { padding: 5px 9px; font-size: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--ink-3); }
.filter-chip:hover { border-color: var(--line-2); color: var(--ink); }
.filter-chip.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.mini-search .input { height: 34px; background: var(--panel); border-radius: 7px; }
.result-count { font-size: 11px; color: var(--ink-4); }

/* Tool page */
.tool-head { margin-top: 18px; align-items: center; gap: 14px; }
.tool-icon-lg { width: 50px; height: 50px; border-radius: 11px; background: var(--accent-soft); border: 0; color: var(--accent); }
.tool-icon-lg svg { width: 24px; height: 24px; }
.tool-title-wrap h1 { font-family: var(--font-sans); font-size: 26px; font-weight: 680; letter-spacing: -.02em; }
.tool-title-wrap p { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.tool-meta { margin-top: 9px; gap: 6px; }
.meta-chip { padding: 3px 8px; font-size: 11px; border-radius: 5px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-3); }
.meta-chip svg { width: 12px; height: 12px; }
.tool-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; margin-top: 22px; }
.stage { border: 1px solid var(--line); border-radius: 11px; background: var(--panel); box-shadow: var(--shadow-1); }
.stage-bar { min-height: 42px; padding: 8px 14px; background: var(--bg-2); }
.stage-bar .stage-label { font-family: var(--font-sans); font-size: 10px; letter-spacing: .04em; color: var(--ink-4); }
.stage-body { padding: 18px; }
.tool-aside { top: 78px; gap: 10px; }
.aside-card { padding: 14px; border-radius: 10px; background: var(--panel); box-shadow: var(--shadow-1); }
.aside-card h4 { font-family: var(--font-sans); font-size: 11px; letter-spacing: .04em; color: var(--ink-4); margin-bottom: 8px; }
.aside-card p { font-size: 12px; line-height: 1.65; color: var(--ink-3); }
.aside-card:last-child { display: none; }

/* Panels + forms */
.panel { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: none; }
.panel-head { min-height: 40px; padding: 8px 13px; background: var(--bg-2); font-size: 12px; }
.panel-body { padding: 14px; }
.panel-foot { padding: 7px 13px; font-size: 10px; }
.code-area { border-radius: 7px; background: var(--bg-2); }
.input, .select { height: 38px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line-2); }
textarea.input { height: auto; }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn { min-height: 34px; padding: 0 12px; border-radius: 7px; font-size: 12.5px; background: var(--panel); border: 1px solid var(--line-2); }
.btn:hover { border-color: var(--line-2); background: var(--bg-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); border-color: transparent; color: var(--accent-ink); }
.btn-ghost { border-color: transparent; background: transparent; }
.seg { border-radius: 8px; background: var(--bg-2); }
.seg button { border-radius: 6px; font-size: 12px; }
.form-grid { gap: 12px; }
.field label { font-size: 12px; color: var(--ink-2); margin-bottom: 5px; }
.stat-grid { gap: 8px; }
.stat { border-radius: 8px; padding: 11px 12px; background: var(--bg-2); border-color: var(--line); }
.stat .s-label { font-family: var(--font-sans); font-size: 10px; letter-spacing: .02em; }
.stat .s-value { font-size: 20px; }
.notice { border-radius: 8px; padding: 10px 12px; font-size: 12px; }
.table-wrap { border-radius: 8px; }

/* Footer */
.site-footer { margin-top: 26px; border-top: 1px solid var(--line); background: var(--panel); }
.footer-inner { padding: 34px 24px 0; }
.footer-top { padding-bottom: 26px; gap: 40px; }
.footer-brand p { font-size: 12px; margin-top: 10px; max-width: 260px; color: var(--ink-4); }
.footer-cols { gap: 54px; }
.footer-col h4 { font-family: var(--font-sans); font-size: 10px; letter-spacing: .04em; margin-bottom: 9px; color: var(--ink-4); }
.footer-col a { font-size: 12px; color: var(--ink-3); }
.footer-bottom { padding: 14px 0 18px; font-size: 11px; color: var(--ink-4); }

/* Feedback */
.feedback-fab {
  right: 18px; bottom: 18px; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-3);
  font-size: 12px; box-shadow: var(--shadow-2); backdrop-filter: none;
}
.feedback-fab .pulse { display: none; }
.feedback-fab:hover { background: var(--bg-2); color: var(--ink); transform: none; }
.feedback-dialog { border-radius: 12px; }

/* Command palette */
.cmdk-dialog { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-2); background: var(--panel); }
.cmdk-input-wrap { border-bottom: 1px solid var(--line); background: var(--panel); }
.cmdk-item { border-radius: 7px; }
.cmdk-item.active { background: var(--accent-soft); }
.cmdk-foot { background: var(--bg-2); }

/* Small niceties */
.about-hero h1, .about-grid h2, .cta h2 { font-family: var(--font-sans); font-weight: 680; letter-spacing: -.02em; }
.about-hero h1 { font-size: 38px; }
.principles, .principle { border-radius: 10px; }

/* New tool widgets */
.food-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.food-card { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 18px 16px; text-align: center; }
.food-name { min-height: 48px; display: grid; place-items: center; font-size: 18px; font-weight: 600; margin: 10px 0 12px; }
.signature-wrap { position: relative; margin-top: 14px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--panel); overflow: hidden; }
.signature-wrap canvas, .whiteboard-wrap canvas { width: 100%; height: auto; display: block; touch-action: none; }
.signature-hint { position: absolute; left: 16px; bottom: 10px; color: var(--ink-4); font-size: 11px; pointer-events: none; }
.whiteboard-wrap { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.almanac-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.almanac-card { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); padding: 14px; }
.almanac-card p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.almanac-card.good { border-top: 3px solid #2fa66a; }
.almanac-card.bad { border-top: 3px solid #d45454; }
.game-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.game-score { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.game-score b { color: var(--ink); font-size: 15px; }
.g2048 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; max-width: 420px; margin: 0 auto; background: #bbada0; border-radius: 10px; padding: 8px; }
.g2-cell { aspect-ratio: 1; border-radius: 7px; background: rgba(238,228,218,.36); display: grid; place-items: center; font-size: clamp(18px, 5vw, 30px); font-weight: 700; }
.gomoku-canvas { width: 100%; max-width: 620px; margin: 0 auto; display: block; border-radius: 10px; cursor: pointer; }
.fake-update-overlay { position: fixed; inset: 0; z-index: 9999; background: #0b5cd5; color: #fff; display: grid; place-items: center; font-family: var(--font-sans); cursor: default; }
.fake-update-inner { width: min(620px, 82vw); text-align: center; }
.fake-logo { font-size: 52px; margin-bottom: 24px; animation: fake-spin 2.4s linear infinite; }
.fake-title { font-size: clamp(28px, 4vw, 44px); font-weight: 300; letter-spacing: -.02em; }
.fake-sub { font-size: 13px; opacity: .8; margin-top: 12px; }
.fake-bar { height: 5px; width: 100%; background: rgba(255,255,255,.24); border-radius: 99px; margin-top: 32px; overflow: hidden; }
.fake-bar i { display: block; height: 100%; width: 0; background: #fff; transition: width .8s linear; }
.fake-pct { font-size: 12px; opacity: .8; margin-top: 12px; }
.fake-tip { font-size: 11px; opacity: .45; margin-top: 42px; }
.fake-exit { position: fixed; right: 16px; bottom: 16px; padding: 6px 11px; border: 1px solid rgba(255,255,255,.36); border-radius: 5px; background: transparent; color: #fff; font-size: 11px; opacity: .5; }
.fake-exit:hover { opacity: 1; }
@keyframes fake-spin { to { transform: rotate(360deg); } }
.led-stage { margin-top: 14px; background: #000; border-radius: 10px; overflow: hidden; min-height: 150px; display: flex; align-items: center; }
.led-track { white-space: nowrap; font-size: clamp(22px, 5vw, 52px); font-weight: 700; animation: led-scroll 8s linear infinite; padding-left: 100%; }
@keyframes led-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.led-stage:fullscreen { min-height: 100vh; }
.led-stage:fullscreen .led-track { font-size: 12vw; }
.scoreboard { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team { border: 1px solid var(--line); border-radius: 11px; background: var(--panel); padding: 18px; text-align: center; }
.team-name { border: 0; background: transparent; text-align: center; font-size: 15px; font-weight: 600; width: 100%; outline: none; }
.team-score { font-size: clamp(60px, 12vw, 110px); font-weight: 700; line-height: 1.15; letter-spacing: -.06em; }
.team-btns { display: flex; justify-content: center; gap: 6px; }
.muyu-wrap { text-align: center; padding: 18px 0; }
.muyu-count { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.muyu-count b { font-size: 30px; color: var(--accent); }
.muyu { position: relative; width: 180px; height: 130px; margin: 0 auto; border-radius: 48% 48% 38% 38%; border: 1px solid #8b5d2d; background: radial-gradient(ellipse at 40% 30%, #d9a15d, #8b5a2b 70%); color: #fff5df; font-size: 20px; font-weight: 650; box-shadow: inset 0 4px 10px rgba(255,255,255,.25), 0 10px 30px -14px rgba(0,0,0,.45); transition: transform .08s; }
.muyu:active { transform: scale(.96); }
.muyu-hint { margin-top: 16px; color: var(--ink-4); font-size: 12px; }
.muyu-float { position: absolute; left: 50%; top: 20%; transform: translateX(-50%); color: #fff5df; font-size: 13px; animation: float-up .9s ease-out forwards; pointer-events: none; }
@keyframes float-up { to { transform: translate(-50%, -46px); opacity: 0; } }
.scp-swatch { width: 130px; height: 130px; border-radius: 50%; margin: 20px auto 12px; border: 6px solid var(--panel); box-shadow: 0 0 0 1px var(--line), 0 12px 30px -16px rgba(0,0,0,.3); }
.scp-values { max-width: 420px; margin: 0 auto; }
.extract-list { display: flex; flex-wrap: wrap; gap: 6px; }
.extract-list code { padding: 4px 7px; background: var(--bg-2); border-radius: 5px; font-family: var(--font-mono); font-size: 11px; }
.risk-preview { white-space: pre-wrap; line-height: 1.9; font-size: 13px; }
mark.risk { background: #ffe1df; color: #a92f28; padding: 0 2px; border-radius: 2px; }
.hello-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hello-card { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); padding: 12px; min-width: 0; }
.hello-card pre { margin: 0; overflow: auto; font-family: var(--font-mono); font-size: 11px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; max-height: 150px; }
.html-preview .panel-body { min-width: 0; }
.emoticon-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.emoticon-item { padding: 10px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: 14px; white-space: nowrap; }
.emoticon-item:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.pdf-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pdf-gallery a { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); color: var(--ink-3); font-size: 11px; }
.pdf-gallery img { width: 100%; height: 160px; object-fit: contain; background: var(--bg-2); }
.pdf-gallery span { display: block; padding: 7px 9px; }
.element-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.element-cell { position: relative; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); padding: 8px 4px 5px; text-align: center; min-height: 78px; }
.element-no { position: absolute; top: 3px; left: 5px; font-size: 8px; color: var(--ink-4); }
.element-symbol { font-size: 19px; font-weight: 700; line-height: 1.25; margin-top: 7px; }
.element-name { font-size: 10px; color: var(--ink-2); }
.element-mass { font-size: 8px; color: var(--ink-4); margin-top: 2px; }
.calculator { max-width: 380px; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 12px; box-shadow: var(--shadow-2); }
.calc-display { background: var(--bg-2); border-radius: 8px; padding: 12px; text-align: right; min-height: 88px; }
.calc-history { min-height: 18px; color: var(--ink-4); font-size: 10px; line-height: 1.4; }
.calc-value { font-size: 34px; font-weight: 650; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.calc-key { height: 48px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); font-size: 17px; }
.calc-key:hover { background: var(--bg-2); }
.calc-key.op { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.calc-key.equal { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.calc-key.util { background: var(--bg-2); color: var(--ink-2); font-size: 14px; }
.chmod-grid { display: grid; gap: 8px; }
.chmod-row { display: flex; align-items: center; gap: 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.chmod-row > span { width: 70px; font-size: 12px; color: var(--ink-3); }
.chmod-row .check { margin: 0; }
.chmod-out { text-align: center; font-family: var(--font-mono); font-size: 40px; font-weight: 700; letter-spacing: .12em; }
#chmod-sym { text-align: center; font-family: var(--font-mono); font-size: 18px; }
.hidden-preview { font-size: 13px; line-height: 1.9; }
.serp-preview { max-width: 680px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow-1); }
.serp-url { color: #18865b; font-size: 12px; margin-bottom: 5px; word-break: break-all; }
.serp-title { color: #1a0dab; font-size: 19px; line-height: 1.35; margin-bottom: 5px; }
.serp-desc { color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.og-preview { max-width: 600px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow-1); }
.og-preview img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: var(--bg-2); }
.og-body { padding: 12px 14px; }
.og-site { font-size: 11px; color: var(--ink-4); text-transform: uppercase; letter-spacing: .04em; }
.og-title { font-size: 16px; font-weight: 600; margin-top: 4px; line-height: 1.4; }
.og-desc { font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }
.seo-checklist { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.seo-check { display: flex; align-items: flex-start; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; line-height: 1.6; }
.seo-check:last-child { border-bottom: 0; }
.seo-check input { margin-top: 2px; flex: 0 0 auto; }
.clock-stage { text-align: center; padding: 50px 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.clock-time { font-family: var(--font-mono); font-size: clamp(48px, 12vw, 110px); font-weight: 600; letter-spacing: -.05em; line-height: 1.1; }
.clock-date { font-size: 14px; color: var(--ink-3); margin-top: 10px; }
.clock-secondary { font-family: var(--font-mono); font-size: 13px; color: var(--ink-4); margin-top: 8px; }
.clock-stage:fullscreen { display: grid; place-content: center; border: 0; border-radius: 0; background: #000; color: #fff; }
.clock-stage:fullscreen .clock-date, .clock-stage:fullscreen .clock-secondary { color: rgba(255,255,255,.6); }
.passphrase-out { font-family: var(--font-mono); font-size: clamp(20px, 4vw, 34px); text-align: center; padding: 18px; word-break: break-all; }
.ws-log { min-height: 160px; max-height: 300px; overflow: auto; white-space: pre-wrap; font-family: var(--font-mono); font-size: 11px; line-height: 1.6; }
.netdisk-detail { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.netdisk-detail-top { display: flex; align-items: flex-start; gap: 14px; }
.netdisk-detail-top .netdisk-icon { width: 42px; height: 42px; padding: 9px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: 0 0 42px; }
.netdisk-detail h2 { font-size: 24px; line-height: 1.3; margin: 4px 0 6px; }
.netdisk-detail p { font-size: 13px; line-height: 1.75; color: var(--ink-3); }
.netdisk-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.netdisk-info { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 9px; background: var(--bg-2); }
.netdisk-info > div, .netdisk-code-row > div { display: flex; flex-direction: column; gap: 3px; }
.netdisk-code-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.netdisk-label { font-size: 10px; color: var(--ink-4); letter-spacing: .04em; }
.netdisk-info code { font-family: var(--font-mono); font-size: 12px; word-break: break-all; }
.netdisk-note { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--accent-line); background: var(--accent-soft); border-radius: 0 7px 7px 0; }
.netdisk-note p { margin-top: 3px; font-size: 12px; color: var(--ink-2); white-space: pre-wrap; }
@media (max-width: 600px) { .netdisk-code-row { align-items: flex-start; flex-direction: column; } .netdisk-detail { padding: 17px; } }
.image-preview { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); padding: 8px; text-align: center; overflow: auto; }
.image-preview canvas, .image-preview img { max-width: 100%; max-height: 380px; border-radius: 5px; margin: 0 auto; }
.color-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.color-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); text-align: left; }
.color-card:hover { border-color: var(--accent-line); }
.color-chip { width: 100%; height: 48px; border-radius: 5px; border: 1px solid rgba(0,0,0,.06); }
.color-card b { font-size: 11px; font-weight: 500; }
.color-card code { font-family: var(--font-mono); font-size: 9px; color: var(--ink-4); }
.color-mix-preview { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.color-mix-preview span, .color-mix-preview strong { width: 90px; height: 90px; border-radius: 50%; border: 4px solid var(--panel); box-shadow: 0 0 0 1px var(--line); }
.color-mix-preview i { width: 30px; height: 1px; background: var(--line-2); }
.color-pair { display: flex; flex-direction: column; gap: 8px; }
.color-pair-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: var(--panel); }
.color-pair-row > span { width: 54px; height: 54px; border-radius: 7px; border: 1px solid var(--line); flex: 0 0 54px; }
.color-pair-row b, .color-pair-row code { display: block; font-size: 11px; }
.color-pair-row code { color: var(--ink-3); font-family: var(--font-mono); margin-top: 3px; }
.color-pair-row .btn { margin-left: 8px; }
.hover-preview { display: grid; place-items: center; min-height: 150px; margin-top: 15px; background: var(--bg-2); border-radius: 9px; }
.hover-demo { padding: 18px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.skeleton-demo { padding: 24px; }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (max-width: 1100px) {
  .element-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .food-grid, .almanac-grid { grid-template-columns: 1fr; }
  .hello-grid { grid-template-columns: 1fr; }
  .emoticon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .element-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pdf-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .color-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .color-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .color-mix-preview span, .color-mix-preview strong { width: 64px; height: 64px; }
  .scoreboard { grid-template-columns: 1fr 1fr; gap: 8px; }
  .team { padding: 12px 8px; }
  .team-btns { flex-wrap: wrap; }
  .emoticon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .element-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g2048 { max-width: 100%; }
  .chmod-row { gap: 9px; flex-wrap: wrap; }
  .chmod-row > span { width: 100%; }
  .led-track { font-size: 22px; }
}


@media (max-width: 1100px) {
  .tool-grid, .featured-grid, .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-shell { display: block; }
  .cat-rail {
    top: 62px; display: flex; gap: 5px; overflow-x: auto; padding: 8px 12px;
    background: color-mix(in srgb, var(--bg) 94%, transparent); border-right: 0; border-bottom: 1px solid var(--line);
  }
  .rail-title, .rail-group-title { display: none; }
  .rail-all, .rail-item { flex: 0 0 auto; min-height: 30px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
  .rail-all em, .rail-item em { display: none; }
  .rail-all.active, .rail-item.active { border-color: var(--accent-line); }
  .tool-layout { grid-template-columns: minmax(0, 1fr) 250px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-btn { display: grid; }
  .search-trigger { min-width: 0; width: 36px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .tool-aside .aside-card:first-child { grid-column: span 2; }
  .footer-top { flex-direction: column; gap: 26px; }
  .hero h1 { font-size: 28px; }
}

@media (max-width: 700px) {
  .header-inner { padding: 0 14px; height: 56px; gap: 10px; }
  .cat-rail { top: 56px; padding: 7px 10px; }
  .wrap, .hero-inner { padding: 0 14px; }
  .hero { padding: 24px 0 20px; }
  .hero h1 { font-size: 25px; }
  .hero .lede { font-size: 12.5px; }
  .hero-search { height: 42px; margin-top: 14px; }
  .tool-grid, .featured-grid, .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tool-card { min-height: 90px; padding: 12px 10px; gap: 9px; }
  .tool-card .tool-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .tool-card p { -webkit-line-clamp: 2; }
  .section { padding: 24px 0; }
  .section-head h2 { font-size: 18px; }
  .section-head p { display: none; }
  .cat-card .cat-desc { max-width: 95px; }
  .cat-card .cat-count { display: none; }
  .tool-head { align-items: flex-start; }
  .tool-title-wrap h1 { font-size: 22px; }
  .stage-body { padding: 13px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { padding: 26px 14px 0; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .feedback-fab { right: 12px; bottom: 12px; }
}

@media (max-width: 420px) {
  .tool-grid, .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-card .cat-desc { display: none; }
  .cat-card { min-height: 54px; padding: 9px; }
  .hero-quick { display: none; }
  .tool-card { min-height: 94px; padding: 10px 8px; gap: 7px; }
  .tool-card .tool-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .tool-card .tool-icon svg { width: 16px; height: 16px; }
  .tool-card h3 { font-size: 12px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tool-card p { font-size: 10.5px; -webkit-line-clamp: 2; }
}
