/* 豫乐家 YLUG —— 前台样式
   视觉基调：白底 + 琥珀金强调色 + 轻量砖块质感。 */

:root {
  --s950: #020617;
  --s900: #0f172a;
  --s800: #1e293b;
  --s700: #334155;
  --s600: #475569;
  --s500: #64748b;
  --s400: #94a3b8;
  --s300: #cbd5e1;
  --s200: #e2e8f0;
  --s100: #f1f5f9;
  --s50: #f8fafc;
  --amber: #f59e0b;
  --amber-light: #fef3c7;
  --amber-dark: #b45309;
  --accent: var(--amber);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px -16px rgba(15, 23, 42, 0.28);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--s800);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--s500); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --------------------------------------------------------------- 顶栏 */

.brick-header {
  background: #fff;
  background-image: radial-gradient(circle at 14px 10px, rgba(15, 23, 42, 0.035) 3px, transparent 4px);
  background-size: 104px 30px;
  color: var(--s900);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid var(--amber);
  box-shadow: 0 1px 12px -8px rgba(15, 23, 42, 0.35);
}

.brick-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo {
  height: 44px;
  width: auto;
  padding: 0;
  background: transparent;
  flex: none;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.83rem;
  color: var(--s600);
  white-space: nowrap;
}
.nav a:hover { background: var(--s100); color: var(--s900); }
.nav a[aria-current="page"] { background: var(--amber); color: var(--s950); font-weight: 600; }
.nav .nav-admin { border: 1px solid var(--s300); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--s100);
  border: 1px solid var(--s200);
  color: var(--s800);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

/* --------------------------------------------------------------- 首屏 */

.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--s900);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--s200);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: -180px; right: -120px; width: 520px; height: 520px;
  background: none;
}

.hero::after {
  bottom: -220px; left: -140px; width: 460px; height: 460px;
  background: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-tagline {
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: 0.06em;
  background: linear-gradient(120deg, var(--s900) 10%, var(--amber-dark) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline-en {
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--s400);
  margin-top: 10px;
}

.hero-intro {
  margin-top: 14px;
  max-width: 720px;
  color: var(--s600);
  font-size: 0.95rem;
  line-height: 1.85;
}

.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  background: var(--amber);
  color: var(--s950);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(245, 158, 11, 0.9); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; border: 1px solid var(--s300); color: var(--s800); }
.btn-ghost:hover { background: var(--s100); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-outline { background: transparent; border: 1px solid var(--s300); color: var(--s700); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber-dark); }
.btn-danger { background: #fee2e2; color: #b91c1c; }

/* 倒计时 */

.countdown {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.countdown-head { min-width: 200px; }
.countdown-label { font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.countdown-title { font-size: 1rem; font-weight: 600; margin-top: 4px; }
.countdown-meta { font-size: 0.8rem; color: rgba(255, 255, 255, 0.62); margin-top: 2px; }

.countdown-units { display: flex; gap: 10px; margin-left: auto; }
.cd-unit {
  min-width: 66px;
  text-align: center;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
}
.cd-num { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--amber); }
.cd-label { font-size: 0.7rem; color: rgba(255, 255, 255, 0.55); }
.cd-msg { color: var(--amber-light); font-weight: 600; }

/* --------------------------------------------------------------- 数据条 */

.stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--s200);
}

.stats-bar .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--s200);
  padding: 0;
}

.stat {
  background: #fff;
  padding: 24px 20px;
  text-align: center;
}
.stat-num { font-size: 1.9rem; font-weight: 700; color: var(--s900); font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 0.85rem; font-weight: 500; color: var(--s500); margin-left: 3px; }
.stat-label { font-size: 0.8rem; color: var(--s500); margin-top: 4px; }

/* --------------------------------------------------------------- 通用区块 */

.section { padding: 60px 0; background: #fff; }
.section-alt { background: #fff; border-top: 1px solid var(--s200); border-bottom: 1px solid var(--s200); }
.section-dark { background: var(--s50); border-top: 1px solid var(--s200); border-bottom: 1px solid var(--s200); }
.section-head { margin-bottom: 28px; }
.section-head-center { text-align: center; }
.section-head-center .section-desc { margin-left: auto; margin-right: auto; }
.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber-dark);
  font-weight: 600;
}
.section-dark .section-eyebrow { color: var(--amber-dark); }
.section-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 6px; }
.section-desc { color: var(--s500); margin-top: 10px; max-width: 760px; }
.section-dark .section-desc { color: var(--s500); }

.page-head { background: #fff; color: var(--s900); padding: 40px 0 36px; position: relative; overflow: hidden; border-bottom: 1px solid var(--s200); }
.page-head::after {
  content: "";
  position: absolute;
  right: -120px; top: -140px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, transparent 70%);
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head .section-eyebrow { color: var(--amber-dark); }
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: 8px; }
.page-head p { color: var(--s600); margin-top: 12px; max-width: 760px; }
.crumbs { font-size: 0.78rem; color: var(--s400); }
.crumbs a:hover { color: var(--amber-dark); }

/* --------------------------------------------------------------- 板块卡片 */

.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.module-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--s200);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent);
}

.module-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.45); }
.module-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 1.4rem;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, #fff);
}
.module-title { font-size: 1.05rem; margin-top: 14px; }
.module-sub { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--s400); margin-top: 2px; }
.module-desc { color: var(--s600); font-size: 0.87rem; margin-top: 10px; flex: 1; }
.module-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--s200);
}
.module-stat { font-size: 0.82rem; color: var(--s700); font-weight: 600; }
.module-link { font-size: 0.82rem; color: var(--accent); font-weight: 600; }
.module-link::after { content: " →"; }

/* --------------------------------------------------------------- 卡片 / 列表 */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--s200);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-hover:hover { transform: translateY(-2px); transition: transform 0.16s ease; }
.card-title { font-size: 1rem; }
.card-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-meta { font-size: 0.8rem; color: var(--s500); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.card-note { font-size: 0.85rem; color: var(--s600); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--s200); }

.price { font-size: 1.25rem; font-weight: 700; color: #d97706; font-variant-numeric: tabular-nums; }
.price small { font-size: 0.72rem; font-weight: 500; color: var(--s500); margin-left: 6px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--s100);
  color: var(--s600);
  white-space: nowrap;
}
.badge-amber { background: var(--amber-light); color: var(--amber-dark); }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-slate { background: var(--s100); color: var(--s600); }
.badge-indigo { background: #e0e7ff; color: #4338ca; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--s100); color: var(--s600); font-size: 0.74rem; margin-right: 6px; }

.meta-list { display: grid; gap: 6px; font-size: 0.84rem; color: var(--s600); }
.meta-list b { color: var(--s800); font-weight: 600; }

/* 进度条（名额 / 库存 / 票数） */

.progress { height: 6px; border-radius: 999px; background: var(--s100); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* --------------------------------------------------------------- 意愿投票 */

.vote-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--s200);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.vote-option:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, #fff); }
.vote-option input { margin-right: 8px; }
.vote-option-head { display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; font-weight: 600; }
.vote-option .progress { margin-top: 10px; }

/* --------------------------------------------------------------- 时间线 */

/* 公众号文章 */

.wechat-list { display: grid; gap: 14px; }
.wechat-list[hidden] { display: none; }

.wechat-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  background: #fff;
  border: 1px solid var(--s200);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.wechat-card + .wechat-card { margin-top: 0; }
.wechat-card:hover { transform: translateY(-2px); border-color: var(--s300); }
.wechat-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 108px;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.22) 2px, transparent 3px),
    linear-gradient(140deg, #065f46 0%, #16a34a 60%, #4ade80 100%);
  background-size: 26px 26px, cover;
  color: #fff;
}
.wechat-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.wechat-cover-icon { font-size: 2rem; line-height: 1; }
.wechat-cover-label { font-size: 0.68rem; letter-spacing: 0.18em; opacity: 0.78; }
.wechat-card-compact .wechat-cover { min-height: 88px; }
.wechat-card-compact .wechat-summary { -webkit-line-clamp: 2; }

.wechat-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.wechat-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--s500);
}
.wechat-title { font-size: 1.02rem; }
.wechat-title a:hover { color: var(--amber-dark); }
.wechat-summary {
  font-size: 0.86rem; color: var(--s600); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wechat-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; font-size: 0.82rem; }

.wechat-actions {
  margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--s200);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.wechat-actions .arrow { transition: transform 0.18s ease; display: inline-block; }
.wechat-actions button[aria-expanded="true"] .arrow { transform: rotate(180deg); }

.wechat-index { display: grid; gap: 8px; font-size: 0.84rem; }
.wechat-index a { display: flex; gap: 10px; color: var(--s700); }
.wechat-index a:hover { color: var(--amber-dark); }
.wechat-index span { color: var(--s400); font-variant-numeric: tabular-nums; flex: none; }

.wechat-year + .wechat-year { margin-top: 34px; }
.wechat-year-label {
  font-size: 0.82rem; font-weight: 700; color: var(--s500); letter-spacing: 0.12em;
  padding-bottom: 10px; border-bottom: 2px solid var(--s200); margin-bottom: 16px;
}
.wechat-year-list { display: grid; gap: 14px; }
.wechat-detail {
  background: #fff; border: 1px solid var(--s200); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.wechat-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.wechat-detail-title { font-size: 1.08rem; margin-top: 8px; }
.wechat-detail-summary { font-size: 0.88rem; color: var(--s600); margin-top: 10px; }
.wechat-detail-cover { margin-top: 14px; border-radius: 12px; overflow: hidden; max-width: 560px; }
.wechat-detail-cover img { width: 100%; height: auto; display: block; }
.wechat-points { margin-top: 12px; padding-left: 18px; list-style: disc; font-size: 0.86rem; color: var(--s700); display: grid; gap: 6px; }
.wechat-detail .wechat-foot { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--s200); }

/* JnCe 作品集 */

/* 会员作品 */

.work-carousel { position: relative; overflow: hidden; border-radius: var(--radius); }
.work-track { display: flex; transition: transform 0.5s ease; }
.work-slide {
  flex: 0 0 100%;
  margin: 0;
  position: relative;
  background: #fff;
  border: 1px solid var(--s200);
  border-radius: var(--radius);
  overflow: hidden;
}
.work-slide-cover {
  position: relative;
  display: block;
  aspect-ratio: 21 / 9;
  max-height: 480px;
  background: var(--s900);
  color: rgba(255, 255, 255, 0.6);
}
.work-slide-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-slide-icon { font-size: 3rem; }
.work-slide figcaption { padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.work-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 34px 22px 18px; color: #fff; font-size: 1rem; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.82));
}
.work-slide-meta { display: flex; gap: 14px; font-size: 0.78rem; color: var(--s500); }
.work-slide-title { font-size: 1.15rem; font-weight: 700; line-height: 1.45; }
.work-slide-summary {
  font-size: 0.88rem; color: var(--s600);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.work-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.work-arrow {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--s200);
  background: #fff; color: var(--s600); font-size: 1.1rem; cursor: pointer;
}
.work-arrow:hover { border-color: var(--amber); color: var(--amber-dark); }
.work-dots { display: flex; gap: 8px; }
.work-dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: var(--s300); cursor: pointer;
}
.work-dot.active { background: var(--amber); width: 22px; border-radius: 999px; }
.work-more { margin-top: 18px; text-align: center; }
.work-cover {
  display: grid; place-items: center; position: relative;
  aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: linear-gradient(140deg, #f1f5f9, #e2e8f0); color: #94a3b8; font-size: 2rem;
}
.work-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.work-thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--s200); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.field-row { display: flex; gap: 8px; align-items: center; }
.field-row input { flex: 1; }
.upload-btn { cursor: pointer; white-space: nowrap; }
.work-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--s200); }
.work-row:last-child { border-bottom: 0; }
.work-row-cover { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--s100); flex: none; }
.work-row-cover img { width: 100%; height: 100%; object-fit: cover; }
.work-row-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; font-size: 0.86rem; }
.work-row-actions { display: flex; gap: 6px; }
.nav-login { border: 1px solid var(--amber); color: var(--amber) !important; }

@media (max-width: 760px) {
  .work-slide-cover { aspect-ratio: 4 / 3; }
  .work-slide-caption { font-size: 0.9rem; padding: 26px 14px 12px; }
}

.jnce-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.jnce-stat { display: flex; flex-direction: column; }
.jnce-stat b { font-size: 2rem; color: var(--amber); font-variant-numeric: tabular-nums; }
.jnce-stat span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.1em; }
.jnce-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.jnce-thumb {
  position: relative; border-radius: 12px; overflow: hidden; background: var(--s800);
  aspect-ratio: 4 / 5;
}
.jnce-thumb img { width: 100%; height: 100%; object-fit: cover; }
.jnce-thumb span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 10px;
  font-size: 0.78rem; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.85));
}
.footer-logo {
  display: inline-flex; background: #fff; border-radius: 12px; padding: 10px 14px;
  margin-bottom: 14px; max-width: 260px;
}
.footer-logo img { width: 100%; height: auto; }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--s200); }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item::before {
  content: ""; position: absolute; left: -26px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
}
.timeline-date { font-size: 0.78rem; color: var(--s500); letter-spacing: 0.06em; }

/* --------------------------------------------------------------- 公告 */

.notice { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--s200); }
.notice:last-child { border-bottom: 0; }
.notice-date { min-width: 84px; font-size: 0.78rem; color: var(--s500); padding-top: 3px; }
.notice-title { font-weight: 600; }
.notice-body { font-size: 0.86rem; color: var(--s600); margin-top: 4px; }

/* --------------------------------------------------------------- 表单 */

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--s700); }
.field .hint { font-size: 0.76rem; color: var(--s400); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--s200);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.88rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--s500); }

.panel {
  background: #fff;
  border: 1px solid var(--s200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px; align-items: start; }

/* --------------------------------------------------------------- 筛选 */

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--s200);
  background: #fff;
  color: var(--s600);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--s950); font-weight: 600; }
.search { margin-left: auto; }
.search input {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--s200);
  background: #fff; min-width: 220px; font-size: 0.85rem;
}
.search input:focus { outline: 0; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16); }

.empty {
  padding: 40px;
  text-align: center;
  color: var(--s400);
  border: 1px dashed var(--s200);
  border-radius: var(--radius);
  background: #fff;
}

/* --------------------------------------------------------------- 画廊 */

.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--s800); color: #fff; min-height: 190px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px; isolation: isolate;
}
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05) 30%, rgba(2, 6, 23, 0.82) 100%);
}
.gallery-title { font-size: 0.92rem; font-weight: 600; }
.gallery-note { font-size: 0.78rem; color: rgba(255, 255, 255, 0.72); margin-top: 4px; }

/* --------------------------------------------------------------- 联系 / 页脚 */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.contact-card {
  background: #fff; border: 1px solid var(--s200); border-radius: var(--radius);
  padding: 18px; text-align: center; box-shadow: var(--shadow);
}
.contact-icon { display: inline-flex; align-items: center; justify-content: center; height: 30px; font-size: 1.5rem; }
.contact-icon img { width: 30px; height: 30px; object-fit: contain; margin: 0 auto; }
.contact-icon-text { font-size: 1.5rem; line-height: 1; }
.contact-label { font-size: 0.78rem; color: var(--s500); margin-top: 6px; }
.contact-value { display: block; font-weight: 600; font-size: 0.9rem; margin-top: 2px; word-break: break-all; }

.site-footer { background: #fff; border-top: 1px solid var(--s200); color: var(--s500); padding: 40px 0 28px; font-size: 0.84rem; }
.site-footer a:hover { color: var(--amber-dark); }
.footer-brand { display: flex; justify-content: center; align-items: center; }
.footer-brand img { width: 100%; max-width: 100px; height: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.footer-title { color: var(--s900); font-weight: 600; margin-bottom: 10px; }
.footer-list { display: grid; gap: 6px; }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--s200); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.78rem; color: var(--s400); }

/* --------------------------------------------------------------- 社区风采（滚动播放） */

.community-marquee { position: relative; overflow: hidden; padding: 4px 0 14px; }
.community-marquee::before,
.community-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.community-marquee::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.community-marquee::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
.community-track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.community-item {
  /* 单张宽度保证「一组图片」总比屏幕宽，滑动时同屏不会出现两张一样的照片 */
  margin: 0; flex: none; width: max(300px, calc(20vw + 20px));
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--s200); background: #fff; box-shadow: var(--shadow);
}
.community-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* --------------------------------------------------------------- 鸣谢（只放图片） */

.thanks-section { padding: 44px 0; text-align: center; }
.thanks-logo { display: inline-block; width: 100%; max-width: 260px; height: auto; margin: 0 auto; }

.notice-placeholder { font-size: 1rem; font-weight: 600; color: var(--s700); }

/* --------------------------------------------------------------- 提示条 */

.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; gap: 10px; }
.toast {
  background: #fff; color: var(--s800); padding: 12px 18px; border-radius: var(--radius-sm);
  box-shadow: 0 16px 32px -18px rgba(15, 23, 42, 0.5); font-size: 0.86rem; max-width: 340px;
  border-left: 4px solid var(--amber);
}
.toast-error { border-left-color: #ef4444; }
.toast-ok { border-left-color: #22c55e; }

/* --------------------------------------------------------------- 响应式 */

@media (max-width: 980px) {
  .brand-sub { display: none; }
  .nav a { padding: 7px 8px; font-size: 0.8rem; }
  .module-grid, .cards, .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .stats-bar .wrap { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .brick-header .wrap { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    width: 100%;
    margin: 0 0 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--s200);
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; }
  .hero { padding: 40px 0 36px; }
  .countdown { flex-direction: column; align-items: flex-start; }
  .countdown-units { margin-left: 0; width: 100%; justify-content: space-between; }
  .cd-unit { min-width: 0; flex: 1; }
  .wechat-card { grid-template-columns: 1fr; }
  .wechat-cover { min-height: 150px; }
  .jnce-grid { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
  .module-grid, .cards, .cards-2, .cards-3, .cards-4, .gallery-strip, .contact-grid, .form-grid { grid-template-columns: 1fr; }
  .stats-bar .wrap { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 42px 0; }
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
}

/* --------------------------------------------------------------- 主题配色：中黄底 + 黑字 + 黑按钮 */

:root {
  --page: #f6c544;
  --ink: #111111;
}

html { background: #fff; }
body { background: var(--page); color: var(--ink); }

/* 会员权限：默认先藏起来，由 site.js 按登录状态显示 */
[hidden] { display: none !important; }

.brick-header {
  background: #fff;
  background-image: none;
  color: var(--ink);
  border-bottom: 3px solid #111;
  box-shadow: none;
}

/* Logo 原图就是白底，顶栏改成白色后直接贴合，不需要额外的白色底衬 */
.brick-header .wrap { min-height: 84px; }
.brand-logo {
  height: 56px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.nav a { color: #2b2b2b; }
.nav a:hover { background: rgba(0, 0, 0, 0.1); color: #000; }
.nav a[aria-current="page"] { background: #111; color: var(--page); }
.nav .nav-admin { border-color: rgba(0, 0, 0, 0.45); }
.nav .nav-login { border: 1px solid rgba(0, 0, 0, 0.65) !important; color: #111 !important; }
.nav .nav-login:hover { background: #111; color: var(--page) !important; }
.nav-toggle { background: rgba(0, 0, 0, 0.08); border-color: rgba(0, 0, 0, 0.25); color: var(--ink); }

.hero {
  background: var(--page);
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}
.hero-tagline {
  background: none;
  -webkit-text-fill-color: var(--ink);
  color: var(--ink);
}
.hero-tagline-en { color: #5c4a10; }
.hero-intro { color: #1f1f1f; }

.btn { background: #111; color: var(--page); }
.btn:hover { box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.65); }
.btn-ghost { background: transparent; border: 1px solid rgba(0, 0, 0, 0.5); color: var(--ink); }
.btn-ghost:hover { background: rgba(0, 0, 0, 0.08); }
.btn-outline { background: transparent; border: 1px solid rgba(0, 0, 0, 0.45); color: var(--ink); }
.btn-outline:hover { border-color: #111; color: #111; background: rgba(0, 0, 0, 0.05); }

/* 首页「社区风采」往下、以及子页面的正文区域都是白底，只有顶部（顶栏 + 首屏 / 页头）是中黄色 */
.section, .section-alt, .section-dark { background: #fff; border-color: var(--s200); }
.section-eyebrow, .page-head .section-eyebrow { color: #6d4f00; }
.section-desc { color: #2b2b2b; }

.page-head {
  background: var(--page);
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.page-head p { color: #1f1f1f; }
.page-head::after { background: none; }
.crumbs { color: #5b5b5b; }
.crumbs a:hover { color: #000; }

.chip[aria-pressed="true"] { background: #111; border-color: #111; color: var(--page); }
.chip { background: #f7f8fa; }

.community-marquee::before { background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.community-marquee::after { background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }

.footer-brand img {
  width: 100%;
  max-width: 200px;
  height: auto;
  background: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--s200);
}
.site-footer {
  background: #fff;
  border-top: 1px solid var(--s200);
  color: var(--s500);
}
.footer-bottom { border-top-color: var(--s200); color: var(--s400); }

.thanks-logo {
  width: 100%;
  max-width: 173px;
  height: auto;
  background: #fff;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--s200);
}

.toast { background: #111; color: var(--page); }

/* --------------------------------------------------------------- 豫乐头条 */

.headline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.headline-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--s200); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.headline-card:hover { transform: translateY(-2px); border-color: var(--s300); }
.headline-cover {
  width: 104px; height: 78px; flex: none; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}
.headline-cover img { width: 100%; height: 100%; object-fit: cover; }
.headline-cover-text { font-size: 0.78rem; font-weight: 600; color: #7c4a03; }
.headline-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.headline-date { font-size: 0.74rem; color: var(--s400); }
.headline-title { font-weight: 700; font-size: 0.98rem; line-height: 1.4; }
.headline-summary {
  font-size: 0.84rem; color: var(--s500); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --------------------------------------------------------------- 活动报名卡片 */

.event-card { text-decoration: none; color: inherit; }
.event-card .module-link { margin-top: auto; }

/* --------------------------------------------------------------- 语言选择 */

.lang-picker { display: inline-flex; align-items: center; margin-left: 6px; }
.lang-picker select {
  border: 1px solid rgba(0, 0, 0, 0.28); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 6px 10px; font-size: 0.8rem; cursor: pointer;
}
.lang-picker select:focus { outline: 0; border-color: #111; }
