:root {
  --bg: #0d0f1a;
  --header: #111423;
  --panel: #141828;
  --panel-light: #1d2338;
  --panel-lighter: #242b43;
  --line: #242b40;
  --line-light: #303951;
  --ink: #f4f5f8;
  --muted: #8a92a8;
  --muted-2: #626b84;
  --yellow: #f5c518;
  --purple: #6f2bd6;
  --purple-soft: #351961;
  --blue: #278bd8;
  --green: #2eb85c;
  --orange: #ff6335;
  --red: #e74b54;
  --radius: 8px;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd { margin: 0; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 220px minmax(360px, 1fr) auto; align-items: center; gap: 26px; min-height: 72px; padding: 0 40px; border-bottom: 1px solid var(--line); background: rgba(17, 20, 35, .98); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 7px; color: #14100a; background: var(--yellow); font-size: 18px; font-weight: 900; }
.brand-copy { display: grid; gap: 1px; min-width: 0; }
.brand-copy strong { font-size: 15px; line-height: 1.2; white-space: nowrap; }
.brand-copy small { color: var(--muted-2); font-size: 8px; letter-spacing: .7px; line-height: 1.2; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.nav-item { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 12px; white-space: nowrap; }
.nav-item span { color: var(--muted-2); font-size: 14px; }
.nav-item:hover, .nav-item.active { color: var(--yellow); background: rgba(245, 197, 24, .08); }
.nav-item.active span { color: var(--yellow); }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.header-search, .search-box { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 11px; border: 1px solid transparent; border-radius: 6px; color: var(--muted-2); background: var(--panel); }
.header-search { width: 184px; }
.header-search:focus-within, .search-box:focus-within { border-color: var(--line-light); }
.header-search input, .search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.header-search input::placeholder, .search-box input::placeholder { color: var(--muted-2); }
.sync-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, .02); font-size: 10px; white-space: nowrap; }
.profile-button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #1a1504; background: var(--yellow); font-size: 12px; font-weight: 800; }
.profile-button:hover { filter: brightness(1.08); }

.main-area { width: min(100%, 1440px); flex: 1; margin: 0 auto; padding: 34px 40px 14px; }
.view { display: none; }
.view.active { display: block; }
.hero-banner { display: flex; align-items: center; justify-content: space-between; min-height: 230px; overflow: hidden; padding: 38px 58px; border-radius: 10px; background: #351a64; }
.hero-copy { max-width: 680px; }
.hero-kicker { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 4px; color: var(--yellow); background: rgba(245, 197, 24, .14); font-size: 11px; font-weight: 700; }
.hero-banner h1 { margin-top: 15px; font-size: 31px; line-height: 1.2; }
.hero-banner p { margin-top: 10px; color: #c8badf; font-size: 13px; line-height: 1.6; }
.accent-button { display: inline-flex; align-items: center; gap: 20px; min-height: 38px; margin-top: 23px; padding: 0 15px; border: 0; border-radius: 5px; color: #181204; background: var(--yellow); font-size: 12px; font-weight: 800; }
.accent-button:hover { background: #ffd947; }
.hero-stat { display: grid; justify-items: end; gap: 4px; padding: 20px 28px 10px; text-align: right; }
.hero-stat strong { color: var(--yellow); font-size: 68px; font-weight: 900; line-height: .9; }
.hero-stat span { color: #c7b9df; font-size: 11px; }

.home-section { margin-top: 34px; }
.section-heading, .page-heading, .subsection-heading, .content-toolbar, .panel-title, .info-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.compact-heading { justify-content: flex-start; }
.section-heading > div, .subsection-heading > div, .panel-title > div:first-of-type, .info-heading { display: flex; align-items: center; gap: 10px; }
.section-heading h2, .subsection-heading h2 { font-size: 18px; line-height: 1.3; }
.section-note { color: var(--muted-2); font-size: 11px; }
.section-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; font-size: 12px; font-weight: 800; }
.section-mark.yellow { color: #211902; background: var(--yellow); }
.section-mark.blue { color: #d9f0ff; background: #1266a1; }
.section-mark.green { color: #e1ffe9; background: #19763c; }
.section-mark.orange { color: #ffe8de; background: #9c3a23; }
.section-mark.purple { color: #eedcff; background: #65219d; }
.text-button { border: 0; color: var(--yellow); background: transparent; font-size: 11px; }
.text-button:hover { color: #ffe274; }

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.tool-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) 25px; align-items: center; gap: 12px; min-height: 94px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--panel); text-align: left; }
.tool-card:hover { border-color: var(--line-light); background: var(--panel-light); }
.tool-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; font-size: 16px; font-weight: 700; }
.skin-tool .tool-icon { color: #ffe889; background: #6b4f00; }.activity-tool .tool-icon { color: #efbfff; background: #512177; }.preview-tool .tool-icon { color: #a9e3ff; background: #104a6c; }
.tool-card strong, .tool-card small { display: block; }.tool-card strong { font-size: 14px; }.tool-card small { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.card-arrow { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--muted); background: var(--panel-light); font-size: 14px; }

.home-preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 16px; }
.home-preview-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.preview-art { position: relative; overflow: hidden; aspect-ratio: 1.22 / 1; background: var(--panel-light); }
.preview-art img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.preview-status { position: absolute; top: 9px; left: 9px; min-height: 20px; padding: 0 6px; border-radius: 4px; font-size: 9px; line-height: 20px; }.status-0 { color: #ffc7a8; background: #81341f; }.status-1 { color: #c8a7ff; background: #542384; }.status-2 { color: #a8e4bf; background: #1f6337; }.status-3 { color: #a8dfff; background: #145b80; }
.home-preview-copy { display: grid; gap: 7px; padding: 12px; }.home-preview-copy strong { overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }.home-preview-copy small, .home-preview-copy > span { color: var(--muted); font-size: 10px; }.home-preview-copy > span { color: var(--yellow); }
.progress-line { height: 3px; overflow: hidden; border-radius: 2px; background: var(--panel-lighter); }.progress-line i { display: block; height: 100%; background: var(--yellow); }.home-preview-card:nth-child(2) .progress-line i { background: #8d45f1; }.home-preview-card:nth-child(3) .progress-line i { background: var(--orange); }.home-preview-card:nth-child(4) .progress-line i { background: var(--green); }
.home-activity-section { margin-bottom: 22px; }.home-activity-list { display: grid; gap: 9px; margin-top: 16px; }.home-activity-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) 130px; align-items: center; gap: 14px; min-height: 80px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }.home-activity-item > img { width: 76px; height: 54px; border-radius: 5px; object-fit: cover; }.activity-summary { display: grid; gap: 5px; min-width: 0; }.activity-summary strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.activity-summary span, .activity-summary small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.activity-state { display: grid; justify-items: end; gap: 3px; text-align: right; }.activity-state b, .activity-state strong, .activity-state small { font-size: 10px; }.activity-state strong { color: var(--yellow); }.activity-state small { color: var(--muted-2); }.state-dot { display: inline-flex; min-height: 20px; align-items: center; padding: 0 7px; border-radius: 4px; font-weight: 700; }.state-0 { color: #a8e4bf; background: rgba(46, 184, 92, .17); }.state-1 { color: #a8dfff; background: rgba(39, 139, 216, .17); }.state-2 { color: #ffc7a8; background: rgba(255, 99, 53, .17); }

.page-heading { align-items: flex-end; margin-bottom: 24px; }.page-heading h1 { margin-top: 8px; font-size: 26px; line-height: 1.2; }.eyebrow { color: var(--muted-2); font-size: 10px; font-weight: 700; letter-spacing: .3px; }.page-subtitle { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }.search-box { width: 260px; border-color: var(--line); }.filter-tabs { display: flex; align-items: center; gap: 8px; }.filter-tab { min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px; color: var(--muted); background: var(--panel); font-size: 10px; }.filter-tab:hover, .filter-tab.active { color: #1a1504; background: var(--yellow); }.page-tabs { flex-wrap: wrap; justify-content: flex-end; }

.skin-layout { display: grid; grid-template-columns: 230px minmax(390px, 1fr) 390px; gap: 14px; align-items: start; }.hero-column, .detail-panel, .calendar-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }.hero-column { padding: 16px; }.panel-title { justify-content: flex-start; margin-bottom: 14px; }.panel-title strong, .panel-title small { display: block; }.panel-title strong { font-size: 13px; }.panel-title small { margin-top: 3px; color: var(--muted-2); font-size: 10px; }.hero-column select { min-height: 36px; margin-bottom: 14px; padding: 0 10px; border: 1px solid var(--line-light); border-radius: 5px; color: var(--ink); background: var(--panel-light); outline: 0; font-size: 11px; }.hero-list { display: grid; gap: 7px; }.hero-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 54px; padding: 7px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); background: transparent; text-align: left; }.hero-card:hover, .hero-card.active { border-color: rgba(245, 197, 24, .26); color: var(--ink); background: rgba(245, 197, 24, .08); }.hero-card img { width: 38px; height: 38px; border-radius: 5px; object-fit: cover; }.hero-card strong, .hero-card small { display: block; }.hero-card strong { font-size: 12px; }.hero-card small { margin-top: 3px; color: var(--muted-2); font-size: 9px; }.hero-card.active small { color: var(--muted); }.hero-card em { float: right; color: var(--muted-2); font-style: normal; }
.skin-column { min-width: 0; }.content-toolbar { min-height: 36px; margin-bottom: 10px; }.sort-note { color: var(--muted-2); font-size: 10px; white-space: nowrap; }.skin-grid { display: grid; gap: 9px; }.skin-card { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 13px; align-items: center; min-height: 94px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--panel); cursor: pointer; }.skin-card:hover, .skin-card.active { border-color: rgba(245, 197, 24, .55); background: #181d2e; }.skin-card > img { width: 90px; height: 70px; border-radius: 5px; object-fit: cover; background: var(--panel-light); }.skin-card h3 { margin-top: 8px; font-size: 13px; }.skin-card p { margin-top: 3px; color: var(--muted); font-size: 10px; }.skin-card strong { display: block; margin-top: 7px; color: var(--yellow); font-size: 10px; font-weight: 600; }.card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }.tag, .muted-tag { display: inline-flex; align-items: center; min-height: 19px; padding: 0 6px; border-radius: 4px; font-size: 9px; font-weight: 700; white-space: nowrap; }.tag { color: #201a04; background: var(--yellow); }.tag-传说 { color: #ffe0a6; background: #86400f; }.tag-限定 { color: #ffb9a8; background: #8a281b; }.tag-史诗 { color: #e4b5ff; background: #602185; }.tag-勇者 { color: #b5f2cb; background: #1e6d3c; }.tag-green { color: #b8f3cb; background: #1b6436; }.tag-blue { color: #b6e6ff; background: #15547b; }.muted-tag { color: var(--muted); background: var(--panel-light); font-weight: 500; }.card-action { align-self: center; min-height: 24px; padding: 0 8px; border-radius: 4px; color: var(--yellow); background: var(--panel-light); font-size: 9px; line-height: 24px; white-space: nowrap; }

.detail-panel { position: sticky; top: 88px; min-width: 0; overflow: hidden; padding: 16px; }.detail-hero { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 13px; align-items: center; padding: 10px; border-radius: 6px; background: var(--purple-soft); }.detail-image { width: 96px; height: 76px; border-radius: 5px; object-fit: cover; background: var(--panel-light); }.detail-title h2 { margin-top: 9px; font-size: 16px; }.detail-title p { margin-top: 4px; color: #c8badf; font-size: 10px; line-height: 1.45; }.detail-price { grid-column: 1 / -1; display: grid; gap: 4px; margin-top: 3px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }.detail-price small { color: #c8badf; font-size: 9px; }.detail-price strong { color: var(--yellow); font-size: 12px; }.detail-tabs { display: flex; gap: 20px; min-height: 46px; align-items: end; border-bottom: 1px solid var(--line); }.detail-tabs span { position: relative; padding-bottom: 11px; color: var(--muted); font-size: 10px; }.detail-tabs span.active { color: var(--yellow); }.detail-tabs span.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--yellow); content: ""; }.info-block { padding: 16px 0 2px; }.info-heading { justify-content: flex-start; gap: 8px; }.info-heading h3 { font-size: 12px; }.count-badge { margin-left: auto; padding: 4px 7px; border-radius: 999px; color: #dcaaff; background: rgba(111, 43, 214, .18); font-size: 9px; }.info-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 11px; }.info-cards > div { min-width: 0; min-height: 58px; padding: 9px; border-radius: 5px; background: var(--panel-light); }.info-cards small, .info-cards strong { display: block; }.info-cards small { color: var(--muted-2); font-size: 9px; }.info-cards strong { overflow: hidden; margin-top: 6px; color: var(--ink); font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }.record-list { display: grid; gap: 6px; margin: 11px 0 0; padding: 0; list-style: none; }.record-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px; border-radius: 5px; background: var(--panel-light); }.record-index { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: #231b03; background: var(--yellow); font-size: 9px; font-weight: 800; }.record-list li > div { display: grid; gap: 3px; min-width: 0; }.record-list strong { font-size: 10px; }.record-list div > span, .record-list small { overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }.record-list small { color: var(--muted-2); }.info-block > p, .starforce-card > span > p { margin-top: 10px; color: var(--muted); font-size: 10px; }.starforce-list { display: grid; gap: 7px; margin-top: 11px; }.starforce-card { display: grid; gap: 9px; padding: 10px; border-radius: 5px; background: var(--panel-light); }.starforce-card > strong { font-size: 10px; }.starforce-card .record-list { margin-top: 0; }.starforce-card .record-list li { padding: 6px; background: var(--panel-lighter); }

.activity-grid { display: grid; gap: 12px; }.activity-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }.activity-main { display: grid; grid-template-columns: 120px minmax(0, 1fr) 130px; gap: 16px; align-items: center; padding: 15px; }.activity-main > img { width: 120px; height: 84px; border-radius: 6px; object-fit: cover; }.activity-copy { min-width: 0; }.activity-copy h2 { margin-top: 10px; font-size: 16px; }.activity-copy p { margin-top: 6px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }.date-line { display: block; margin-top: 9px; color: var(--muted-2); font-size: 9px; }.activity-actions { display: grid; justify-items: end; gap: 4px; text-align: right; }.activity-actions b { font-size: 9px; }.activity-actions strong { color: var(--yellow); font-size: 12px; }.activity-actions small { color: var(--muted-2); font-size: 9px; }.activity-actions button { min-height: 26px; margin-top: 4px; padding: 0 9px; border: 0; border-radius: 4px; color: var(--yellow); background: var(--panel-light); font-size: 9px; }.guide-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; min-height: 44px; padding: 11px 15px; background: var(--panel-light); }.guide-strip section { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; }.guide-strip b { color: var(--yellow); font-size: 9px; white-space: nowrap; }.guide-strip section:nth-child(2) b { color: var(--green); }.guide-strip span, .guide-strip small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.guide-strip small { color: var(--muted-2); }

.calendar-panel { padding: 16px; }.calendar-actions { display: flex; gap: 5px; margin-left: auto; }.calendar-actions button { width: 24px; height: 24px; border: 0; border-radius: 4px; color: var(--muted); background: var(--panel-light); }.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 14px; }.calendar-grid > span { padding-bottom: 4px; color: var(--muted-2); font-size: 9px; text-align: center; }.calendar-grid > i { display: flex; align-items: flex-start; min-height: 45px; padding: 6px; border-radius: 5px; color: var(--muted); background: var(--panel-light); font-size: 9px; font-style: normal; }.calendar-grid > i.today { color: #211902; background: var(--yellow); font-weight: 800; }.subsection-heading { margin-top: 30px; }.subsection-heading h2 { font-size: 16px; }.preview-timeline { display: grid; gap: 9px; margin-top: 14px; }.preview-item { display: grid; grid-template-columns: 104px minmax(0, 1fr) 116px; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }.preview-item > img { width: 104px; height: 72px; border-radius: 5px; object-fit: cover; }.preview-copy { min-width: 0; }.preview-copy h2 { margin-top: 8px; font-size: 13px; }.preview-copy dl { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 9px; }.preview-copy dl > div { display: grid; gap: 3px; }.preview-copy dt { color: var(--muted-2); font-size: 9px; }.preview-copy dd { color: var(--ink); font-size: 10px; }.preview-copy p { margin-top: 9px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.preview-date { display: grid; justify-items: end; gap: 5px; text-align: right; }.preview-date b { color: var(--blue); font-size: 10px; }.preview-date small { color: var(--muted-2); font-size: 9px; }
.empty-state { display: grid; min-height: 140px; place-items: center; border: 1px dashed var(--line-light); border-radius: var(--radius); color: var(--muted); background: var(--panel); font-size: 11px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; width: min(100%, 1440px); margin: 0 auto; padding: 16px 40px 22px; color: var(--muted-2); font-size: 9px; }
.mobile-tabbar { display: none; }

/* The admin page uses the same palette while keeping its denser left rail. */
.admin-body { background: var(--bg); }.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }.admin-body .rail { position: sticky; top: 0; display: flex; flex-direction: column; gap: 24px; height: 100vh; padding: 24px 16px; border-right: 1px solid var(--line); background: var(--header); }.admin-body .brand-row { display: flex; align-items: center; gap: 10px; padding: 0 8px; }.admin-body .brand-row small, .admin-body .brand-row strong { display: block; }.admin-body .brand-row small { color: var(--muted-2); font-size: 9px; }.admin-body .brand-row strong { margin-top: 3px; font-size: 15px; }.admin-body .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }.admin-body .rail-nav { display: grid; gap: 6px; }.admin-body .nav-item, .admin-body .admin-link { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; text-align: left; font-size: 11px; }.admin-body .nav-item:hover, .admin-body .nav-item.active, .admin-body .admin-link:hover { color: var(--yellow); background: rgba(245, 197, 24, .08); }.admin-body .nav-item span:first-child, .admin-body .admin-link span:first-child { display: grid; place-items: center; width: 22px; height: 22px; color: inherit; }.admin-body .admin-link { margin-top: auto; }.admin-main { min-width: 0; padding: 30px 36px; }.admin-body .topbar { position: static; display: flex; min-height: auto; margin: 0 0 24px; padding: 0; border: 0; background: transparent; }.admin-body .topbar h1 { margin-top: 7px; font-size: 25px; }.admin-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }.admin-page-heading h2 { margin-top: 7px; font-size: 20px; }.admin-page-heading p:not(.eyebrow) { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.5; }.back-button { margin-bottom: 15px; padding: 0; border: 0; color: var(--yellow); background: transparent; font-size: 11px; font-weight: 800; }.solid-button, .ghost-button, .danger-button { min-height: 36px; border: 0; border-radius: 5px; padding: 0 13px; font-size: 11px; font-weight: 800; cursor: pointer; }.solid-button { color: #1a1504; background: var(--yellow); }.solid-button:hover { background: #ffd947; }.ghost-button { color: var(--ink); background: var(--panel-lighter); }.ghost-button:hover { background: var(--line-light); }.danger-button { color: #ffb8b8; background: rgba(231, 75, 84, .16); }.admin-list { display: grid; gap: 8px; }.admin-record { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }.record-main { display: flex; align-items: center; gap: 12px; min-width: 0; }.record-main img, .admin-record img { width: 54px; height: 54px; border-radius: 5px; object-fit: cover; background: var(--panel-light); }.admin-record h3 { margin-top: 6px; font-size: 13px; }.admin-record p { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }.record-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }.empty-state { padding: 38px 20px; border: 1px dashed var(--line-light); border-radius: var(--radius); color: var(--muted); text-align: center; font-size: 11px; }.editor-dialog { width: min(680px, calc(100% - 28px)); max-height: min(850px, calc(100vh - 28px)); padding: 0; border: 1px solid var(--line-light); border-radius: var(--radius); color: var(--ink); background: var(--panel); box-shadow: 0 24px 80px rgba(0, 0, 0, .5); }.editor-dialog::backdrop { background: rgba(7, 9, 17, .72); }.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 22px 15px; border-bottom: 1px solid var(--line); }.dialog-head h2 { margin-top: 7px; font-size: 18px; }.icon-button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 5px; color: var(--muted); background: var(--panel-light); font-size: 21px; cursor: pointer; }.editor-form { display: grid; gap: 13px; max-height: calc(100vh - 150px); overflow-y: auto; padding: 18px 22px 22px; }.editor-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }.editor-form input, .editor-form textarea { width: 100%; border: 1px solid var(--line-light); border-radius: 5px; color: var(--ink); background: var(--panel-light); outline: 0; }.editor-form input { min-height: 38px; padding: 0 10px; }.editor-form input[type=file] { padding: 8px 10px; }.editor-form textarea { min-height: 78px; padding: 9px 10px; resize: vertical; line-height: 1.5; }.editor-form input::placeholder, .editor-form textarea::placeholder { color: var(--muted-2); }.editor-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }.editor-section { padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-light); }.editor-section > strong { font-size: 11px; }.field-note { color: var(--muted-2); font-size: 9px; font-weight: 400; line-height: 1.4; }.editor-image-preview { width: 100%; max-height: 160px; border: 1px solid var(--line); border-radius: 5px; object-fit: contain; background: var(--panel-light); }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }.login-card { width: min(100%, 460px); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }.login-card h1 { margin-top: 22px; font-size: 22px; line-height: 1.2; }.login-copy { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }.login-form { display: grid; gap: 12px; margin-top: 18px; }.login-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }.login-form input { min-height: 40px; padding: 0 12px; border: 1px solid var(--line-light); border-radius: 5px; color: var(--ink); background: var(--panel-light); outline: 0; }.login-form input::placeholder { color: var(--muted-2); }.login-footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }.login-error { min-height: 18px; margin-top: 10px; color: #ff9e9e; font-size: 11px; line-height: 1.4; }

@media (max-width: 700px) {
  .admin-main { padding: 20px 14px 32px; }.admin-page-heading { flex-direction: column; }.admin-page-heading > .solid-button { width: 100%; }.admin-record { align-items: stretch; flex-direction: column; }.record-actions { justify-content: flex-start; }.editor-two { grid-template-columns: 1fr; }.dialog-head { padding-right: 16px; padding-left: 16px; }.editor-form { padding-right: 16px; padding-left: 16px; }.admin-body .rail-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }.admin-body .rail { gap: 14px; }.admin-body .admin-link { position: static; }.admin-body .admin-link + .admin-link { margin-top: 0; }
}

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 190px minmax(280px, 1fr) auto; gap: 12px; padding: 0 24px; }
  .main-area { padding-right: 24px; padding-left: 24px; }.site-footer { padding-right: 24px; padding-left: 24px; }
  .skin-layout { grid-template-columns: 210px minmax(330px, 1fr); }.detail-panel { position: static; grid-column: 1 / -1; }.detail-panel .info-block { max-width: 920px; }
  .home-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.admin-main { padding-right: 24px; padding-left: 24px; }
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; min-height: 64px; padding: 0 16px; }.main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; min-height: 42px; padding-bottom: 5px; }.topbar-actions { gap: 8px; }.topbar-actions .header-search, .topbar-actions .sync-pill { display: none; }.main-area { padding: 20px 16px 10px; }.hero-banner { min-height: 230px; padding: 28px 25px; }.hero-banner h1 { font-size: 25px; }.hero-stat { padding-right: 0; }.hero-stat strong { font-size: 50px; }.tool-grid { grid-template-columns: 1fr; }.home-activity-item { grid-template-columns: 64px minmax(0, 1fr) 92px; gap: 10px; }.home-activity-item > img { width: 64px; height: 52px; }.skin-layout { grid-template-columns: 1fr; }.hero-column { display: block; }.hero-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }.skin-column { min-width: 0; }.page-heading { align-items: flex-start; flex-direction: column; }.page-heading .search-box { width: 100%; }.page-tabs { justify-content: flex-start; }.activity-main { grid-template-columns: 90px minmax(0, 1fr) 94px; gap: 11px; }.activity-main > img { width: 90px; height: 70px; }.guide-strip { gap: 10px; }.guide-strip section { grid-template-columns: 1fr; gap: 3px; }.preview-item { grid-template-columns: 86px minmax(0, 1fr); }.preview-item > img { width: 86px; height: 64px; }.preview-date { grid-column: 2; justify-items: start; text-align: left; }.admin-shell { grid-template-columns: 1fr; }.admin-body .rail { position: static; height: auto; padding: 14px 16px; }.admin-body .rail-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }.admin-body .admin-link { position: absolute; top: 14px; right: 16px; }.admin-main { padding: 20px 16px; }.admin-body .admin-grid { grid-template-columns: 1fr; }
  .site-footer { display: none; }.mobile-tabbar { position: sticky; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(17, 20, 35, .98); }.mobile-tab { display: grid; justify-items: center; gap: 3px; min-height: 42px; padding: 4px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; }.mobile-tab span { font-size: 15px; line-height: 1; }.mobile-tab small { font-size: 9px; }.mobile-tab.active { color: var(--yellow); background: rgba(245, 197, 24, .08); }
}

@media (max-width: 560px) {
  .brand-copy small { display: none; }.brand-copy strong { font-size: 14px; }.topbar { gap: 8px; }.nav-item { padding: 0 10px; font-size: 11px; }.hero-banner { min-height: 220px; padding: 24px 20px; }.hero-banner p { max-width: 230px; }.hero-stat { display: none; }.home-section { margin-top: 26px; }.home-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.home-preview-copy { padding: 9px; }.home-preview-copy strong { font-size: 10px; }.home-activity-item { grid-template-columns: 56px minmax(0, 1fr); }.home-activity-item > img { width: 56px; height: 46px; }.activity-state { grid-column: 2; justify-items: start; grid-template-columns: auto auto auto; align-items: center; gap: 7px; text-align: left; }.activity-state small { display: none; }.section-heading { gap: 10px; }.section-note { display: none; }.hero-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }.skin-card { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }.skin-card > img { width: 72px; height: 60px; }.card-action { grid-column: 2; justify-self: start; margin-top: -5px; }.info-cards { grid-template-columns: 1fr; }.activity-main { grid-template-columns: 1fr; }.activity-main > img { width: 100%; height: 120px; }.activity-actions { grid-template-columns: auto auto auto; justify-items: start; text-align: left; }.activity-actions button { grid-column: 1 / -1; }.guide-strip { grid-template-columns: 1fr; }.preview-item { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }.preview-item > img { width: 72px; height: 58px; }.preview-copy dl { gap: 8px; }.preview-date { grid-column: 1 / -1; padding-left: 82px; }.calendar-grid > i { min-height: 34px; }.form-two { grid-template-columns: 1fr; }.admin-record { align-items: stretch; flex-direction: column; }.admin-body .admin-link { position: static; }.admin-body .rail-nav { grid-template-columns: 1fr; }
}

.button-link { display: inline-grid; place-items: center; text-decoration: none; }.rail-bottom { display: grid; gap: 6px; margin-top: auto; }.rail-bottom .admin-link { margin-top: 0; }.admin-user { padding: 0 10px 5px; color: var(--muted-2); font-size: 10px; }.admin-user b { color: var(--ink); font-weight: 700; }.dashboard-welcome { display: grid; gap: 8px; margin-bottom: 14px; padding: 24px; border: 1px solid rgba(245, 197, 24, .22); border-radius: var(--radius); background: linear-gradient(110deg, rgba(245, 197, 24, .1), rgba(111, 43, 214, .14)); }.dashboard-welcome h2 { font-size: 25px; }.dashboard-welcome p:last-child { max-width: 550px; color: var(--muted); font-size: 11px; line-height: 1.6; }.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }.metric-card { display: grid; gap: 8px; min-height: 128px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--panel); text-decoration: none; }.metric-card:hover, .quick-link:hover { border-color: rgba(245, 197, 24, .42); transform: translateY(-1px); }.metric-card span { color: var(--muted); font-size: 10px; }.metric-card strong { color: var(--yellow); font-size: 34px; line-height: 1; }.metric-card small { color: var(--muted-2); font-size: 9px; }.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 14px; }.dashboard-panel { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }.dashboard-panel .section-heading { margin-bottom: 13px; }.recent-record { color: var(--ink); text-decoration: none; }.recent-record > b { flex: 0 0 auto; color: var(--yellow); font-size: 10px; }.quick-grid { display: grid; gap: 8px; }.quick-link { display: grid; gap: 6px; padding: 13px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--panel-light); text-decoration: none; }.quick-link strong { font-size: 12px; }.quick-link span { color: var(--muted); font-size: 10px; }.quick-link b { color: var(--yellow); font-size: 10px; }.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }.admin-toolbar input { width: min(340px, 100%); min-height: 36px; padding: 0 10px; border: 1px solid var(--line-light); border-radius: 5px; color: var(--ink); background: var(--panel-light); outline: 0; }.admin-toolbar input::placeholder { color: var(--muted-2); }.admin-toolbar span { color: var(--muted-2); font-size: 10px; white-space: nowrap; }

@media (max-width: 900px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.dashboard-grid { grid-template-columns: 1fr; }.admin-body .rail { height: auto; }.admin-body .rail-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }.admin-body .rail-bottom { grid-template-columns: auto auto; align-items: center; }.admin-body .rail-bottom .admin-user { grid-column: 1 / -1; padding: 0 10px; }.admin-body .rail-bottom .admin-link { position: static; top: auto; right: auto; }.admin-body .rail-bottom .admin-link:first-of-type { margin-top: 0; }
}

@media (max-width: 560px) {
  .metric-grid { gap: 8px; }.metric-card { min-height: 108px; padding: 12px; }.metric-card strong { font-size: 27px; }.dashboard-welcome { padding: 18px; }.dashboard-welcome h2 { font-size: 20px; }.admin-toolbar { align-items: stretch; flex-direction: column; }.admin-toolbar input { width: 100%; }.admin-toolbar span { align-self: flex-start; }.admin-body .rail-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }.admin-body .rail-bottom { grid-template-columns: 1fr; }.admin-body .rail-bottom .admin-user { grid-column: auto; }
}

.database-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr); gap: 14px; align-items: start; }.database-panel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.panel-heading h2 { margin-top: 7px; font-size: 18px; }.database-state-dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--muted-2); box-shadow: 0 0 0 4px rgba(98, 107, 132, .12); }.database-state-dot.connected { background: var(--green); box-shadow: 0 0 0 4px rgba(46, 184, 92, .14); }.database-summary { margin-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.7; }.database-meta { display: grid; gap: 1px; margin-top: 19px; }.database-meta > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }.database-meta dt { color: var(--muted-2); font-size: 10px; }.database-meta dd { max-width: 62%; overflow: hidden; color: var(--ink); font-size: 10px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }.database-form { display: grid; gap: 13px; }.database-form select, .database-form input { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid var(--line-light); border-radius: 5px; color: var(--ink); background: var(--panel-light); outline: 0; }.database-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }.database-form select { appearance: auto; }.database-form .editor-two { margin-top: 0; }.database-warning { padding: 9px 10px; border-left: 2px solid var(--yellow); background: rgba(245, 197, 24, .06); }.database-actions { display: flex; justify-content: flex-end; gap: 8px; }.database-actions button:disabled { cursor: wait; opacity: .62; }.database-feedback { min-height: 16px; color: var(--muted); font-size: 10px; line-height: 1.4; }.database-feedback[data-type="success"] { color: var(--green); }.database-feedback[data-type="error"] { color: #ff9e9e; }.database-note { display: flex; gap: 12px; margin-top: 14px; padding: 13px 16px; border: 1px solid rgba(245, 197, 24, .18); border-radius: var(--radius); background: rgba(245, 197, 24, .05); }.database-note strong { flex: 0 0 auto; color: var(--yellow); font-size: 10px; }.database-note span { color: var(--muted); font-size: 10px; line-height: 1.5; }

@media (max-width: 900px) {
  .database-layout { grid-template-columns: 1fr; }.admin-body .rail-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .database-panel { padding: 16px; }.database-actions { align-items: stretch; flex-direction: column-reverse; }.database-actions button { width: 100%; }.database-note { align-items: flex-start; flex-direction: column; gap: 6px; }.admin-body .rail-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Interactive detail controls use native buttons for keyboard and touch support. */
.card-action { border: 0; font: inherit; cursor: pointer; }
.card-action:hover, .card-action:focus-visible { color: #201a04; background: var(--yellow); }
.detail-tab { position: relative; min-height: 35px; padding: 0 0 11px; border: 0; color: var(--muted); background: transparent; font: inherit; font-size: 10px; cursor: pointer; }
.detail-tab:hover, .detail-tab:focus-visible, .detail-tab.active { color: var(--yellow); }
.detail-tab.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--yellow); content: ""; }

/* AI 续写补全工作台 */
.ai-head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.ai-top-grid { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.1fr); gap: 14px; align-items: start; }
.ai-form .editor-two { margin-top: 0; }
.ai-warning { padding: 9px 10px; border-left: 2px solid var(--green); background: rgba(46, 184, 92, .06); }
.ai-warning code { padding: 1px 5px; border-radius: 4px; color: var(--yellow); background: rgba(245, 197, 24, .12); font-family: Consolas, Menlo, monospace; font-size: 9px; }
.ai-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 12px; }
.ai-summary-card { display: grid; gap: 7px; min-height: 92px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.ai-summary-card span { color: var(--muted); font-size: 10px; }
.ai-summary-card strong { color: var(--yellow); font-size: 24px; line-height: 1; }
.ai-summary-card:nth-child(3) strong { color: var(--green); }
.ai-summary-card:nth-child(4) strong { color: var(--blue, #4d9fff); }
.ai-summary-card small { color: var(--muted-2); font-size: 9px; }
.todo-group { margin-top: 20px; }
.todo-group h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 13px; }
.todo-group h3 small { color: var(--muted-2); font-size: 9px; font-weight: 500; }
.todo-grid { display: grid; gap: 8px; margin-top: 9px; }
.todo-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.todo-main { min-width: 0; }
.todo-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.todo-title-row strong { font-size: 13px; }
.todo-fields { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 0; padding: 0; list-style: none; }
.todo-fields li { display: grid; gap: 2px; max-width: 360px; padding: 6px 9px; border: 1px dashed var(--line); border-radius: 5px; background: var(--panel-light); }
.todo-fields span { color: var(--muted-2); font-size: 9px; }
.todo-fields em { overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.todo-fields .todo-more { display: block; padding: 6px 9px; border: 0; color: var(--muted-2); background: transparent; }
.todo-actions { flex: 0 0 auto; }
.todo-actions button:disabled, #aiDialog button:disabled { cursor: wait; opacity: .62; }
#aiDialog { width: min(820px, calc(100% - 28px)); }
.ai-diff-note { margin-bottom: 12px; padding: 9px 10px; border-left: 2px solid var(--green); border-radius: 3px; color: var(--muted); background: rgba(46, 184, 92, .06); font-size: 10px; line-height: 1.5; }
.diff-row { padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-light); }
.diff-row + .diff-row { margin-top: 10px; }
.diff-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.diff-head strong { font-size: 12px; }
.diff-head small { color: var(--muted-2); font-family: Consolas, Menlo, monospace; font-size: 9px; }
.diff-row > label { display: grid; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 10px; font-weight: 700; }
.diff-from { padding: 8px 10px; border-radius: 5px; color: var(--muted); background: rgba(255, 255, 255, .03); font-size: 10px; font-weight: 400; line-height: 1.5; }
.diff-row textarea { width: 100%; min-height: 62px; padding: 8px 10px; border: 1px solid var(--line-light); border-radius: 5px; color: var(--ink); background: var(--panel); outline: 0; font: inherit; font-size: 11px; line-height: 1.5; resize: vertical; }
.diff-row textarea:focus { border-color: rgba(245, 197, 24, .6); }
.database-note a, .ai-warning a { color: var(--yellow); text-decoration: none; }

@media (max-width: 980px) {
  .ai-top-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ai-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .todo-card { align-items: stretch; flex-direction: column; }
  .todo-actions { align-self: flex-start; }
  .ai-head-actions { justify-content: flex-start; }
  .diff-head { align-items: flex-start; flex-direction: column; gap: 3px; }
}
