/* ============================================================
   LATAMIGO / 比邻原点 — brand stylesheet
   Palette (from logo):
     --ink:   #12253F  (deep navy, primary)
     --ink-2: #1B3A6B  (logo blue)
     --ink-3: #2C4F7A  (hover blue)
     --red:   #C8262E  (logo red dot — accent only)
     --paper: #FAF6EE  (warm off-white)
     --paper-2:#F2EBDD (warm cream)
     --line:  #E5DFD2  (hairline)
     --text:  #1A2230
     --muted: #6B7280
   ============================================================ */

:root {
  --ink: #12253F;
  --ink-2: #1B3A6B;
  --ink-3: #2C4F7A;
  --red: #C8262E;
  --paper: #FAF6EE;
  --paper-2: #F2EBDD;
  --line: #E5DFD2;
  --text: #1A2230;
  --muted: #6B7280;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-1: 0 1px 0 rgba(18, 37, 63, 0.04), 0 1px 2px rgba(18, 37, 63, 0.04);
  --shadow-2: 0 8px 30px rgba(18, 37, 63, 0.08);
  --t: 200ms cubic-bezier(.2,.7,.2,1);
  --wrap: 1200px;
  --wrap-narrow: 760px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
a:hover { color: var(--ink-2); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.08; }
h2 { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.15; }
h3 { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.3; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-2); }

p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: var(--wrap-narrow); }
.center { text-align: center; }
.row-between { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.kicker {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 12px; font-weight: 600;
}
.kicker.on-dark { color: rgba(255,255,255,0.7); }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 0 0 1em; }
.lead.light { color: rgba(255,255,255,0.75); }
.center .lead { margin-left: auto; margin-right: auto; text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
  border: 1px solid transparent; transition: all var(--t); text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #a91c24; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
/* Light ghost: for buttons on dark / photo backgrounds (hero, dark sections) */
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); backdrop-filter: blur(2px); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(200,38,46,0.4); }
.btn-danger:hover { background: var(--red); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, 0.88);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; padding: 14px 24px; }
.brand img { height: 30px; }
.primary { display: flex; gap: 26px; margin-left: 24px; flex: 1; }
.primary a { font-size: 14px; color: var(--ink); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.primary a:hover { color: var(--ink-2); }
.primary a.active { border-bottom-color: var(--red); }
.lang { display: flex; gap: 6px; font-size: 12px; }
.lang a { padding: 4px 8px; border-radius: 4px; color: var(--muted); }
.lang a.active { background: var(--ink); color: #fff; }
.nav-cta { padding: 9px 16px; font-size: 13px; }

@media (max-width: 880px) {
  .nav { flex-wrap: wrap; gap: 12px; }
  .primary { order: 3; flex-basis: 100%; margin-left: 0; gap: 16px; overflow-x: auto; }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 78vh; display: flex; align-items: center;
  background: var(--ink);
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(12,22,40,0.92) 0%, rgba(18,37,63,0.72) 45%, rgba(18,37,63,0.45) 100%),
    url('/public/img/hero-shanghai.jpg') center 30% / cover no-repeat;
  z-index: 0;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; padding: 120px 24px 140px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(200,38,46,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200,38,46,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(200,38,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,38,46,0); }
}
.hero-h {
  color: #fff; max-width: 18ch; font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 24px;
  white-space: pre-line;
}
.hero-tagline {
  font-size: clamp(17px, 1.7vw, 23px); font-weight: 600;
  color: rgba(255,255,255,0.92); max-width: 30ch; margin: 0 0 18px;
  white-space: pre-line;
}
.hero-sub {
  font-size: clamp(15px, 1.4vw, 19px); color: rgba(255,255,255,0.78);
  max-width: 56ch; margin: 0 0 36px;
  white-space: pre-line;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 12px;
}
.scroll-cue::after {
  content: ""; position: absolute; top: 6px; left: 50%; width: 2px; height: 8px;
  background: rgba(255,255,255,0.7); transform: translateX(-50%);
  border-radius: 2px; animation: scrollhint 1.6s infinite;
}
@keyframes scrollhint {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-tinted { background: var(--paper-2); }
.section-cta { background: var(--ink); color: #fff; text-align: center; padding: 96px 0; }
.section-cta .h2 { color: #fff; }
.h2.light { color: #fff; }

/* ---------- Who we are (media + text) ---------- */
.who { padding: 110px 0; }
.who-grid { align-items: center; gap: 56px; }
.who-media {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--paper-2);
  box-shadow: var(--shadow-2);
}
.who-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .who-grid { gap: 24px; }
  .who-media { aspect-ratio: 16 / 10; }
}

.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }

.prose p { font-size: 17px; line-height: 1.75; }
.prose img { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 28px 0; border: 1px solid var(--line); }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Corridor (CN ⇄ LATAM) ---------- */
.corridor {
  margin-top: 50px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: stretch;
}
.corridor-end { text-align: center; padding: 0; display: flex; flex-direction: column; }
.corridor-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3 / 2; margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,0.12);
}
.corridor-photo img { width: 100%; height: 100%; object-fit: cover; }
.corridor-flag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.08); color: #fff; font-size: 12px; letter-spacing: 0.18em;
  margin-bottom: 14px; border: 1px solid rgba(255,255,255,0.18);
  align-self: center;
}
.corridor-flag.alt { background: var(--red); border-color: var(--red); }
.corridor-end h3 { color: #fff; margin: 8px 0 18px; font-size: 22px; }
.city-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.city-list li { padding: 6px 12px; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; font-size: 13px; color: rgba(255,255,255,0.85); }
.corridor-line {
  position: relative; min-width: 120px; display: flex; align-items: center; justify-content: center;
}
.corridor-line::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}
.pulse {
  width: 14px; height: 14px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(200,38,46,0.6);
  animation: pulse 1.8s infinite; position: relative; z-index: 1;
}
@media (max-width: 700px) {
  .corridor { grid-template-columns: 1fr; }
  .corridor-line { min-height: 60px; }
  .corridor-line::before { left: 10%; right: 10%; top: 50%; }
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }
.service {
  display: flex; flex-direction: column;
  padding: 32px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform var(--t), box-shadow var(--t);
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.service-num { font-size: 12px; letter-spacing: 0.2em; color: var(--red); font-weight: 700; margin-bottom: 18px; }
.service-title { font-size: 22px; margin-bottom: 10px; }
.service-desc { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.service-items { list-style: none; padding: 0; margin: 0; margin-top: auto; }
.service-items li {
  padding: 8px 0; border-top: 1px dashed var(--line); font-size: 14px;
  display: flex; gap: 10px; align-items: center;
}
.service-items li::before { content: "—"; color: var(--red); }

/* ---------- Flow strip (三条流向) ---------- */
.flow-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 900px) { .flow-strip { grid-template-columns: 1fr; } }
.flow-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px 22px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.flow-num {
  flex: 0 0 auto; padding-top: 2px;
  font-size: 12px; letter-spacing: 0.2em; font-weight: 700; color: var(--red);
}
.flow-body { min-width: 0; }
.flow-title { font-size: 17px; margin: 0 0 6px; }
.flow-desc { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.65; }

/* ---------- Service rows (三大核心服务) ---------- */
.service-rows { margin-top: 48px; }
.service-row {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px;
  padding: 40px 0; border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .service-row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; } }
.sr-head { display: flex; gap: 14px; align-items: baseline; }
.sr-num { font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: 0.08em; }
.sr-title { font-size: 24px; line-height: 1.35; margin: 0; }
.sr-desc { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); margin: 0 0 20px; }
.sr-items { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
@media (max-width: 640px) { .sr-items { grid-template-columns: 1fr; } }
.sr-items li { font-size: 14.5px; color: var(--muted); line-height: 1.5; padding-left: 14px; position: relative; }
.sr-items li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--red); opacity: .75;
}

/* ---------- Reasons (为什么选择比邻) ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
@media (max-width: 900px) { .reasons { grid-template-columns: 1fr; gap: 24px; } }
.reason { border-top: 2px solid var(--ink); padding-top: 20px; }
.reason-title { font-size: 19px; margin: 0 0 12px; }
.reason-body { font-size: 14.5px; line-height: 1.8; color: var(--muted); margin: 0; }

/* ---------- CTA city ---------- */
.cta-city { margin-top: 22px; font-size: 13px; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 50px; border-top: 1px solid var(--line); }
.stat { padding: 36px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-n { font-size: clamp(40px, 4.6vw, 64px); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1; margin-bottom: 12px; }
.stat-k { font-size: 13px; color: var(--muted); }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
}

/* ---------- Case grid ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }
.case-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); transition: all var(--t);
  position: relative; overflow: hidden;
}
.case-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.case-img {
  aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms cubic-bezier(.2,.7,.2,1); }
.case-card:hover .case-img img { transform: scale(1.04); }
.case-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.case-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.case-sector { color: var(--red); font-weight: 600; }
.case-title { font-size: 19px; margin: 0 0 10px; }
.case-sum {
  font-size: 14px; color: var(--muted); margin: 0 0 16px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.case-region { font-size: 12px; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; }

/* ---------- Case detail banner ---------- */
.case-banner { padding: 0 0 64px; }
.case-banner .wrap { max-width: 980px; }
.case-banner img {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
}

/* ---------- Case highlights strip (key numbers) ---------- */
.case-highlights { padding: 0 0 56px; }
.case-hl-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #fff;
}
.case-hl { padding: 36px 24px; text-align: center; border-right: 1px solid var(--line); }
.case-hl:last-child { border-right: none; }
.case-hl-v {
  font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 10px;
}
.case-hl-k { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
@media (max-width: 700px) {
  .case-hl-grid { grid-template-columns: 1fr; }
  .case-hl { border-right: none; border-bottom: 1px solid var(--line); }
  .case-hl:last-child { border-bottom: none; }
}

/* ---------- Article grid ---------- */
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .article-grid { grid-template-columns: 1fr; } }
.article-card { display: block; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: all var(--t); }
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.article-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.article-title { font-size: 20px; margin: 0 0 8px; }
.article-excerpt { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- CTA section ---------- */
.cta-row { display: inline-flex; align-items: center; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.trilingua { font-size: 13px; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; }

/* ---------- Credits ---------- */
.credits-list { display: grid; gap: 12px; }
.credit-row {
  display: flex; align-items: center; gap: 18px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.credit-row img { width: 88px; height: 60px; object-fit: cover; border-radius: 4px; flex: none; }
.credit-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.credit-meta { font-size: 13px; color: var(--muted); }
.credit-meta a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Page hero (cases/articles/contact) ---------- */
.page-hero { padding: 72px 0 56px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-hero .h1 { font-size: clamp(32px, 4vw, 52px); margin: 6px 0 12px; }
.page-hero .lead { margin-bottom: 8px; }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2 .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: 6px; font-size: 13px; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; font-size: 14px; font-family: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); transition: border-color var(--t);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--ink-2);
}
.notice { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.notice.ok { background: rgba(18,37,63,0.06); color: var(--ink); border: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: #0a1727; color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-logo {
  height: 30px; width: auto; margin-bottom: 18px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.foot-tag { color: rgba(255,255,255,0.6); font-size: 14px; max-width: 30ch; }
.site-footer h4 { color: rgba(255,255,255,0.9); margin-bottom: 14px; }
.site-footer a { display: block; color: rgba(255,255,255,0.65); font-size: 14px; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.foot-cta { display: inline-block !important; margin-top: 14px; color: #fff !important; font-weight: 600; letter-spacing: 0.01em; }
.foot-cta:hover { color: var(--red) !important; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: rgba(255,255,255,0.4); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Admin ---------- */
.admin-body { background: #F5F1E8; min-height: 100vh; }
.admin-header { display: flex; align-items: center; gap: 24px; padding: 14px 28px; background: var(--ink); color: #fff; }
.admin-brand { color: #fff; font-weight: 700; letter-spacing: 0.04em; }
.admin-brand span { color: var(--red); margin-left: 4px; }
.admin-nav { display: flex; gap: 18px; flex: 1; }
.admin-nav a { color: rgba(255,255,255,0.7); font-size: 14px; padding: 6px 0; }
.admin-nav a:hover { color: #fff; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 32px 24px 80px; }
.admin-section h1 { font-size: 24px; margin-bottom: 20px; }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 800px) { .admin-cards { grid-template-columns: 1fr 1fr; } }
.admin-card { display: block; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-card:hover { border-color: var(--ink); }
.admin-card-k { font-size: 12px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.admin-card-t { font-size: 20px; font-weight: 700; color: var(--ink); }

.admin-form { display: grid; gap: 16px; }
.admin-form .block { display: grid; gap: 6px; }
.admin-form .lbl { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-form input, .admin-form textarea {
  width: 100%; padding: 10px 12px; font-size: 14px; font-family: ui-monospace, "Cascadia Mono", Menlo, monospace;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
}
.admin-form textarea { resize: vertical; min-height: 100px; }
.admin-form .admin-note {
  font-size: 12px; line-height: 1.6; color: var(--muted);
  padding: 8px 12px; background: var(--paper-2); border-left: 2px solid var(--line); border-radius: 2px;
}

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
.admin-table th { background: var(--paper-2); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .actions { display: flex; gap: 8px; }
.admin-table .actions form { display: inline; }
.admin-table .msg { max-width: 320px; }

.grid-2-admin { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .grid-2-admin { grid-template-columns: 1fr; } }
