/* ===== f7goods Design System — 日式清透 ===== */
:root {
  /* Canonical tokens (DESIGN.md) */
  --ink: #22201E;
  --paper: #F6F2EB;
  --card: #FFFCF7;
  --accent: #D94F5C;
  --accent-dark: #B83D49;
  --accent-alt: #2C3340;
  --muted: #8A8078;
  --line: #E5DDD1;
  --success: #3D8B6E;
  --warning: #C48A2A;
  --info: #4A7BA7;
  --glass: rgba(246, 242, 235, 0.88);
  --shadow-sm: 0 1px 2px rgba(34, 32, 30, 0.04);
  --shadow-md: 0 8px 24px rgba(34, 32, 30, 0.08);
  --shadow-lg: 0 16px 40px rgba(34, 32, 30, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --transition: 0.2s ease;
  --max-width: 1120px;
  /* Legacy aliases kept for existing markup */
  --haze: var(--muted);
  --card-bg: var(--card);
  --border: var(--line);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.detail-link { transition: var(--transition); }
.detail-link:hover { color: var(--accent); }
.detail-link:active { opacity: 0.7; }
.detail-social-link { background: rgba(217, 79, 92, 0.06); transition: var(--transition); }
.detail-social-link:hover { background: rgba(217, 79, 92, 0.1); }
.detail-social-link:active { background: rgba(217, 79, 92, 0.14); }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 1px 0 var(--line), 0 4px 16px rgba(34,32,30,0.04); }
.brand-bar { height: 2px; background: var(--accent); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 0.75rem;
}
.logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--ink); font-family: 'Noto Serif SC', Georgia, serif;
  font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; flex-shrink: 0;
}
.logo-icon {
  width: 32px; height: 32px; background: var(--ink); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper); font-size: 0.85rem; font-weight: 700;
  font-family: 'Noto Sans SC', system-ui, sans-serif;
}
.nav-links { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--haze); font-size: 0.88rem; font-weight: 500;
  padding: 0.4rem 0.85rem; border-radius: 999px; transition: var(--transition);
  position: relative; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); background: rgba(217,79,92,0.07); }
.nav-links a.active::after { display: none; }
.nav-author-btn {
  background: var(--accent) !important; color: white !important;
  border-radius: 999px !important; padding: 0.35rem 0.95rem !important;
  font-size: 0.8rem !important; font-weight: 600; white-space: nowrap;
  flex-shrink: 0; text-decoration: none !important; transition: var(--transition); border: none;
}
.nav-author-btn:hover { background: var(--accent-dark) !important; color: white !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--ink);
  margin: 5px 0; transition: var(--transition); border-radius: 1px;
}

/* Hero */
.hero {
  margin-top: 62px; padding: 2.75rem 1.5rem 2rem;
  background: var(--paper); color: var(--ink);
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--max-width), calc(100% - 3rem)); height: 2px; background: var(--accent);
}
.hero h1 {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem); font-weight: 700;
  margin-bottom: 0.6rem; letter-spacing: -0.02em; position: relative;
  color: var(--ink); line-height: 1.3; text-align: center;
}
.hero p {
  font-size: 0.98rem; color: var(--haze); max-width: 520px; margin: 0 auto;
  position: relative; line-height: 1.7; text-align: center;
}

/* Main */
.main-content {
  flex: 1; max-width: var(--max-width); margin: 0 auto;
  padding: 2rem 1.5rem 3rem; width: 100%; animation: fadeIn 0.28s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-header { margin-bottom: 1.5rem; }
.page-header h2 {
  font-family: 'Noto Serif SC', Georgia, serif; font-size: 1.45rem;
  font-weight: 700; color: var(--ink); margin-bottom: 0.35rem; letter-spacing: -0.01em;
}
.page-header p { color: var(--haze); font-size: 0.9rem; }

/* Filters */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; align-items: center;
}
.filter-bar:last-of-type { margin-bottom: 1.5rem; }
.filter-btn {
  padding: 0.35rem 0.85rem; border: 1px solid var(--line); background: var(--card);
  color: var(--haze); border-radius: 999px; cursor: pointer; font-size: 0.8rem;
  font-weight: 500; font-family: inherit; transition: var(--transition);
  min-height: 32px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
}
.filter-btn:hover { border-color: #D4C8B8; color: var(--ink); background: var(--paper); }
.filter-btn:active { transform: scale(0.98); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

/* 同人作者列表：筛选条最右「作者手册」入口 */
.cl-handbook-btn {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: #6B3FA0;
  color: #fff !important;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 14px rgba(107, 63, 160, 0.4);
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.cl-handbook-btn:hover {
  background: #7d4bb8;
  transform: translateY(-1px);
}
.search-input {
  padding: 0.35rem 0.9rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.8rem; background: var(--card); color: var(--ink); min-width: 180px;
  margin-left: auto; outline: none; transition: var(--transition); font-family: inherit; min-height: 32px;
}
.search-input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,79,92,0.1); background: white;
}
.search-input::placeholder { color: var(--haze); }
.sort-select {
  width: auto; min-width: 130px; min-height: 32px;
  padding: 0.35rem 0.7rem; font-size: 0.8rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.sort-select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,79,92,0.1); background: white;
}
.announcement-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.95rem;
  background: var(--accent); color: white; border-radius: 999px; text-decoration: none;
  font-size: 0.8rem; font-weight: 600; transition: var(--transition); white-space: nowrap;
}
.announcement-btn:hover {
  background: var(--accent-dark); color: white; box-shadow: 0 4px 12px rgba(217,79,92,0.25);
}

/* Cards */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem;
}
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer; border: 1px solid var(--line); display: flex; flex-direction: column;
  position: relative;
}
a.card, a.event-card, a.event-grid-card, a.circle-card {
  text-decoration: none; color: inherit;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #D4C8B8; }
.card:active { transform: translateY(0); }
.card-image {
  width: 100%; height: 190px; background: linear-gradient(145deg, #EDE6DA, #E2D9CB);
  display: flex; align-items: center; justify-content: center; color: var(--haze);
  font-size: 0.85rem; position: relative; overflow: hidden;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image .placeholder-icon { font-size: 2rem; opacity: 0.35; }
.deadline-badge {
  position: absolute; top: 8px; right: 8px; background: var(--accent); color: white;
  padding: 0.15rem 0.45rem; border-radius: 6px; font-size: 0.65rem; font-weight: 600;
  z-index: 2; pointer-events: none;
}
.card-new-badge {
  position: absolute; top: 8px; left: 8px; background: var(--success); color: #fff;
  padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700;
  z-index: 3; pointer-events: none; letter-spacing: 0.04em; line-height: 1.3;
}
.card-body { padding: 1rem 1.1rem 0.75rem; flex: 1; }
.card-tag {
  display: inline-block; padding: 0.12rem 0.55rem; background: rgba(217,79,92,0.08);
  color: var(--accent); border-radius: 999px; font-size: 0.68rem; font-weight: 600;
  margin-bottom: 0.45rem;
}
.card-tag.pre_order, .card-tag.in_progress { background: rgba(196,138,42,0.1); color: var(--warning); }
.card-tag.recruiting { background: rgba(61,139,110,0.1); color: var(--success); }
.card-tag.completed, .card-tag.sold_out, .card-tag.cancelled {
  background: rgba(138,128,120,0.12); color: var(--haze);
}
.card-tag.on_sale, .card-tag.coming_soon { background: rgba(217,79,92,0.08); color: var(--accent); }
.card-title {
  font-family: 'Noto Serif SC', Georgia, serif; font-size: 1rem; font-weight: 600;
  margin-bottom: 0.3rem; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-subtitle {
  font-size: 0.78rem; color: var(--haze); margin-bottom: 0.25rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-footer {
  padding: 0.7rem 1.1rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: auto;
}
.card-price {
  font-weight: 700; color: var(--accent); font-size: 0.95rem; white-space: nowrap;
}
.like-btn {
  background: none; border: none; cursor: pointer; display: inline-flex; align-items: center;
  gap: 0.25rem; padding: 0.25rem 0.5rem; border-radius: 999px; transition: var(--transition);
  font-size: 0.85rem; font-family: inherit; color: var(--haze);
}
.like-btn:hover { background: rgba(217,79,92,0.07); color: var(--accent); }
.like-btn:active { transform: scale(0.95); }
.like-btn .like-icon { font-size: 1rem; transition: transform 0.2s ease; }
.like-btn:hover .like-icon { transform: scale(1.1); }
.like-btn.liked .like-icon { animation: heartPop 0.3s ease; }
@keyframes heartPop {
  0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); }
}
.like-count { font-size: 0.75rem; color: var(--haze); font-weight: 500; }
.like-btn.liked, .like-btn.liked .like-count { color: var(--accent); }
.want-btn {
  background: var(--accent); color: white; border: none; cursor: pointer; display: inline-block;
  padding: 0.4rem 1.1rem; border-radius: 999px; transition: var(--transition);
  font-size: 0.82rem; font-weight: 600; font-family: inherit; margin-top: 0.4rem;
}
.want-btn:hover { background: var(--accent-dark); }
.want-btn:active { transform: scale(0.98); }
.want-btn--done {
  background: rgba(60,110,160,0.1); color: #3C6EA0; cursor: pointer; border: none;
}
.want-btn--done:hover { background: rgba(60,110,160,0.16); }
.card-date { font-size: 0.75rem; color: var(--haze); }

/* Modals */
.want-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(34,32,30,0.4);
  z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease;
}
.want-modal-overlay.open { opacity: 1; visibility: visible; }
.want-modal {
  background: var(--card); border-radius: var(--radius); width: 100%; max-width: 420px;
  padding: 1.5rem; box-shadow: var(--shadow-lg); position: relative; max-height: 90vh;
  overflow-y: auto; border: 1px solid var(--line);
}
.want-modal-close, .ann-popup-close {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  font-size: 1.4rem; cursor: pointer; color: var(--haze); padding: 0; line-height: 1; font-family: inherit;
}
.want-modal-close:hover, .ann-popup-close:hover { color: var(--accent); }
.want-modal-body p { margin-bottom: 1rem; }
.want-modal-input {
  width: 100%; padding: 0.6rem 0.8rem; font-size: 0.9rem; margin-bottom: 0.5rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  font-family: inherit; color: var(--ink);
}
.want-modal-input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,79,92,0.1); background: white;
}
.want-modal-submit { width: 100%; margin-top: 0.5rem; }
.ann-popup-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,32,30,0.4); z-index: 1000; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; transition: opacity 0.2s ease;
}
.ann-popup-overlay.open { display: flex; opacity: 1; }
.ann-popup {
  background: var(--card); border-radius: var(--radius); width: 100%; max-width: 460px;
  padding: 1.6rem; box-shadow: var(--shadow-lg); position: relative; max-height: 80vh;
  overflow-y: auto; border: 1px solid var(--line);
}
.ann-popup-title {
  font-family: 'Noto Serif SC', Georgia, serif; font-size: 1.1rem; font-weight: 700;
  margin-bottom: 0.35rem; padding-right: 2rem;
}
.ann-popup-date { font-size: 0.78rem; color: var(--haze); margin-bottom: 0.9rem; }
.ann-popup-content {
  font-size: 0.9rem; line-height: 1.8; color: #4A453F; margin-bottom: 1.2rem;
}
.ann-popup-btn { width: 100%; }

/* Follow */
.follow-btn {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.4rem 1.1rem;
  border: 1px solid var(--accent); border-radius: 999px; background: transparent;
  color: var(--accent); font-size: 0.82rem; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.follow-btn:hover { background: var(--accent); color: white; }
.follow-btn--done { background: var(--accent); color: white; }
.follow-btn--done:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: white; }

/* Events timeline */
.events-timeline { position: relative; padding-left: 2.25rem; }
.events-timeline::before {
  content: ''; position: absolute; left: 5px; top: 0.5rem; bottom: 0.5rem;
  width: 1px; background: var(--line);
}
.event-card {
  position: relative; background: var(--card); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); border-color: #D4C8B8; }
.event-card::before {
  content: ''; position: absolute; left: -2.05rem; top: 1.85rem; width: 9px; height: 9px;
  background: var(--accent); border-radius: 50%; border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--accent);
}
.event-date {
  display: inline-block; padding: 0.2rem 0.7rem; background: rgba(217,79,92,0.08);
  color: var(--accent); border-radius: 999px; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.65rem;
}
.event-title {
  font-family: 'Noto Serif SC', Georgia, serif; font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.4rem; color: var(--ink);
}
.event-location {
  font-size: 0.82rem; color: var(--haze); margin-bottom: 0.7rem;
  display: flex; align-items: center; gap: 0.35rem;
}
.event-location::before {
  content: '·'; color: var(--accent); font-weight: 700; font-size: 1rem; line-height: 1;
}
.event-desc { font-size: 0.88rem; color: #4A453F; line-height: 1.7; }
.event-booth {
  display: inline-block; margin-top: 0.7rem; padding: 0.25rem 0.7rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.78rem; color: var(--ink); font-weight: 500;
}

/* View toggle & calendar */
.view-toggle {
  display: flex; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; width: fit-content;
}
.view-btn {
  padding: 0.45rem 0.9rem; border: none; background: transparent; color: var(--haze);
  font-size: 0.8rem; font-weight: 500; font-family: inherit; cursor: pointer;
  transition: var(--transition); display: flex; align-items: center; gap: 0.35rem; min-height: 34px;
}
.view-btn:not(:last-child) { border-right: 1px solid var(--line); }
.view-btn:hover { color: var(--ink); background: var(--paper); }
.view-btn.active { color: white; background: var(--accent); }
.calendar-container {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
}
.calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--line);
}
.calendar-header h3 {
  font-family: 'Noto Serif SC', Georgia, serif; font-size: 1.05rem; font-weight: 700;
}
.calendar-nav {
  background: none; border: 1px solid var(--line); border-radius: 8px; width: 30px; height: 30px;
  cursor: pointer; font-size: 0.95rem; color: var(--haze); display: flex; align-items: center;
  justify-content: center; transition: var(--transition); font-family: inherit;
}
.calendar-nav:hover { border-color: var(--accent); color: var(--accent); }
.calendar-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line);
}
.calendar-weekday {
  padding: 0.55rem; text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--haze);
}
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-day {
  min-height: 76px; padding: 0.35rem; border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line); font-size: 0.78rem; position: relative;
}
.calendar-day:nth-child(7n) { border-right: none; }
.calendar-day.other-month { background: rgba(246,242,235,0.6); color: #C4BDB3; }
.calendar-day.today { background: rgba(217,79,92,0.03); }
.calendar-day-num { font-weight: 600; font-size: 0.8rem; margin-bottom: 0.2rem; color: inherit; }
.calendar-day.today .calendar-day-num {
  color: white; background: var(--accent); width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.calendar-event {
  display: block; padding: 0.12rem 0.25rem; margin-bottom: 0.12rem; background: var(--accent);
  color: white; border-radius: 4px; font-size: 0.62rem; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; text-decoration: none; cursor: pointer; transition: var(--transition);
}
.calendar-event:hover { background: var(--accent-dark); }

/* Events grid */
.events-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem;
}
.event-grid-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: var(--transition); cursor: pointer;
}
.event-grid-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #D4C8B8; }
.event-grid-card-header { padding: 1.1rem 1.25rem; background: var(--ink); color: white; position: relative; }
.event-grid-card-header .event-date {
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); margin-bottom: 0.4rem;
}
.event-grid-card-header h3 {
  font-family: 'Noto Serif SC', Georgia, serif; font-size: 1.05rem; font-weight: 700;
}
.event-grid-card-body { padding: 1.1rem 1.25rem; }
.event-grid-card-body .event-location { margin-bottom: 0.4rem; }
.event-grid-card-body p {
  font-size: 0.82rem; color: #4A453F; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Circles */
.circle-card {
  background: var(--card); border-radius: var(--radius); padding: 1.75rem 1.25rem; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: var(--transition); cursor: pointer;
}
.circle-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #D4C8B8; }
.circle-avatar {
  width: 72px; height: 72px; border-radius: 50%; background: var(--ink);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 0.9rem;
  color: var(--paper); font-family: 'Noto Serif SC', Georgia, serif; font-size: 1.6rem;
  font-weight: 700; overflow: hidden;
}
.circle-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.circle-name {
  font-family: 'Noto Serif SC', Georgia, serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.2rem;
}
.circle-name-en { font-size: 0.75rem; color: var(--haze); margin-bottom: 0.7rem; }
.circle-desc {
  font-size: 0.82rem; color: #4A453F; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== Circles list page (redesign) ===== */
.hero.cl-list-hero {
  padding: 1.6rem 1.5rem 1.1rem;
  border-bottom: none;
  text-align: left;
}
.hero.cl-list-hero h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  text-align: left;
  margin-bottom: 0.3rem;
}
.hero.cl-list-hero p {
  text-align: left;
  margin: 0;
  font-size: 0.86rem;
  max-width: none;
}
.cl-list-mast {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.cl-list-count {
  font-size: 0.78rem;
  color: var(--haze);
  white-space: nowrap;
  padding-bottom: 0.15rem;
}
.cl-list-count b {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 700;
}
.cl-list-sub {
  max-width: var(--max-width);
  margin: 0.7rem auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--haze);
}
.cl-list-sub strong {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 700;
}

.cl-toolbar-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cl-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.cl-toolbar-row + .cl-toolbar-row {
  padding-top: 0.55rem;
}
.cl-toolbar-card .spacer { flex: 1; }
/* Divider between two filter groups sharing one toolbar row */
.cl-toolbar-card .cl-toolbar-sep {
  flex: 0 0 auto;
  width: 1px;
  height: 16px;
  background: var(--line);
  margin: 0 0.15rem;
}
/* Narrow screens: groups wrap onto their own lines, the divider would strand at a line start */
@media (max-width: 640px) {
  .cl-toolbar-card .cl-toolbar-sep { display: none; }
}
/* Compact pills inside the list-page toolbar (works for .filter-btn and .pill) */
.cl-toolbar-card .filter-btn,
.cl-toolbar-card .pill {
  height: 30px;
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--haze);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.cl-toolbar-card .filter-btn:hover,
.cl-toolbar-card .pill:hover { border-color: #D4C8B8; color: var(--ink); }
.cl-toolbar-card .filter-btn.active,
.cl-toolbar-card .pill.on,
.cl-toolbar-card .pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cl-toolbar-card select,
.cl-toolbar-card .search-input {
  height: 30px;
  min-height: 30px;
  margin: 0;
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
}
.cl-toolbar-card select { min-width: 120px; width: auto; }
.cl-toolbar-card .search-input { flex: 1; max-width: 240px; min-width: 150px; }
.cl-toolbar-card .cl-show-count {
  margin-left: auto;
  font-size: 0.76rem;
  color: var(--haze);
  white-space: nowrap;
}
.cl-toolbar-card .cl-show-count b { color: var(--ink); font-size: 0.9rem; }

.cl-author-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}
.cl-author-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  min-width: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.cl-author-card:hover { text-decoration: none; }
.cl-author-card * { text-decoration: none; }
.cl-author-card:hover {
  border-color: #D4C8B8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.cl-author-cover {
  height: 88px;
  background: linear-gradient(145deg, #EDE6DA, #D5CBBB);
  position: relative;
  overflow: hidden;
}
.cl-author-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-author-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(34,30,28,.18));
  pointer-events: none;
}
.cl-author-body {
  padding: 0 0.9rem 0.9rem;
  position: relative;
  margin-top: -28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-bottom: none;
}
.cl-author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2.5px solid var(--card);
  background: linear-gradient(145deg,#EDE6DA,#D9D0C2);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.45rem;
  box-shadow: var(--shadow-sm);
}
.cl-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cl-author-name {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 0.98rem; font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  word-break: break-word;
  border-bottom: none;
  text-decoration: none;
  padding-bottom: 0;
}
.cl-author-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.4rem; }
.cl-author-chip {
  display: inline-flex; align-items: center;
  font-size: 0.68rem; font-weight: 500;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--haze);
}
.cl-author-chip.cat { color: var(--ink); border-color: #D4C8B8; }
.cl-author-desc {
  font-size: 0.78rem; color: var(--haze);
  line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-height: 2.4em;
  border-bottom: none;
  text-decoration: none;
}
.cl-author-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.55rem; padding-top: 0;
  border-top: none;
  font-size: 0.72rem; color: var(--haze);
}
.cl-author-foot .go { color: var(--accent); font-weight: 600; font-size: 0.75rem; }

@media (max-width: 768px) {
  .hero.cl-list-hero { padding: 1.2rem 1rem 0.9rem; }
  .cl-list-mast { align-items: flex-start; }
  .cl-toolbar-card .search-input { max-width: none; width: 100%; flex: 1 1 100%; }
  .cl-toolbar-card select { flex: 1; min-width: 0; }
}
@media (max-width: 480px) {
  .cl-author-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.55rem !important; }
  .cl-author-cover { height: 68px; }
  .cl-author-body { padding: 0 0.65rem 0.7rem; margin-top: -22px; }
  .cl-author-avatar { width: 44px; height: 44px; font-size: 1rem; }
  .cl-author-name { font-size: 0.86rem; }
  .cl-author-desc { font-size: 0.72rem; }
  .cl-author-foot { font-size: 0.66rem; }
}

/* ===== Projects list page (redesign) ===== */
.cl-proj-grid {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 0.9rem;
}
.cl-proj-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  min-width: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.cl-proj-card, .cl-proj-card * { text-decoration: none; }
.cl-proj-card:hover {
  border-color: #D4C8B8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.cl-proj-cover {
  height: 132px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #EDE6DA, #D5CBBB);
  display: flex; align-items: center; justify-content: center;
  color: #6b6560;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.6rem;
}
.cl-proj-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-proj-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34,30,28,.12) 0%, transparent 45%, rgba(34,30,28,.28) 100%);
  pointer-events: none;
}
.cl-proj-status {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 0.68rem; font-weight: 600;
  padding: 0.12rem 0.5rem; border-radius: 999px;
  background: rgba(255,252,247,.92);
  border: 1px solid rgba(34,32,30,.08);
  color: var(--accent);
}
.cl-proj-status.done { color: var(--success); }
.cl-proj-status.stopped { color: var(--muted); }
.cl-proj-status.open { color: var(--warning); }
.cl-proj-pin {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  font-size: 0.66rem; font-weight: 600;
  padding: 0.12rem 0.5rem; border-radius: 999px;
  background: var(--accent); border: 1px solid var(--accent); color: #fff;
}
.cl-proj-card.pinned { border-color: rgba(217,79,92,0.35); }

.cl-proj-body { padding: 0.75rem 0.9rem 0.35rem; flex: 1; display: flex; flex-direction: column; }
.cl-proj-title {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1rem; font-weight: 700;
  line-height: 1.35; margin-bottom: 0.2rem;
  word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cl-proj-sub { font-size: 0.74rem; color: var(--haze); margin-bottom: 0.45rem; }
.cl-proj-desc {
  font-size: 0.79rem; color: #4A453F; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1; min-height: 2.4em;
}
.cl-proj-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.5rem; }
.cl-proj-tag {
  font-size: 0.66rem; color: var(--haze);
  padding: 0.08rem 0.42rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
}

/* Timeline progress from startDate → endDate */
.cl-proj-timeline { padding: 0 0.9rem 0.6rem; }
.cl-tl-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.68rem; color: var(--haze); margin-bottom: 0.25rem;
  gap: 0.5rem;
}
.cl-tl-head .now { color: var(--ink); font-weight: 600; white-space: nowrap; }
.cl-tl-bar {
  position: relative; height: 4px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); overflow: hidden;
}
.cl-tl-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent);
  border-radius: 999px 0 0 999px;
}
.cl-tl-fill.done { background: var(--success); }
.cl-tl-fill.stopped { background: var(--haze); }

.cl-proj-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 0.9rem 0.75rem;
  font-size: 0.72rem; color: var(--haze);
}
.cl-proj-foot .go { color: var(--accent); font-weight: 600; font-size: 0.75rem; }

@media (max-width: 768px) {
  .cl-proj-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.7rem; }
}
@media (max-width: 480px) {
  .cl-proj-grid { grid-template-columns: 1fr !important; }
  .cl-proj-cover { height: 140px; }
  .cl-proj-desc { font-size: 0.75rem; }
}

/* ===== Updates list page (redesign): date-rail timeline feed ===== */
.cl-feed {
  position: relative;
  padding-left: 74px;
}
.cl-feed::before {
  content: '';
  position: absolute; left: 57px; top: 0.4rem; bottom: 0.4rem;
  width: 1px; background: var(--line);
}
.cl-pin-label {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.74rem; color: var(--accent); font-weight: 600;
  letter-spacing: 0.04em; margin: 0 0 0.5rem 0.1rem;
}
.cl-pin-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cl-month-sep {
  position: relative; margin: 1.1rem 0 0.55rem -74px; padding-left: 74px;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 0.8rem; font-weight: 700; color: var(--ink);
  letter-spacing: 0.04em;
}
.cl-month-sep:first-child { margin-top: 0; }
.cl-month-sep span { display: inline-block; background: var(--paper); padding-right: 0.6rem; }
.cl-upd-row { position: relative; margin-bottom: 0.6rem; }
.cl-upd-row::before {
  content: '';
  position: absolute; left: -20px; top: 26px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--accent);
}
.cl-upd-row.pinned::before { background: var(--accent); }
.cl-upd-date {
  position: absolute; left: -74px; top: 20px; width: 52px;
  text-align: right; font-size: 0.7rem; color: var(--haze);
  font-variant-numeric: tabular-nums; line-height: 1.3;
}
.cl-upd-date b {
  display: block;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 0.92rem; color: var(--ink); font-weight: 700;
}
.cl-upd-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; transition: var(--transition);
  text-decoration: none; color: inherit;
}
.cl-upd-card, .cl-upd-card * { text-decoration: none; }
.cl-upd-card:hover { border-color: #D4C8B8; box-shadow: var(--shadow-sm); }
.cl-upd-card.pinned { border-color: rgba(217,79,92,0.35); }
.cl-upd-thumb {
  width: 168px; flex-shrink: 0; position: relative;
  background: linear-gradient(145deg, #EDE6DA, #D5CBBB);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #6b6560;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.4rem;
}
.cl-upd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-upd-main { padding: 0.8rem 0.95rem 0.75rem; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-upd-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; margin-bottom: 0.35rem; }
.cl-upd-chip {
  font-size: 0.66rem; font-weight: 600;
  padding: 0.1rem 0.45rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--haze);
}
.cl-upd-chip.cat { color: var(--ink); border-color: #D4C8B8; }
.cl-upd-chip.pin { background: var(--accent); border-color: var(--accent); color: #fff; }
.cl-upd-chip.done { color: var(--success); }
.cl-upd-title {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.02rem; font-weight: 700; line-height: 1.35;
  margin-bottom: 0.2rem; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cl-upd-author { font-size: 0.72rem; color: var(--accent); margin-bottom: 0.3rem; }
.cl-upd-excerpt {
  font-size: 0.8rem; color: #4A453F; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
@media (max-width: 640px) {
  .cl-feed { padding-left: 58px; }
  .cl-feed::before { left: 43px; }
  .cl-month-sep { margin-left: -58px; padding-left: 58px; }
  .cl-upd-date { left: -58px; width: 38px; font-size: 0.62rem; }
  .cl-upd-date b { font-size: 0.78rem; }
  .cl-upd-row::before { left: -16px; top: 22px; width: 8px; height: 8px; }
  .cl-upd-thumb { width: 92px; }
  .cl-upd-main { padding: 0.7rem 0.75rem 0.65rem; }
  .cl-upd-title { font-size: 0.9rem; }
  .cl-upd-excerpt { font-size: 0.74rem; }
}

/* ===== Events list page (redesign) ===== */
.cl-seg {
  display: inline-flex; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; background: var(--paper);
}
.cl-seg button {
  height: 30px; padding: 0 13px; font-size: 0.78rem;
  color: var(--haze); border-right: 1px solid var(--line);
  font-family: inherit; cursor: pointer; background: none; border-top: 0; border-bottom: 0; border-left: 0;
}
.cl-seg button:last-child { border-right: none; }
.cl-seg button.on { background: var(--card); color: var(--accent); font-weight: 600; }

.cl-ev-month {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 1.1rem 0 0.6rem;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--ink);
}
.cl-ev-month:first-child { margin-top: 0; }
.cl-ev-month::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.cl-ev-row {
  display: flex; align-items: stretch;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 0.6rem; transition: var(--transition);
  text-decoration: none; color: inherit;
}
.cl-ev-row, .cl-ev-row * { text-decoration: none; }
.cl-ev-row:hover { border-color: #D4C8B8; box-shadow: var(--shadow-sm); }
.cl-ev-row.ongoing { border-color: rgba(217,79,92,0.4); }

/* Ticket-stub date block */
.cl-ev-stub {
  flex-shrink: 0; width: 78px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0.7rem 0.3rem;
  background: var(--paper);
  border-right: 1px dashed #C9C2B6;
  position: relative;
}
.cl-ev-stub .m { font-size: 0.7rem; color: var(--haze); letter-spacing: 0.06em; }
.cl-ev-stub .d {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.65rem; font-weight: 700; line-height: 1.1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cl-ev-stub .r, .cl-ev-stub .wd { font-size: 0.64rem; color: var(--haze); margin-top: 0.1rem; }
.cl-ev-stub::before, .cl-ev-stub::after {
  content: ''; position: absolute; right: -6px; width: 12px; height: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 50%;
}
.cl-ev-stub::before { top: -7px; }
.cl-ev-stub::after { bottom: -7px; }

.cl-ev-main { flex: 1; min-width: 0; padding: 0.75rem 0.9rem 0.7rem; display: flex; gap: 0.85rem; }
.cl-ev-info { flex: 1; min-width: 0; }
.cl-ev-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; margin-bottom: 0.35rem; }
.cl-ev-chip {
  font-size: 0.66rem; font-weight: 600;
  padding: 0.1rem 0.45rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--haze);
}
.cl-ev-chip.soon { color: var(--warning); border-color: rgba(196,138,42,0.35); background: rgba(196,138,42,0.08); }
.cl-ev-chip.now { color: #fff; background: var(--accent); border-color: var(--accent); }
.cl-ev-chip.only { color: var(--info); border-color: rgba(74,123,167,0.35); background: rgba(74,123,167,0.08); }
.cl-ev-title {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.02rem; font-weight: 700; line-height: 1.35;
  margin-bottom: 0.25rem; word-break: break-word;
}
.cl-ev-loc { font-size: 0.78rem; color: #4A453F; }
.cl-ev-booth { font-size: 0.74rem; color: var(--accent); margin-top: 0.15rem; }
.cl-ev-thumb {
  width: 150px; height: 96px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(145deg,#EDE6DA,#D5CBBB);
  display: flex; align-items: center; justify-content: center;
  color: #6b6560;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.3rem;
}
.cl-ev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Calendar */
.cl-cal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cl-cal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line);
}
.cl-cal-head h3 { font-family: 'Noto Serif SC', Georgia, serif; font-size: 1rem; font-weight: 700; margin: 0; }
.cl-cal-nav {
  width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--haze); background: none; cursor: pointer; font-size: 1rem;
}
.cl-cal-nav:hover { border-color: var(--accent); color: var(--accent); }
.cl-cal-week { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.cl-cal-week div {
  text-align: center; font-size: 0.7rem; color: var(--haze);
  padding: 0.4rem 0; border-right: 1px solid var(--line);
}
.cl-cal-week div:last-child { border-right: none; }
.cl-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cl-cal-day {
  min-height: 84px; padding: 0.35rem 0.4rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
}
.cl-cal-day:nth-child(7n) { border-right: none; }
.cl-cal-day.muted { background: rgba(246,242,235,0.6); color: var(--haze); }
.cl-cal-day.today { background: rgba(217,79,92,0.05); }
.cl-cal-day .num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; border-radius: 999px;
  font-family: 'Noto Serif SC', Georgia, serif; font-weight: 700; font-size: 0.78rem;
}
.cl-cal-day.today .num { background: var(--accent); color: #fff; }
.cl-cal-ev {
  display: block; margin-top: 0.2rem; padding: 0.1rem 0.3rem;
  font-size: 0.64rem; border-radius: 4px; line-height: 1.4;
  background: rgba(217,79,92,0.1); color: var(--accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-decoration: none;
}
.cl-cal-ev.only { background: rgba(74,123,167,0.12); color: var(--info); }

/* Grid */
.cl-ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; }
.cl-ev-gcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: var(--transition);
  text-decoration: none; color: inherit;
}
.cl-ev-gcard, .cl-ev-gcard * { text-decoration: none; }
.cl-ev-gcard:hover { border-color: #D4C8B8; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cl-ev-gcover {
  height: 150px; position: relative; overflow: hidden;
  background: linear-gradient(145deg,#EDE6DA,#D5CBBB);
  display: flex; align-items: center; justify-content: center;
  color: #6b6560;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.5rem;
}
.cl-ev-gcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-ev-gcover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34,30,28,0.1), transparent 45%, rgba(34,30,28,0.3));
  pointer-events: none;
}
.cl-ev-gstub {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: rgba(255,252,247,0.94); border-radius: 8px;
  padding: 0.25rem 0.5rem; text-align: center; line-height: 1.15;
  border: 1px solid rgba(34,32,30,0.06);
}
.cl-ev-gstub .m { font-size: 0.6rem; color: var(--haze); display: block; }
.cl-ev-gstub .d {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.05rem; font-weight: 700; color: var(--ink);
}
.cl-ev-gbody { padding: 0.75rem 0.9rem 0.8rem; flex: 1; display: flex; flex-direction: column; }
.cl-ev-gtitle {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 0.98rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.25rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cl-ev-gloc { font-size: 0.76rem; color: #4A453F; }
.cl-ev-gmeta { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }

@media (max-width: 640px) {
  .cl-ev-stub { width: 62px; }
  .cl-ev-stub .d { font-size: 1.35rem; }
  .cl-ev-main { padding: 0.65rem 0.7rem; gap: 0.6rem; }
  .cl-ev-thumb { width: 92px; height: 92px; }
  .cl-ev-title { font-size: 0.92rem; }
  .cl-cal-day { min-height: 62px; padding: 0.25rem 0.2rem; }
  .cl-cal-day .num { min-width: 17px; height: 17px; font-size: 0.7rem; }
  .cl-cal-ev { font-size: 0.58rem; }
  .cl-ev-grid { grid-template-columns: 1fr; }
}

/* ===== Catalog (all works) view ===== */
.cl-cat-total { font-size: 0.78rem; color: var(--haze); white-space: nowrap; }
.cl-cat-total b {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.15rem; color: var(--ink); font-weight: 700;
}
.cl-w-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.cl-w-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: var(--transition); position: relative;
  text-decoration: none; color: inherit;
}
.cl-w-card, .cl-w-card * { text-decoration: none; }
.cl-w-card:hover {
  border-color: #D4C8B8; transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cl-w-cover {
  position: relative; aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #EDE6DA, #D5CBBB);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #6b6560;
  font-family: 'Noto Serif SC', Georgia, serif; font-size: 1.6rem;
}
.cl-w-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-w-status {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 0.66rem; font-weight: 600;
  padding: 0.12rem 0.5rem; border-radius: 999px;
  background: rgba(255,252,247,0.94);
  border: 1px solid rgba(34,32,30,0.06);
  color: var(--haze);
}
.cl-w-status.sale { color: var(--accent); }
.cl-w-status.pre { color: var(--warning); }
.cl-w-status.group { color: var(--info); }
.cl-w-deadline {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  font-size: 0.64rem; font-weight: 600;
  padding: 0.12rem 0.45rem; border-radius: 999px;
  background: var(--accent); color: #fff;
}
.cl-w-body { padding: 0.75rem 0.85rem 0.4rem; flex: 1; display: flex; flex-direction: column; }
.cl-w-title {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 0.96rem; font-weight: 700; line-height: 1.4;
  margin-bottom: 0.2rem; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.8em;
}
.cl-w-meta {
  font-size: 0.72rem; color: var(--haze);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cl-w-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; padding: 0.5rem 0.85rem 0.7rem;
  margin-top: 0.45rem; border-top: 1px solid var(--line);
}
.cl-w-price {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.05rem; font-weight: 700; color: var(--accent);
}
.cl-w-stats { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; color: var(--haze); }
.cl-w-stats > span { display: inline-flex; align-items: center; gap: 0.15rem; }
/* 与 .like-icon / .like-count 同号，保证爱心与星星大小一致 */
.cl-w-want {
  display: inline-flex; align-items: center; gap: 0.15rem;
  background: none; border: none; padding: 0; margin: 0;
  cursor: pointer; color: var(--haze); font-family: inherit;
  transition: var(--transition);
}
.cl-w-want:hover { color: var(--info); }
.cl-w-want.on { color: var(--info); }
.cl-w-want.on .cl-w-want-count { color: var(--info); font-weight: 600; }
.cl-w-want-icon { font-size: 1rem; line-height: 1; }
.cl-w-want-count { font-size: 0.75rem; font-weight: 500; color: var(--haze); }

/* 心愿单控件（.cl-w-wish / .cl-w-foot-l）样式由 index.html 内联管理 */

.cl-w-more { grid-column: 1 / -1; text-align: center; padding: 1.2rem 0 0.4rem; }
.cl-w-more button {
  height: 38px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 0.84rem; font-weight: 500; color: var(--ink);
  font-family: inherit; cursor: pointer;
}
.cl-w-more button:hover { border-color: var(--accent); color: var(--accent); }
.cl-w-more .prog { display: block; margin-top: 0.5rem; font-size: 0.72rem; color: var(--haze); }

@media (max-width: 640px) {
  /* 「我的」筛选在移动端独占一行，排在排序/搜索之前 */
  .cl-toolbar-card #userFilters { flex: 1 1 100%; }
}
@media (max-width: 480px) {
  .cl-w-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.6rem; }
  .cl-w-cover { aspect-ratio: 1 / 1; }
  .cl-w-body { padding: 0.55rem 0.6rem 0.3rem; }
  .cl-w-title { font-size: 0.82rem; min-height: 2.6em; }
  .cl-w-meta { font-size: 0.66rem; }
  .cl-w-foot { padding: 0.4rem 0.6rem 0.55rem; }
  .cl-w-price { font-size: 0.9rem; }
  .cl-w-stats { gap: 0.35rem; font-size: 0.66rem; }
}

/* ===== Update detail (article) ===== */
.cl-u-cover {
  position: relative; width: 100%; aspect-ratio: 16 / 7;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #EDE6DA, #D5CBBB);
  margin-bottom: 1rem; cursor: zoom-in;
  display: flex; align-items: center; justify-content: center;
  color: #6b6560;
  font-family: 'Noto Serif SC', Georgia, serif; font-size: 1.6rem;
}
.cl-u-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-u-cover::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent); z-index: 2;
}

.cl-u-head {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.25rem 1rem;
  margin-bottom: 1.1rem; display: flex; gap: 1rem; align-items: flex-start;
}
.cl-u-date {
  flex-shrink: 0; width: 62px; text-align: center;
  padding: 0.35rem 0; border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--line);
}
.cl-u-date .m { display: block; font-size: 0.68rem; color: var(--haze); letter-spacing: 0.05em; }
.cl-u-date .d {
  display: block;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.5rem; font-weight: 700; line-height: 1.15; color: var(--ink);
}
.cl-u-main { flex: 1; min-width: 0; }
.cl-u-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; margin-bottom: 0.45rem; }
.cl-u-chip {
  font-size: 0.68rem; font-weight: 600;
  padding: 0.12rem 0.5rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--haze);
}
.cl-u-chip.cat { color: var(--ink); border-color: #D4C8B8; }
.cl-u-chip.pin { background: var(--accent); border-color: var(--accent); color: #fff; }
.cl-u-chip.now { color: var(--accent); border-color: rgba(217,79,92,0.35); background: rgba(217,79,92,0.07); }
.cl-u-chip.done { color: var(--success); border-color: rgba(61,139,110,0.3); background: rgba(61,139,110,0.07); }
.cl-u-title {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700; line-height: 1.3; letter-spacing: -0.01em;
  margin-bottom: 0.5rem; word-break: break-word;
  text-align: left;
}
.cl-u-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.7rem;
  padding-top: 0.55rem; border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--haze);
}
.cl-u-meta .sep { color: var(--line); }
.cl-u-meta .au { color: var(--accent); font-weight: 500; text-decoration: none; }
.cl-u-meta .au:hover { text-decoration: underline; }
.cl-u-meta span a + a { margin-left: 0.1rem; }
/* 侧栏「作者」行内的作者链接 */
.sidebar-card .info-value .au { color: var(--accent); font-weight: 500; text-decoration: none; }
.sidebar-card .info-value .au:hover { text-decoration: underline; }
.cl-u-meta .share {
  margin-left: auto; height: 30px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-size: 0.78rem; color: var(--ink);
  font-family: inherit; cursor: pointer; transition: var(--transition);
}
.cl-u-meta .share:hover { border-color: var(--accent); color: var(--accent); }

.cl-u-body p { margin-bottom: 1.05rem; line-height: 1.9; color: #33302C; }
.cl-u-body p:last-child { margin-bottom: 0; }
.cl-u-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.8rem; margin-top: 1.4rem;
}
.cl-u-gallery button {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #EDE6DA, #D5CBBB);
}
.cl-u-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* compact related rows inside sidebar cards */
.cl-u-row {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--ink); transition: var(--transition);
}
.cl-u-row, .cl-u-row * { text-decoration: none; }
.cl-u-row:last-child { border-bottom: none; padding-bottom: 0; }
.cl-u-row:first-child { padding-top: 0; }
.cl-u-row:hover .t b { color: var(--accent); }
.cl-u-row .th {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(145deg, #EDE6DA, #D9CFC0);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
}
.cl-u-row .th.round { border-radius: 50%; }
.cl-u-row .th img { width: 100%; height: 100%; object-fit: cover; }
.cl-u-row .t { min-width: 0; flex: 1; }
.cl-u-row .t b {
  display: block; font-size: 0.85rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cl-u-row .t small { font-size: 0.72rem; color: var(--haze); }

@media (max-width: 640px) {
  .cl-u-cover { aspect-ratio: 16 / 9; }
  .cl-u-head { gap: 0.75rem; padding: 0.9rem 0.85rem 0.8rem; }
  .cl-u-date { width: 52px; }
  .cl-u-date .d { font-size: 1.25rem; }
  .cl-u-title { font-size: 1.2rem; }
  .cl-u-meta .share { margin-left: 0; }
  .cl-u-gallery { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}

/* ===== Announcements page (redesign) ===== */
.cl-an-month {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 1.05rem 0 0.55rem;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 0.82rem; font-weight: 700; color: var(--ink);
}
.cl-an-month:first-child { margin-top: 0; }
.cl-an-month::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.cl-an-note {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.85rem 0.95rem;
  margin-bottom: 0.6rem; transition: var(--transition);
  text-decoration: none; color: inherit;
  width: 100%; text-align: left; font-family: inherit; cursor: pointer;
}
.cl-an-note, .cl-an-note * { text-decoration: none; }
.cl-an-note:hover { border-color: #D4C8B8; box-shadow: var(--shadow-sm); }
.cl-an-note.pinned { border-color: rgba(217,79,92,0.35); border-left: 3px solid var(--accent); }
.cl-an-date {
  flex-shrink: 0; width: 54px; text-align: center;
  padding: 0.2rem 0; border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--line);
}
.cl-an-date .m { display: block; font-size: 0.64rem; color: var(--haze); letter-spacing: 0.05em; }
.cl-an-date .d {
  display: block;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.3rem; font-weight: 700; line-height: 1.15; color: var(--ink);
}
.cl-an-main { flex: 1; min-width: 0; }
.cl-an-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.3rem; }
.cl-an-chip {
  font-size: 0.66rem; font-weight: 600;
  padding: 0.1rem 0.45rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--haze);
}
.cl-an-chip.pin { background: var(--accent); border-color: var(--accent); color: #fff; }
.cl-an-chip.pop { color: var(--info); border-color: rgba(74,123,167,0.35); background: rgba(74,123,167,0.08); }
.cl-an-title {
  display: block;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1rem; font-weight: 700; line-height: 1.4;
  margin-bottom: 0.2rem; word-break: break-word;
}
.cl-an-exc {
  font-size: 0.8rem; color: #4A453F;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cl-an-more { display: block; font-size: 0.72rem; color: var(--accent); font-weight: 600; margin-top: 0.35rem; }
.cl-an-chev { flex-shrink: 0; align-self: center; color: var(--haze); font-size: 1.1rem; }

/* Notice sheet */
.cl-an-ov {
  position: fixed; inset: 0; background: rgba(34,32,30,0.5);
  display: none; align-items: center; justify-content: center;
  padding: 1rem; z-index: 1000;
}
.cl-an-ov.open { display: flex; }
.cl-an-sheet {
  position: relative; background: var(--card);
  width: min(620px, 100%); max-height: 86vh; overflow-y: auto;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
  padding: 1.5rem 1.6rem 1.4rem;
}
.cl-an-sheet::before {
  content: 'NOTICE'; display: block;
  font-size: 0.62rem; letter-spacing: 0.2em; color: var(--accent); font-weight: 700;
  margin-bottom: 0.5rem;
}
.cl-an-sheet .x {
  position: absolute; top: 0.8rem; right: 0.9rem;
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--haze); font-size: 1.15rem; line-height: 1;
  background: none; border: none; cursor: pointer;
}
.cl-an-sheet .x:hover { background: var(--paper); color: var(--ink); }
.cl-an-sheet h2 {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.2rem; font-weight: 700; line-height: 1.35;
  margin-bottom: 0.5rem; padding-right: 2rem; word-break: break-word; text-align: left;
}
.cl-an-sheet .cl-an-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; align-items: center;
  font-size: 0.76rem; color: var(--haze);
  padding-bottom: 0.7rem; margin-bottom: 0.9rem; border-bottom: 1px solid var(--line);
}
.cl-an-sheet .cl-an-body {
  font-size: 0.9rem; line-height: 1.9; color: #33302C;
  white-space: pre-wrap; word-break: break-word;
}
.cl-an-sheet .cl-an-imgs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem; margin-top: 1rem;
}
.cl-an-sheet .cl-an-imgs button {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--paper);
}
.cl-an-sheet .cl-an-imgs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-an-sheet .cl-an-foot {
  margin-top: 1.2rem; padding-top: 0.8rem;
  border-top: 1px solid var(--line); text-align: right;
}
.cl-an-sheet .cl-an-foot button {
  height: 34px; padding: 0 18px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 0.82rem; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit;
}
.cl-an-sheet .cl-an-foot button:hover { background: var(--accent-dark); }

@media (max-width: 640px) {
  .cl-an-note { gap: 0.6rem; padding: 0.7rem 0.75rem; }
  .cl-an-date { width: 46px; }
  .cl-an-date .d { font-size: 1.1rem; }
  .cl-an-title { font-size: 0.92rem; }
  .cl-an-exc { font-size: 0.75rem; }
  .cl-an-sheet { padding: 1.15rem 1rem 1.1rem; }
  .cl-an-sheet .cl-an-imgs { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Search results page ===== */
.cl-sr-sec { margin-bottom: 1.5rem; }
.cl-sr-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.cl-sr-head h2 {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.05rem; font-weight: 700;
  display: flex; align-items: baseline; gap: 0.4rem;
}
.cl-sr-head h2 .n {
  font-family: 'Noto Sans SC', system-ui, sans-serif;
  font-size: 0.76rem; font-weight: 500; color: var(--haze);
}
.cl-sr-head .more {
  margin-left: auto; font-size: 0.78rem; color: var(--accent);
  text-decoration: none;
}
.cl-sr-head .more:hover { text-decoration: underline; }

.cl-sr-list {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.95rem 1.05rem;
}
.cl-sr-empty { text-align: center; padding: 3rem 1rem; }
.cl-sr-empty .q { color: var(--ink); font-weight: 600; }
.cl-sr-empty p { color: var(--haze); font-size: 0.88rem; }
.cl-sr-empty .tip { margin-top: 0.6rem; font-size: 0.78rem; color: var(--haze); }

mark {
  background: rgba(217,79,92,0.16);
  color: inherit;
  padding: 0 0.1em;
  border-radius: 3px;
}

/* Forms & buttons */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-weight: 500; margin-bottom: 0.35rem; font-size: 0.88rem; color: var(--ink);
}
.form-group label .required { color: var(--accent); margin-left: 2px; }
.form-input {
  width: 100%; padding: 0.65rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: inherit; background: var(--card); color: var(--ink);
  transition: var(--transition); outline: none;
}
.form-input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,79,92,0.1); background: white;
}
textarea.form-input { resize: vertical; min-height: 130px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.6rem 1.5rem; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: var(--transition); background: var(--paper); color: var(--ink); text-decoration: none;
}
.btn:hover { border-color: #D4C8B8; background: var(--card); }
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover {
  background: var(--accent-dark); border-color: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(217,79,92,0.25); color: white;
}
.btn-primary:active { transform: scale(0.98); }
.social-links { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.social-link {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.45rem 1.1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--ink); font-size: 0.82rem; transition: var(--transition);
}
.social-link:hover { border-color: var(--accent); color: var(--accent); background: rgba(217,79,92,0.04); }

/* Detail */
.detail-page { padding-top: 1.75rem; }
.detail-breadcrumb {
  display: flex; gap: 0.4rem; align-items: center; font-size: 0.8rem;
  color: var(--haze); margin-bottom: 1.25rem;
}
.detail-breadcrumb a { color: var(--haze); text-decoration: none; transition: var(--transition); }
.detail-breadcrumb a:hover { color: var(--accent); }
.detail-header { margin-bottom: 1.75rem; text-align: left; }
.detail-header h1 {
  font-family: 'Noto Serif SC', Georgia, serif; font-size: 1.75rem; font-weight: 700;
  margin-bottom: 0.4rem; letter-spacing: -0.02em; line-height: 1.35; text-align: left;
}
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; justify-content: flex-start;
  color: var(--muted); font-size: 0.85rem;
}
.detail-content { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }
.detail-main {
  background: var(--card); border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--line);
}
.detail-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card {
  background: var(--card); border-radius: var(--radius); padding: 1.35rem; border: 1px solid var(--line);
}
.sidebar-card h3 {
  font-family: 'Noto Serif SC', Georgia, serif; font-size: 0.95rem; font-weight: 700;
  margin-bottom: 0.85rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--line);
  text-align: left;
}
.info-row {
  display: flex; justify-content: space-between; align-items: center; text-align: left;
  padding: 0.35rem 0; font-size: 0.88rem; gap: 0.75rem;
}
.info-label { color: var(--muted); flex-shrink: 0; }
.info-value { font-weight: 500; text-align: right; word-break: break-all; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  padding: 0.18rem 0.6rem; background: rgba(217,79,92,0.06); color: var(--accent);
  border-radius: 999px; font-size: 0.72rem; font-weight: 500;
}

/* Footer */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.68);
  padding: 2.75rem 1.5rem 1.75rem; margin-top: auto;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-brand {
  font-family: 'Noto Serif SC', Georgia, serif; font-size: 1.15rem; font-weight: 700;
  color: white; margin-bottom: 0.5rem;
}
.footer-desc {
  font-size: 0.82rem; line-height: 1.65; max-width: 280px; color: rgba(255,255,255,0.55);
}
.footer-col h4 {
  color: white; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.7rem; letter-spacing: 0.04em;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a {
  color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.82rem; transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-width); margin: 2rem auto 0; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08); text-align: center;
  font-size: 0.72rem; color: rgba(255,255,255,0.4);
}
.footer-bottom p { margin-bottom: 0.25rem; }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; transition: var(--transition); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* Toast / loading / skeleton */
.toast {
  position: fixed; bottom: 1.75rem; right: 1.75rem; padding: 0.85rem 1.25rem;
  background: var(--ink); color: white; border-radius: var(--radius-sm); font-size: 0.88rem;
  box-shadow: var(--shadow-lg); transform: translateY(80px); opacity: 0;
  transition: var(--transition); z-index: 9999; max-width: min(360px, calc(100vw - 2rem));
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success); }
.toast.error { background: var(--accent); }
.loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3rem; color: var(--haze); gap: 0.75rem;
}
.spinner {
  width: 32px; height: 32px; border: 2px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton {
  background: linear-gradient(90deg, #EDE6DA 25%, #E5DDD1 50%, #EDE6DA 75%);
  background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; border-radius: var(--radius);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; } 100% { background-position: -200% 0; }
}
.skeleton-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.skeleton-card .skeleton-img { height: 170px; }
.skeleton-card .skeleton-text { height: 12px; margin: 0.75rem; border-radius: 4px; }
.skeleton-card .skeleton-text.short { width: 60%; }
.skeleton-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem; width: 100%;
}
.skeleton-cover { width: 100%; height: 230px; border-radius: var(--radius); }
.skeleton-avatar { width: 64px; height: 64px; border-radius: 50%; }
.skeleton-pill { display: inline-block; width: 56px; height: 22px; border-radius: 999px; margin-right: 0.4rem; }
.skeleton-sidebar-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; margin-bottom: 0.85rem;
}
.skeleton-sidebar-card .skeleton-text { height: 11px; margin: 0.45rem 0; border-radius: 4px; }
.skeleton-sidebar-card .skeleton-text.short { width: 60%; }
.skeleton-sidebar-card .skeleton-text.shorter { width: 40%; }

/* Random modal */
.random-modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,32,30,0.45); z-index: 1000; align-items: center; justify-content: center; padding: 1rem;
}
.random-modal-overlay.open { display: flex; }
.random-modal {
  background: var(--card); border-radius: var(--radius); padding: 1.35rem; max-width: 700px;
  width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.random-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; margin: 0.85rem 0;
}
.random-grid .card { margin: 0; cursor: pointer; }
.random-grid .card-title {
  font-size: 0.78rem; margin-bottom: 0.15rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.random-grid .card-subtitle { font-size: 0.7rem; }
.random-grid .card-image { height: 110px; }
.random-grid .card-body { padding: 0.55rem; }
.random-grid .card-tag { font-size: 0.62rem; padding: 0.08rem 0.35rem; margin-bottom: 0.25rem; }
.random-grid .card-footer { padding: 0.35rem 0.55rem; font-size: 0.7rem; }
.random-grid .card-price { font-size: 0.78rem; }
.random-grid .card-date { font-size: 0.65rem; }
.random-grid .like-btn { font-size: 0.7rem; padding: 0.15rem 0.35rem; }
@media (max-width: 600px) {
  .random-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .random-modal { padding: 1rem; max-height: 85vh; }
  .random-grid .card-image { height: 95px; }
  .random-grid .card-body { padding: 0.45rem; }
  .random-grid .card-title { font-size: 0.72rem; -webkit-line-clamp: 1; }
  .random-grid .card-subtitle {
    font-size: 0.62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .random-grid .card-footer { padding: 0.25rem 0.45rem; }
}

/* Empty */
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 3.5rem 1.5rem; color: var(--haze);
}
.empty-state .icon { font-size: 2.25rem; margin-bottom: 0.75rem; opacity: 0.45; }
.empty-state p { font-size: 0.92rem; margin-bottom: 1rem; }

/* Lightbox */
.lightbox-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.9);
  z-index: 10000;
  opacity: 0; visibility: hidden; transition: var(--transition); cursor: pointer;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-stage {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; overscroll-behavior: contain;
}
/* 长图：整宽铺开 + 原生竖向滚动 */
.lightbox-stage.is-scroll {
  overflow-y: auto; overflow-x: hidden;
  align-items: flex-start;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.35) transparent;
}
.lightbox-stage.is-scroll::-webkit-scrollbar { width: 6px; }
.lightbox-stage.is-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.35); border-radius: 999px;
}
.lightbox-stage.is-scroll.is-zooming {
  overflow: hidden; touch-action: none;
}
.lightbox-overlay img {
  max-width: 90vw; max-height: 90vh; border-radius: var(--radius);
  box-shadow: 0 8px 60px rgba(0,0,0,0.5); transform: scale(0.9);
  transition: opacity 0.2s ease; cursor: default; user-select: none;
  -webkit-user-drag: none; -webkit-touch-callout: none; will-change: transform;
  display: block; transform-origin: center center;
}
.lightbox-overlay img.lightbox-long {
  max-width: none; max-height: none;
  width: 100%; height: auto; border-radius: 0;
  box-shadow: none; margin: 0 auto;
}
.lightbox-overlay.open img { transform: scale(1); }
.lightbox-overlay img.lightbox-animating {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox-overlay img.lightbox-zoomed { max-width: none; max-height: none; cursor: grab; touch-action: none; }
.lightbox-overlay img.lightbox-dragging { cursor: grabbing; transition: none !important; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem; width: 40px; height: 40px; z-index: 3;
  background: rgba(255,255,255,0.15); border: none; border-radius: 50%; color: white;
  font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; z-index: 3;
  background: rgba(255,255,255,0.15); border: none; border-radius: 50%; color: white;
  font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-counter {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 0.85rem; z-index: 3;
  pointer-events: none;
}
.clickable-img { cursor: zoom-in; transition: var(--transition); }
.clickable-img:hover { opacity: 0.9; }
.related-works-grid { grid-template-columns: repeat(3, 1fr) !important; }
.event-img-wrap {
  position: relative; overflow: hidden; border-radius: 8px; cursor: pointer;
  transition: max-height 0.4s ease;
}
.event-img-wrap.collapsed { max-height: 200px; }
.event-img-wrap .event-img-expand-hint {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.4));
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px;
  color: white; font-size: 1rem; pointer-events: none; transition: opacity 0.3s;
}
.event-img-wrap:not(.collapsed) .event-img-expand-hint { opacity: 0; }
.settings-pending { visibility: hidden; }
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: white; border: none; font-size: 1.2rem; cursor: pointer;
  opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 100;
  box-shadow: 0 4px 12px rgba(217,79,92,0.3); display: flex; align-items: center; justify-content: center;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(217,79,92,0.4); }
@media (max-width: 768px) {
  .back-to-top { bottom: 1.5rem; right: 1.5rem; width: 40px; height: 40px; font-size: 1rem; }
}
/* 作者已登录时：列表页右下角创建入口 */
.author-create-fab {
  position: fixed; right: 1.25rem; bottom: 2rem; z-index: 100;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; text-decoration: none;
  border-radius: 999px; padding: 0.85rem 1.15rem;
  font-size: 0.88rem; font-weight: 600; font-family: inherit;
  box-shadow: 0 8px 24px rgba(217,79,92,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.author-create-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(217,79,92,0.45); }
@media (max-width: 768px) {
  .author-create-fab {
    right: 1rem;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
  }
}
body.app-mode .author-create-fab {
  bottom: calc(var(--tabbar-clearance, 80px) + 0.5rem);
}
@media (min-width: 769px) {
  body.app-mode .author-create-fab {
    bottom: 2rem;
  }
}
body { animation: pageFadeIn 0.28s ease; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); }
}

/* Language switcher */
.lang-switcher-nav { position: relative; margin-left: 0.25rem; margin-right: 0.15rem; flex-shrink: 0; }
.lang-current {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.78rem; cursor: pointer;
  transition: var(--transition); white-space: nowrap; font-family: inherit; min-height: 32px;
}
.lang-current:hover { background: var(--card); border-color: #D4C8B8; }
.lang-dropdown {
  display: none; position: absolute; top: 100%; right: 0; margin-top: 0.3rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 0.3rem; z-index: 100; min-width: 100px;
}
.lang-dropdown.open { display: flex; flex-direction: column; gap: 0.2rem; }
.lang-btn {
  background: transparent; border: none; color: var(--ink); padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm); font-size: 0.8rem; cursor: pointer; transition: var(--transition);
  white-space: nowrap; text-align: left; font-family: inherit;
}
.lang-btn:hover { background: var(--paper); }
.lang-btn.active { background: var(--accent); color: white; }
@media (max-width: 768px) {
  .lang-switcher-nav { margin-right: 0.25rem; }
  .lang-current { padding: 0.25rem 0.5rem; font-size: 0.72rem; min-height: 30px; }
}

/* Pull-to-refresh */
html.pull-to-refresh-active { overscroll-behavior-y: contain; }
.ptr-indicator {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%) translateY(-100%);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--card);
  box-shadow: var(--shadow-md); transition: transform 0.2s ease; pointer-events: none;
  border: 1px solid var(--line);
}
.ptr-indicator.pulling { transition: none; }
.ptr-indicator.refreshing { transform: translateX(-50%) translateY(60px); }
.ptr-indicator svg { width: 20px; height: 20px; color: var(--accent); transition: transform 0.2s ease; }

/* Responsive */
@media (max-width: 1024px) {
  .detail-content { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    position: absolute; top: 62px; left: 0; right: 0; background: var(--glass);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    display: grid; grid-template-columns: 1fr 1fr; padding: 0.75rem; gap: 0.3rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: 0.7rem 0.85rem; font-size: 0.9rem; border-radius: var(--radius-sm); text-align: center; }
  .nav-toggle { display: block; order: 4; flex-shrink: 0; }
  .lang-switcher-nav { order: 2; margin-left: auto; margin-right: 0; }
  .nav-links { margin-left: 0; }
  .nav-author-btn { padding: 0.28rem 0.65rem !important; font-size: 0.72rem !important; order: 3; }
  .nav-inner { padding: 0 0.85rem; gap: 0.35rem; }
  .logo { font-size: 1.05rem; gap: 8px; }
  .logo-icon { width: 28px; height: 28px; font-size: 0.75rem; }
  .logo span { display: none; }
  .nav-author-btn { padding: 0.3rem 0.55rem !important; }
  .lang-current { padding: 0.28rem 0.45rem !important; font-size: 0.72rem !important; }
  .hero { margin-top: 62px; padding: 2rem 1.25rem 1.5rem; }
  .hero h1 { font-size: 1.45rem; }
  .hero p { font-size: 0.88rem; }
  .main-content { padding: 1.35rem 1rem 2.5rem; }
  .page-header h2 { font-size: 1.25rem; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .related-works-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .events-timeline { padding-left: 1.5rem; }
  .event-card::before { left: -1.55rem; }
  .event-card { flex-direction: column !important; gap: 0.75rem !important; padding: 1.15rem; }
  .event-card > div:last-child img { width: 100%; height: 150px; object-fit: cover; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .filter-bar { flex-direction: row; flex-wrap: wrap; gap: 0.35rem; }
  .filter-btn { text-align: center; padding: 0.4rem 0.7rem; font-size: 0.75rem; min-height: 36px; }
  .search-input {
    margin-left: 0; min-width: 0; width: 100%; margin-top: 0.25rem;
    padding: 0.45rem 0.85rem; font-size: 0.85rem; min-height: 38px;
  }
  .filter-bar > div { flex-wrap: wrap; width: 100%; }
  .filter-bar > div select { min-width: 0 !important; flex: 1; }
  .filter-bar > div .search-input { flex: 1; }
  .calendar-day { min-height: 40px; padding: 0.12rem; font-size: 0.65rem; }
  .calendar-day-num { font-size: 0.7rem; }
  .calendar-event { font-size: 0.5rem; padding: 0.08rem 0.12rem; }
  .calendar-weekday { font-size: 0.65rem; padding: 0.35rem; }
  .calendar-nav { width: 28px; height: 28px; font-size: 0.9rem; }
  .events-grid { grid-template-columns: 1fr; }
  .view-toggle { width: 100%; }
  .view-btn { flex: 1; justify-content: center; font-size: 0.8rem; padding: 0.4rem 0.5rem; }
  .detail-content { grid-template-columns: 1fr; }
  .detail-header h1 { font-size: 1.35rem; }
  .detail-meta { flex-direction: column; gap: 0.4rem; align-items: flex-start; justify-content: flex-start; }
  .sidebar-card { padding: 1rem; }
  .info-row { font-size: 0.82rem; }
  .social-links { flex-direction: column; align-items: stretch; }
  .social-link { justify-content: center; }
  .about-card { padding: 1.35rem; }
  .about-card h3 { font-size: 1.05rem; }
  .circle-card { padding: 1.25rem 1rem; }
  .circle-card > div:first-child { width: 60px !important; height: 60px !important; }
  .circle-avatar { width: 60px; height: 60px; font-size: 1.35rem; }
  .card-body { padding: 0.8rem; }
  .card-title { font-size: 0.9rem; }
  .card-footer { padding: 0.55rem 0.8rem; }
  .card-image { height: 140px; }
  .lightbox-nav { width: 36px; height: 36px; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 0.8rem; right: 0.8rem; width: 36px; height: 36px; }
  .nav-links.open { max-height: 70vh; overflow-y: auto; }
}
@media (max-width: 480px) {
  .hero { padding: 1.6rem 1rem 1.25rem; }
  .hero h1 { font-size: 1.3rem; }
  .hero p { font-size: 0.82rem; }
  .main-content { padding: 1rem 0.75rem 2rem; }
  .page-header h2 { font-size: 1.15rem; }
  .card-image { height: 120px; }
  .card-body { padding: 0.7rem; }
  .card-title { font-size: 0.82rem; }
  .card-subtitle { font-size: 0.68rem; }
  .card-desc { display: none; }
  .card-footer { padding: 0.45rem 0.7rem; }
  .card-price { font-size: 0.82rem; }
  .card-date { display: none; }
  .detail-header h1 { font-size: 1.2rem; }
  .detail-header { display: flex; flex-direction: column; }
  .detail-header > div:first-child { flex-direction: column; gap: 0.4rem; order: 1; }
  .detail-header-actions {
    display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap;
    justify-content: flex-end; text-align: right !important; padding-top: 0 !important; order: 2;
  }
  .detail-header > div { flex-direction: column; }
  .detail-page .filter-bar { justify-content: center; }
  .detail-meta { order: 3; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.25rem; }
  .like-btn { padding: 0.25rem 0.45rem; font-size: 0.78rem; min-height: 36px; }
  .want-btn { padding: 0.3rem 0.75rem; font-size: 0.78rem; margin-top: 0; min-height: 36px; }
  .want-modal { padding: 1.1rem; }
  .want-modal-body h3 { font-size: 1rem; }
  .want-modal-body p { font-size: 0.8rem; }
  .ann-popup { padding: 1.15rem; }
  .ann-popup-title { font-size: 1rem; }
  .ann-popup-content { font-size: 0.85rem; }
  .detail-main { padding: 1.1rem; }
  .circle-card { padding: 1.1rem; }
  .circle-avatar { width: 50px; height: 50px; font-size: 1.15rem; }
  .circle-card > div:first-child {
    width: 50px !important; height: 50px !important; margin-bottom: 0.55rem !important;
  }
  .circle-card > div:first-child img { width: 100% !important; height: 100% !important; }
  .circle-name { font-size: 0.85rem; }
  .circle-desc { font-size: 0.75rem; -webkit-line-clamp: 2; }
  .calendar-day { min-height: 32px; padding: 0.1rem; }
  .calendar-day-num { font-size: 0.6rem; }
  .calendar-event {
    display: block; width: 100%; border-radius: 2px; background: var(--accent); color: white;
    font-size: 0.5rem; line-height: 1.2; padding: 1px 2px; margin-bottom: 1px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .calendar-weekday { font-size: 0.55rem; padding: 0.3rem; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .circles-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .projects-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .updates-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .filter-btn { padding: 0.45rem 0.8rem; font-size: 0.8rem; min-height: 40px; }
  .like-btn { padding: 0.35rem 0.7rem; font-size: 0.82rem; min-height: 40px; }
  .want-btn { padding: 0.35rem 0.7rem; font-size: 0.82rem; min-height: 40px; }
  .toast { bottom: 1rem; right: 1rem; left: 1rem; font-size: 0.85rem; }
  .search-input { padding: 0.45rem 0.9rem; font-size: 0.88rem; min-height: 40px; }
  .filter-bar { gap: 0.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ===== App Shell (方案3) ===== */
body.app-mode {
  padding-left: 72px;
  padding-top: 56px;
  padding-bottom: 0;
}

.app-shell { position: static; }

.app-rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 72px;
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 14px;
  gap: 2px;
}

.rail-home {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.rail-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  font-family: 'Noto Sans SC', system-ui, sans-serif;
}

.rail-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  background: transparent;
  border: none;
  flex-shrink: 0;
}

.rail-btn {
  width: 56px;
  height: 48px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.55);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.15s ease;
  position: relative;
  font-family: inherit;
}

.rail-btn svg,
.tab-btn svg,
.app-search svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.rail-btn:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.rail-btn.active {
  background: rgba(217,79,92,0.22);
  color: #F0A0A8;
}

.rail-btn.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.rail-spacer { flex: 1; }

.app-topbar {
  position: fixed;
  top: 0;
  left: 72px;
  right: 0;
  height: 56px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: rgba(246,242,235,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.app-title {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin: 0;
  flex-shrink: 0;
}

.app-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  height: 34px;
  min-width: 0;
}

.app-search svg { stroke: var(--muted); width: 15px; height: 15px; }

.app-search input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  min-width: 0;
}

.app-search input::placeholder { color: var(--muted); }
.app-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,79,92,0.08);
}

.app-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.app-topbar .nav-author-btn {
  margin-left: 0;
}

.app-tabbar { display: none; }

/* Hide legacy hero in app mode */
body.app-mode .hero { display: none; }

body.app-mode .main-content {
  margin-top: 0;
  padding-top: 1.35rem;
  max-width: 1200px;
}

body.app-mode .footer {
  margin-top: 2rem;
}

body.app-mode .back-to-top {
  bottom: 1.5rem;
  right: 1.5rem;
}

/* ===== Board layout (home) ===== */
.home-board { display: block; }
.home-catalog { display: none; }
.home-board.hidden { display: none; }
.home-catalog.hidden { display: none; }
.home-catalog:not(.hidden) { display: block; }

.board-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.board-span-8 { grid-column: span 8; }
.board-span-4 { grid-column: span 4; }
.board-span-6 { grid-column: span 6; }
.board-span-12 { grid-column: span 12; }

.board-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 0;
}

.board-feature {
  background: linear-gradient(135deg, #5A2E32 0%, #8B3A44 55%, #C4505C 100%);
  border: 1px solid #6B3340;
  border-top: 2px solid var(--accent);
  color: #F5EFE6;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.board-feature::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,79,92,0.12), transparent 70%);
  pointer-events: none;
}

.board-feature-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: #FFD0D6;
  margin-bottom: 8px;
  width: fit-content;
  position: relative;
}

.board-feature h2 {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  position: relative;
  color: #F5EFE6;
  line-height: 1.3;
}

.board-feature p {
  font-size: 12px;
  opacity: 0.75;
  max-width: 380px;
  position: relative;
  margin: 0;
  line-height: 1.6;
}

.board-feature-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
}

.board-feature-meta .pill {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  color: inherit;
}

.board-feature-meta .pill.price {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.board-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
}

.board-section-head h2 {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Noto Sans SC', system-ui, sans-serif;
  margin: 0;
}

.board-section-head span {
  font-size: 12px;
  color: var(--muted);
}

.board-section-head a,
.board-section-head button.linkish {
  margin-left: auto;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.board-section-head a:hover,
.board-section-head button.linkish:hover { text-decoration: underline; }

/* Home announcement ticker — one-line marquee bar */
.board-announce {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  margin: 0 0 14px;
  padding: 0 12px 0 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  min-width: 0;
  position: relative;
}
.board-announce.hidden { display: none; }
.board-announce-badge {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 9px;
  text-decoration: none;
  line-height: 1.4;
}
.board-announce-badge:hover { background: var(--accent-dark); color: #fff; }
.board-announce-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding-left: 6px;
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 12px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 12px), transparent);
}
.board-announce-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
  will-change: transform;
  padding-left: 8px;
}
.board-announce-track.is-scrolling {
  animation: board-announce-scroll linear infinite;
}
@keyframes board-announce-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.board-announce-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 48px;
  text-decoration: none;
  color: inherit;
}
.board-announce-item:hover { color: var(--accent); }
.board-announce-title {
  font-weight: 600;
  flex-shrink: 0;
}
.board-announce-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  opacity: 0.7;
}
.board-announce-more {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}
.board-announce-more:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .board-announce-track.is-scrolling { animation: none; }
}

.board-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.board-list-row:last-child { border-bottom: none; padding-bottom: 0; }
.board-list-row:first-child { padding-top: 0; }

.board-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(145deg, #EDE6DA, #D9D0C2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 16px;
  color: var(--muted);
}

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

.board-list-row .t { flex: 1; min-width: 0; }
.board-list-row .t b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-list-row .t small { color: var(--muted); font-size: 11px; }

.badge-urgent {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
  font-weight: 600;
}

.board-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.board-strip .card {
  width: 168px;
  flex-shrink: 0;
  margin: 0;
}

.board-strip .card-image { height: 100px; }

.board-cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.board-cat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: 0.15s ease;
  font-family: inherit;
  color: inherit;
}

.board-cat:hover {
  border-color: var(--accent);
  background: rgba(217,79,92,0.04);
}

.board-cat .ic { font-size: 18px; margin-bottom: 4px; opacity: 0.85; }
.board-cat b { display: block; font-size: 12px; font-weight: 600; }
.board-cat small { color: var(--muted); font-size: 11px; }

.board-feed-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

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

.board-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

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

.board-feed-item .c { flex: 1; min-width: 0; font-size: 12px; line-height: 1.55; }
.board-feed-item .c b { font-weight: 600; }
.board-feed-item time { font-size: 11px; color: var(--muted); }

.home-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.home-view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
}

.home-view-toggle button {
  border: none;
  background: transparent;
  padding: 0.35rem 0.9rem;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--haze);
  cursor: pointer;
  min-height: 32px;
}

.home-view-toggle button.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* 「照片墙」入口：贴在「全部周边」右侧，同一胶囊组内 */
.home-view-toggle .home-view-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--haze);
  text-decoration: none;
  min-height: 32px;
  border-left: 1px solid var(--line);
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.home-view-toggle .home-view-link:hover {
  color: var(--accent);
  background: rgba(217, 79, 92, 0.06);
}

/* Detail app layout */
body.app-mode .detail-page { padding-top: 1.25rem; }

.detail-app {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: start;
}

.detail-gallery {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.detail-gallery-main {
  width: 100%;
  background: #F0EBE3;
  display: block;
  cursor: zoom-in;
  overflow: hidden;
  line-height: 0;
}

.detail-gallery-main img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  background: transparent;
}

.detail-gallery-main .placeholder-icon {
  font-size: 3rem;
  opacity: 0.35;
  color: var(--haze);
}

.detail-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
}

.detail-gallery-thumbs img,
.detail-gallery-thumbs .ph {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #E5DDD1;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.detail-gallery-thumbs img.on,
.detail-gallery-thumbs .ph.on {
  border-color: var(--accent);
}

.detail-info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.detail-info-card h1 {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 8px 0 4px;
  line-height: 1.35;
}

/* ===== Work detail — art exhibit layout ===== */
.exhibit-stage {
  max-width: 920px;
  margin: 0 auto 1.5rem;
  padding: 1.5rem 1.35rem 1.75rem;
  background:
    radial-gradient(900px 280px at 50% -60px, rgba(217,79,92,0.05), transparent 62%),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.exhibit-crumb {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.exhibit-crumb a { color: var(--accent); text-decoration: none; }
.exhibit-crumb a:hover { text-decoration: underline; }
.exhibit-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 768px) {
  .exhibit-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .exhibit-stage { padding: 1.1rem 1rem 1.35rem; border-radius: 14px; }
}
.exhibit-frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 8px 10px;
  box-shadow: 0 1px 0 rgba(34,32,30,0.04), 0 16px 36px rgba(34,32,30,0.07);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
.exhibit-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(34,32,30,0.05);
  pointer-events: none;
  border-radius: 2px;
}
/* 相框贴合周边图：不留黑边，高度随图 */
.exhibit-art {
  width: 100%;
  max-width: min(420px, 100%);
  border-radius: 2px;
  background: #F0EBE3;
  display: block;
  overflow: hidden;
  cursor: zoom-in;
}
.exhibit-art img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  background: transparent;
}
.exhibit-art .placeholder-icon {
  font-size: 2rem;
  color: var(--muted);
}
.exhibit-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.exhibit-thumbs img {
  width: 52px;
  height: 52px;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  opacity: 0.55;
  flex-shrink: 0;
  transition: opacity 0.15s, border-color 0.15s;
}
.exhibit-thumbs img.on,
.exhibit-thumbs img:hover {
  opacity: 1;
  border-color: var(--accent);
}
.exhibit-plaque { min-width: 0; padding-top: 2px; }
.exhibit-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}
.exhibit-status::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.exhibit-title {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.exhibit-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.exhibit-rule {
  height: 1px;
  background: var(--line);
  margin: 1rem 0;
}
.exhibit-meta { display: grid; gap: 10px; margin-bottom: 1rem; }
.exhibit-meta .info-row {
  justify-content: space-between;
  padding: 0.2rem 0;
  border: none;
}
.exhibit-desc {
  font-size: 0.9rem;
  line-height: 1.85;
  color: #4A453F;
  border-left: 2px solid var(--line);
  padding-left: 12px;
  margin-bottom: 1.15rem;
}
/* Gallery footnote actions — quiet text links */
.exhibit-actions {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.exhibit-actions .act-link,
.exhibit-actions .want-btn,
.exhibit-actions .like-btn {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  font-family: inherit !important;
  letter-spacing: 0.04em;
  color: var(--muted) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.15s ease;
  transform: none !important;
}
.exhibit-actions .act-link:hover,
.exhibit-actions .want-btn:hover,
.exhibit-actions .like-btn:hover {
  background: none !important;
  color: var(--accent) !important;
}
.exhibit-actions .like-btn.liked,
.exhibit-actions .like-btn.liked .like-count,
.exhibit-actions .like-btn.liked .like-icon {
  color: var(--accent) !important;
}
.exhibit-actions .like-btn .like-icon { font-size: 13px !important; }
.exhibit-actions .like-count { font-size: 11px !important; color: inherit !important; }
.exhibit-actions .want-btn--done {
  color: var(--info) !important;
}
.exhibit-actions .act-sep {
  width: 1px;
  height: 12px;
  background: var(--line);
  flex-shrink: 0;
}
.exhibit-actions .act-share,
.exhibit-actions .want-btn.act-share {
  margin-left: auto !important;
}
.exhibit-actions svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.exhibit-caption {
  margin-top: 1.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: center;
}
.exhibit-side {
  max-width: 920px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-sticky-cta {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  position: sticky;
  bottom: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  z-index: 5;
}

.detail-sticky-cta .btn {
  flex: 1;
  min-height: 40px;
}

.detail-side-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== Work detail — art exhibit layout ===== */
.exhibit-stage {
  max-width: 1000px;
  margin: 0 auto;
  background:
    radial-gradient(900px 320px at 50% -60px, rgba(217,79,92,0.06), transparent 60%),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 28px 24px;
}
.exhibit-crumb {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 18px;
}
.exhibit-crumb a { color: var(--accent); text-decoration: none; }
.exhibit-crumb a:hover { text-decoration: underline; }
.exhibit {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}
.exhibit-frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 8px 10px;
  box-shadow: 0 1px 0 rgba(34,32,30,0.04), 0 16px 36px rgba(34,32,30,0.07);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
.exhibit-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(34,32,30,0.05);
  pointer-events: none;
  border-radius: 2px;
}
/* 相框贴合周边图：不留黑边，高度随图 */
.exhibit-art {
  width: 100%;
  max-width: min(420px, 100%);
  border-radius: 2px;
  background: #F0EBE3;
  display: block;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  line-height: 0;
  margin: 0 auto;
}
.exhibit-art img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  vertical-align: top;
}
.exhibit-art .placeholder-icon {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  border: 1px dashed var(--line);
  display: inline-block;
  padding: 2rem 1.5rem;
  margin: 2rem auto;
  line-height: 1.5;
  background: var(--paper);
}
.exhibit-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  position: relative;
  z-index: 2;
}
.exhibit-thumbs img {
  width: 52px;
  height: 52px;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #EDE6DA;
  cursor: pointer;
  opacity: 0.55;
  flex-shrink: 0;
  transition: opacity 0.15s, border-color 0.15s;
}
.exhibit-thumbs img.on,
.exhibit-thumbs img:hover {
  opacity: 1;
  border-color: var(--accent);
}
.exhibit-plaque { padding-top: 4px; min-width: 0; }
.exhibit-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}
.exhibit-status::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.exhibit-title {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.exhibit-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.exhibit-rule {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}
.exhibit-meta { display: grid; gap: 10px; margin-bottom: 18px; }
.exhibit-meta .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}
.exhibit-meta .k {
  color: var(--muted);
  letter-spacing: 0.04em;
  font-size: 12px;
  flex-shrink: 0;
}
.exhibit-meta .v {
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}
.exhibit-meta .v.price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}
.exhibit-desc {
  font-size: 13.5px;
  line-height: 1.85;
  color: #4A453F;
  border-left: 2px solid var(--line);
  padding-left: 12px;
  margin-bottom: 20px;
}
.exhibit-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.exhibit-caption {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: center;
}
.exhibit-side {
  margin-top: 1.25rem;
  display: grid;
  gap: 12px;
}
/* 作品详情 · 分享图片（按钮基础外观内联在页面里，避免旧 CSS 缓存导致样式丢失） */
.exhibit-sharebar {
  max-width: 1000px;
  margin: 1.75rem auto 0.5rem;
  display: flex;
  justify-content: center;
}
.exhibit-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.exhibit-share-btn:hover {
  background: var(--accent-dark, #C44552) !important;
  border-color: var(--accent-dark, #C44552) !important;
  box-shadow: 0 4px 12px rgba(217, 79, 92, 0.25);
}
.exhibit-share-btn:active { transform: scale(0.99); }
.exhibit-share-btn:disabled { opacity: 0.6; cursor: default; }
.exhibit-share-btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke: #fff;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 900px) {
  .exhibit-sharebar { margin-top: 1.25rem; }
  .exhibit-share-btn { width: 100%; max-width: 320px; }
}
@media (max-width: 900px) {
  .exhibit { grid-template-columns: 1fr; gap: 20px; }
  .exhibit-stage { padding: 18px 14px 20px; border-radius: 14px; }
}

@media (max-width: 1024px) {
  .detail-app { grid-template-columns: 1fr; }
  .board-span-8, .board-span-4, .board-span-6 { grid-column: span 12; }
}

@media (max-width: 768px) {
  /* 浅色悬浮胶囊底栏尺寸（内容避让统一用 --tabbar-clearance） */
  :root {
    --tabbar-h: 56px;
    --tabbar-inset-x: 12px;
    --tabbar-gap: 14px;
    --tabbar-clearance: calc(var(--tabbar-h) + var(--tabbar-gap) + 10px + env(safe-area-inset-bottom, 0px));
  }

  body.app-mode {
    padding-left: 0;
    padding-top: 52px;
    padding-bottom: calc(var(--tabbar-clearance, 80px));
  }

  .app-rail { display: none; }

  .app-topbar {
    left: 0;
    height: 52px;
    padding: 0 12px;
    gap: 8px;
  }

  .app-title { display: none; }

  .app-search {
    max-width: none;
    height: 32px;
  }

  .app-topbar .nav-author-btn {
    padding: 0.3rem 0.55rem !important;
    font-size: 0.72rem !important;
  }

  /* 浅色悬浮胶囊底栏（对照出行 App 形态，贴合纸面设计） */
  .app-tabbar {
    display: flex;
    position: fixed;
    left: var(--tabbar-inset-x);
    right: var(--tabbar-inset-x);
    bottom: calc(var(--tabbar-gap) + env(safe-area-inset-bottom, 0px));
    height: var(--tabbar-h);
    background: rgba(255, 252, 247, 0.94);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid var(--line);
    border-radius: 28px;
    z-index: 1100;
    padding: 0 6px;
    box-shadow:
      0 8px 28px rgba(34, 32, 30, 0.12),
      0 2px 8px rgba(34, 32, 30, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }

  .tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    color: var(--haze);
    text-decoration: none;
    border-radius: 22px;
    min-height: 48px;
    font-weight: 500;
    position: relative;
    transition: color 0.15s ease;
  }

  .tab-btn svg {
    width: 22px;
    height: 22px;
    display: block;
    transition: transform 0.18s ease;
  }

  .tab-btn.active {
    color: var(--accent);
  }

  .tab-btn.active span {
    color: var(--ink);
    font-weight: 600;
  }

  .tab-btn.active svg {
    transform: translateY(-1px) scale(1.08);
  }

  .tab-btn.active::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 30px;
    border-radius: 14px;
    background: rgba(217, 79, 92, 0.1);
    z-index: -1;
  }

  .board-cats { grid-template-columns: repeat(3, 1fr); }
  .board-strip .card { width: 148px; }
  .board-feature { min-height: 140px; }
  .board-feature h2 { font-size: 1.15rem; }

  body.app-mode .main-content {
    padding: 1rem 0.85rem 1.5rem;
  }

  body.app-mode .back-to-top {
    bottom: calc(var(--tabbar-clearance, 80px) + 4px);
  }

  body.app-mode .footer {
    padding-bottom: 1.5rem;
  }
}

.board-feature.has-cover {
  background-size: cover;
  background-position: center;
  color: #F5EFE6;
}
.board-feature-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(34,30,28,0.72), rgba(34,30,28,0.4) 55%, transparent);
  pointer-events: none;
}
.board-feature-tag.recruiting {
  background: rgba(61, 139, 110, 0.15);
  color: var(--success);
}
.board-feature-tag.only {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.board-feature-tag.in_progress {
  background: rgba(196, 138, 42, 0.15);
  color: var(--warning);
}
.board-feature-tag.completed,
.board-feature-tag.cancelled {
  background: rgba(34, 32, 30, 0.08);
  color: var(--muted);
}
.board-feature.has-cover .board-feature-tag.recruiting {
  background: rgba(61, 139, 110, 0.35);
  color: #A8D5C0;
}
.board-feature.has-cover .board-feature-tag.only {
  background: var(--accent);
  color: #fff;
}
.board-feature.has-cover .board-feature-tag.in_progress {
  background: rgba(196, 138, 42, 0.35);
  color: #F0D090;
}
.board-feature.has-cover .board-feature-tag.completed,
.board-feature.has-cover .board-feature-tag.cancelled {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
}
.board-list-row {
  cursor: pointer;
}
#boardDeadlineList {
  min-height: 228px;
}
#boardDeadlineList:empty::after {
  content: "";
  display: block;
  height: 228px;
}
.board-list-row:hover b { color: var(--accent); }
.board-list-row:hover .board-thumb img,
.board-list-row:hover .board-avatar img { opacity: 0.92; }
.board-list-row {
  width: 100%;
  box-sizing: border-box;
}
.board-list-row:visited {
  color: inherit;
}

/* Board feature carousel */
.board-feature {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid #6B3340;
  background: linear-gradient(135deg, #5A2E32 0%, #8B3A44 55%, #C4505C 100%);
  color: #F5EFE6;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: 100%;
}
.board-feature-track {
  height: 100%;
  min-height: 180px;
}
.board-feature.has-cover {
  background-image: none;
  background-size: auto;
}
.board-feature-track {
  position: relative;
  flex: 1 1 auto;
  min-height: 180px;
  height: 100%;
}
.board-feature-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px 44px;
  color: #F5EFE6;
  background: linear-gradient(135deg, #5A2E32 0%, #8B3A44 55%, #C4505C 100%);
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.board-feature-slide.has-cover {
  color: #F5EFE6;
}
.board-feature-slide.on {
  opacity: 1;
  pointer-events: auto;
}
.board-feature-slide h2 {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  position: relative;
  color: inherit;
  line-height: 1.3;
}
.board-feature-slide::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,79,92,0.12), transparent 70%);
  pointer-events: none;
}
.board-feature-slide.has-cover::after {
  background: radial-gradient(circle, rgba(217,79,92,0.28), transparent 70%);
}
.board-feature-ctrl {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.board-feat-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(34, 32, 30, 0.18);
}
.board-feat-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(34, 32, 30, 0.35);
  cursor: pointer;
  display: block;
  transition: 0.2s ease;
  font-style: normal;
}
.board-feat-dots i.on {
  background: var(--accent);
  width: 16px;
  border-radius: 4px;
}
.board-feat-nav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: color 0.15s ease, background 0.15s ease;
}
.board-feat-nav:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
#boardFeatureRow { align-items: stretch; }


/* 最新上传 / 周边截止 同行等高卡片 */
.board-grid > .board-panel.board-span-8,
.board-grid > .board-panel.board-span-4 {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.board-grid > .board-panel.board-span-8 .board-strip {
  flex: 1 1 auto;
  min-height: 228px;
  align-items: stretch;
}
.board-grid > .board-panel.board-span-8 .board-strip .card {
  width: 160px;
  height: 100%;
  max-height: 260px;
  display: flex;
  flex-direction: column;
}
.board-grid > .board-panel.board-span-8 .board-strip .card-body {
  flex: 1 1 auto;
}

/* ===== Event detail hero ===== */
.ev-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #EDE6DA, #D9D0C2);
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 1rem;
}
.ev-hero.has-cover { min-height: 200px; }
.ev-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(34, 30, 28, 0.72) 100%);
}
.ev-hero:not(.has-cover) .ev-hero-shade {
  background: linear-gradient(180deg, rgba(34,30,28,0.08), rgba(34,30,28,0.45));
}
.ev-hero-body {
  position: relative;
  z-index: 1;
  padding: 1rem 1rem 0.9rem;
  width: 100%;
  color: #F5EFE6;
}
.ev-hero-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}
.ev-chip {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}
.ev-chip-only {
  background: rgba(217, 79, 92, 0.9);
  border-color: transparent;
  font-weight: 600;
}
.ev-hero-share {
  margin-left: auto;
}
.ev-hero-share .want-btn {
  background: rgba(255,255,255,0.16) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  padding: 0.35rem 0.9rem !important;
  font-size: 0.78rem !important;
  margin-left: 0 !important;
}
.ev-hero-share .want-btn:hover {
  background: rgba(255,255,255,0.28) !important;
  color: #fff !important;
}
.ev-hero h1 {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 6px;
  color: #F5EFE6;
  text-align: left;
}
.ev-hero-meta {
  font-size: 12px;
  opacity: 0.92;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ev-only-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 1rem;
}
.ev-only-banner b {
  font-size: 15px;
  font-weight: 600;
  display: block;
  line-height: 1.4;
}
.ev-only-banner > div { flex: 1; min-width: 0; }
.ev-only-banner a {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.ev-only-banner a:hover { background: var(--accent-dark); color: #fff; }

/* ===== Circle / author detail profile ===== */
.cl-hero {
  position: relative;
  height: clamp(140px, 22vw, 220px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #EDE6DA, #D5CBBB);
  margin-bottom: 0;
}
.cl-hero.has-cover { background-size: cover; background-position: center; }
.cl-hero img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Avatar fallback: fill the full width, crop vertically */
.cl-hero.is-avatar img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  padding: 0;
}
.cl-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(34,30,28,.28));
  pointer-events: none;
}
.cl-hero-line {
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent); z-index: 2;
}
.cl-identity {
  position: relative;
  margin: -52px 1rem 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem 1.1rem;
  align-items: start;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  overflow: visible;
}
.cl-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 3px solid var(--card);
  background: linear-gradient(145deg,#EDE6DA,#D9D0C2);
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.8rem; font-weight: 700;
  margin-top: -28px;
  box-shadow: var(--shadow-sm);
}
.cl-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cl-identity h1 {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  text-align: left;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}
.cl-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.cl-chip {
  display: inline-flex; align-items: center;
  font-size: 0.72rem; font-weight: 500;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
}
.cl-chip.cat { color: var(--ink); border-color: #D4C8B8; }
.cl-actions {
  display: flex; flex-direction: column; gap: 0.4rem; align-items: stretch;
  min-width: 110px;
}
.cl-actions .follow-btn,
.cl-actions .want-btn {
  width: 100%;
  margin: 0 !important;
  justify-content: center;
}
.cl-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
  grid-column: 1 / -1;
}
.cl-stat { text-align: center; padding: 0.15rem 0.25rem; }
.cl-stat b {
  display: block;
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.15rem; font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.cl-stat.accent b { color: var(--accent); }
.cl-stat span { font-size: 0.7rem; color: var(--muted); }
.cl-lede {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: #4A453F;
  line-height: 1.8;
  white-space: pre-wrap;
  grid-column: 1 / -1;
}
.cl-gallery {
  display: flex; gap: 0.55rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2px;
  margin-bottom: 1.25rem;
  -webkit-overflow-scrolling: touch;
}
.cl-gallery::-webkit-scrollbar { height: 4px; }
.cl-gallery::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.cl-gallery button {
  flex: 0 0 auto;
  width: min(180px, 58%);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(145deg,#EDE6DA,#D9CFC0);
  scroll-snap-align: start;
  cursor: zoom-in;
  padding: 0;
}
.cl-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  #circleDetail .cl-identity {
    grid-template-columns: auto minmax(0, 1fr);
    margin: -40px 0.5rem 0;
    align-items: center;
  }
  #circleDetail .cl-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    min-width: 0;
    width: 100%;
  }
  #circleDetail .cl-actions .follow-btn,
  #circleDetail .cl-actions .want-btn {
    flex: 1 1 0;
    width: auto;
    min-height: 40px;
    justify-content: center;
    margin-top: 0 !important;
    box-sizing: border-box;
  }
  #circleDetail .cl-avatar {
    width: 72px; height: 72px;
    font-size: 1.35rem;
    margin-top: -16px;
  }
  #circleDetail .detail-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: start;
  }
  #circleDetail .detail-sidebar .sidebar-card { margin-bottom: 0; }
  #circleDetail .detail-main { padding: 1.25rem; }
}
@media (max-width: 640px) {
  #circleDetail { overflow-x: hidden; }
  #circleDetail .detail-breadcrumb { margin-bottom: 0.65rem; font-size: 0.72rem; }
  #circleDetail .cl-hero {
    height: 112px;
    border-radius: 12px;
  }
  #circleDetail .cl-identity {
    margin: -28px 0 0;
    padding: 0.85rem 0.8rem 0.75rem;
    gap: 0.55rem 0.65rem;
    border-radius: 12px;
    align-items: start;
  }
  #circleDetail .cl-avatar {
    width: 56px; height: 56px;
    font-size: 1.15rem;
    margin-top: -14px;
    border-width: 2px;
  }
  #circleDetail .cl-identity h1 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.3;
  }
  #circleDetail .cl-chips { gap: 0.3rem; }
  #circleDetail .cl-chip { font-size: 0.68rem; padding: 0.12rem 0.45rem; }
  #circleDetail .cl-actions { gap: 0.45rem; }
  #circleDetail .cl-actions .follow-btn,
  #circleDetail .cl-actions .want-btn {
    min-height: 42px;
    font-size: 0.82rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  #circleDetail .cl-lede {
    font-size: 0.86rem;
    margin-top: 0.75rem;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  #circleDetail .cl-stats {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    gap: 0.15rem;
  }
  #circleDetail .cl-stat { padding: 0.1rem 0.15rem; }
  #circleDetail .cl-stat b { font-size: 0.95rem; }
  #circleDetail .cl-stat span {
    font-size: 0.62rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #circleDetail .detail-content {
    gap: 0.85rem;
    margin-top: 0.85rem;
  }
  #circleDetail .detail-main {
    padding: 1rem 0.85rem;
    border-radius: 12px;
  }
  #circleDetail .detail-main h3 { font-size: 0.98rem !important; }
  #circleDetail .cl-gallery { gap: 0.45rem; margin-bottom: 1rem; }
  #circleDetail .cl-gallery button { width: 70%; }
  #circleDetail .detail-sidebar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  #circleDetail .detail-sidebar .sidebar-card {
    padding: 1rem;
    border-radius: 12px;
  }
  #circleDetail .cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.55rem !important;
  }
  #circleDetail .card-image { height: 120px !important; }
}
