:root {
  --bg: #f7f8fc; --surface: #ffffff; --ink: #18212f; --muted: #667085; --line: #e2e7f0;
  --primary: #4855c8; --primary-dark: #303b9b; --accent: #09a98a; --shadow: 0 16px 45px rgba(33,45,80,.08);
}
* { box-sizing: border-box; } html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--bg); font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
a { color: inherit; text-decoration: none; } button,input,textarea,select { font: inherit; } button { cursor: pointer; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(226,231,240,.85); background: rgba(255,255,255,.88); backdrop-filter: blur(18px); }
.nav-shell { width: min(1240px,calc(100% - 40px)); min-height: 66px; margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--primary); box-shadow: 0 7px 16px rgba(72,85,200,.25); font-size: 17px; }
.brand small { color: #98a2b3; font-size: 9px; letter-spacing: .14em; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 24px; flex: 1; } .main-nav a { color: var(--muted); font-size: 14px; font-weight: 600; } .main-nav a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; } .language-menu { position: relative; }
.language-menu summary { list-style: none; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 13px; cursor: pointer; }
.language-menu summary::-webkit-details-marker { display: none; } .language-list { position: absolute; top: calc(100% + 9px); right: 0; width: 146px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.language-list a { display: block; padding: 8px 10px; border-radius: 7px; color: var(--muted); font-size: 13px; } .language-list a:hover,.language-list a.active { color: var(--primary); background: #eef0ff; }
.theme-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; color: var(--primary); background: #fff; }
.hero-shell { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #fbfcff; } .hero-grid { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(#e8ebfb 1px,transparent 1px),linear-gradient(90deg,#e8ebfb 1px,transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom,#000 10%,transparent 90%); }
.hero-inner { position: relative; z-index: 1; width: min(820px,calc(100% - 40px)); margin: auto; padding: 92px 0 70px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid #dfe4ff; border-radius: 999px; color: var(--primary); background: #f0f2ff; font-size: 12px; font-weight: 700; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(9,169,138,.12); }
.hero-inner h1 { max-width: 760px; margin: 23px auto 14px; font-size: clamp(38px,6vw,68px); line-height: 1.03; letter-spacing: -.065em; } .hero-subtitle { max-width: 640px; margin: 0 auto 32px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-search { display: flex; align-items: center; gap: 11px; max-width: 700px; margin: auto; padding: 7px; border: 1px solid #dbe1ee; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.hero-search .icon { padding-left: 8px; color: var(--primary); font-size: 25px; } .hero-search input { min-width: 0; flex: 1; padding: 10px 2px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.hero-search button,.run-button { border: 0; border-radius: 9px; padding: 11px 19px; color: #fff; background: var(--primary); font-weight: 700; } .hero-search button:hover,.run-button:hover { background: var(--primary-dark); }
.quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; margin-top: 17px; color: #98a2b3; font-size: 12px; } .quick-links a { padding: 5px 9px; border: 1px solid #e5e9f2; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.8); } .quick-links a:hover { color: var(--primary); border-color: #bfc6f2; }
.page-shell { width: min(1240px,calc(100% - 40px)); margin: auto; } .section-block { padding: 53px 0 8px; scroll-margin-top: 80px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; padding-bottom: 13px; border-bottom: 1px solid var(--line); } .section-heading > div { min-width: 0; }
.section-heading h2 { display: inline-block; margin: 0 0 4px 10px; font-size: 25px; letter-spacing: -.04em; } .section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.section-kicker { margin: 0; color: var(--primary); font-size: 11px; letter-spacing: .13em; font-weight: 800; text-transform: uppercase; } .section-note { color: #8d98aa; font-size: 12px; } .text-link { color: var(--primary); font-size: 13px; font-weight: 700; white-space: nowrap; }
.tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; } .popular-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.tool-card { display: flex; min-height: 185px; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.tool-card:hover { transform: translateY(-3px); border-color: #b9c1f5; box-shadow: var(--shadow); } .tool-card-top { display: flex; align-items: center; justify-content: space-between; }
.tool-icon { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 10px; color: var(--primary); background: #eef0ff; font-size: 13px; font-weight: 800; } .arrow { color: #9aa5b8; font-size: 20px; }
.tool-card h3 { margin: 19px 0 7px; font-size: 16px; letter-spacing: -.02em; } .tool-card p { min-height: 38px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.tool-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 15px; font-size: 10px; } .local-pill { color: #07886f; font-weight: 700; } .tool-key { color: #a7afbd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; padding: 30px 0 18px; color: #98a2b3; font-size: 12px; } .breadcrumb a:hover { color: var(--primary); }
.category-hero,.tool-header { display: flex; align-items: center; gap: 20px; padding: 30px 0 34px; } .category-symbol,.tool-header-icon { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 15px; color: var(--primary); background: #eef0ff; font-size: 17px; font-weight: 800; }
.category-hero h1,.tool-header h1 { margin: 4px 0 7px; font-size: 38px; letter-spacing: -.055em; } .category-hero p:last-child,.tool-header p:last-child { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.6; }
.category-grid { padding-bottom: 70px; } .tool-header { position: relative; border-bottom: 1px solid var(--line); } .header-local { margin-left: auto; align-self: flex-start; padding-top: 13px; color: #07886f; font-size: 12px; font-weight: 700; white-space: nowrap; }
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 30px 0 48px; } .work-panel { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 8px 26px rgba(35,44,78,.04); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; } .panel-heading h2 { margin: 0; font-size: 15px; } .panel-actions { display: flex; gap: 7px; }
.ghost-button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #fff; font-size: 12px; } .ghost-button:hover { border-color: #bbc3f4; color: var(--primary); }
.tool-form { display: flex; flex-direction: column; gap: 10px; } .code-input,.secondary-input,.result-output,.empty-result,.error-result { width: 100%; min-height: 330px; padding: 15px; border: 1px solid #dfe4ee; border-radius: 9px; color: #263246; background: #f9faff; font: 13px/1.65 "SFMono-Regular",Consolas,"Liberation Mono",monospace; }
.code-input { resize: vertical; outline: 0; } .code-input:focus,.secondary-input:focus,.text-input:focus,.select-input:focus { border-color: #9fa8ec; outline: 3px solid rgba(72,85,200,.11); } .secondary-input { min-height: 90px; resize: vertical; }
.field-label { color: var(--muted); font-size: 12px; font-weight: 700; } .text-input,.select-input { width: 100%; padding: 9px 11px; border: 1px solid #dfe4ee; border-radius: 8px; color: var(--ink); background: #fff; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; } .privacy-note { color: #07886f; font-size: 11px; }
.empty-result,.error-result { display: grid; place-items: center; align-content: center; min-height: 430px; color: #98a2b3; text-align: center; } .empty-result span { margin-bottom: 12px; color: #bdc5d8; font-size: 34px; } .empty-result p { margin: 0; font-family: inherit; font-size: 13px; }
.error-result { display: block; border-color: #f2c4c4; color: #a33c3c; background: #fff8f8; } .error-result p { margin-bottom: 0; font: 13px/1.6 "SFMono-Regular",Consolas,monospace; } .result-output { min-height: 430px; margin: 0; overflow: auto; white-space: pre-wrap; }
.tool-copy-section { padding: 0 0 80px; border-top: 1px solid var(--line); } .tool-copy-section h2 { margin: 32px 0 8px; font-size: 22px; } .tool-copy-section > p { color: var(--muted); }
.info-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; } .info-columns h3 { margin: 0 0 6px; font-size: 14px; } .info-columns p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: #fff; } .footer-shell { width: min(1240px,calc(100% - 40px)); min-height: 92px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #98a2b3; font-size: 12px; } .footer-shell strong { color: var(--ink); } .footer-links { display: flex; gap: 18px; } .footer-links a:hover { color: var(--primary); }
body.dark { --bg: #141824; --surface: #1b2130; --ink: #edf1fb; --muted: #a8b1c5; --line: #30394c; --primary: #9da8ff; --primary-dark: #bbc2ff; --shadow: 0 16px 45px rgba(0,0,0,.24); }
body.dark .site-header,body.dark .site-footer,body.dark .work-panel,body.dark .tool-card,body.dark .language-list,body.dark .language-menu summary,body.dark .ghost-button,body.dark .hero-search { background: var(--surface); } body.dark .hero-shell { background: #171c29; } body.dark .hero-grid { opacity: .18; } body.dark .code-input,body.dark .secondary-input,body.dark .result-output,body.dark .empty-result { color: var(--ink); background: #151a26; border-color: var(--line); } body.dark .text-input,body.dark .select-input { color: var(--ink); background: var(--surface); border-color: var(--line); }
@media (max-width:900px) { .main-nav { gap: 12px; } .popular-grid,.tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .workspace { grid-template-columns: 1fr; } }
@media (max-width:620px) { .nav-shell,.page-shell,.footer-shell { width: min(100% - 28px,1240px); } .nav-shell { gap: 12px; min-height: 60px; } .main-nav { display: none; } .hero-inner { width: min(100% - 28px,820px); padding: 66px 0 52px; } .hero-inner h1 { font-size: 42px; } .hero-subtitle { font-size: 15px; } .hero-search { align-items: stretch; flex-wrap: wrap; } .hero-search input { min-width: 180px; } .hero-search button { flex: 1 0 100%; } .section-heading { align-items: flex-start; flex-direction: column; } .popular-grid,.tool-grid,.info-columns { grid-template-columns: 1fr; } .category-hero,.tool-header { align-items: flex-start; flex-wrap: wrap; } .category-hero h1,.tool-header h1 { font-size: 31px; } .header-local { margin-left: 86px; margin-top: -20px; } .footer-shell { padding: 24px 0; align-items: flex-start; flex-direction: column; } .footer-links { flex-wrap: wrap; } }
