/* 指间塑 — 胶东花饽饽文化平台（使用系统字体，避免 Google 字体阻塞加载） */
:root {
  --primary: #c41e3a;
  --primary-dark: #9a1830;
  --primary-light: #fce8ec;
  --accent: #1e4d6b;
  --accent-light: #e8f1f6;
  --ink: #141824;
  --ink-soft: #5c6378;
  --bg: #f3f6fa;
  --bg-alt: #e9eef5;
  --surface: #ffffff;
  --border: rgba(30, 77, 107, 0.1);
  --shadow: 0 4px 24px rgba(20, 24, 36, 0.06);
  --shadow-lg: 0 12px 40px rgba(20, 24, 36, 0.1);
  --radius: 14px;
  --radius-lg: 20px;
  --nav-h: 72px;
  --font: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  --font-kai: 'KaiTi', 'STKaiti', '楷体', 'FangSong', serif;
  --font-brush: 'KaiTi', 'STKaiti', '楷体', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 楷体 / 毛笔字标题 */
.font-kai,
.brand-name,
.section-title,
.page-hero h1,
.hero h1,
.carousel-caption h2,
.feature-content h3,
.card h3 {
  font-family: var(--font-kai);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.font-brush {
  font-family: var(--font-brush);
  font-weight: 400;
}

/* —— 顶栏 —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 语言切换 + Logo 左侧成组，避免英文导航挤压遮盖 */
.header-leading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
  margin-right: 4px;
}

.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.lang-btn {
  padding: 5px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.lang-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.lang-btn:hover:not(.is-active) {
  background: var(--accent-light);
  color: var(--accent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  min-width: 0;
  max-width: 168px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
}

.brand-name {
  font-size: 1.35rem;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tag {
  font-size: 0.65rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  font-family: var(--font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 1;
  min-width: 0;
}

.main-nav a {
  padding: 8px 11px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

/* 英文导航更长：收紧间距，避免盖住左侧 Logo */
html[lang="en"] .main-nav {
  gap: 0;
}

html[lang="en"] .main-nav a {
  padding: 7px 7px;
  font-size: 0.76rem;
}

html[lang="en"] .brand {
  max-width: 148px;
}

html[lang="en"] .brand-name {
  font-size: 1.15rem;
}

html[lang="en"] .brand-tag {
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

html[lang="en"] .nav-mine,
html[lang="en"] .btn-auth {
  font-size: 0.76rem;
  padding: 6px 10px;
}

@media (max-width: 1080px) {
  html[lang="en"] .brand-tag {
    display: none;
  }
}

@media (max-width: 960px) {
  .brand-tag {
    display: none;
  }

  .brand {
    max-width: 120px;
  }
}

.main-nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.main-nav a.is-active {
  color: var(--surface);
  background: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-mine {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-mine:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-mine.is-active {
  color: var(--surface);
  background: var(--primary);
}

.header-auth-group {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(20, 24, 36, 0.04);
}

.header-auth-group .btn-auth {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  border: none;
  border-radius: 0;
}

.header-auth-group .btn-login {
  color: var(--ink-soft);
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.header-auth-group .btn-login:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.header-auth-group .btn-register {
  color: var(--surface);
  background: var(--primary);
}

.header-auth-group .btn-register:hover {
  background: var(--primary-dark);
}

.header-auth-group .btn-auth.is-active {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— 首页轮播 —— */
.hero-carousel {
  position: relative;
  width: 100%;
  background: var(--bg-alt);
}

.carousel {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  max-height: min(52vh, 680px);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-alt);
}

.carousel-slide img:not([src]) {
  visibility: hidden;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(20, 24, 36, 0.75) 0%,
    rgba(20, 24, 36, 0.35) 45%,
    transparent 70%
  );
  display: flex;
  align-items: center;
  padding: 0 8%;
}

.carousel-caption {
  max-width: 520px;
  color: #fff;
}

.carousel-caption .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  font-family: var(--font);
}

.carousel-caption h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.35;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.carousel-caption p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.7;
  font-family: var(--font);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.carousel-dot.is-active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.15);
}

/* —— 主内容 —— */
main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: var(--ink);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 56px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.section-desc {
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 40px;
  font-size: 1rem;
}

/* —— Hero —— */
.hero {
  padding: 56px 0 72px;
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-light);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.35;
  margin-bottom: 20px;
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: var(--surface);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: var(--surface);
  color: var(--accent);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.hero-visual {
  position: relative;
}

.hero-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: var(--surface);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  max-width: 220px;
  border-left: 4px solid var(--primary);
}

.hero-float strong {
  display: block;
  font-family: var(--font-brush);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 4px;
  font-weight: 400;
}

/* —— 卡片 —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  aspect-ratio: 16/10;
  background: var(--bg-alt);
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 首屏以下区块：延迟渲染，减轻滚动压力 */
.section,
.section-alt {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.card-body {
  padding: 20px 24px 24px;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-family: var(--font);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* —— 特色块 —— */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-content h3 {
  font-size: 1.55rem;
  margin-bottom: 16px;
  color: var(--ink);
}

.feature-content p {
  color: var(--ink-soft);
  margin-bottom: 12px;
}

/* —— 子页头 —— */
.page-hero {
  padding: 56px 0 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--ink);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 24px;
}

.page-hero-cta {
  margin-top: 8px;
}

/* —— 登录 / 注册 —— */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form label span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.auth-form input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.auth-status {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  background: var(--bg-alt);
  color: var(--ink-soft);
}

.auth-status.is-ok {
  background: rgba(13, 107, 79, 0.08);
  color: #0d6b4f;
}

.auth-status.is-bad {
  background: rgba(196, 30, 58, 0.06);
  color: var(--primary);
}

.auth-status code {
  font-size: 0.82em;
}

.auth-error {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--primary);
  background: rgba(196, 30, 58, 0.06);
  border: 1px solid rgba(196, 30, 58, 0.2);
}

/* —— 数字化展厅（瀑布流） —— */
.gallery-search {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 32px;
  padding: 0 8px;
}

.gallery-search-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.gallery-search-row {
  position: relative;
  display: flex;
  align-items: center;
}

.gallery-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  pointer-events: none;
  z-index: 1;
}

.gallery-search-input {
  width: 100%;
  min-height: 56px;
  padding: 16px 52px 16px 52px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(20, 24, 36, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gallery-search-input::placeholder {
  color: #9ca3af;
}

.gallery-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light), 0 4px 20px rgba(196, 30, 58, 0.08);
}

.gallery-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.gallery-search-clear:hover {
  color: var(--primary);
  background: var(--primary-light);
  border-color: var(--primary);
}

.gallery-search-clear[hidden] {
  display: none;
}

.gallery-search-hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  min-height: 1.2em;
}

.gallery-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.gallery-masonry {
  column-count: 4;
  column-gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  display: block;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(20, 24, 36, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  color: inherit;
}

.gallery-item--detail {
  break-inside: auto;
  max-width: 520px;
  margin: 0 auto 24px;
}

.gallery-item--detail .gallery-item-cover img {
  max-height: 420px;
  aspect-ratio: auto;
  object-fit: contain;
  background: var(--bg-alt);
}

.gallery-work-detail-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 8px 40px;
}

.gallery-work-detail-back {
  text-align: center;
  margin-top: 8px;
}

a.gallery-item:hover,
.gallery-item:has(a:hover) {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.gallery-item-cover {
  display: block;
  color: inherit;
}

.gallery-item-cover img,
.gallery-cover-img {
  width: 100%;
  display: block;
  background: var(--bg-alt);
  aspect-ratio: 1 / 1;
  max-height: 140px;
  min-height: 100px;
  height: 140px;
  object-fit: cover;
  object-position: center;
}

.gallery-item-body h3 a {
  color: inherit;
}

.gallery-item-body h3 a:hover {
  color: var(--primary);
}

.gallery-item-body {
  padding: 8px 10px 10px;
}

.gallery-item-body h3 {
  font-size: 0.85rem;
  margin-bottom: 4px;
  font-family: var(--font-kai);
  line-height: 1.3;
}

.gallery-item-author {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.gallery-item-desc {
  font-size: 0.7rem;
  color: var(--ink-soft);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.gallery-like-btn,
.gallery-comment-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}

.gallery-like-btn:hover,
.gallery-comment-btn:hover {
  color: var(--ink);
}

.gallery-like-btn.is-liked {
  color: var(--primary);
}

.gallery-like-btn.is-liked .engage-icon-heart {
  fill: var(--primary);
  stroke: var(--primary);
}

.gallery-comment-btn.is-open {
  color: var(--primary);
}

.gallery-comment-btn.is-open .engage-icon-comment {
  stroke: var(--primary);
}

.gallery-comment-detail {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.gallery-comment-detail:hover {
  color: var(--primary);
}

.gallery-item-comments {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.gallery-item-comments[hidden] {
  display: none;
}

/* —— 作品点赞留言（详情页 + 卡片共用） —— */
.engage-icon-heart,
.engage-icon-comment {
  flex-shrink: 0;
}

.work-engage {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.work-engage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.work-engage-head h2 {
  font-size: 1.15rem;
  font-family: var(--font-kai);
}

.work-engage-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.work-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}

.work-like-btn:hover {
  color: var(--ink);
}

.work-like-btn.is-liked {
  color: var(--primary);
}

.work-like-btn.is-liked .engage-icon-heart {
  fill: var(--primary);
  stroke: var(--primary);
}

.work-comment-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.work-comments-panel h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  font-family: var(--font-kai);
}

.comment-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.comment-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  margin-right: 8px;
}

.comment-author:hover {
  text-decoration: underline;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.comment-text {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
}

.comment-empty {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  resize: vertical;
  min-height: 72px;
}

.comment-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.comment-submit {
  align-self: flex-start;
  padding: 8px 20px;
  font-size: 0.85rem;
}

.comment-login-tip {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.comment-login-tip a {
  color: var(--primary);
  font-weight: 600;
}

.work-detail-main {
  min-width: 0;
}

.gallery-item-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.65rem;
  padding: 2px 6px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 4px;
}

/* —— 作品详情 —— */
.work-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.work-detail-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex;
  justify-content: center;
  align-items: center;
}

.work-detail-visual img {
  width: 100%;
  max-width: 560px;
  max-height: 520px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.work-detail-side {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.work-detail-side h1 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.work-detail-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
  line-height: 1.8;
}

.work-detail-meta strong {
  color: var(--accent);
}

.work-detail-desc {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.work-custom-box {
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.work-custom-box h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-family: var(--font-kai);
}

.work-custom-box p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.work-custom-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-custom-actions .btn {
  justify-content: center;
  width: 100%;
}

.artisan-pick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.artisan-pick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.artisan-pick-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.artisan-pick-item img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-alt);
}

.artisan-pick-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.artisan-pick-info strong {
  font-size: 0.9rem;
  color: var(--ink);
}

.artisan-pick-role {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.artisan-pick-meta {
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.artisan-pick-arrow {
  font-size: 1rem;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.artisan-pick-item:hover .artisan-pick-arrow {
  color: var(--primary);
}

/* —— 社区创作者主页 —— */
.gallery-item-author a,
.work-detail-meta a.author-link {
  color: var(--accent);
  font-weight: 600;
}

.gallery-item-author a:hover,
.work-detail-meta a.author-link:hover {
  color: var(--primary);
}

.author-profile-header {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.author-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}

.author-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-profile-avatar-editable {
  position: relative;
  cursor: pointer;
}

.author-profile-avatar-editable .avatar-upload-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.author-profile-avatar-editable:hover .avatar-upload-hint,
.author-profile-avatar-editable:focus-visible .avatar-upload-hint {
  opacity: 1;
}

.author-profile-avatar-editable.is-uploading {
  opacity: 0.65;
  pointer-events: none;
}

.author-profile-avatar-editable.is-uploading .avatar-upload-hint {
  opacity: 1;
}

.author-profile-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.author-profile-info h1 {
  font-size: 1.75rem;
  margin: 0;
}

.profile-edit-name-btn {
  flex-shrink: 0;
}

.profile-name-edit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px 16px;
  max-width: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 10px);
  background: var(--bg-alt, #f8fafc);
}

.profile-name-edit[hidden] {
  display: none !important;
}

.profile-name-edit__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.profile-name-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 10px);
  font-family: inherit;
}

.profile-name-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}

.profile-name-edit__actions {
  display: flex;
  gap: 8px;
}

.author-profile-name {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.author-profile-bio {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 12px;
  max-width: 560px;
}

.author-profile-stats {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.author-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.author-work-card {
  display: block;
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.author-work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.author-work-card img {
  width: 100%;
  aspect-ratio: 1/1;
  max-height: 160px;
  object-fit: cover;
  background: var(--bg-alt);
}

.author-work-card-body {
  padding: 12px 14px 14px;
}

.author-work-card-body h3 {
  font-size: 0.95rem;
  margin-top: 8px;
  font-family: var(--font-kai);
}

.author-work-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.author-work-status {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 6px rgba(20, 24, 36, 0.12);
}

.author-work-status--published {
  background: rgba(255, 255, 255, 0.94);
  color: #0d6b4f;
  border: 1px solid rgba(13, 107, 79, 0.25);
}

.author-work-status--draft {
  background: rgba(255, 255, 255, 0.94);
  color: #9e1830;
  border: 1px solid rgba(196, 30, 58, 0.28);
}

.author-work-card-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  padding: 0 2px;
}

.author-work-card-actions .btn-sm {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 8px;
  font-size: 0.74rem;
  white-space: nowrap;
  text-align: center;
}

.author-work-card-wrap--draft .author-work-card-actions .btn-sm {
  padding: 6px 6px;
  font-size: 0.72rem;
}

.author-work-card-wrap--ar .author-work-card img,
.author-work-card-img--ar {
  object-fit: cover;
  background: #1a1a1a;
}

.author-work-card--ar {
  border-color: rgba(30, 77, 107, 0.22);
}

.author-work-ar-label {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  background: rgba(30, 77, 107, 0.82);
  box-shadow: 0 1px 6px rgba(20, 24, 36, 0.15);
}

.btn-danger-outline {
  border-color: rgba(196, 30, 58, 0.45);
  color: var(--accent);
}

.btn-danger-outline:hover {
  background: rgba(196, 30, 58, 0.08);
}

.profile-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 30, 40, 0.45);
}

.profile-dialog.is-open {
  display: flex;
}

.profile-dialog__panel {
  width: min(440px, 100%);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}

.profile-dialog__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.profile-dialog__desc {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.profile-dialog__field {
  display: block;
  margin-bottom: 14px;
}

.profile-dialog__field span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.profile-dialog__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
  box-sizing: border-box;
}

.profile-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.author-work-card img.is-fallback-thumb {
  object-fit: contain;
  padding: 12px;
  background: linear-gradient(145deg, #f3ebe0, #e8ddd0);
}

.my-draft-grid {
  margin-top: 16px;
}

.work-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.profile-manage-toolbar {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.my-draft-box {
  margin-top: 40px;
  padding: 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.my-draft-box > p:first-of-type {
  text-align: center;
  margin-bottom: 12px;
}

.my-draft-box h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-family: var(--font-kai);
}

.my-draft-box p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

/* —— 数字化体验 —— */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.experience-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.experience-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.experience-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.experience-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-family: var(--font-kai);
}

/* —— 手艺人 —— */
.artisan-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  align-items: center;
  transition: box-shadow 0.25s;
}

.artisan-card:hover {
  box-shadow: var(--shadow-lg);
}

.artisan-avatar {
  width: 140px;
  height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
}

.artisan-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artisan-info h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  font-family: var(--font-kai);
}

.artisan-meta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

a.artisan-card {
  display: grid;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.artisan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.artisan-card .artisan-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* —— 手艺人详情页 —— */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

.artisan-detail-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--border);
}

.artisan-detail-avatar {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--surface);
  background: var(--bg-alt);
}

.artisan-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artisan-detail-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 8px;
}

.artisan-detail-title {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.artisan-detail-intro {
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 640px;
}

.artisan-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.artisan-detail-tags span {
  padding: 6px 12px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.detail-block {
  margin-bottom: 56px;
}

.detail-block h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}

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

.work-item {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.work-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.work-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-alt);
}

.work-item figcaption {
  padding: 16px;
}

.work-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  font-family: var(--font-kai);
}

.work-item p {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.shop-info {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.shop-info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px 24px;
}

.shop-info dt {
  font-weight: 600;
  color: var(--ink-soft);
}

.shop-info dd {
  color: var(--ink);
  margin: 0;
}

.contact-wechat {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
}

.contact-wechat h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-family: var(--font-kai);
}

.wechat-id {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--surface);
  padding: 10px 20px;
  border-radius: 8px;
  margin: 12px 0;
  letter-spacing: 0.05em;
}

.contact-wechat .tip {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

.wechat-qr {
  width: 200px;
  height: 200px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 12px;
}

.wechat-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-back {
  margin-top: 16px;
}

/* —— 公益 —— */
.charity-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.stat-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.stat-box .num {
  font-size: 2rem;
  font-family: var(--font-brush);
  color: var(--primary);
  font-weight: 400;
}

.stat-box .label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* —— 新闻 —— */
.news-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 4px;
}

.news-pager-info {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.news-pager-actions {
  display: flex;
  gap: 10px;
}

.news-pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.news-item,
a.news-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

a.news-item.news-item-link {
  color: inherit;
  text-decoration: none;
}

.news-item:hover,
a.news-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.news-thumb {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body {
  padding: 20px 24px 20px 0;
}

.news-date {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-family: var(--font-kai);
}

.news-detail-summary {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 24px;
  text-align: center;
}

.news-detail-header {
  text-align: center;
  margin-bottom: 28px;
}

.news-detail-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: var(--ink);
  font-family: var(--font-kai);
  margin: 0 0 12px;
  line-height: 1.35;
  display: block;
}

.news-detail-header .news-detail-date,
.news-detail-header .news-date {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

.news-detail-cover {
  margin: 0 0 24px;
}

.news-detail-cover img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.news-content-body,
.news-detail-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
}

.news-content-body p,
.news-detail-content p {
  margin-bottom: 1em;
}

.news-content-body [style*='text-align: center'],
.news-detail-content [style*='text-align: center'],
.news-content-body [style*='text-align:center'],
.news-detail-content [style*='text-align:center'] {
  text-align: center;
}

.news-content-body [style*='text-align: right'],
.news-detail-content [style*='text-align: right'],
.news-content-body [style*='text-align:right'],
.news-detail-content [style*='text-align:right'] {
  text-align: right;
}

.news-content-body img,
.news-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 20px 0;
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

.news-content-body img[style*='width'],
.news-detail-content img[style*='width'] {
  display: block;
}

.news-content-body img:not([style*='width']),
.news-detail-content img:not([style*='width']) {
  display: block;
  width: auto;
}

/* —— 关于 —— */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin-top: 24px;
}

.contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
}

.contact-list strong {
  min-width: 72px;
  color: var(--ink-soft);
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.value-pill {
  padding: 8px 16px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.about-intro-text p:last-child {
  margin-bottom: 0;
}

.about-print-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.about-print-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-print-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}

.about-print-card h3 {
  font-size: 1rem;
  margin: 12px 14px 6px;
  font-family: var(--font-kai);
}

.about-print-card p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 14px 14px;
}

.about-join-text {
  line-height: 1.75;
}

@media (max-width: 1024px) {
  .about-print-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .about-print-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .about-print-grid {
    grid-template-columns: 1fr;
  }
}

/* —— 页脚 —— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand-name {
  color: #fff;
  font-size: 1.6rem;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
}

/* —— 响应式 —— */
@media (max-width: 900px) {
  .hero-grid,
  .feature-row,
  .about-grid,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .charity-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-item,
  a.news-item {
    grid-template-columns: 1fr;
  }

  .news-body {
    padding: 0 20px 20px;
  }

  .news-thumb {
    min-height: 180px;
  }

  .artisan-card,
  a.artisan-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .artisan-avatar {
    margin: 0 auto;
  }

  .artisan-detail-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .artisan-detail-avatar {
    margin: 0 auto;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .contact-wechat {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .wechat-qr {
    margin: 0 auto;
  }

  .shop-info dl {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .carousel-track {
    aspect-ratio: 16 / 9;
    min-height: 180px;
    max-height: none;
  }

  .carousel-overlay {
    padding: 0 6%;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
}

  .gallery-masonry {
    column-count: 3;
  }

  .work-detail-layout {
    grid-template-columns: 1fr;
  }

  .work-detail-side {
    position: static;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 12px 0 8px;
    gap: 8px;
  }

  .header-leading {
    gap: 6px;
    margin-right: auto;
    flex: 0 1 auto;
    max-width: calc(100% - 120px);
  }

  .brand {
    max-width: none;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-tag {
    display: none;
  }

  .header-right {
    gap: 8px;
    flex: 0 0 auto;
  }

  .btn-auth {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .header-user {
    order: 3;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .header-auth-group .btn-auth {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .nav-mine {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .header-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .main-nav {
    order: 4;
    flex-basis: 100%;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .gallery-masonry {
    column-count: 2;
  }

  .gallery-item-cover img {
    max-height: 120px;
  }

  .author-profile-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-profile-avatar {
    margin: 0 auto;
  }
}
