/* ============================================
   苏州宜昌商会 - 移动端样式 v2
   设计方向：商务 App 风格，深蓝+金黄，参考 xcmg.com 移动端
   色板：主色 #0a1f3a / 辅助 #0d2b52 / 金黄 #d4a843 / 白 #fff
   ============================================ */

:root {
  --primary: #0a1f3a;
  --primary-light: #0d2b52;
  --gold: #d4a843;
  --gold-light: #e8c97a;
  --gold-bg: #fdf6e8;
  --bg: #f2f1ed;
  --bg-white: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-muted: #999999;
  --border: #e6e3db;
  --shadow: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 4px 28px rgba(0,0,0,0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --font-display: "Noto Serif SC", "STSong", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --nav-height: 80px;
  --tab-height: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--nav-height);
  padding-bottom: calc(var(--tab-height) + var(--safe-bottom) + 12px);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ============ TOP NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
}
.navbar-logo-img {
  height: 70px; width: auto; border-radius: 4px; object-fit: contain;
}
.navbar-logo-text {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; color: var(--primary);
  letter-spacing: 1px;
}
.navbar-back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 20px;
}

/* 汉堡菜单按钮 */
.nav-hamburger {
  width: 36px; height: 36px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; padding: 0;
  position: relative; z-index: 110;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--primary); border-radius: 1px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 下拉菜单 */
.nav-dropdown {
  position: fixed; top: var(--nav-height); right: 0; z-index: 105;
  width: 200px; background: var(--bg-white);
  border-radius: 0 0 0 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow: hidden;
  padding: 8px 0;
}
.nav-dropdown.open {
  transform: translateX(0);
}
.nav-dropdown-link {
  display: block; padding: 13px 20px;
  font-size: 14px; color: var(--text); font-weight: 500;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-dropdown-link:active { background: var(--bg); }
.nav-dropdown-link.active {
  color: var(--gold); font-weight: 600;
}

/* 遮罩层 */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 104;
  background: rgba(0,0,0,0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.nav-backdrop.open {
  opacity: 1; pointer-events: auto;
}

/* ============ BOTTOM TAB BAR ============ */
.tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-white);
  height: var(--tab-height);
  display: flex;
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
}
.tab-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; color: var(--text-muted);
  font-size: 11px; transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.tab-item.active { color: var(--primary); }
.tab-item.active::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; background: var(--gold);
  border-radius: 0 0 3px 3px;
}
.tab-item .tab-icon { font-size: 22px; line-height: 1; }
.tab-item .tab-icon-icofont { font-size: 24px; line-height: 1; display: block; }
.tab-item .tab-label { font-size: 11px; font-weight: 500; }

/* ============ HERO 通栏 - Marquee 连续滚动照片 (首页) ============ */
.marquee-section {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--primary);
  padding-bottom: 24px;
  box-sizing: content-box;
}

/* 滚动轨道 */
.marquee-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: marquee-scroll 50s linear infinite;
  will-change: transform;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 单个图片项 */
.marquee-item {
  flex-shrink: 0;
  width: 220px;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marquee-item img {
  max-height: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0.7;
}
.marquee-item .marquee-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  opacity: 0.7;
}

/* 遮罩层 + 文字内容 */
.marquee-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(10,31,58,0.6) 0%,
    rgba(10,31,58,0.25) 30%,
    rgba(10,31,58,0.15) 50%,
    rgba(10,31,58,0.25) 70%,
    rgba(10,31,58,0.6) 100%
  );
}
.marquee-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  pointer-events: auto;
  width: 100%;
}
.marquee-label {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 8px;
  padding: 3px 12px;
  border: 1px solid rgba(212,168,67,0.5);
  border-radius: 4px;
}
.marquee-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.marquee-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin-bottom: 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.marquee-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 28px;
  background: linear-gradient(135deg, var(--gold), #c4942a);
  color: #fff;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(212,168,67,0.35);
  transition: all 0.2s;
  width: 100%;
  max-width: 280px;
}
.btn-gold:active { background: var(--gold-light); }
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 28px;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  width: 100%;
  max-width: 280px;
}
.btn-outline-white:active {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* hover 暂停滚动 */
.marquee-section:active .marquee-track {
  animation-play-state: paused;
}

/* ============ STATS BAR ============ */
.stats-row {
  display: flex; margin: 12px 16px 18px;
  background: var(--bg-white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 8px;
  position: relative; z-index: 2;
}
.stat-item { flex: 1; text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; color: var(--primary);
  line-height: 1.2;
}
.stat-label {
  font-size: 11px; color: var(--text-secondary); margin-top: 3px;
}
.stat-item + .stat-item {
  border-left: 1px solid var(--border);
}

/* ============ SECTION ============ */
.section {
  padding: 0 16px; margin-bottom: 24px;
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; width: 4px; height: 20px;
  background: var(--gold); border-radius: 2px;
}
.section-more {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 2px;
  padding: 4px 12px; border-radius: 14px;
  background: var(--bg-white); border: 1px solid var(--border);
  transition: all 0.2s;
}
.section-more:active { background: var(--gold-bg); border-color: var(--gold); }

/* ============ NEWS CARD ============ */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-card {
  background: var(--bg-white); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
  display: flex; gap: 14px; align-items: flex-start;
  transition: transform 0.15s;
}
.news-card:active { transform: scale(0.985); }
.news-card-icon {
  width: 64px; height: 64px; border-radius: var(--radius-xs);
  background: #f0ede6; display: flex; align-items: center;
  justify-content: center; font-size: 24px; flex-shrink: 0; overflow: hidden;
}
.news-card-thumb {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.news-card-body { flex: 1; min-width: 0; }
.news-card-title {
  font-size: 15px; font-weight: 600; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.45; margin-bottom: 8px;
}
.news-card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-muted);
}
.news-card-cat {
  font-size: 11px; padding: 3px 10px;
  border-radius: 10px; background: var(--gold-bg); color: #b8860b;
  font-weight: 500;
}

/* ============ MEMBER CARD ============ */
/* 2 列网格布局，突出 Logo 封面图 */
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.member-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.member-card:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-lg);
}

/* Logo 封面图区域 */
.member-cover {
  position: relative;
  width: 80%;
  aspect-ratio: 3 / 2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
  margin: 0 auto;
}
.member-cover img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  background: #fff;
}
/* 无 Logo 时的首字占位 */
.member-cover.no-logo {
  background: #fff;
}
.member-cover .cover-initial {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  background: linear-gradient(135deg, #0d2b52 0%, #1a3f6e 50%, #0d2b52 100%);
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.3;
  word-break: keep-all;
  width: auto;
  min-width: 52px;
}
.member-cover .cover-initial.chars-4 {
  font-size: 15px;
}
.member-cover .cover-initial.chars-3 {
  font-size: 24px;
  flex-direction: row;
}
.member-cover .cover-initial.chars-2 {
  font-size: 28px;
  flex-direction: row;
}

/* 封面上的级别角标 */
.member-cover .cover-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--gold);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* 卡片底部信息区 */
.member-body {
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* 企业名称上方的级别标签 */
.member-level-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.member-level-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--gold);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  line-height: 1;
}
.member-contact-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.member-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.member-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.member-industry {
  display: inline-block;
  font-size: 11px;
  color: var(--text-secondary);
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-white); box-shadow: var(--shadow);
  aspect-ratio: 4/3; position: relative;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-item-count {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.6); color: #fff;
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  z-index: 2; pointer-events: none;
}
.gallery-item-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,31,58,0.75));
  padding: 14px 10px 10px;
}
.gallery-item-title {
  color: #fff; font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gallery-item-date {
  color: rgba(255,255,255,0.7); font-size: 10px; margin-top: 2px;
}

/* ============ FIGURE CARD (同会员企业2列Grid布局) ============ */
.figure-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px;
}
.figure-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.figure-card:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-lg);
}

/* 人物头像封面区域 */
.figure-cover {
  position: relative;
  width: 80%;
  aspect-ratio: 3 / 2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
  margin: 0 auto;
}
.figure-cover img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  background: #fff;
}
.figure-cover.no-image {
  background: #fff;
}
.figure-cover .cover-initial {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  background: linear-gradient(135deg, #0d2b52 0%, #1a3f6e 50%, #0d2b52 100%);
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.3;
  word-break: keep-all;
}

/* 人物卡片上的职务角标 */
.figure-cover .cover-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--gold);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* 人物卡片底部信息区 */
.figure-body {
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.figure-name-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.figure-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  word-break: keep-all;
}
.figure-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.figure-role {
  display: inline-block;
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.figure-company {
  display: inline-block;
  font-size: 11px;
  color: var(--text-secondary);
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ============ CHAMBER TABS ============ */
.chamber-tabs {
  display: flex; background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  position: sticky; top: var(--nav-height); z-index: 10;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.chamber-tab {
  flex-shrink: 0; padding: 14px 20px;
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all 0.2s; white-space: nowrap;
}
.chamber-tab.active {
  color: var(--primary); border-bottom-color: var(--gold); font-weight: 600;
}
.chamber-content { padding: 16px; }
.chamber-article {
  font-size: 14px; line-height: 1.8; color: var(--text);
}
.chamber-article h3 {
  font-size: 16px; color: var(--primary); margin: 18px 0 10px;
  padding-left: 10px; border-left: 3px solid var(--gold);
}
.chamber-article .apply-title {
  font-size: 20px;
  color: #c0392b;
  text-align: center;
  padding: 0 0 16px 0;
  margin: 0 0 16px 0;
  border: none;
  border-bottom: 1px solid var(--border);
}
.chamber-article p { margin-bottom: 10px; text-indent: 2em; }
.chamber-article ul { padding-left: 1.5em; }
.chamber-article li { list-style: disc; margin-bottom: 6px; }

/* 联系方式区块 */
.contact-block {
  background: #f8fafc;
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 8px;
  border: 1px solid #e2e8f0;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text);
}
.contact-item + .contact-item {
  border-top: 1px dashed #e2e8f0;
}
.contact-label {
  color: var(--text-secondary);
  flex-shrink: 0;
}
.contact-phone {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.contact-address {
  line-height: 1.7;
}

/* 入会申请卡片 */
.join-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.join-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 10px 0;
  padding: 0 0 10px 0;
  border-bottom: 1px solid var(--border);
  border-left: none;
}
.join-intro {
  margin-bottom: 8px;
  text-indent: 0;
  color: var(--text-secondary);
}
.join-list {
  padding-left: 1.5em;
  margin: 0;
}
.join-list li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--text);
}
.join-link {
  color: #c0392b;
  text-decoration: underline;
  font-weight: 500;
}
.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.fee-table tr {
  border-bottom: 1px solid #f0ede6;
}
.fee-table tr:last-child {
  border-bottom: none;
}
.fee-table td {
  padding: 10px 4px;
  color: var(--text);
}
.fee-table .fee-amount {
  text-align: right;
  color: #c0392b;
  font-weight: 600;
  white-space: nowrap;
}

.download-item {
  background: var(--bg-white); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
  transition: transform 0.15s;
}
.download-item:active { transform: scale(0.985); }
.download-icon {
  width: 44px; height: 44px; border-radius: var(--radius-xs);
  background: #fef3e0; color: #d4a843;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.download-info { flex: 1; min-width: 0; }
.download-name { font-size: 14px; font-weight: 500; }
.download-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ============ FILTER BAR ============ */
.filter-bar {
  display: flex; gap: 8px; padding: 14px 16px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.filter-btn {
  flex-shrink: 0; padding: 8px 18px; border-radius: 20px;
  font-size: 13px; color: var(--text-secondary); font-weight: 500;
  background: var(--bg); border: 1px solid transparent;
  transition: all 0.2s; white-space: nowrap;
}
.filter-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(10,31,58,0.25);
}

/* ============ SEARCH BAR ============ */
.search-bar {
  padding: 12px 16px; background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.search-input-wrap {
  display: flex; background: var(--bg);
  border-radius: 22px; padding: 0 14px; align-items: center;
  gap: 8px; border: 1px solid transparent;
  transition: border-color 0.2s;
}
.search-input-wrap:focus-within {
  border-color: var(--gold); background: #fff;
}
.search-input-wrap .search-icon {
  color: var(--text-muted); font-size: 16px;
}
.search-input-wrap input {
  flex: 1; border: none; outline: none; padding: 10px 0;
  font-size: 14px; background: transparent;
}
.search-input-wrap input::placeholder { color: #ccc; }

/* ============ PAGINATION ============ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 18px 0 8px;
}
.page-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  background: var(--bg-white); border: 1px solid var(--border);
  transition: all 0.2s;
}
.page-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(10,31,58,0.2);
}
.page-btn:disabled { opacity: 0.35; }

/* ============ DETAIL MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.25s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-sheet {
  background: var(--bg-white); border-radius: 18px 18px 0 0;
  width: 100%; max-height: 85vh;
  overflow-y: auto; animation: slideUp 0.3s ease-out;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: #d4d0c8; margin: 12px auto;
}
.modal-header {
  padding: 8px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 17px; font-weight: 600; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); display: flex; align-items: center;
  justify-content: center; font-size: 16px; color: var(--text-secondary);
}
.modal-body { padding: 20px; }
.modal-body .article-content {
  font-size: 14px; line-height: 1.8; color: var(--text);
}
.modal-body .article-content p { margin-bottom: 12px; }
.modal-body .article-content img {
  border-radius: var(--radius-sm); margin: 12px 0;
}
.modal-meta {
  display: flex; gap: 12px; margin-bottom: 18px;
  font-size: 12px; color: var(--text-muted); flex-wrap: wrap;
}
.modal-image {
  width: 100%; border-radius: var(--radius-sm); margin-bottom: 16px;
}

/* Gallery detail nav */
.gallery-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 20px 20px;
}
.gallery-nav-btn {
  padding: 9px 18px; border-radius: 20px;
  font-size: 13px; font-weight: 500; color: var(--primary);
  border: 1px solid var(--border); background: var(--bg-white);
  transition: all 0.2s;
}
.gallery-nav-btn:active { background: var(--gold-bg); border-color: var(--gold); }
.gallery-nav-btn:disabled { opacity: 0.35; }

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center; padding: 48px 20px; color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 14px; }
.empty-state .empty-text { font-size: 14px; }

/* ============ LOADING ============ */
.loading {
  display: flex; align-items: center; justify-content: center;
  padding: 36px; color: var(--text-muted); font-size: 13px;
}
.loading::before {
  content: ''; width: 18px; height: 18px; border: 2px solid var(--border);
  border-top-color: var(--gold); border-radius: 50%;
  margin-right: 8px; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ TOAST ============ */
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 10px 24px;
  border-radius: 20px; font-size: 13px; z-index: 300;
  animation: toastIn 0.3s, toastOut 0.3s 2s forwards;
  pointer-events: none;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-50%) translateY(-10px); } }

/* ============ RESPONSIVE: TABLET ============ */
@media (min-width: 600px) {
  body { padding-top: 64px; }
  :root { --nav-height: 72px; }
  .navbar { height: 72px; padding: 0 24px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .member-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  }
  .section { padding: 0 24px; }
  .chamber-content { padding: 20px 24px; max-width: 720px; margin: 0 auto; }
  .marquee-section { height: 280px; }
  .marquee-item { width: 260px; }
  .marquee-item img { max-height: 200px; }
  .marquee-title { font-size: 28px; }
  .marquee-desc { font-size: 14px; }
  .marquee-btns { flex-direction: row; }
  .marquee-btns .btn-gold,
  .marquee-btns .btn-outline-white { width: auto; max-width: none; }
  .stats-row { margin: -16px 24px 20px; }
}

@media (min-width: 900px) {
  body {
    max-width: 800px; margin: 0 auto;
    padding-top: 72px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    min-height: 100vh;
  }
  :root { --nav-height: 80px; }
  .tab-bar { left: 50%; transform: translateX(-50%); width: 800px; }
  .navbar { left: 50%; transform: translateX(-50%); width: 800px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
}
