/* ===== 老兵部落 · 现代化样式 v4 ===== */
:root {
  --header-h: 56px;
  --green-dark: #1a3315;
  --green-mid: #3d5c34;
  --green-light: #5a7a4a;
  --green-soft: #7a9470;
  --green-pale: #e8efe4;
  --brown: #5c3d2e;
  --brown-light: #8b6b55;
  --cream: #faf7f0;
  --cream-dark: #f0e8d8;
  --orange: #d4893f;
  --orange-soft: #e8b87a;
  --orange-light: #f5d9b0;
  --red: #9b2c0a;
  --gold: #c9a84c;
  --text: #1c120c;
  --text-muted: #6b5848;
  --text-faint: #9a8575;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --border: rgba(26, 58, 22, 0.1);
  --border-strong: rgba(26, 58, 22, 0.18);
  --shadow-sm: 0 2px 10px rgba(30, 20, 10, 0.06);
  --shadow-md: 0 8px 30px rgba(30, 20, 10, 0.09);
  --shadow-lg: 0 16px 50px rgba(30, 20, 10, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --font-cn: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", "华文楷体", "KaiTi", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --nav-h: 56px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* 防止动态文案闪现：先隐藏，加载后再淡入 */
body:not(.content-ready) [data-dyn],
body:not(.content-ready) .hero-dyn,
body:not(.content-ready) .hero h1,
body:not(.content-ready) .hero .subtitle,
body:not(.content-ready) .hero .desc,
body:not(.content-ready) .section-title,
body:not(.content-ready) .section-subtitle,
body:not(.content-ready) .page-hero h1,
body:not(.content-ready) .page-hero p,
body:not(.content-ready) .card h3,
body:not(.content-ready) .card p,
body:not(.content-ready) .about-content p,
body:not(.content-ready) .quote-text,
body:not(.content-ready) .quote-author,
body:not(.content-ready) .footer-logo,
body:not(.content-ready) .footer p {
  opacity: 0;
}
body.content-ready [data-dyn],
body.content-ready .hero-dyn,
body.content-ready .hero h1,
body.content-ready .hero .subtitle,
body.content-ready .hero .desc,
body.content-ready .section-title,
body.content-ready .section-subtitle,
body.content-ready .page-hero h1,
body.content-ready .page-hero p,
body.content-ready .card h3,
body.content-ready .card p,
body.content-ready .about-content p,
body.content-ready .quote-text,
body.content-ready .quote-author,
body.content-ready .footer-logo,
body.content-ready .footer p {
  opacity: 1;
  transition: opacity 0.35s ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
.hidden { display: none !important; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(74, 154, 66, 0.06), transparent 50%),
    linear-gradient(180deg, #faf7f0 0%, #f5f0e6 100%);
  min-height: 100vh;
}

body.nav-open { overflow: hidden; }
body.graffiti-fullscreen { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

/* ===== 导航 ===== */
.header-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h, 56px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(26, 51, 21, 0.92);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid rgba(122, 148, 112, 0.15);
  transition: background 0.35s var(--ease);
}

.header-nav .logo {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: #f5efe0;
  font-family: var(--font-cn); font-size: 1.28rem;
  font-weight: 700; letter-spacing: 0.22em;
  transition: opacity 0.2s;
}
.header-nav .logo:hover { opacity: 0.9; }
.header-nav .logo svg { width: 32px; height: 32px; flex-shrink: 0; }

.nav-links {
  display: flex; gap: 0.2rem; list-style: none; align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 10px;
  transition: all 0.25s var(--ease);
  font-weight: 500;
  letter-spacing: 0.06em;
  position: relative;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.hamburger {
  display: none; cursor: pointer;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.hamburger span {
  position: absolute; width: 18px; height: 2px;
  background: #f5efe0; border-radius: 2px;
  transition: transform 0.28s, opacity 0.2s, top 0.28s;
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.open { background: rgba(255,255,255,0.14); }
.hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .header-nav { padding: 0 1rem; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: calc(var(--nav-h) + 10px); right: 12px;
    width: min(280px, calc(100vw - 24px));
    flex-direction: column; align-items: stretch;
    background: rgba(14, 32, 12, 0.97);
    padding: 0.6rem; gap: 0.25rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(6, 16, 4, 0.4);
    transform: translateY(-6px) scale(0.97);
    transform-origin: top right;
    opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  }
  .nav-links.open {
    opacity: 1; pointer-events: auto; visibility: visible;
    transform: translateY(0) scale(1);
  }
  .nav-links a {
    display: block; padding: 0.85rem 1rem;
    font-size: 0.98rem; border-radius: 10px;
  }
  .nav-links a.active::after { display: none; }
}

.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; margin-top: var(--header-h); }
/* Hero 贴紧顶栏，不留缝 */
main > .hero:first-child {
  margin-top: 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: min(82vh, 720px);
  min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background: linear-gradient(165deg, #0a1c08 0%, #132810 25%, #1c3f18 50%, #2a5c26 75%, #3a7a32 100%);
}

.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 25% 25%, rgba(255,255,255,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 45% 55% at 75% 65%, rgba(212, 137, 63, 0.08) 0%, transparent 50%);
}

.hero-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(255,255,255,0.06) 48px, rgba(255,255,255,0.06) 49px),
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(255,255,255,0.06) 48px, rgba(255,255,255,0.06) 49px);
}

.hero-mountains {
  position: absolute; bottom: 0; left: 0; right: 0; height: 140px;
  background:
    radial-gradient(ellipse 180% 100% at 8% 100%, rgba(0,0,0,0.22) 0%, transparent 100%),
    radial-gradient(ellipse 140% 100% at 35% 100%, rgba(0,0,0,0.16) 0%, transparent 100%),
    radial-gradient(ellipse 160% 100% at 70% 100%, rgba(0,0,0,0.18) 0%, transparent 100%),
    radial-gradient(ellipse 200% 100% at 95% 100%, rgba(0,0,0,0.2) 0%, transparent 100%);
}

.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-particles span {
  position: absolute; width: 3px; height: 3px;
  background: rgba(255,255,255,0.18); border-radius: 50%;
  animation: float 9s infinite ease-in-out;
}
.hero-particles span:nth-child(1) { left: 12%; top: 18%; animation-duration: 7s; }
.hero-particles span:nth-child(2) { left: 32%; top: 38%; animation-delay: 1.5s; animation-duration: 9s; width: 4px; height: 4px; }
.hero-particles span:nth-child(3) { left: 52%; top: 14%; animation-delay: 3s; animation-duration: 8s; }
.hero-particles span:nth-child(4) { left: 72%; top: 48%; animation-delay: 0.8s; animation-duration: 10s; width: 2px; height: 2px; }
.hero-particles span:nth-child(5) { left: 88%; top: 22%; animation-delay: 2.2s; animation-duration: 7.5s; }
.hero-particles span:nth-child(6) { left: 42%; top: 68%; animation-delay: 4s; animation-duration: 8.5s; width: 4px; height: 4px; }
.hero-particles span:nth-child(7) { left: 8%; top: 58%; animation-delay: 5s; animation-duration: 9s; }
.hero-particles span:nth-child(8) { left: 62%; top: 78%; animation-delay: 1.8s; animation-duration: 7s; width: 2px; height: 2px; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.25; }
  50% { transform: translateY(-22px) scale(1.4); opacity: 0.55; }
}

.hero-content { position: relative; z-index: 2; padding: 2rem 1.5rem; max-width: 640px; }

.hero h1 {
  font-family: var(--font-cn);
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  color: #f0ebe0;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35), 0 0 40px rgba(90, 122, 74, 0.25);
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-h1-deco {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin: 0.9rem auto 0; width: 180px;
}
.hero-h1-deco .line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--orange-light), transparent); }
.hero-h1-deco .diamond {
  width: 7px; height: 7px; background: var(--orange-light);
  transform: rotate(45deg); flex-shrink: 0; opacity: 0.75;
}

.hero .subtitle {
  font-family: var(--font-cn);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(232, 239, 228, 0.82);
  letter-spacing: 0.22em;
  margin: 1rem 0 1.2rem;
  font-weight: 400;
}

.hero .desc {
  color: rgba(230, 224, 212, 0.75);
  font-size: 0.98rem;
  max-width: 380px;
  margin: 0 auto 2.2rem;
  line-height: 1.9;
}

.hero-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.95rem 2.6rem;
  background: linear-gradient(135deg, var(--orange) 0%, #db9a52 50%, #e5ae6a 100%);
  color: #fff; text-decoration: none;
  border-radius: 999px;
  font-size: 1.02rem;
  font-family: var(--font-cn);
  letter-spacing: 0.12em;
  font-weight: 600;
  box-shadow: 0 6px 28px rgba(212, 137, 63, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.hero-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.55s;
}
.hero-btn:hover::before { transform: translateX(100%); }
.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(212, 137, 63, 0.5);
}

/* ===== 通用区块 ===== */
.section {
  padding: 4.5rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  font-family: var(--font-cn);
  font-size: clamp(1.7rem, 3.5vw, 2.15rem);
  text-align: center;
  color: var(--green-dark);
  margin-bottom: 0.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-divider-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin: 0.5rem auto 1.1rem; width: 120px;
}
.section-divider-wrap .line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--orange), transparent); }
.section-divider-wrap .diamond {
  width: 6px; height: 6px; background: var(--orange);
  transform: rotate(45deg); flex-shrink: 0; border-radius: 1px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.8rem;
  letter-spacing: 0.04em;
}

/* ===== 卡片 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.85rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  border: 1px solid rgba(255,255,255,0.85);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--orange), var(--green-light));
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover::before { opacity: 1; }
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74, 154, 66, 0.14);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.85rem;
  display: block;
  line-height: 1;
}

.card h3 {
  font-family: var(--font-cn);
  color: var(--green-dark);
  margin-bottom: 0.55rem;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

/* ===== 引言 ===== */
.quote-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0c2209 0%, #163214 35%, #1f421a 70%, #2a5c26 100%) !important;
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.quote-bg-deco {
  position: absolute; inset: 0; opacity: 0.035;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 28px 28px;
}

.quote-mark {
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  font-size: 9rem;
  font-family: var(--font-cn);
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
}

.quote-text {
  font-family: var(--font-cn);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  letter-spacing: 0.15em;
  line-height: 2;
  position: relative; z-index: 1;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  max-width: 640px;
  margin: 0 auto;
}

.quote-author {
  color: rgba(255,255,255,0.4);
  font-size: 0.88rem;
  margin-top: 1.2rem;
  letter-spacing: 0.2em;
}

/* ===== 页脚 ===== */
.footer {
  background: linear-gradient(180deg, #163214 0%, #0a1a08 100%);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 3.2rem 1.5rem 2.2rem;
  font-size: 0.88rem;
  border-top: 1px solid rgba(74, 154, 66, 0.12);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.footer .footer-logo {
  font-family: var(--font-cn);
  font-size: 1.35rem;
  color: #f5efe0;
  margin-bottom: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.footer p { margin: 0.35rem 0; }
.footer a {
  color: var(--green-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover { color: var(--orange-light); }

/* ===== 标签页 ===== */
.tabs {
  display: flex; gap: 0.45rem;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.tab-btn {
  padding: 0.55rem 1.45rem;
  border: 1.5px solid rgba(74, 154, 66, 0.22);
  background: rgba(255,255,255,0.65);
  color: var(--text-muted);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.28s var(--ease);
  font-family: var(--font-cn);
  font-weight: 500;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
  box-shadow: 0 4px 14px rgba(20, 46, 16, 0.22);
}
.tab-content { display: none; animation: fadeIn 0.35s ease; }
.tab-content.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.7s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 相册 ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  box-shadow: var(--shadow-sm);
  background: var(--cream-dark);
}
.gallery-item:hover {
  transform: scale(1.025);
  box-shadow: var(--shadow-md);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }

.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8, 14, 8, 0.92);
  backdrop-filter: blur(14px);
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; animation: fadeIn 0.28s ease; }
.lightbox img {
  max-width: 92vw; max-height: 86vh;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  color: #fff; font-size: 1.8rem; cursor: pointer;
  background: rgba(0,0,0,0.35);
  border: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.15); }

.gallery-empty, .graffiti-empty {
  display: grid; place-items: center;
  min-height: 220px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.5);
  border: 1.5px dashed rgba(26, 58, 22, 0.15);
  border-radius: var(--radius);
  font-size: 0.95rem;
  text-align: center;
  padding: 2rem;
}

/* ===== 涂鸦 ===== */
.graffiti-page { max-width: 1140px; }
.mode-switch {
  width: fit-content; max-width: 100%;
  display: flex; gap: 0.3rem;
  justify-content: center; margin: 0 auto 1.5rem;
  padding: 0.3rem;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.mode-btn {
  min-height: 42px; padding: 0.55rem 1.2rem;
  border: 0; background: transparent;
  color: var(--text-muted); border-radius: 9px;
  cursor: pointer; font-size: 0.92rem;
  font-weight: 600; transition: all 0.22s;
}
.mode-btn.active {
  background: var(--green-dark); color: #fff;
  box-shadow: 0 6px 18px rgba(20, 46, 16, 0.2);
}

.graffiti-panel { animation: fadeIn 0.24s ease; }
.graffiti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}
.graffiti-grid .g-item {
  border-radius: 12px; overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm);
  background: var(--surface-solid);
  border: 1px solid rgba(26, 58, 22, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.graffiti-grid .g-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.graffiti-grid .g-item img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover;
  transition: transform 0.3s;
}
.graffiti-grid .g-item:hover img { transform: scale(1.03); }
.graffiti-meta { padding: 0.7rem 0.8rem 0.8rem; }
.graffiti-meta-title { font-size: 0.92rem; color: var(--text); margin: 0; font-weight: 600; }
.graffiti-meta-date { font-size: 0.76rem; color: var(--text-faint); margin: 0.2rem 0 0; }


.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: nowrap;
}
.studio-title {
  margin: 0;
  color: var(--green-dark);
  font-size: 1.1rem;
  font-family: var(--font-cn);
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  margin-left: auto;
}
.studio-kicker { display: none; }

.graffiti-studio {
  width: min(100%, 1040px); margin: 0 auto; padding: 1rem;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.studio-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.85rem;
}
.studio-kicker {
  margin: 0 0 0.15rem; color: var(--orange);
  font-size: 0.78rem; letter-spacing: 0.08em; font-weight: 700;
}
.studio-topbar h3 { margin: 0; color: var(--green-dark); font-size: 1.15rem; white-space: nowrap; writing-mode: horizontal-tb; }
.studio-topbar > div:first-child { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.canvas-shell {
  width: 100%; display: grid; place-items: center; padding: 0.7rem;
  background: linear-gradient(135deg, rgba(26,58,22,0.04), rgba(212,137,63,0.07));
  border: 1px solid rgba(26, 58, 22, 0.1);
  border-radius: 12px;
}
#graffitiCanvas {
  width: min(100%, 900px); aspect-ratio: 3 / 2; height: auto;
  display: block;
  border: 1px solid rgba(26, 58, 22, 0.12);
  border-radius: 10px;
  cursor: crosshair; background: #fff;
  touch-action: none;
  box-shadow: 0 12px 36px rgba(30, 20, 10, 0.1);
}
.graffiti-tools {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  margin-top: 0.85rem; padding: 0.75rem;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(26, 58, 22, 0.1);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.tool-field {
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--text-muted); font-size: 0.84rem; font-weight: 600;
}
.tool-field strong { color: var(--green-dark); font-variant-numeric: tabular-nums; }
.graffiti-tools input[type="color"] {
  width: 40px; height: 40px;
  border: 1px solid rgba(26, 58, 22, 0.15);
  border-radius: 10px; cursor: pointer; padding: 3px; background: #fff;
}
.graffiti-tools input[type="range"] { width: 130px; accent-color: var(--green-mid); }
.tool-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; justify-content: flex-end; }
.tool-btn {
  min-height: 40px; padding: 0.5rem 0.9rem;
  border: 1px solid rgba(26, 58, 22, 0.14);
  background: #fff; color: var(--green-dark);
  border-radius: 10px; cursor: pointer;
  font-size: 0.88rem; font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}
.tool-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(26, 58, 22, 0.28);
  box-shadow: var(--shadow-sm);
}
.tool-btn:disabled { cursor: wait; opacity: 0.6; transform: none; }
.tool-btn-primary { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.tool-btn-accent { background: var(--orange); color: #fff; border-color: var(--orange); }
.tool-btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.tool-btn-ghost { background: rgba(255,255,255,0.7); }

.graffiti-fullscreen #panelDraw {
  position: fixed; inset: 0; z-index: 2500;
  display: flex !important; flex-direction: column;
  padding: 0; margin: 0;
  background: #f5f0e6;
  width: 100vw; height: 100vh; height: 100dvh;
}
.graffiti-fullscreen 
.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: nowrap;
}
.studio-title {
  margin: 0;
  color: var(--green-dark);
  font-size: 1.1rem;
  font-family: var(--font-cn);
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  margin-left: auto;
}
.studio-kicker { display: none; }

.graffiti-studio {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  padding: 0; margin: 0;
  box-shadow: none; background: transparent; border: 0; border-radius: 0;
}
.graffiti-fullscreen .studio-topbar {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.55rem 0.75rem;
  background: rgba(20, 46, 16, 0.92);
  color: #fff;
  gap: 0.5rem;
}
.graffiti-fullscreen .studio-kicker { display: none; }
.graffiti-fullscreen .studio-title {
  font-size: 0.95rem; color: #fff; letter-spacing: 0.08em;
}
.graffiti-fullscreen .studio-topbar {
  flex-wrap: nowrap;
}
.graffiti-fullscreen .studio-topbar .tool-btn {
  background: rgba(255,255,255,0.12);
  color: #fff; border-color: rgba(255,255,255,0.2);
  min-height: 36px; padding: 0.35rem 0.75rem; font-size: 0.85rem;
}
.graffiti-fullscreen .canvas-shell {
  flex: 1 1 auto; min-height: 0;
  padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
  background: #ebe4d6;
  border: 0; border-radius: 0;
}
.graffiti-fullscreen #graffitiCanvas {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.graffiti-fullscreen .graffiti-tools {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  gap: 0.5rem;
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(26, 58, 22, 0.12);
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.graffiti-fullscreen .tool-btn { min-height: 40px; padding: 0.45rem 0.7rem; }
.graffiti-fullscreen .graffiti-tools input[type="color"] { width: 40px; height: 40px; }
.graffiti-fullscreen .graffiti-tools input[type="range"] { width: min(160px, 40vw); }
.graffiti-fullscreen .tool-field { font-size: 0.82rem; }
.graffiti-fullscreen #exitFullscreenBtn { display: inline-flex !important; }
.graffiti-fullscreen #fullscreenBtn { display: none !important; }
.graffiti-fullscreen .footer,
.graffiti-fullscreen .header-nav,
.graffiti-fullscreen .page-hero,
.graffiti-fullscreen .mode-switch { display: none !important; }
.graffiti-fullscreen main { margin-top: 0 !important; }
.graffiti-fullscreen .section { padding: 0 !important; max-width: none !important; }
.graffiti-fullscreen .page-wrap { min-height: 0; }

.save-dialog {
  position: fixed; inset: 0; z-index: 3000;
  display: grid; place-items: center;
  padding: 1rem;
  background: rgba(10, 15, 10, 0.55);
  backdrop-filter: blur(12px);
}
.save-dialog-card {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.7);
}
.save-dialog-card h3 { margin: 0 0 0.8rem; color: var(--green-dark); font-size: 1.1rem; }
.save-preview {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 10px; border: 1px solid rgba(26, 58, 22, 0.12); background: #fff;
}
.save-field {
  display: grid; gap: 0.35rem; margin-top: 0.9rem;
  color: var(--text-muted); font-size: 0.86rem; font-weight: 600;
}
.save-field input {
  width: 100%; min-height: 44px;
  border: 1.5px solid rgba(26, 58, 22, 0.15);
  border-radius: 10px; padding: 0.6rem 0.85rem;
  font: inherit; color: var(--text);
}
.save-field input:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45, 107, 40, 0.12);
}
.save-dialog-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }
.save-status { min-height: 1.2rem; margin-top: 0.6rem; color: var(--text-muted); font-size: 0.82rem; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 3200;
  transform: translate(-50%, 12px);
  padding: 0.75rem 1.15rem;
  background: rgba(20, 46, 16, 0.95);
  color: #fff; border-radius: 12px;
  box-shadow: 0 12px 36px rgba(8, 20, 6, 0.3);
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  font-size: 0.9rem; font-weight: 600;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-error { background: rgba(155, 44, 10, 0.95); }

/* ===== 留言板 ===== */
.guestbook-form {
  display: flex; flex-direction: column; gap: 1rem;
  max-width: 560px; margin: 0 auto 2.5rem;
}
.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 0.9rem 1.15rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: rgba(255,255,255,0.85);
  color: var(--text);
}
.guestbook-form input:focus,
.guestbook-form textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45, 107, 40, 0.1);
}
.guestbook-form textarea { min-height: 130px; resize: vertical; }

.submit-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 2rem;
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  letter-spacing: 0.06em;
  font-family: var(--font-cn);
}
.submit-btn:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 46, 16, 0.25);
}
.submit-btn:disabled { opacity: 0.65; cursor: wait; transform: none; }

.guest-entry {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(26, 58, 22, 0.07);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s;
}
.guest-entry:hover { box-shadow: var(--shadow-md); }
.guest-entry .name {
  font-weight: 600; color: var(--green-dark);
  font-family: var(--font-cn); font-size: 1rem;
}
.guest-entry .date {
  font-size: 0.78rem; color: var(--text-faint);
  margin-left: 0.6rem;
}
.guest-entry .msg {
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ===== 联系页 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}
.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  font-family: var(--font-cn);
  color: var(--green-dark);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.contact-card .label { color: var(--text-faint); font-size: 0.85rem; }
.contact-card p { margin: 0.4rem 0; color: var(--text-muted); font-size: 0.95rem; }

/* ===== 关于页内容 ===== */
.about-content {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: var(--shadow-sm);
  max-width: 720px;
  margin: 0 auto;
}
.about-content p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 2;
  margin-bottom: 1rem;
}
.about-content p:last-child { margin-bottom: 0; }

/* ===== 工具类 ===== */
.page-hero {
  padding: 3.2rem 1.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(74, 154, 66, 0.06) 0%, transparent 100%);
}
.page-hero h1 {
  font-family: var(--font-cn);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--green-dark);
  letter-spacing: 0.15em;
  font-weight: 700;
}
.page-hero p {
  color: var(--text-muted);
  margin-top: 0.6rem;
  font-size: 0.98rem;
}

/* ===== 响应式补充 ===== */
@media (max-width: 700px) {
  .section { padding: 3.2rem 1.1rem; }
  .card { padding: 1.5rem 1.3rem; }
  .hero { min-height: 420px; height: 72vh; }
  .graffiti-page { padding-left: 0.8rem; padding-right: 0.8rem; }
  .mode-switch { width: 100%; }
  .mode-btn { flex: 1; }
  
.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: nowrap;
}
.studio-title {
  margin: 0;
  color: var(--green-dark);
  font-size: 1.1rem;
  font-family: var(--font-cn);
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  margin-left: auto;
}
.studio-kicker { display: none; }

.graffiti-studio { padding: 0.75rem; }
  .graffiti-tools {
    align-items: stretch;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 0.6rem;
  }
  .tool-field { width: 100%; }
  .range-field { grid-column: 1 / -1; }
  .graffiti-tools input[type="range"] { width: 100%; flex: 1; }
  .tool-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .graffiti-fullscreen .graffiti-tools {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.45rem 0.6rem;
  }
  .graffiti-fullscreen .tool-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .graffiti-fullscreen .tool-btn { min-height: 40px; font-size: 0.85rem; }
  .graffiti-fullscreen #graffitiCanvas {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 3 / 2;
  }
}

/* 焦点可见性 */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 2px;
}

#exitFullscreenBtn.hidden { display: none !important; }
#fullscreenBtn.hidden { display: none !important; }


/* ===== Apple-inspired refinements ===== */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

.hero-particles { opacity: 0.35; }
.hero-pattern { opacity: 0.4; }
.hero-mountains { opacity: 0.85; }

.hero-btn {
  border-radius: 980px;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.section {
  padding: 5rem 1.5rem;
}

.section-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.card {
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  background: var(--paper);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.85rem;
  display: block;
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.page-hero {
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

.tab-btn, .mode-btn {
  border-radius: 980px;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  max-width: 38em;
  margin-left: auto;
  margin-right: auto;
}

.footer {
  padding: 3rem 1.5rem;
  background: #0f1f0c;
}
.footer-logo {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.88;
}
.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

/* 更克制的分割装饰 */
.section-divider-wrap .diamond,
.hero-h1-deco .diamond {
  width: 5px; height: 5px;
  opacity: 0.7;
}
.section-divider-wrap .line,
.hero-h1-deco .line {
  opacity: 0.35;
}


/* ===== 军旅气息强化 ===== */
:root {
  --green-dark: #1a3315;
  --green-mid: #3d5c34;
  --green-light: #5a7a4a;
  --green-soft: #7a9470;
  --green-pale: #e8efe4;
  --cream: #f3efe6;
  --cream-deep: #e6e0d4;
  --paper: #faf8f3;
  --ink: #1c2a18;
  --ink-soft: #3a4a36;
  --muted: #5c6b56;
  --line: rgba(26, 51, 21, 0.12);
  --shadow: 0 2px 12px rgba(26, 51, 21, 0.06), 0 12px 36px rgba(26, 51, 21, 0.08);
  --shadow-hover: 0 6px 20px rgba(26, 51, 21, 0.1), 0 18px 44px rgba(26, 51, 21, 0.12);
}

body {
  background: var(--cream);
  color: var(--ink);
}

.hero {
  background:
    linear-gradient(165deg, #152a12 0%, #1a3315 35%, #2a4524 70%, #3d5c34 100%);
}
.hero-glow {
  background: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(122, 148, 112, 0.25), transparent 70%);
}
.hero-btn {
  background: #f3efe6;
  color: #1a3315;
  border-radius: 980px;
  font-weight: 600;
}
.hero-btn:hover {
  background: #fff;
  color: #1a3315;
  transform: translateY(-2px);
}

.section-title {
  color: var(--green-dark);
}
.section-divider-wrap .line {
  background: var(--green-mid);
  opacity: 0.35;
}
.section-divider-wrap .diamond {
  background: var(--green-mid);
}

.card {
  background: var(--paper);
  border: 1px solid rgba(26, 51, 21, 0.06);
  border-radius: var(--radius);
}
.card:hover {
  border-color: rgba(61, 92, 52, 0.18);
}
.card h3 { color: var(--green-dark); }

.tab-btn.active,
.mode-btn.active {
  background: var(--green-dark) !important;
  color: #f3efe6 !important;
  border-color: var(--green-dark) !important;
}
.tab-btn, .mode-btn {
  border: 1px solid rgba(26, 51, 21, 0.15);
  color: var(--green-dark);
  background: rgba(255,255,255,0.7);
}

.page-hero h1 { color: var(--green-dark); }

.footer {
  background: #142610;
  border-top: 1px solid rgba(122, 148, 112, 0.12);
}

.tool-btn-primary,
.btn-primary,
button.primary {
  background: var(--green-dark);
  color: #f3efe6;
}

/* 导航链接更利落 */
.nav-links a {
  color: rgba(243, 239, 230, 0.88);
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}
.logo { color: #f3efe6; }

/* 引用块带一点军绿边 */
.quote-block, .quote {
  border-left: 3px solid var(--green-mid);
  background: rgba(232, 239, 228, 0.5);
}


/* ===== 滚动动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.header-nav.scrolled {
  background: rgba(20, 38, 16, 0.96);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.hero-content {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero.is-leaving .hero-content {
  opacity: 0.55;
  transform: translateY(-8px);
}

/* 卡片依次显现时保持内容区不塌 */
.card-grid .card.reveal {
  will-change: opacity, transform;
}

.save-orient {
  display: flex; gap: 0.5rem; margin: 0.75rem 0 0.25rem;
}
.save-orient label {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 0.35rem; padding: 0.55rem 0.5rem;
  border: 1px solid rgba(26,51,21,0.15); border-radius: 10px;
  cursor: pointer; font-size: 0.88rem; color: var(--green-dark);
  background: rgba(255,255,255,0.8);
}
.save-orient input { accent-color: var(--green-dark); }
.save-orient label:has(input:checked) {
  border-color: var(--green-dark);
  background: var(--green-pale);
  font-weight: 600;
}
.save-hint {
  font-size: 0.78rem; color: var(--muted); margin: 0.35rem 0 0.5rem; line-height: 1.5;
}
.save-preview.portrait {
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: #fff;
}


/* 全站通用过渡 */
a, button, .tab-btn, .mode-btn, .tool-btn, .card, .gallery-item {
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease), opacity 0.3s var(--ease);
}
.gallery-item {
  overflow: hidden; border-radius: var(--radius-sm);
}
.gallery-item img {
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }

.page-hero {
  animation: heroIn 0.6s var(--ease) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* 减弱网格 */
.hero-pattern { opacity: 0.025 !important; }


/* ===== 老兵手记 · 信息流（类 X） ===== */
.notes-section { padding-top: 0.5rem; max-width: 600px; margin: 0 auto; }
.notes-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid rgba(26,51,21,0.08); }
.x-post {
  display: flex; gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(26,51,21,0.08);
  background: transparent;
  transition: background 0.2s ease;
}
.x-post:hover { background: rgba(26, 51, 21, 0.03); }
.x-post-left { flex-shrink: 0; }
.x-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; background: var(--green-pale);
  display: block;
}
.x-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--green-mid); color: #f3efe6;
  font-weight: 700; font-size: 1.1rem; border-radius: 50%;
}
.x-post-main { flex: 1; min-width: 0; }
.x-post-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.4rem;
  margin-bottom: 0.2rem; font-size: 0.92rem;
}
.x-name { font-weight: 700; color: var(--ink); }
.x-handle, .x-time, .x-dot { color: var(--muted); font-weight: 400; }
.x-pin {
  font-size: 0.7rem; font-weight: 600; color: var(--green-dark);
  background: var(--green-pale); padding: 0.05rem 0.35rem; border-radius: 4px;
}
.x-post-title {
  font-weight: 600; color: var(--green-dark); margin: 0.15rem 0 0.35rem;
  font-size: 1.02rem; letter-spacing: 0.02em;
}
.x-post-body {
  color: var(--ink-soft); font-size: 0.98rem; line-height: 1.65;
  word-break: break-word; margin-bottom: 0.5rem;
}
.x-post-actions { display: flex; gap: 1rem; margin-top: 0.15rem; }
.x-action {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border: 0; background: transparent; color: var(--muted);
  cursor: pointer; padding: 0.35rem 0.5rem; border-radius: 999px;
  font-size: 0.85rem;
}
.x-action:hover { color: var(--green-mid); background: rgba(61, 92, 52, 0.1); }
.x-thread {
  margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px solid rgba(26,51,21,0.06);
}
.x-composer {
  display: grid; gap: 0.45rem; margin-bottom: 1rem;
}
.x-input-name, .x-input-body {
  width: 100%; border: 1px solid rgba(26,51,21,0.12);
  border-radius: 10px; padding: 0.5rem 0.7rem;
  font: inherit; background: var(--paper); color: var(--ink);
}
.x-input-body { resize: vertical; min-height: 2.5rem; }
.x-send, .x-reply-send { justify-self: end; min-height: 36px; }
.x-comment {
  display: flex; gap: 0.6rem; margin-bottom: 0.85rem;
}
.x-c-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-soft); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 600;
}
.x-c-sm { width: 28px; height: 28px; font-size: 0.75rem; }
.x-c-main { flex: 1; min-width: 0; }
.x-c-head { display: flex; gap: 0.5rem; align-items: baseline; margin-bottom: 0.15rem; }
.x-c-name { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.x-c-body { font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); }
.x-reply-btn {
  border: 0; background: none; color: var(--green-mid);
  font-size: 0.8rem; cursor: pointer; padding: 0.25rem 0; margin-top: 0.2rem;
}
.x-reply-box { margin-top: 0.4rem; display: grid; gap: 0.35rem; }
.x-reply-box.hidden { display: none; }
.x-replies {
  margin-top: 0.6rem; padding-left: 0.5rem;
  border-left: 2px solid rgba(26,51,21,0.1);
}
.x-loading, .x-empty-c { color: var(--muted); font-size: 0.9rem; padding: 0.5rem 0; }
.x-thread.hidden { display: none; }

@media (max-width: 600px) {
  .x-post { padding: 0.85rem 0.75rem; }
  .x-avatar { width: 42px; height: 42px; }
}
