:root {
  color-scheme: light;
  font: 16px/1.55 system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #182c25;
  background: #f6f8f5;
  --ink: #182c25;
  --muted: #576a60;
  --green: #21664e;
  --strong: #184b3b;
  --soft: #e8f3eb;
  --line: #dce6de;
  --surface: #fff;
  --radius: 19px;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { max-width: 1152px; margin-inline: auto; padding: 0 clamp(16px, 4.5vw, 48px) 30px; }
a { color: var(--green); text-underline-offset: .19em; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 740; }
h1 { line-height: 1.14; letter-spacing: -.035em; }
h2 { font-size: 20px; line-height: 1.32; }
svg { display: block; flex: none; }
:focus-visible { outline: 3px solid #2c8564; outline-offset: 4px; }
.sitebar { display: flex; justify-content: space-between; align-items: center; min-height: 84px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; line-height: 1.16; font-weight: 760; flex: none; border-radius: 9px; }
.brand-mark { display: grid; width: 37px; height: 37px; place-items: center; color: #fff; background: var(--strong); border-radius: 11px; }
.brand-mark svg { width: 21px; height: 21px; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .15em; }
.bar-label { font-size: 13px; font-weight: 650; color: var(--muted); }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 250px; padding: clamp(26px, 5vw, 56px); border: 1px solid #c8e0ce; border-radius: 25px; overflow: hidden; background: linear-gradient(109deg, #f1f8ee, #dceee1); }
.hero-copy { z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--strong); font-weight: 740; font-size: 13px; letter-spacing: .08em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #36865f; }
.hero h1 { margin: 13px 0 13px; font-size: clamp(36px, 5.5vw, 62px); }
.hero-copy > p:last-child { color: #476457; font-size: clamp(14px, 1.7vw, 17px); }
.hero-art { position: absolute; right: 14px; top: 50%; width: min(48%, 440px); height: auto; transform: translateY(-50%); pointer-events: none; }
.directory { margin-top: 34px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-head h2 { display: flex; align-items: center; gap: 9px; }
.section-head h2 svg { width: 18px; height: 18px; color: var(--green); }
.count { flex: none; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: #476255; background: #edf4ee; font-size: 12px; font-weight: 680; }
.public-links, .admin-list { margin: 0; padding: 0; list-style: none; }
.public-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.link-card { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 13px; min-height: 101px; height: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 2px 5px #1b422405; color: var(--ink); text-decoration: none; transition: background .16s, border-color .16s, box-shadow .16s; }
.link-card:hover { border-color: #8cb69d; background: #fafffa; box-shadow: 0 4px 14px #24513910; }
.icon-tile { display: inline-grid; place-items: center; width: 41px; height: 41px; border-radius: 12px; color: var(--green); background: var(--soft); flex: none; }
.icon-tile svg { width: 21px; height: 21px; }
.link-text strong, .link-host { display: block; overflow-wrap: anywhere; }
.link-text strong { font-size: 16px; line-height: 1.38; }
.link-host { margin-top: 4px; color: var(--muted); font-size: 12px; }
.empty, .inventory-empty { padding: 30px 20px; text-align: center; color: var(--muted); }
.empty { border: 1px dashed #c5d8ca; border-radius: var(--radius); background: #ffffffb0; }
.empty p { margin-top: 10px; }
.site-footer { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 34px; padding-top: 15px; color: var(--muted); font-size: 12px; }
.site-footer span + span { font-size: 10px; font-weight: 730; letter-spacing: .14em; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.actions form { margin: 0; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 43px; padding: 8px 15px; border: 1px solid transparent; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; text-decoration: none; cursor: pointer; color: #fff; background: var(--green); }
button:hover, .button:hover { background: var(--strong); }
.button svg { width: 14px; height: 14px; }
.secondary { color: var(--strong); background: var(--surface); border-color: var(--line); }
.secondary:hover, .quiet:hover { background: #e7f2e9; }
.quiet { color: var(--strong); background: transparent; }
.danger { color: #a03335; background: #fdf0ee; }
.danger:hover { background: #fae1de; }
.admin-heading { padding: 26px 30px; margin-bottom: 20px; border: 1px solid #d1e4d6; border-radius: var(--radius); background: linear-gradient(110deg, #eff7ed, #e4f0e6); }
.admin-heading h1 { margin: 8px 0; font-size: clamp(34px, 4vw, 47px); }
.admin-heading > p:last-child { color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 7px #1b422406; }
.panel-head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.panel-head .icon-tile { width: 37px; height: 37px; }
.panel-head .icon-tile svg { width: 18px; height: 18px; }
.panel-head .count { margin-left: auto; }
.editor { scroll-margin-top: 14px; }
.form { display: grid; gap: 16px; }
.field { display: grid; min-width: 0; gap: 6px; }
label { color: var(--ink); font-weight: 680; font-size: 14px; }
input:not([type=hidden]) { min-width: 0; width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid #c8d9ce; border-radius: 9px; color: var(--ink); background: #fbfdfb; font: inherit; }
input::placeholder { color: #6a7b72; }
input:focus { outline-offset: 1px; border-color: #2c8564; }
.hint, .muted { color: var(--muted); }
.hint { font-size: 12px; line-height: 1.55; }
.editor-actions button { min-width: 108px; }
.admin-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; min-height: 70px; padding: 10px 0; border-top: 1px solid var(--line); }
.admin-list li.selected { background: #f0f8f1; box-shadow: 10px 0 #f0f8f1, -10px 0 #f0f8f1; }
.editing-badge { color: var(--strong); background: var(--soft); cursor: default; }
.editing-badge:hover { background: var(--soft); }
.row-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--green); background: #eef4ee; }
.row-icon svg { width: 17px; height: 17px; }
.item-name { overflow-wrap: anywhere; }
.item-name strong { font-size: 15px; }
.url { margin-top: 2px; font-size: 12px; }
.row-actions { flex-wrap: nowrap; }
.row-actions .button, .row-actions button { min-height: 44px; padding-inline: 10px; font-size: 13px; }
.notice { margin-bottom: 15px; padding: 10px 14px; border-radius: 10px; }
.notice.error { color: #8c2d31; background: #fcebea; }
.notice.success { color: #19573f; background: #e4f4e9; }
.login-card { max-width: 437px; margin: clamp(20px, 8vw, 76px) auto 0; padding: clamp(22px, 4vw, 32px); }
.login-card h1 { margin: 13px 0 7px; font-size: 32px; }
.login-card .form, .login-card .notice { margin-top: 18px; }
@media (max-width: 850px) { .public-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .workspace { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .sitebar { min-height: 69px; }
  .hero { min-height: 194px; border-radius: 18px; }
  .hero-art { right: -25px; top: 43%; width: 66%; opacity: .44; mask-image: linear-gradient(90deg, transparent 16%, #000 52%); }
  .directory { margin-top: 25px; }
  .public-links { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .link-card { min-height: 76px; }
  .admin-heading { padding: 19px; margin-bottom: 13px; }
  .top-actions .button, .top-actions button { padding-inline: 9px; font-size: 13px; }
  .workspace { gap: 12px; }
  .card { padding: 15px; }
  .row-icon { display: none; }
  .admin-list li { grid-template-columns: minmax(0,1fr) auto; gap: 5px; }
  .row-actions .button, .row-actions button { padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
