:root {
  --ink: #17201d;
  --muted: #68706d;
  --paper: #f5f4ef;
  --line: #d8dad3;
  --accent: #d9ff63;
  --accent-dark: #263a2f;
  --white: #fffef9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, [contenteditable="true"]:focus-visible { outline: 3px solid #7aa000; outline-offset: 3px; }

.site-header {
  width: min(1240px, calc(100% - 48px));
  height: 82px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: -.04em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; background: var(--ink); color: var(--accent); font: 800 17px/1 Arial; transform: rotate(-4deg); }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 650; }
.main-nav a, footer a { position: relative; }
.main-nav a::after, footer a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--ink); transition: right .2s ease; }
.main-nav a:hover::after, footer a:hover::after { right: 0; }
.header-action { justify-self: end; border: 1px solid var(--ink); padding: 10px 17px; font-size: 13px; font-weight: 750; transition: .2s ease; }
.header-action:hover { background: var(--ink); color: var(--white); }

.hero { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 76px; display: grid; grid-template-columns: 1.05fr .8fr; gap: 8vw; align-items: center; }
.eyebrow, .section-kicker { margin: 0 0 20px; font: 800 11px/1.2 Arial, sans-serif; letter-spacing: .17em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 24px; height: 2px; background: var(--ink); }
.hero h1 { margin: 0; max-width: 720px; font-size: clamp(46px, 6.2vw, 82px); line-height: 1.04; letter-spacing: -.075em; font-weight: 850; }
.hero-description { margin: 30px 0 34px; max-width: 570px; color: #505955; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.primary-button { border: 1px solid var(--ink); background: var(--ink); color: var(--white); min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; font-weight: 750; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--accent); }
.primary-button.full { width: 100%; margin-top: 20px; }
.text-button { font-size: 14px; font-weight: 750; border-bottom: 1px solid var(--ink); padding: 5px 0; }
.text-button span { margin-left: 10px; }
.hero-stats { display: flex; gap: 40px; margin: 50px 0 0; }
.hero-stats div { border-left: 1px solid var(--line); padding-left: 16px; }
.hero-stats dt { font: 800 20px/1 Arial; margin-bottom: 7px; }
.hero-stats dd { margin: 0; color: var(--muted); font-size: 12px; }

.hero-board { position: relative; min-height: 515px; padding: 20px 22px; background: var(--accent-dark); color: var(--white); overflow: hidden; box-shadow: 12px 12px 0 #cdd0c8; }
.hero-board::before { content: ""; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; right: -130px; top: -90px; box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.018); }
.board-topline, .board-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; font: 700 10px/1 Arial; letter-spacing: .13em; color: #c6d0ca; }
.board-footer { position: absolute; bottom: 20px; left: 22px; right: 22px; }
.folder-visual { position: absolute; inset: 83px 48px 55px; }
.folder-tab { position: absolute; left: 0; top: 7px; width: 145px; height: 35px; background: #a9c5b4; color: var(--ink); padding: 12px 14px; font: 800 9px/1 Arial; letter-spacing: .12em; clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%); }
.paper { position: absolute; inset: 38px 0 0; }
.paper-back { background: #b8cebf; transform: rotate(4deg) translate(8px, -5px); }
.paper-front { background: var(--accent); color: var(--ink); padding: 34px 30px; transform: rotate(-2deg); display: flex; flex-direction: column; align-items: flex-start; }
.paper-label { border: 1px solid var(--ink); padding: 5px 8px; font-size: 10px; font-weight: 800; }
.paper strong { margin-top: 27px; font-size: clamp(30px, 3vw, 46px); line-height: 1.08; letter-spacing: -.065em; }
.paper small { margin-top: 17px; font-size: 12px; }
.paper-index { position: absolute; right: 22px; bottom: 22px; font: 800 10px Arial; }

.ad-strip { width: min(1240px, calc(100% - 48px)); min-height: 98px; margin: 0 auto 100px; border: 1px dashed #9da39f; display: grid; grid-template-columns: 155px 1fr auto; align-items: center; gap: 24px; padding: 18px 24px; background: rgba(255,255,255,.32); }
.ad-label { justify-self: start; background: #e7e7e0; color: #696e6b; padding: 7px 9px; font: 750 9px Arial; letter-spacing: .12em; }
.ad-strip div { display: flex; flex-direction: column; gap: 4px; }
.ad-strip strong { font-size: 15px; }
.ad-strip small { color: var(--muted); }
.ad-strip > a { background: transparent; border: 0; font-size: 13px; font-weight: 750; cursor: pointer; }
.ad-strip > a span { margin-left: 9px; }

.github-showcase { width: min(1240px, calc(100% - 48px)); margin: 0 auto 110px; }
.github-section-heading { align-items: end; margin-bottom: 35px; padding-top: 25px; border-top: 1px solid var(--ink); }
.github-section-action { max-width: 330px; display: grid; justify-items: end; gap: 12px; text-align: right; }
.github-section-action p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.github-section-action a { font-size: 12px; font-weight: 800; }
.github-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.github-card { min-width: 0; min-height: 365px; display: flex; flex-direction: column; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f7f8f2; transition: background .2s, transform .2s; }
.github-card:hover { z-index: 1; background: var(--white); transform: translateY(-3px); box-shadow: 0 3px 0 var(--accent); }
.github-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.github-mark { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--ink); background: var(--ink); color: var(--accent); font: 900 13px Arial; box-shadow: 4px 4px 0 var(--accent); }
.github-card-top > div { display: flex; align-items: flex-end; flex-direction: column; gap: 6px; }
.github-card-top span { color: var(--muted); font-size: 10px; }
.github-card-top .starred-label { padding: 4px 7px; background: var(--accent); color: var(--ink); font-weight: 850; }
.github-card-top strong { font: 800 12px Arial; }
.github-card h3 { margin: 30px 0 12px; font-size: 22px; letter-spacing: -.04em; }
.github-card h3 a:hover { text-decoration: underline; text-decoration-color: #91a936; text-underline-offset: 4px; }
.github-card > p { margin: 0; color: #59625e; font-size: 13px; line-height: 1.75; }
.github-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.github-tags span { padding: 5px 8px; background: #e9ebe3; color: #626a66; font-size: 9px; font-weight: 750; }
.github-card-footer { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.github-card-footer > span { min-width: 0; overflow: hidden; color: var(--muted); font: 10px Arial; text-overflow: ellipsis; white-space: nowrap; }
.github-card-footer a { flex: 0 0 auto; font-size: 11px; font-weight: 800; }

.main-nav a.active { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.github-page-hero { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 95px 0 105px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 9vw; }
.github-page-hero h1 { margin: 22px 0 0; font-size: clamp(70px, 9vw, 124px); line-height: .86; letter-spacing: -.085em; }
.github-page-intro { padding-bottom: 5px; }
.github-page-intro > p { max-width: 570px; margin: 0 0 42px; color: #535c58; font-size: 17px; line-height: 1.85; }
.github-page-intro dl { display: flex; gap: 42px; margin: 0; }
.github-page-intro dl div { min-width: 115px; padding-left: 14px; border-left: 1px solid var(--line); }
.github-page-intro dt { font: 850 30px Arial; }
.github-page-intro dd { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.github-directory { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 40px 0 115px; border-top: 1px solid var(--ink); }
.github-directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.github-directory-heading h2 { margin: 0; font-size: clamp(38px, 5vw, 64px); letter-spacing: -.06em; }
.github-directory-heading > span { color: var(--muted); font-size: 11px; }
.github-category-row { margin-top: 32px; }
.github-directory-grid { margin-top: 0; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.pagination > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.pagination > div a { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); font: 800 11px Arial; }
.pagination > div a:hover, .pagination > div a.active { border-color: var(--ink); background: var(--ink); color: var(--accent); }
.pagination-direction { font-size: 12px; font-weight: 800; }
.pagination-direction:last-child { justify-self: end; }
.pagination-direction.disabled { color: #a4aaa6; }

.ai-sites-showcase { width: min(1240px, calc(100% - 48px)); margin: 0 auto 110px; }
.ai-site-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ai-site-card { min-width: 0; display: flex; flex-direction: column; background: #f7f8f2; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: transform .2s, background .2s, box-shadow .2s; }
.ai-site-card:hover { z-index: 1; background: var(--white); transform: translateY(-3px); box-shadow: 0 3px 0 var(--accent); }
.ai-site-shot { position: relative; display: block; margin: 13px 13px 0; overflow: hidden; aspect-ratio: 16 / 9; background: #dfe3dc; border: 1px solid #cfd3cc; }
.ai-site-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s ease; }
.ai-site-card:hover .ai-site-shot img { transform: scale(1.025); }
.ai-site-shot > span:last-child { position: absolute; left: 10px; top: 10px; padding: 6px 8px; background: var(--ink); color: var(--accent); font-size: 9px; font-weight: 800; }
.ai-site-shot-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #6d766f; font: 900 40px Arial; letter-spacing: -.08em; background: radial-gradient(circle at 70% 30%, var(--accent), transparent 32%), #e5e8e1; }
.ai-site-card-body { flex: 1; display: flex; flex-direction: column; padding: 18px 17px 17px; }
.ai-site-domain { display: flex; justify-content: space-between; gap: 12px; overflow: hidden; color: #7a827e; font: 10px Arial; }
.ai-site-domain span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-site-domain time { flex: 0 0 auto; }
.ai-site-card h3 { margin: 12px 0 9px; font-size: 21px; letter-spacing: -.045em; }
.ai-site-card h3 a:hover { text-decoration: underline; text-decoration-color: #91a936; text-underline-offset: 4px; }
.ai-site-card-body > p { min-height: 68px; margin: 0; color: #59625e; font-size: 13px; line-height: 1.72; }
.ai-site-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.ai-site-card-footer > a { flex: 0 0 auto; font-size: 11px; font-weight: 800; }
.ai-site-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 17px; padding-bottom: 15px; }
.ai-site-tags span { padding: 4px 7px; background: #e9ebe3; color: #626a66; font-size: 9px; font-weight: 750; }
.ai-sites-hero { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 88px 0 96px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 9vw; }
.ai-sites-hero h1 { margin: 22px 0 0; font-size: clamp(70px, 9vw, 124px); line-height: .86; letter-spacing: -.085em; }
.ai-sites-intro { padding-bottom: 5px; }
.ai-sites-intro > p { max-width: 570px; margin: 0 0 42px; color: #535c58; font-size: 17px; line-height: 1.85; }
.ai-sites-intro dl { display: flex; gap: 42px; margin: 0; }
.ai-sites-intro dl div { min-width: 115px; padding-left: 14px; border-left: 1px solid var(--line); }
.ai-sites-intro dt { font: 850 30px Arial; }
.ai-sites-intro dd { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.ai-sites-directory { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 40px 0 115px; border-top: 1px solid var(--ink); }
.ai-sites-directory .ai-site-grid { margin-top: 0; }

.featured-content-showcase { width: min(1240px, calc(100% - 48px)); margin: 0 auto 110px; }
.featured-content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.featured-content-card { min-width: 0; display: flex; flex-direction: column; background: #f7f8f2; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: transform .2s, background .2s, box-shadow .2s; }
.featured-content-card:hover { z-index: 1; background: var(--white); transform: translateY(-3px); box-shadow: 0 3px 0 var(--accent); }
.featured-content-cover { position: relative; display: block; margin: 13px 13px 0; overflow: hidden; aspect-ratio: 16 / 9; background: #dfe3dc; border: 1px solid #cfd3cc; }
.featured-content-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.featured-content-card:hover .featured-content-cover img { transform: scale(1.025); }
.featured-cover-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #dae7ae, #a9c8e9); color: var(--ink); font-size: 42px; font-weight: 900; }
.content-type-label, .content-star-label { position: absolute; top: 10px; padding: 6px 8px; font-size: 9px; font-weight: 850; }
.content-type-label { left: 10px; background: var(--ink); color: var(--white); }
.content-star-label { right: 10px; background: var(--accent); color: var(--ink); }
.featured-content-body { flex: 1; display: flex; flex-direction: column; padding: 18px 17px 17px; }
.featured-content-meta { display: flex; justify-content: space-between; gap: 12px; color: #7a827e; font-size: 10px; }
.featured-content-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-content-meta time { flex: 0 0 auto; }
.featured-content-card h3 { margin: 13px 0 10px; font-size: 21px; line-height: 1.35; letter-spacing: -.04em; }
.featured-content-card h3 a:hover { text-decoration: underline; text-decoration-color: #91a936; text-underline-offset: 4px; }
.featured-content-body > p { min-height: 88px; margin: 0; color: #59625e; font-size: 13px; line-height: 1.72; }
.featured-content-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.featured-content-footer > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-content-footer a { flex: 0 0 auto; color: var(--ink); font-size: 11px; font-weight: 800; }
.featured-page-hero { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 88px 0 96px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 9vw; }
.featured-page-hero h1 { margin: 22px 0 0; font-size: clamp(70px, 9vw, 124px); line-height: .86; letter-spacing: -.085em; }
.featured-directory { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 40px 0 115px; border-top: 1px solid var(--ink); }

.catalog { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2, .guide h2, .subscribe h2 { margin: 0; font-size: clamp(34px, 4.1vw, 55px); line-height: 1.12; letter-spacing: -.06em; }
.section-kicker { color: #6f7773; margin-bottom: 13px; }
.search-box { width: min(390px, 100%); height: 50px; border-bottom: 1px solid var(--ink); display: flex; align-items: center; gap: 12px; }
.search-box span { font-size: 25px; transform: rotate(-20deg); }
.search-box input { border: 0; outline: 0; width: 100%; background: transparent; color: var(--ink); font-size: 14px; }
.search-box button { border: 0; background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.category-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 38px 0 30px; }
.category-row a { border: 1px solid var(--line); background: transparent; padding: 9px 15px; color: #59615e; font-size: 13px; cursor: pointer; transition: .18s ease; }
.category-row a:hover, .category-row a.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.resource-card { min-width: 0; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.resource-card:hover { background: var(--white); }
.resource-card.pinned { box-shadow: inset 0 3px 0 var(--ink); }
.resource-cover { position: relative; height: 205px; margin: 14px 14px 0; overflow: hidden; display: grid; place-items: center; }
.resource-cover::before, .resource-cover::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(23,32,29,.15); }
.resource-cover::before { width: 160px; height: 160px; right: -42px; top: -45px; }
.resource-cover::after { width: 90px; height: 90px; left: -25px; bottom: -31px; }
.resource-cover.lime { background: #d9f884; }
.resource-cover.blue { background: #a9c8e9; }
.resource-cover.sand { background: #e5d6b9; }
.resource-cover.violet { background: #b9a7db; }
.resource-cover.coral { background: #e7a893; }
.resource-cover.cyan { background: #a6d9d3; }
.resource-cover.navy { background: #344f65; color: white; }
.resource-cover.rose { background: #ddb5bd; }
.format-tag { position: absolute; left: 14px; top: 14px; padding: 5px 7px; background: rgba(255,255,255,.72); color: var(--ink); font: 800 9px Arial; }
.pinned-label { position: absolute; right: 14px; top: 14px; z-index: 2; padding: 5px 8px; background: var(--ink); color: var(--accent); font: 800 9px Arial; letter-spacing: .06em; }
.cover-icon { position: relative; z-index: 1; width: 88px; height: 105px; display: grid; place-items: center; border: 2px solid currentColor; box-shadow: 7px 7px 0 rgba(255,255,255,.48); font-size: 43px; font-weight: 900; transform: rotate(-3deg); }
.cover-icon::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 15px; height: 2px; background: currentColor; box-shadow: 0 -7px currentColor; opacity: .35; }
.editor-pick { position: absolute; right: 0; bottom: 0; background: var(--ink); color: var(--accent); padding: 7px 9px; font-size: 10px; font-weight: 750; }
.resource-body { padding: 20px 17px 18px; }
.resource-meta { display: flex; justify-content: space-between; gap: 10px; color: #7a817e; font-size: 10px; }
.resource-body h3 { margin: 15px 0 9px; font-size: 18px; letter-spacing: -.035em; }
.resource-body h3 a:hover { text-decoration: underline; text-decoration-color: #91a936; text-underline-offset: 4px; }
.resource-body > p { min-height: 66px; margin: 0; color: #606966; font-size: 13px; line-height: 1.7; }
.resource-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 15px; }
.resource-footer strong { font: 850 18px Arial; }
.resource-footer .free-price { color: #58712b; font-family: inherit; font-size: 15px; }
.card-action { border: 0; background: transparent; padding: 0; color: var(--ink); font-size: 12px; font-weight: 750; cursor: pointer; }
.card-action span { margin-left: 7px; }
.empty-state { padding: 65px; text-align: center; border: 1px solid var(--line); }
.empty-state p { color: var(--muted); }

.guide { padding: 105px max(24px, calc((100% - 1240px) / 2)); background: var(--accent-dark); color: var(--white); display: grid; grid-template-columns: .95fr 1.05fr; gap: 10vw; }
.guide .section-kicker { color: #aabbb1; }
.guide ol { list-style: none; padding: 0; margin: 0; }
.guide li { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 23px 0; border-top: 1px solid rgba(255,255,255,.2); }
.guide li:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.guide li > span { color: var(--accent); font: 800 11px Arial; }
.guide strong { font-size: 17px; }
.guide li p { margin: 8px 0 0; max-width: 550px; color: #bfc9c3; font-size: 13px; line-height: 1.7; }

.subscribe { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 105px 0; display: grid; grid-template-columns: 1fr .85fr; align-items: end; gap: 9vw; }
.subscribe form label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 9px; }
.subscribe form > div { display: flex; border-bottom: 2px solid var(--ink); }
.subscribe input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 14px 5px; }
.subscribe button { border: 0; background: transparent; font-weight: 800; cursor: pointer; }
.subscribe button span { margin-left: 12px; }
.subscribe form > p { color: var(--muted); font-size: 11px; }

footer { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 35px 0 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 35px; }
.footer-brand { font-size: 18px; }
footer > p { color: var(--muted); font-size: 12px; }
footer > div:not(.brand) { display: flex; gap: 25px; font-size: 12px; font-weight: 700; }
footer small { grid-column: 1 / -1; color: #8a908d; font-size: 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(16,24,21,.72); backdrop-filter: blur(6px); }
.purchase-modal { position: relative; width: min(490px, 100%); padding: 38px; background: var(--white); box-shadow: 12px 12px 0 var(--accent); }
.purchase-modal h2 { margin: 0 35px 12px 0; font-size: 32px; letter-spacing: -.05em; }
.purchase-modal > p:not(.section-kicker) { color: var(--muted); line-height: 1.7; }
.modal-close { position: absolute; right: 20px; top: 18px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.modal-price { display: flex; align-items: end; justify-content: space-between; margin: 25px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modal-price strong { font: 850 34px Arial; }
.modal-price span { color: var(--muted); font-size: 11px; }
.connection-note { display: flex; gap: 14px; padding: 15px; background: #eff0ea; }
.connection-note > span { font-size: 20px; }
.connection-note strong { font-size: 13px; }
.connection-note p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr; gap: 65px; }
  .hero-board { width: min(570px, 100%); min-height: 500px; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .github-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .github-page-hero { grid-template-columns: 1fr; gap: 55px; }
  .github-page-intro { max-width: 680px; }
  .ai-site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-sites-hero { grid-template-columns: 1fr; gap: 55px; }
  .ai-sites-intro { max-width: 680px; }
  .featured-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-page-hero { grid-template-columns: 1fr; gap: 55px; }
  .guide, .subscribe { grid-template-columns: 1fr; gap: 55px; }
}

@media (max-width: 640px) {
  .site-header, .hero, .ad-strip, .github-showcase, .github-page-hero, .github-directory, .ai-sites-showcase, .ai-sites-hero, .ai-sites-directory, .featured-content-showcase, .featured-page-hero, .featured-directory, .catalog, .subscribe, footer { width: min(100% - 30px, 1240px); }
  .site-header { height: 68px; }
  .header-action { padding: 8px 11px; }
  .hero { padding: 50px 0 55px; }
  .hero h1 { font-size: 45px; }
  .hero-description { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero-stats { gap: 15px; justify-content: space-between; }
  .hero-stats div { padding-left: 10px; }
  .hero-board { min-height: 420px; }
  .folder-visual { inset: 68px 28px 55px; }
  .paper { top: 34px; }
  .ad-strip { grid-template-columns: 1fr auto; margin-bottom: 75px; }
  .ad-label { grid-column: 1 / -1; }
  .ad-strip div { font-size: 12px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .github-section-action { justify-items: start; text-align: left; }
  .github-grid { grid-template-columns: 1fr; }
  .github-card { min-height: 330px; }
  .github-page-hero { padding: 70px 0 75px; }
  .github-page-hero h1 { font-size: clamp(62px, 20vw, 88px); }
  .github-page-intro > p { font-size: 15px; }
  .github-directory-heading { align-items: flex-start; flex-direction: column; }
  .ai-site-grid { grid-template-columns: 1fr; }
  .ai-sites-hero { padding: 70px 0 75px; }
  .ai-sites-hero h1 { font-size: clamp(62px, 20vw, 88px); }
  .ai-sites-intro > p { font-size: 15px; }
  .featured-content-grid { grid-template-columns: 1fr; }
  .featured-page-hero { padding: 70px 0 75px; }
  .featured-page-hero h1 { font-size: clamp(62px, 20vw, 88px); }
  .pagination { grid-template-columns: 1fr 1fr; }
  .pagination > div { grid-column: 1 / -1; grid-row: 1; }
  .search-box { width: 100%; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-cover { height: 230px; }
  .guide { padding: 75px 20px; }
  footer { grid-template-columns: 1fr; }
  footer > div:not(.brand) { flex-wrap: wrap; }
  .purchase-modal { padding: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* 资源详情 */
.detail-shell { min-height: 100vh; }
.detail-header { position: sticky; top: 0; z-index: 30; width: 100%; grid-template-columns: 1fr auto 1fr; padding: 0 max(24px, calc((100% - 1240px) / 2)); background: var(--accent-dark); color: white; border-bottom: 4px solid var(--accent); box-shadow: 0 8px 24px rgba(23,32,29,.16); }
.detail-header .brand-mark { background: var(--accent); color: var(--ink); }
.detail-header .header-action { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.detail-header .header-action:hover { background: white; color: var(--ink); }
.detail-nav { display: flex; align-items: center; gap: 8px; }
.detail-nav a { padding: 11px 15px; color: #d9e2dd; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 750; transition: color .2s, border-color .2s, background .2s; }
.detail-nav a:hover { color: white; border-bottom-color: var(--accent); background: rgba(255,255,255,.06); }
.resource-detail {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 85px 0 110px;
  display: grid;
  grid-template-columns: minmax(320px, .85fr) 1.15fr;
  gap: 8vw;
  align-items: center;
}
.detail-cover.resource-cover { width: 100%; height: 470px; margin: 0; }
.detail-cover .cover-icon { width: 150px; height: 185px; font-size: 72px; }
.detail-copy h1 { margin: 0; font-size: clamp(42px, 5vw, 68px); line-height: 1.08; letter-spacing: -.06em; }
.detail-copy > p:not(.section-kicker) { margin: 25px 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.detail-price { margin: 24px 0; font-size: 36px; font-weight: 900; }
.resource-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 28px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.resource-facts > div { min-width: 0; padding: 13px 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.resource-facts .fact-wide { grid-column: 1 / -1; }
.resource-facts dt { margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .08em; }
.resource-facts dd { overflow-wrap: anywhere; margin: 0; font-size: 12px; font-weight: 750; }
.detail-points { margin: 30px 0 0; padding: 24px 0 0 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 2; }
.detail-bottom-nav { width: min(1040px, calc(100% - 48px)); margin: 0 auto 70px; padding: 32px; border: 1px solid var(--ink); background: var(--accent); display: flex; align-items: center; justify-content: space-between; gap: 24px; box-shadow: 8px 8px 0 var(--ink); }
.detail-back-button { min-height: 50px; display: inline-flex; align-items: center; gap: 20px; padding: 0 22px; background: var(--ink); color: white; font-size: 14px; font-weight: 800; transition: transform .2s; }
.detail-back-button:hover { transform: translateX(-4px); }
.detail-top-button { font-size: 12px; font-weight: 800; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }

/* 提示消息 */
.flash-stack { position: fixed; z-index: 100; top: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; }
.flash-message { min-width: 260px; padding: 13px 18px; background: var(--ink); color: white; box-shadow: 5px 5px 0 var(--accent); font-size: 13px; transition: opacity .25s, transform .25s; }
.flash-message.error { background: #8c342e; box-shadow: 5px 5px 0 #e7a893; }
.flash-message.fade-out { opacity: 0; transform: translateY(-10px); pointer-events: none; }

/* 本地内容管理 */
.admin-body { min-height: 100vh; display: grid; grid-template-columns: 245px 1fr; background: #eeeee8; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 30px 24px; background: var(--accent-dark); color: white; display: flex; flex-direction: column; }
.admin-sidebar .brand-mark { background: var(--accent); color: var(--ink); }
.admin-sidebar nav { display: grid; gap: 5px; margin-top: 55px; }
.admin-sidebar nav a { padding: 12px 13px; color: #d0d8d3; font-size: 13px; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.08); color: var(--accent); }
.admin-sidebar small { margin-top: auto; color: #9eaaa3; font-size: 10px; line-height: 1.6; }
.admin-main { min-width: 0; padding: 55px clamp(24px, 5vw, 75px); }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 35px; }
.admin-heading h1 { margin: 0; font-size: 42px; letter-spacing: -.055em; }
.admin-heading p:not(.section-kicker) { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.admin-table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { padding: 14px 16px; background: #e2e3dc; text-align: left; color: #666e6a; font-size: 10px; letter-spacing: .08em; }
.admin-table td { padding: 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table td strong { display: block; margin-bottom: 4px; }
.admin-table td small { color: var(--muted); }
.status-pill { display: inline-block; padding: 5px 8px; font-size: 10px; font-weight: 800; }
.status-pill.online { background: #e2f3b1; color: #465a20; }
.status-pill.offline { background: #e4e4df; color: #747a77; }
.status-pill.starred { background: var(--accent); color: #37451f; }
.content-kind-pill { display: inline-block; padding: 5px 8px; background: #e5e8e1; font-size: 10px; font-weight: 800; }
.content-kind-pill.video { background: #d9e7f5; color: #29445c; }
.admin-pin-badge { display: inline-block; margin-left: 6px; padding: 3px 5px; background: var(--ink); color: var(--accent); font-size: 8px; vertical-align: 2px; }
.table-actions { display: flex; align-items: center; gap: 12px; }
.table-actions a, .table-actions button { border: 0; background: transparent; padding: 0; color: var(--ink); font-size: 12px; font-weight: 750; cursor: pointer; }
.admin-empty-state { padding: 35px; color: var(--muted); text-align: center; }
.admin-pagination { margin-top: 24px; }
.admin-form { max-width: 1000px; padding: clamp(24px, 4vw, 45px); background: var(--white); border: 1px solid var(--line); }
.admin-form > label, .form-grid > label { display: grid; gap: 8px; margin-bottom: 20px; }
.admin-form label > span { font-size: 12px; font-weight: 750; }
.admin-form input:not([type="checkbox"]), .admin-form textarea, .admin-form select { width: 100%; border: 1px solid #c9ccc5; background: white; padding: 11px 12px; outline: 0; border-radius: 0; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { border-color: var(--ink); box-shadow: 0 0 0 2px var(--accent); }
.admin-form label small, .current-file { color: var(--muted); font-size: 10px; }
.admin-form hr { border: 0; border-top: 1px solid var(--line); margin: 25px 0; }
.form-grid { display: grid; gap: 18px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid.four { grid-template-columns: repeat(4, 1fr); }
.check-row { display: flex; gap: 25px; padding: 18px 0; }
.check-row label { font-size: 12px; font-weight: 700; }
.form-actions { display: flex; align-items: center; gap: 25px; margin-top: 15px; }
.form-actions > a { font-size: 13px; font-weight: 750; }
.github-editor-form { max-width: 900px; }
.github-analysis-section { margin-bottom: 38px; }
.github-url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.github-url-row .secondary-button { min-height: 42px; }
.github-analysis-status { margin-top: 2px; }
.admin-site-thumbnail { display: block; width: 120px; height: 68px; object-fit: cover; object-position: top; border: 1px solid var(--line); }
.ai-site-admin-preview { max-width: 420px; margin: 4px 0 24px; padding: 12px; background: #eef0ea; border: 1px solid var(--line); }
.ai-site-admin-preview[hidden] { display: none; }
.ai-site-admin-preview span { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 800; }
.ai-site-admin-preview img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; background: #ddd; }

.resource-editor-form { max-width: 1080px; }
.upload-section, .editor-fields-section { margin-bottom: 38px; }
.editor-section-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 17px; }
.editor-section-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.editor-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.step-number { flex: 0 0 auto; display: grid; place-items: center; width: 31px; height: 31px; background: var(--ink); color: var(--accent); font: 800 10px/1 Arial; }
.document-drop-zone { position: relative; min-height: 205px; border: 2px dashed #b9beb5; background: #fafbf6; display: flex !important; flex-direction: column; gap: 8px; align-items: center; justify-content: center; text-align: center; padding: 30px; margin: 0 !important; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.document-drop-zone:hover, .document-drop-zone.is-dragging { border-color: var(--ink); background: #f1ffd0; transform: translateY(-2px); }
.document-drop-zone.is-uploading { cursor: wait; opacity: .72; }
.document-drop-zone input { position: absolute; width: 1px !important; height: 1px; opacity: 0; pointer-events: none; }
.document-drop-zone .drop-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 5px; background: var(--accent); border-radius: 50%; font-size: 25px; }
.document-drop-zone strong { font-size: 16px; }
.document-drop-zone small { max-width: 520px; line-height: 1.6; }
.upload-file-name { min-height: 15px; font-size: 11px; font-weight: 750; color: var(--ink); }
.upload-status { min-height: 22px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.upload-status[data-state="success"] { color: #267342; }
.upload-status[data-state="error"] { color: #b33131; }
.upload-status[data-state="loading"]::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border: 2px solid #bec3b9; border-top-color: var(--ink); border-radius: 50%; animation: upload-spin .8s linear infinite; }
@keyframes upload-spin { to { transform: rotate(360deg); } }
.upload-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 14px; margin-top: 10px; }
.upload-preview-grid:empty { display: none; }
.upload-preview-card { min-width: 0; border: 1px solid var(--line); background: white; box-shadow: 4px 4px 0 #e1e3dc; }
.upload-preview-card img { display: block; width: 100%; aspect-ratio: 1 / 1.414; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.upload-preview-card > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px; }
.upload-preview-card > div span { font-size: 11px; font-weight: 800; }
.remove-preview-button { border: 0; background: transparent; padding: 3px 0; color: #a33b35; font-size: 10px; font-weight: 750; cursor: pointer; }
.remove-preview-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.preview-manage-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.secondary-button { min-height: 38px; border: 1px solid var(--ink); background: white; padding: 0 14px; color: var(--ink); font-size: 11px; font-weight: 750; cursor: pointer; }
.secondary-button:hover:not(:disabled) { background: var(--ink); color: white; }
.secondary-button:disabled { border-color: #c9ccc5; color: #929791; cursor: not-allowed; }
.preview-manage-row > span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.compact-check-row { padding-top: 0; }
.notion-editor-shell { border: 1px solid #c9ccc5; background: #fff; }
.editor-toolbar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; padding: 9px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.editor-toolbar button { min-height: 31px; border: 0; background: transparent; padding: 5px 8px; color: #4f5854; font-size: 11px; cursor: pointer; }
.editor-toolbar button:hover { background: #eff1eb; color: var(--ink); }
.toolbar-divider { width: 1px; align-self: stretch; margin: 2px 3px; background: var(--line); }
.notion-editor { min-height: 330px; padding: 30px clamp(22px, 5vw, 64px); outline: 0; font-size: 15px; line-height: 1.8; }
.notion-editor:empty::before { content: attr(data-placeholder); color: #a2a7a0; pointer-events: none; }
.notion-editor h2, .rich-content h2 { margin: 1.8em 0 .55em; font-size: 28px; line-height: 1.25; letter-spacing: -.035em; }
.notion-editor h3, .rich-content h3 { margin: 1.5em 0 .45em; font-size: 20px; line-height: 1.35; }
.notion-editor p, .rich-content p { margin: .75em 0; }
.notion-editor ul, .notion-editor ol, .rich-content ul, .rich-content ol { padding-left: 1.5em; }
.notion-editor blockquote, .rich-content blockquote { margin: 1.2em 0; padding: 3px 0 3px 18px; border-left: 4px solid var(--accent); color: #505955; }
.notion-editor pre, .rich-content pre { overflow-x: auto; padding: 16px; background: #202824; color: #eef4ee; font: 13px/1.65 Consolas, monospace; }
.notion-editor a, .rich-content a { text-decoration: underline; text-decoration-color: #91a936; text-underline-offset: 3px; }
.notion-editor hr, .rich-content hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.advanced-fields { margin: 8px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.advanced-fields summary { padding: 17px 0; cursor: pointer; font-size: 12px; font-weight: 750; }
.advanced-fields-body { padding: 10px 0 4px; }
.cover-settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.cover-setting-fields { display: grid; gap: 18px; }
.cover-setting-fields > label { display: grid; gap: 8px; }
.cover-setting-fields label > small { color: var(--muted); font-size: 10px; }
.admin-cover-preview-panel { min-width: 0; padding: 14px; border: 1px solid var(--line); background: #f0f1eb; }
.cover-preview-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.admin-cover-preview { width: 100%; height: 210px; margin: 0 0 12px; }
.admin-cover-preview-panel > strong { display: block; overflow: hidden; font-size: 13px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.detail-content-section, .pdf-preview-section { width: min(1040px, calc(100% - 48px)); margin: 0 auto 80px; padding-top: 48px; border-top: 1px solid var(--line); }
.rich-content { max-width: 760px; font-size: 16px; line-height: 1.85; color: #3f4844; }
.rich-content > :first-child { margin-top: 0; }
.preview-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 25px; }
.preview-section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.05em; }
.preview-section-heading > span { color: var(--muted); font-size: 12px; }
.pdf-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 4vw, 42px); align-items: start; }
.pdf-preview-grid figure { margin: 0; }
.pdf-preview-grid img { display: block; width: 100%; background: white; border: 1px solid #d2d5ce; box-shadow: 10px 12px 0 #dfe1da; }
.pdf-preview-grid figcaption { margin-top: 18px; color: var(--muted); font-size: 11px; text-align: center; }

@media (max-width: 820px) {
  .resource-detail { grid-template-columns: 1fr; }
  .detail-cover.resource-cover { height: 360px; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-sidebar nav { margin-top: 25px; grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar small { margin-top: 25px; }
  .form-grid.two, .form-grid.three, .form-grid.four { grid-template-columns: 1fr; }
  .github-url-row { grid-template-columns: 1fr; }
  .pdf-preview-grid { grid-template-columns: 1fr; }
  .detail-content-section, .pdf-preview-section { width: min(100% - 32px, 1040px); }
  .editor-toolbar { position: static; }
  .notion-editor { padding: 23px 18px; }
  .cover-settings-layout { grid-template-columns: 1fr; }
  .admin-cover-preview-panel { width: min(100%, 360px); }
  .detail-nav { display: none; }
  .detail-header { grid-template-columns: 1fr auto; }
  .detail-bottom-nav { width: min(100% - 32px, 1040px); }
}

@media (max-width: 520px) {
  .detail-header { padding: 0 15px; }
  .detail-header .brand > span:last-child { display: none; }
  .detail-bottom-nav { align-items: stretch; flex-direction: column; padding: 22px; }
  .detail-back-button { justify-content: center; }
  .detail-top-button { align-self: center; }
}

.admin-session-panel { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.admin-session-panel small { margin: 0; overflow-wrap: anywhere; }
.admin-session-panel form { margin: 0; }
.admin-session-panel button { width: 100%; padding: 10px 12px; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .26); border-radius: 8px; cursor: pointer; }
.admin-session-panel button:hover { border-color: var(--accent); color: var(--accent); }
.admin-login-body { display: block; min-height: 100vh; background: radial-gradient(circle at top left, rgba(217, 255, 99, .28), transparent 34%), var(--paper); }
.admin-login-main { display: grid; min-height: 100vh; place-items: center; padding: 32px 20px; }
.admin-login-card { display: grid; gap: 26px; width: min(100%, 460px); padding: clamp(28px, 6vw, 48px); background: var(--white); border: 1px solid var(--line); box-shadow: 14px 16px 0 rgba(23, 32, 29, .1); }
.admin-login-brand { width: fit-content; }
.admin-login-card h1 { margin: 4px 0 10px; font-size: clamp(34px, 7vw, 52px); letter-spacing: -.055em; }
.admin-login-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.admin-login-form { gap: 18px; padding: 0; background: transparent; border: 0; }
.admin-login-return { width: fit-content; color: var(--muted); font-size: 13px; }
.admin-security-notice { display: grid; gap: 9px; padding: 18px; background: #fff5dc; border: 1px solid #e6c983; }
.admin-security-notice strong { color: #583d00; }
.admin-security-notice code { overflow-wrap: anywhere; }
.security-error-page { display: grid; min-height: 100vh; place-items: center; padding: 30px 20px; background: var(--paper); }
.security-error-card { width: min(100%, 560px); padding: clamp(30px, 6vw, 54px); background: var(--white); border: 1px solid var(--line); box-shadow: 12px 14px 0 rgba(23, 32, 29, .1); }
.security-error-card h1 { margin: 8px 0 16px; font-size: clamp(34px, 6vw, 56px); letter-spacing: -.055em; }
.security-error-card p:not(.eyebrow) { margin: 0 0 26px; color: var(--muted); line-height: 1.7; }
.system-config-form { gap: 24px; }
.system-config-card { display: grid; gap: 22px; padding: clamp(22px, 4vw, 34px); background: var(--white); border: 1px solid var(--line); }
.system-config-card-heading { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.system-config-card-heading > div { display: flex; align-items: center; gap: 12px; }
.system-config-card-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.system-config-card-heading p { max-width: 440px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: right; }
.config-source-badge { display: inline-flex; margin-left: 7px; padding: 3px 7px; vertical-align: middle; color: #46504b; background: #eceee8; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.config-source-badge.database { color: #284000; background: var(--accent); }
.config-source-badge.environment { color: #204a68; background: #dcefff; }
.config-source-badge.unconfigured { color: #6a3131; background: #ffe2e2; }
.secret-config-field { display: grid; gap: 8px; margin-bottom: 20px; }
.secret-config-field label > span { font-size: 12px; font-weight: 750; }
.secret-config-field small { color: var(--muted); font-size: 10px; }
.secret-config-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.secret-config-control .secret-reveal-button { min-width: 82px; padding-inline: 16px; white-space: nowrap; }
[data-secret-status][data-state="success"] { color: #456000; }
[data-secret-status][data-state="error"] { color: #a13d3d; }
.config-reset-option { display: flex; align-items: center; gap: 9px; width: fit-content; color: #7b3535; font-size: 13px; }
.config-reset-option input { width: auto; }
.system-config-warning { padding: 18px 20px; background: #f1f4e8; border-left: 4px solid var(--accent-dark); }
.system-config-warning strong { display: block; margin-bottom: 7px; }
.system-config-warning p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

@media (max-width: 640px) {
  .admin-login-main { align-items: start; padding-top: 18px; }
  .admin-login-card { box-shadow: 7px 8px 0 rgba(23, 32, 29, .1); }
  .system-config-card-heading { align-items: flex-start; flex-direction: column; }
  .system-config-card-heading p { text-align: left; }
}
