/* ==============================================================
   北交私享会 - 主样式文件
   ============================================================== */

/* ===== 1. CSS 变量 ===== */
:root {
  --primary: #1A6DD4;
  --primary-dark: #0F5AB8;
  --primary-light: #EDF4FD;
  --accent: #FF6B35;
  --accent-light: #FFF3E0;
  --success: #22C55E;
  --success-light: #E8F8EF;
  --purple: #8B5CF6;
  --purple-light: #F3E8FF;
  --cyan: #06B6D4;
  --cyan-light: #E6F9FC;
  --gold: #D4AF37;
  --gold-light: #FFF8E7;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #8E8E93;
  --text-muted: #AEAEB2;
  --border: #E5E5EA;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --safe-top: env(safe-area-inset-top, 20px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tab-height: 56px;
  --header-height: 56px;
}

/* ===== 1.5 Utility ===== */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ===== 2. Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--header-height) + var(--safe-top));
  padding-bottom: calc(var(--tab-height) + var(--safe-bottom));
}
a { text-decoration: none; color: inherit; }
button, label {   cursor: pointer;
  text-decoration: none;
}

/* ===== 3. App Shell ===== */
.app-shell {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ===== 4. Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  flex-shrink: 0;
  height: calc(var(--header-height) + var(--safe-top));
  padding: var(--safe-top) 16px 0;
  background: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none;
  background: none;
  border-radius: 50%;
  transition: background 0.2s;
}
.header-back:active { background: rgba(255,255,255,0.2); }
.header-back svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.header .header-title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.header-logo svg {
  width: 30px;
  height: 30px;
  color: #fff;
  flex-shrink: 0;
}
.header-logo .header-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.header-actions { display: flex; gap: 12px; align-items: center; }
.header-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s;
}
.header-btn:active { background: rgba(255,255,255,0.3); }
.header-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== 5. Content Area ===== */
.content {
  overflow: visible;
  padding: 0;
}
.content::-webkit-scrollbar { display: none; }

/* ===== 6. Tab Bar ===== */
.tab-bar {
  flex-shrink: 0;
  height: calc(var(--tab-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
}
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-secondary);
  font-size: 10px;
  border: none;
  background: none;
  padding: 4px 12px;
  min-height: 44px;
  min-width: 44px;
  transition: color 0.2s;
  position: relative;
  text-decoration: none;
}
.tab-item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: all 0.2s; }
.tab-item:active { opacity: 0.7; }
.tab-item.active { color: var(--primary); }
.tab-item.active svg { fill: var(--primary); stroke: var(--primary); }
.tab-badge {
  position: absolute;
  top: 0;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 7. Common Page Components ===== */
.page-content { padding: 0 16px; }

/* ===== 7.5 底部备案 ===== */
.site-footer {
  text-align: center;
  padding: 24px 0 8px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.site-footer .footer-brand { font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.site-footer .footer-slogan { font-size: 11px; color: #aaa; }
.site-footer .footer-icp { display: block; font-size: 11px; color: #aaa; margin-top: 2px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  margin-top: 22px;
  min-height: 44px;
  text-decoration: none;
  color: inherit;
}
.section-header:first-child { margin-top: 0; }
.section-header h2 { font-size: 17px; font-weight: 700; }
.section-more {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
}
.section-more:active { color: var(--primary); }
.section-more2 {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
}

/* Hero Banner - 通用结构 */
.hero-banner {
  margin: 0 -16px 16px;
  padding: 24px 20px 28px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-banner::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.hero-banner .tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.hero-banner h1,
.hero-banner h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; letter-spacing: 1px; }
.hero-banner p { font-size: 13px; opacity: 0.9; line-height: 1.6; }
.hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 14px;
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat .num { font-size: 20px; font-weight: 800; }
.hero-stats .stat .lbl { font-size: 11px; opacity: 0.7; margin-top: 2px; }

/* Filter Tabs - 通用结构 */
.filter-tabs {
  display: flex;
  gap: 0;
  background: var(--card);
  border-radius: var(--radius);
  padding: 3px;
  margin-bottom: 16px;
}
.filter-tab-label {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.filter-tab-label:active { opacity: 0.7; }
.filter-tab-label.active { color: #fff; }

/* Item Cards - 通用结构 */
.item-group { display: block; }
.item-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  cursor: pointer;
}
.item-card:active { transform: scale(0.98); }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}
.empty-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 8px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .modal-sheet, .detail-section { animation: none; }
}

/* Back to List */
.back-to-list {
  text-align: center;
  padding: 8px 0 4px;
}
.back-to-list a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-secondary);
  min-height: 44px;
}
.back-to-list a:active { color: var(--primary); }

/* Action Bar */
.action-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.action-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
}
.action-btn:active { transform: scale(0.98); }
.action-btn.primary { background: var(--primary); color: #fff; }
.action-btn.outline { background: var(--card); color: var(--text-secondary); border: 1px solid var(--border); }

/* ===== 8. List Page - Module Specific ===== */

/* --- GGL --- */
.module-ggl .hero-banner { background: linear-gradient(135deg, #06B6D4, #22D3EE); }
.module-ggl .filter-tab-label.active { background: var(--cyan); }
.module-ggl .item-card .top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.module-ggl .item-card .cat-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.module-ggl .item-card .cat-tag.news { background: var(--primary-light); color: var(--primary); }
.module-ggl .item-card .cat-tag.policy { background: var(--purple-light); color: var(--purple); }
.module-ggl .item-card .cat-tag.info { background: var(--cyan-light); color: var(--cyan); }
.module-ggl .item-card .date { font-size: 13px; color: var(--text-muted); margin-left: auto; }
.module-ggl .item-card h3 { font-size: 17px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.module-ggl .item-card .summary { font-size: 15px; color: var(--text-secondary); line-height: 1.5; }
.module-ggl .item-card .bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.module-ggl .item-card .view-count { font-size: 13px; color: var(--text-muted); }
.module-ggl .item-card .action-link {
  /* 仅用于 JS 定位，不设样式 */
}
.module-ggl .item-card h3 a {
  color: inherit;
  text-decoration: none;
}
.module-ggl .item-card .detail-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
}

/* --- GXQ --- */
.module-gxq .hero-banner { background: linear-gradient(135deg, #7C3AED, #8B5CF6); }
.module-gxq .filter-tab-label.active { background: #8B5CF6; }
.module-gxq .item-card .card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.module-gxq .item-card .avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.module-gxq .item-card .avatar-link {
  flex-shrink: 0;
  display: flex;
}
.module-gxq .item-card .card-info { flex: 1; min-width: 0; }
.module-gxq .item-card .card-info .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.module-gxq .item-card .card-info .name-link {
  color: inherit;
  text-decoration: none;
}
.module-gxq .item-card .card-info .name-link:active { opacity: 0.7; }
.module-gxq .item-card .card-info .time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.module-gxq .item-card .cat-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.module-gxq .item-card .cat-tag.resource { background: var(--purple-light); color: var(--purple); }
.module-gxq .item-card .cat-tag.tech { background: var(--cyan-light); color: var(--cyan); }
.module-gxq .item-card .cat-tag.coop { background: var(--success-light); color: var(--success); }
.module-gxq .item-card .cat-tag.item { background: var(--accent-light); color: var(--accent); }
.module-gxq .item-card .cat-tag.project { background: var(--primary-light); color: var(--primary); }
.module-gxq .item-card h3 { font-size: 17px; font-weight: 600; margin: 6px 0; line-height: 1.4; }
.module-gxq .item-card .desc { font-size: 15px; color: var(--text-secondary); line-height: 1.5; }
.module-gxq .item-card .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.module-gxq .item-card .action-row {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.module-gxq .item-card .action-row span {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 32px;
}
.module-gxq .item-card .stat-item {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}
.module-gxq .item-card .action-link {
  /* 仅用于 JS 定位，不设样式 */
}
.module-gxq .item-card h3 a {
  color: inherit;
  text-decoration: none;
}
.module-gxq .item-card .detail-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  margin-left: auto;
}

/* --- HDH --- */
.module-hdh .hero-banner { background: linear-gradient(135deg, #FF6B35, #FF9A5C); }
.module-hdh .filter-tab-label.active { background: linear-gradient(135deg, #FF6B35, #FF9A5C); }
.module-hdh .item-card .card-top {
  display: flex;
  gap: 14px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.module-hdh .item-card .date-box {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
}
.module-hdh .item-card .date-box .month {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}
.module-hdh .item-card .date-box .day {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.module-hdh .item-card .card-info { flex: 1; min-width: 0; }
.module-hdh .item-card .card-info h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.module-hdh .item-card .event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
}
.module-hdh .item-card .event-meta span {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.module-hdh .item-card .event-meta span svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}
.module-hdh .item-card .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.module-hdh .item-card .event-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.module-hdh .item-card .status-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
}
.module-hdh .item-card .action-link {
  /* 仅用于 JS 定位，不设样式 */
}
.module-hdh .item-card h3 a {
  color: inherit;
  text-decoration: none;
}
.module-hdh .item-card .detail-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

/* --- LYDT --- */
.module-lydt .hero-banner { background: linear-gradient(135deg, #0F5AB8, #1A6DD4); }
.module-lydt .filter-tab-label.active { background: var(--primary); }
.module-lydt .item-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.module-lydt .item-card .desc { font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.5; }
.module-lydt .item-card .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.module-lydt .item-card .cat-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-weight: 600;
}
.module-lydt .item-card .status {
  font-size: 11px;
  font-weight: 600;
}
.module-lydt .item-card .meta-row {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.act-photo-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.act-photo-row img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; cursor: zoom-in; }
.module-hdh .act-photo-row img { cursor: pointer; }
.module-gxq-front .act-photo-row img { cursor: pointer; }
.module-zjzt-front .act-photo-row img { cursor: pointer; }
.act-photo-more { width: 50px; height: 50px; border-radius: 6px; background: var(--bg); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; }
.module-lydt .item-card .action-link {
  /* 仅用于 JS 定位，不设样式 */
}
.module-lydt .item-card h3 a {
  color: inherit;
  text-decoration: none;
}
.module-lydt .item-card .detail-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

/* --- QYCH --- */
.module-qych .hero-banner { background: linear-gradient(135deg, #16A34A, #22C55E); }
.module-qych .filter-tab-label.active { background: var(--success); }
.module-qych .item-card .cat-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-weight: 600;
}
.module-qych .item-card .cat-tag.case { background: var(--success-light); color: var(--success); }
.module-qych .item-card .cat-tag.service { background: var(--primary-light); color: var(--primary); }
.module-qych .item-card .cat-tag.policy { background: var(--purple-light); color: var(--purple); }
.module-qych .item-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.module-qych .item-card .desc { font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.5; }
.module-qych .item-card .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.module-qych .item-card .tag-status {
  font-size: 11px;
  font-weight: 600;
}
.module-qych .item-card .action-link {
  /* 仅用于 JS 定位，不设样式 */
}
.module-qych .item-card h3 a {
  color: inherit;
  text-decoration: none;
}
.module-qych .item-card .detail-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}
.module-qych .item-card .meta-row {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.country-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--cyan-light);
  color: var(--cyan);
  margin-left: 6px;
  font-weight: 600;
}
.cta-banner {
  background: linear-gradient(135deg, var(--accent), #FF9A5C);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 14px;
}
.cta-banner > div { padding-right: 4px; }
.cta-banner.purple { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }
.cta-banner h3 { font-size: 16px; font-weight: 700; }
.cta-banner p { font-size: 12px; opacity: 0.9; margin-top: 2px; }
.cta-banner .cta-btn {
  flex-shrink: 0;
  background: rgba(255,255,255,0.25);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.cta-banner .cta-btn:active { background: rgba(255,255,255,0.4); }

.loadmore {
  text-align: center;
  padding: 16px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}
#nomore {
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: var(--text-light);
}

/* --- ZJZT --- */
.module-zjzt .hero-banner { background: linear-gradient(135deg, #B8860B, #D4AF37); }
.module-zjzt .filter-tab-label.active {
  background: linear-gradient(135deg, #D4AF37, #F5D76E);
  color: #5C3D00;
}
.module-zjzt .item-card {
  position: relative;
}
.module-zjzt .item-card .top-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFD700, #FF6B35);
  color: #fff;
  box-shadow: 0 2px 6px rgba(255,107,53,0.3);
}
.module-zjzt .item-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 5px;
  margin-bottom: 10px;
}
.module-zjzt .item-card .avatar.avt-len-1 { font-size: 25px; }
.module-zjzt .item-card .avatar.avt-len-2 { font-size: 21px; }
.module-zjzt .item-card .avatar.avt-len-3 { font-size: 15px; white-space: nowrap; }
.module-zjzt .item-card .avatar.avt-len-4 {
  flex-direction: column;
  font-size: 17px;
  line-height: 1.25;
}
.module-zjzt .item-card .avatar .avt-line {
  width: 100%;
  text-align: center;
}
.module-zjzt .item-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; line-height: 1.4; }
.module-zjzt .item-card .sub { font-size: 15px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px; }
.module-zjzt .item-card .intro {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.module-zjzt .item-card .tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.module-zjzt .item-card .mini-tag {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--gold-light);
  color: #8B6914;
}
.module-zjzt .item-card .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.module-zjzt .item-card .info { font-size: 11px; color: var(--text-muted); }
.module-zjzt .item-card .action-link {
  /* 仅用于 JS 定位，不设样式 */
}
.module-zjzt .item-card h3 a {
  color: inherit;
  text-decoration: none;
}
.module-zjzt .item-card .detail-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}

/* ===== 9. Index Page Only ===== */
.module-index .header {
  background: var(--primary);
}
.module-index .page {
  display: none;
}
.module-index .page.active { display: block; }

/* Carousel */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  height: 180px;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px 24px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.carousel-slide::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.carousel-slide .tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 1px;
  align-self: flex-start;
  flex-shrink: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.carousel-slide h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 1px;
  flex-shrink: 0;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.carousel-slide p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
  flex-shrink: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.carousel-slide .highlight {
  font-size: 13px;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.carousel-indicators {
  position: absolute;
  bottom: 12px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.carousel-indicators .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: all 0.3s;
}
.carousel-indicators .dot.active {
  background: rgba(255,255,255,0.9);
  width: 18px;
  border-radius: 3px;
}

/* Home Content */
.home-content { padding: 0 16px; }

/* Carousel value chips */
.vc-row { display:flex; gap:8px; margin:8px 0 12px; justify-content:center; position:relative; z-index:1; }
.vc-chip { background:rgba(255,255,255,0.2); backdrop-filter:blur(4px); border-radius:10px; padding:10px 12px; text-align:center; text-decoration:none; color:#fff; font-size:12px; line-height:1.4; flex:1; max-width:110px; transition:background 0.15s; }
.vc-chip:active { background:rgba(255,255,255,0.35); }

/* Module Grid */
.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 16px 0 4px;
}
.module-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.2s;
  min-width: 0;
  overflow: hidden;
}
.module-card:active { transform: scale(0.95); box-shadow: var(--shadow-md); }
.module-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 0 auto 8px;
}
.module-card h3 { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.module-card p { font-size: 13px; color: var(--text-secondary); margin-top: 2px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Roadshow Cards (首页) */
.waterfall {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.roadshow-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  cursor: pointer;
}
.roadshow-card:active { transform: scale(0.98); }
.roadshow-card .date-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-weight: 600;
}
.roadshow-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.roadshow-card .desc { font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.5; }
.roadshow-card .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.roadshow-card .status {
  font-size: 11px;
  font-weight: 600;
}
.roadshow-cta {
  margin: 4px 0 0;
}
.roadshow-cta .cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 12px;
  transition: all 0.2s;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
}
.roadshow-cta .cta-btn:active { transform: scale(0.98); opacity: 0.9; }

/* Event Cards (首页) */
.scroll-wrapper { margin: 0 -16px; padding: 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.scroll-wrapper::-webkit-scrollbar { display: none; }
.scroll-row { display: flex; gap: 12px; }
.event-card {
  flex: 0 0 220px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.event-card:active { transform: scale(0.98); }
.event-card .card-img {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255,255,255,0.5);
}
.event-card .card-body { padding: 12px; }
.event-card .card-body .date-row {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}
.event-card .card-body h3 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.event-card .card-body .loc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Showcase & Share Items (首页) */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.showcase-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
}
.showcase-card:active { transform: scale(0.98); }
.showcase-card .avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.showcase-card h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
.showcase-card .sub { font-size: 14px; color: var(--text-secondary); margin-top: 2px; }
.share-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.share-item:active { transform: scale(0.98); }
.share-item .top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.share-item .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.share-item .info { flex: 1; min-width: 0; }
.share-item .info .name { font-size: 13px; font-weight: 600; }
.share-item .info .time { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.share-item h3 { font-size: 14px; font-weight: 600; line-height: 1.4; }
.share-item .stats {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
/* Bulletin Items (首页) */
.bulletin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}
.bulletin-item:active { opacity: 0.7; }
.bulletin-item:last-child { border-bottom: none; }
.bulletin-item .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.bulletin-item .arrow { color: var(--text-muted); font-size: 14px; }

/* Message Page (首页) */
.msg-filter-tabs {
  display: flex;
  gap: 0;
  padding: 0 16px;
  margin-top: 12px;
  border-bottom: 1px solid var(--border);
}
.msg-filter-tab {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  border: none;
  background: none;
  min-height: 44px;
}
.msg-filter-tab.active { color: var(--primary); }
.msg-filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.msg-list { padding: 0 16px; }
.msg-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.msg-item:active { opacity: 0.7; }
.msg-item:last-child { border-bottom: none; }
.msg-item .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  position: relative;
}
.msg-item .avatar .dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 50%;
}
.msg-item .info { flex: 1; min-width: 0; }
.msg-item .info .top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.msg-item .info .top-row .name { font-size: 16px; font-weight: 600; }
.msg-item .info .top-row .time { font-size: 11px; color: var(--text-muted); }
.msg-item .info .preview {
  font-size: 15px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Event Cards - 首页版本（date-badge 结构） */
.module-index .event-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.module-index .event-card:active { transform: scale(0.98); }
.module-index .event-card .date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin-bottom: 10px;
  min-width: 52px;
}
.module-index .event-card .date-badge .month { font-size: 10px; opacity: 0.9; }
.module-index .event-card .date-badge .day { font-size: 20px; font-weight: 800; line-height: 1.2; }
.module-index .event-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.module-index .event-card .event-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.module-index .event-card .meta { font-size: 13px; color: var(--text-secondary); display: flex; gap: 12px; align-items: center; }
.module-index .event-card .tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary);
  margin-top: 8px;
}

/* Global Cards (首页企业出海) */
.global-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}
.global-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 12px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  cursor: pointer;
}
.global-card:active { transform: scale(0.97); }
.global-card .region-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 8px;
}
.global-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.global-card .brief { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; line-height: 1.4; }
.global-card .opportunity {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
}

/* Share Filter (首页共享圈) */
.share-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}
.share-filter-bar::-webkit-scrollbar { display: none; }
.share-filter-label {
  flex-shrink: 0;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s;
  min-height: 36px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.share-filter-label:active { transform: scale(0.96); }
#sf-all:checked ~ .share-filter-bar label[for="sf-all"],
#sf-resource:checked ~ .share-filter-bar label[for="sf-resource"],
#sf-tech:checked ~ .share-filter-bar label[for="sf-tech"],
#sf-coop:checked ~ .share-filter-bar label[for="sf-coop"],
#sf-item:checked ~ .share-filter-bar label[for="sf-item"],
#sf-project:checked ~ .share-filter-bar label[for="sf-project"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.share-item { display: block; }
#sf-resource:checked ~ .share-list .share-item:not([data-cat*="资源"]),
#sf-tech:checked ~ .share-list .share-item:not([data-cat*="技术"]),
#sf-coop:checked ~ .share-list .share-item:not([data-cat*="合作"]),
#sf-item:checked ~ .share-list .share-item:not([data-cat*="物品"]),
#sf-project:checked ~ .share-list .share-item:not([data-cat*="项目"]) { display: none; }

/* Share Item (首页) */
.share-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  cursor: pointer;
}
.share-item:active { transform: scale(0.98); }
.share-item .top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.share-item .cat-tag {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.share-item .time { font-size: 11px; color: var(--text-muted); margin-left: auto; }
.share-item h4 { font-size: 15px; font-weight: 600; line-height: 1.4; }
.share-item .author { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.share-cta { margin: 12px 0 0; }
.share-cta .cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 12px;
  transition: all 0.2s;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
}
.share-cta .cta-btn:active { transform: scale(0.98); opacity: 0.9; }

/* Showcase (首页智交展厅) */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.showcase-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}
.showcase-card:active { transform: scale(0.97); }
.showcase-card .top-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFD700, #FF6B35);
  color: #fff;
  box-shadow: 0 2px 6px rgba(255,107,53,0.3);
}
.showcase-card .avt {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 4px;
  margin-bottom: 10px;
}
.showcase-card .avt-len-1 { font-size: 20px; }
.showcase-card .avt-len-2 { font-size: 17px; }
.showcase-card .avt-len-3 { font-size: 12px; white-space: nowrap; }
.showcase-card .avt-len-4 {
  flex-direction: column;
  font-size: 14px;
  line-height: 1.3;
}
.showcase-card .avt-line {
  width: 100%;
  text-align: center;
}
.showcase-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.showcase-card .sub { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.showcase-card .tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.showcase-card .mini-tag {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary);
}
.showcase-card .badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #8B6914;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Bulletin Items (首页公告栏) */
.bulletin-list { margin-bottom: 8px; }
.bulletin-item {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  cursor: pointer;
}
.bulletin-item:active { transform: scale(0.98); }
.bulletin-item .top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.bulletin-item .cat-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.bulletin-item .cat-tag.news { background: var(--primary-light); color: var(--primary); }
.bulletin-item .cat-tag.policy { background: var(--purple-light); color: var(--purple); }
.bulletin-item .cat-tag.info { background: var(--cyan-light); color: var(--cyan); }
.bulletin-item .date { font-size: 11px; color: var(--text-muted); margin-left: auto; }
.bulletin-item h4 { font-size: 15px; font-weight: 600; line-height: 1.4; }

/* 列表卡片标题单行省略 */
.module-ggl .item-card h3,
.module-gxq .item-card h3,
.module-hdh .item-card .card-info h3,
.module-lydt .item-card h3,
.module-qych .item-card h3,
.module-zjzt .item-card h3,
.bulletin-item h4 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Messages Page (首页消息页) */
.msg-header {
  padding: 20px 16px 12px;
  font-size: 20px;
  font-weight: 700;
}
.msg-tabs {
  display: flex;
  gap: 0;
  margin: 0 16px 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 3px;
}
.msg-tab-label {
  flex: 1;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#msg-all:checked ~ .msg-tabs label[for="msg-all"],
#msg-sys:checked ~ .msg-tabs label[for="msg-sys"],
#msg-demand:checked ~ .msg-tabs label[for="msg-demand"] {
  background: var(--primary);
  color: #fff;
}
.msg-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  margin-bottom: 1px;
  align-items: flex-start;
  cursor: pointer;
}
.msg-item:active { background: var(--primary-light); }
.msg-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.msg-body { flex: 1; min-width: 0; }
.msg-body h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.msg-body p { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.msg-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 6px; }

/* Modal - 首页 */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay:target { display: flex; }
.modal-overlay:target ~ .content { display: none; }
.modal-sheet {
  background: var(--card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-sheet { max-width: 500px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 17px; font-weight: 700; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 18px;
}
.modal-body { padding: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
  min-height: 44px;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  min-height: 48px;
  cursor: pointer;
  transition: all 0.2s;
}
.submit-btn:active { opacity: 0.9; transform: scale(0.98); }

/* Modal - 列表页 */
.module-ggl .modal-overlay,
.module-gxq .modal-overlay,
.module-hdh .modal-overlay,
.module-lydt .modal-overlay,
.module-qych .modal-overlay,
.module-zjzt .modal-overlay,
.module-index .modal-overlay {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.module-ggl .modal-sheet,
.module-gxq .modal-sheet,
.module-hdh .modal-sheet,
.module-lydt .modal-sheet,
.module-qych .modal-sheet,
.module-zjzt .modal-sheet,
.module-index .modal-sheet {
  max-width: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px 20px calc(20px + var(--safe-bottom));
  animation: modalSlideUp 0.35s cubic-bezier(0.32,0.72,0,1);
}
@keyframes modalSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 0 auto 16px;
}
.modal-sheet h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  border-radius: 50%;
  background: var(--bg);
  text-decoration: none;
}
.module-lydt .submit-btn,
.module-gxq .submit-btn,
.module-zjzt .submit-btn {
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
  min-height: 44px;
}
.module-lydt .submit-btn:active,
.module-gxq .submit-btn:active,
.module-zjzt .submit-btn:active { transform: scale(0.98); opacity: 0.9; }
.module-lydt .form-group input,
.module-lydt .form-group select,
.module-lydt .form-group textarea,
.module-gxq .form-group input,
.module-gxq .form-group select,
.module-gxq .form-group textarea,
.module-zjzt .form-group input,
.module-zjzt .form-group select,
.module-zjzt .form-group textarea {
  padding: 12px 14px;
  background: var(--bg);
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.module-lydt .form-group input:focus,
.module-lydt .form-group select:focus,
.module-lydt .form-group textarea:focus,
.module-gxq .form-group input:focus,
.module-gxq .form-group select:focus,
.module-gxq .form-group textarea:focus,
.module-zjzt .form-group input:focus,
.module-zjzt .form-group select:focus,
.module-zjzt .form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  background: #fff;
}
.module-lydt .form-group textarea,
.module-gxq .form-group textarea,
.module-zjzt .form-group textarea { resize: vertical; min-height: 80px; }

/* Tab Radio Styles (首页) */
#tab-home:checked ~ .tab-bar label[for="tab-home"],
#tab-msg:checked ~ .tab-bar label[for="tab-msg"],
#tab-me:checked ~ .tab-bar label[for="tab-me"] { color: var(--primary); }
#tab-home:checked ~ .tab-bar label[for="tab-home"] svg,
#tab-msg:checked ~ .tab-bar label[for="tab-msg"] svg,
#tab-me:checked ~ .tab-bar label[for="tab-me"] svg { fill: var(--primary); stroke: var(--primary); }
#tab-home:checked ~ .content #page-home,
#tab-msg:checked ~ .content #page-msg,
#tab-me:checked ~ .content #page-me { display: block; }

/* Index section backgrounds */
.module-index section[id^="s-"] .section-header { margin-top: 0; }
.module-index .event-card { margin-bottom: 0; }

/* ===== 10. Detail Pages ===== */
.detail-section { display: none; }
.detail-section:target { display: block; }
body:has(.detail-section:target) .default-section { display: none; }

.default-section {
  padding: 60px 20px;
  text-align: center;
}
.default-section .icon { font-size: 48px; margin-bottom: 16px; }
.default-section h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.default-section p { font-size: 14px; color: var(--text-secondary); }

.detail-hero {
  margin: 0 -16px 16px;
  padding: 24px 20px 24px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.detail-hero .tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.detail-hero h1,
.detail-hero h2 { font-size: 20px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.detail-hero .meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 8px;
}
.detail-hero .sub { font-size: 13px; opacity: 0.85; line-height: 1.5; }

/* Detail hero color variants - GGL */
.hero-news, .hero-policy, .hero-info { background: linear-gradient(135deg, #06B6D4, #22D3EE); }

/* Detail hero - GXQ (single purple bg) */
.module-detail-gxq .detail-hero { background: linear-gradient(135deg, #7C3AED, #8B5CF6); }

/* Detail hero - HDH */
.hero-event { background: linear-gradient(135deg, #FF6B35, #FF9A5C); }
.hero-ended { background: linear-gradient(135deg, #6B7280, #9CA3AF); }

/* Detail hero - LYDT */
.hero-project, .hero-ma, .hero-supply { background: linear-gradient(135deg, #0F5AB8, #1A6DD4); }

/* Detail hero - QYCH */
.hero-case, .hero-service { background: linear-gradient(135deg, #16A34A, #22C55E); }

/* Detail hero - ZJZT */
.hero-company { background: linear-gradient(135deg, #B8860B, #D4AF37); }
.hero-talent { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }
.module-detail-zjzt .detail-hero .top-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFD700, #FF6B35);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,107,53,0.4);
  z-index: 2;
}

/* GXQ detail: pub-info */
.detail-hero .pub-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.detail-hero .pub-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.detail-hero .pub-avatar-link {
  flex-shrink: 0;
  display: flex;
}
.detail-hero .pub-detail .name { font-size: 14px; font-weight: 600; }
.detail-hero .pub-detail .name .pub-name-link {
  color: inherit;
  text-decoration: none;
}
.detail-hero .pub-detail .name .pub-name-link:active { opacity: 0.7; }
.detail-hero .pub-detail .time { font-size: 11px; opacity: 0.7; margin-top: 2px; }

/* ZJZT detail: badge list */
.detail-hero .badge-list {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.detail-hero .mini-badge {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.2);
}

/* Section Card */
.section-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
/* 详情页标签卡片 */
.detail-tag-card .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-tag-card .detail-tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.section-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.section-card h3 .highlight { color: var(--primary); }
.section-card p, .section-card li {
  font-size: 16px;
  line-height: 1.7;
  color: #3A3A3A;
}
.section-card ul { padding-left: 18px; }
.section-card ul li { margin-bottom: 6px; }
.section-card ul li::marker { color: var(--primary); }

/* Article Body (GGL detail) */
.article-body {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.article-body p {
  font-size: 17px;
  line-height: 1.8;
  color: #3A3A3A;
  margin-bottom: 14px;
}
.article-body h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--text);
}
.article-body h4:first-child { margin-top: 0; }
.article-body ul { padding-left: 20px; margin-bottom: 14px; }
.article-body ul li {
  font-size: 15px;
  line-height: 1.7;
  color: #3A3A3A;
  margin-bottom: 6px;
}
.article-body .highlight-box {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #3A3A3A;
}

/* Tags */
.tags-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tag-item {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-secondary);
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.info-item {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: var(--shadow);
}
.info-item .label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.info-item .value { font-size: 14px; font-weight: 700; color: var(--text); }
.info-item .value.primary { color: var(--primary); }
.info-item .value.green { color: var(--success); }
.info-item .value.orange { color: var(--accent); }
.info-item .value.purple { color: var(--purple); }
.info-item .value.cyan { color: var(--cyan); }

/* Agenda (HDH detail) */
.agenda-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.agenda-item:last-child { border-bottom: none; }
.agenda-item .time {
  flex-shrink: 0;
  width: 90px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.agenda-item .desc { font-size: 14px; line-height: 1.5; color: #3A3A3A; }

/* Gallery Grid (GXQ / ZJZT detail) */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.gallery-img {
  background: var(--bg);
  border-radius: var(--radius-sm);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* Contact Bar */
.contact-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.contact-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  cursor: pointer;
}
.contact-btn:active { transform: scale(0.98); }
.contact-btn.primary { background: var(--primary); color: #fff; }
.contact-btn.primary:active { opacity: 0.9; }
.contact-btn.outline { background: var(--card); color: var(--primary); border: 1.5px solid var(--primary); }
.contact-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.contact-btn-narrow {
  flex: 2;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  min-height: 50px;
  white-space: nowrap;
}
.contact-acts {
  display: flex;
  gap: 6px;
  flex: 3;
}
.contact-act {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 4px;
  border: 1px solid #3B82F6;
  border-radius: 8px;
  background: #fff;
  color: #3B82F6;
  cursor: pointer;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
  min-height: 50px;
}
.contact-act:active { transform: scale(0.95); }
.contact-act.liked { color: #3B82F6; border-color: #3B82F6; }
.contact-act svg { width: 18px; height: 18px; display: block; }
.contact-act.liked .ico-heart,
.contact-act.liked .ico-comment { fill: currentColor; }
.ca-icon { font-size: 18px; line-height: 1; }
.ca-label { font-size: 11px; font-weight: 500; line-height: 1; margin-top: 1px; }

/* GXQ detail: Action Bar (special) */
.detail-section .action-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  justify-content: space-around;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
}
.detail-section .action-bar .act-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: var(--text-muted);
  min-height: 44px;
  justify-content: center;
}
.detail-section .action-bar .act-item .num { font-size: 16px; font-weight: 700; color: var(--text); }

/* ===== Dialog ===== */
.dialog-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:200; display:flex; align-items:center; justify-content:center; animation:overlayIn 0.2s ease-out; }
.dialog-box { background:#fff; border-radius:16px; padding:28px 24px; width:280px; text-align:center; animation:dialogIn 0.2s ease-out; }
@keyframes overlayIn { from{opacity:0} to{opacity:1} }
@keyframes dialogIn { from{opacity:0;transform:scale(0.85)} to{opacity:1;transform:scale(1)} }
.dialog-text { font-size:15px; color:var(--text); line-height:1.6; margin-bottom:24px; }
.dialog-actions { display:flex; gap:12px; }
.dialog-btn { flex:1; padding:12px; border:none; border-radius:var(--radius-sm); font-size:15px; font-weight:600; min-height:44px; cursor:pointer; transition:all 0.2s; }
.dialog-btn:active { opacity:0.85; }
.dialog-btn.cancel { background:var(--bg); color:var(--text-secondary); }
.dialog-btn.confirm { background:var(--primary); color:#fff; }

/* ===== 11. Publish Form ===== */
.publish-form {
  padding-top: 12px;
}

.publish-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 16px 6px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.publish-card .card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.field-group {
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  cursor: default;
}

.publish-input {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--bg);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  min-height: 48px;
  transition: background 0.2s;
}
.publish-input:focus {
  background: #fff;
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.publish-input[type="date"]::-webkit-calendar-picker-indicator,
.publish-input[type="time"]::-webkit-calendar-picker-indicator {
  padding: 10px;
  margin: -10px;
  cursor: pointer;
}

.publish-textarea {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--bg);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  resize: vertical;
  min-height: 100px;
  transition: background 0.2s;
}
.publish-textarea:focus {
  background: #fff;
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.publish-select {
  width: 100%;
  padding: 0 40px 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.publish-select:focus {
  border-color: var(--primary);
  outline: none;
}

.sec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}
.sec-tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.15s;
}
.sec-tag:active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.location-row {
  display: flex;
  gap: 10px;
}
.location-row .publish-select { flex: 1; }

.publish-submit {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), #3B8BDB);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  min-height: 52px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(26,109,212,0.3);
  margin-top: 4px;
}
.publish-submit:active { transform: scale(0.98); opacity: 0.9; }

.publish-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ===== 智交展厅发布 ===== */
.tag-group { margin-bottom: 4px; }
.tag-group-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.tag-options { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  transition: all 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.tag-option:active { transform: scale(0.96); }
.tag-option.selected { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.tag-option input { display: none; }

.tag-custom-area { margin-top: 8px; }
.tag-custom-input-row { display: flex; gap: 8px; }
.tag-custom-input-row .publish-input { flex: 1; }
.tag-add-btn {
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.tag-add-btn:active { opacity: 0.8; }

.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; min-height: 30px; }
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  background: var(--primary-light);
  color: var(--primary);
}
.tag-chip .tag-remove {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: 0.6;
}
.tag-chip .tag-remove:hover { opacity: 1; }

.field-row { display: flex; gap: 8px; }
.field-row .field-group { flex: 1; }

/* 自定义信息网格 builder */
.info-builder { display: flex; flex-direction: column; gap: 0; }
.info-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.info-row .publish-input { flex: 1; min-width: 0; }
.info-key-input { background: #F9FAFB; color: #6B7280; }
.info-key-input::placeholder { color: #D1D5DB; }
.info-val-input { background: #FFFFFF; border: 1px solid #E5E7EB; }
.info-val-input::placeholder { color: #D1D5DB; }
.info-row .info-rm-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-row .info-rm-btn:active { opacity: 0.7; }
.info-add-row { margin-top: 4px; }
.info-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
}
.info-add-btn:active { background: var(--bg); }

.opt-group { margin: 0; }
.opt-group-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }

.form-section-hidden { display: none; }
.required { color: var(--accent); }

/* ===== 12. Floating Menu ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: transparent;
}
.menu-popup {
  display: none;
  position: fixed;
  z-index: 301;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 6px 0;
  min-width: 140px;
  animation: menuIn 0.15s ease-out;
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text);
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
}
.menu-item:active { background: var(--bg); }
.menu-item .check {
  margin-left: auto;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
}

/* ===== GXQ Detail: Action Bar ===== */
.gxq-action-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  justify-content: space-around;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
}
.gxq-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 16px;
  color: var(--text-muted);
  min-height: 44px;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
  padding: 0 20px;
}
.gxq-act:active { transform: scale(0.92); }
.gxq-act .gxq-act-label { font-size: 12px; }
.gxq-act svg { width: 18px; height: 18px; display: inline; vertical-align: middle; }
.gxq-act.liked { color: #3B82F6; }
.gxq-act.liked .gxq-act-label { color: #3B82F6; }
.gxq-act.liked .ico-heart { fill: currentColor; }

/* ===== GXQ Detail: Comment Section ===== */
.gxq-comment-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.gxq-comment-header {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.gxq-comment-header .gxq-comment-total { color: var(--text-muted); font-weight: 400; }

.gxq-comment-item {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  scroll-margin-top: 70px;
}
.gxq-comment-item:last-child { margin-bottom: 0; }

.gxq-comment-item.highlight-pulse,
.gxq-reply-item.highlight-pulse {
  animation: highlightFade 2s ease-out;
}

@keyframes highlightFade {
  0% { background-color: rgba(255, 200, 50, 0.35); border-radius: 8px; }
  100% { background-color: transparent; }
}

.comment-empty {
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.comment-load-more {
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
}
.comment-load-more:active { opacity: 0.7; }
.comment-load-more.loading {
  opacity: 0.5;
  pointer-events: none;
}
.comment-load-more.loading::after {
  content: ' ⟳';
  display: inline-block;
  animation: gxq-spin 0.8s linear infinite;
}

.gxq-reply-more {
  text-align: left;
  padding: 8px 0 8px 32px;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
}
.gxq-reply-more:active { opacity: 0.7; }
.gxq-reply-more.loading {
  opacity: 0.5;
  pointer-events: none;
}
.gxq-reply-more.loading::after {
  content: ' ⟳';
  display: inline-block;
  animation: gxq-spin 0.8s linear infinite;
}

.gxq-reply-toggle.loading {
  opacity: 0.5;
  pointer-events: none;
}
.gxq-reply-toggle.loading::after {
  content: ' ⟳';
  display: inline-block;
  animation: gxq-spin 0.8s linear infinite;
}

@keyframes gxq-spin {
  to { transform: rotate(360deg); }
}

.gxq-reply-list {
  animation: gxq-fadeSlideIn 0.3s ease;
}
@keyframes gxq-fadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.gxq-cmt-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.gxq-cmt-avatar.sm { width: 24px; height: 24px; font-size: 11px; }
.gxq-cmt-avatar-link {
  flex-shrink: 0;
  display: flex;
}
.gxq-cmt-author-link {
  color: inherit;
  text-decoration: none;
}
.gxq-cmt-author-link:active { opacity: 0.7; }

.gxq-cmt-body { flex: 1; min-width: 0; }

.gxq-cmt-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.gxq-cmt-author .gxq-reply-to {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11px;
}

.gxq-cmt-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 3px;
  word-break: break-word;
}

.gxq-cmt-meta {
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: var(--text-muted);
}
.gxq-cmt-meta .gxq-cmt-reply {
  cursor: pointer;
  color: #777777;
}
.gxq-cmt-meta .gxq-cmt-reply:active { color: var(--primary); }

.gxq-reply-toggle {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 6px;
  cursor: pointer;
}
.gxq-reply-toggle:active { opacity: 0.7; }
.gxq-reply-toggle.opened span { display: inline; }
.gxq-reply-toggle.opened span::after { content: ' ▾'; }

.gxq-reply-list {
  display: none;
  margin-top: 10px;
  border-left: 2px solid var(--border);
  padding-left: 12px;
}

.gxq-reply-item {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  scroll-margin-top: 70px;
}
.gxq-reply-item:last-child { margin-bottom: 0; }

/* ===== GXQ Comment Overlay ===== */
.comment-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s, visibility 0.25s;
}
.comment-overlay.show {
  visibility: visible;
  opacity: 1;
}
.comment-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.25s;
}
.comment-overlay.show .comment-overlay-bg {
  opacity: 1;
}
.comment-overlay-box {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-radius: 12px 12px 0 0;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  margin-bottom: 64px;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}
.comment-overlay.show .comment-overlay-box {
  transform: translateY(0);
}
.comment-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.comment-overlay-title {
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}
.comment-overlay-close {
  cursor: pointer;
  color: #9CA3AF;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
}
.comment-overlay-close:active { color: #EF4444; }
.comment-overlay-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  resize: none;
  outline: none;
  font-family: inherit;
  min-height: 60px;
}
.comment-overlay-input:focus { border-color: #3B82F6; }
.comment-overlay-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.comment-overlay-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}
.cube-btn-secondary {
  background: #F3F4F6;
  color: #374151;
}

/* ===== 通用弹框载入页面 ===== */
.page-dialog-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  visibility: hidden; opacity: 0;
  transition: opacity 0.25s, visibility 0.25s;
}
.page-dialog-overlay.show {
  visibility: visible; opacity: 1;
}
.page-dialog-bg {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4); transition: opacity 0.25s;
}
.page-dialog-box {
  position: relative;
  width: 100%; max-width: 100%;
  background: #fff; border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
  margin-bottom: 64px;
  overflow-y: auto;
  max-height: 90vh;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}
.page-dialog-overlay.show .page-dialog-box {
  transform: translateY(0);
}
.page-dialog-close {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: #F3F4F6; color: #6B7280;
  border-radius: 50%; font-size: 14px; cursor: pointer; border: none;
}
.page-dialog-close:active { background: #E5E7EB; }
.page-dialog-body { padding: 24px 20px; padding-top: 44px; }
.cube-btn-primary {
  background: #3B82F6;
  color: #fff;
}

.stretched-link {
  color: inherit;
  text-decoration: none;
}
.stretched-link::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.module-index .roadshow-card,
.module-index .event-card,
.module-index .global-card,
.module-index .share-item,
.module-index .showcase-card,
.module-index .bulletin-item {
  position: relative;
}

.share-author-link {
  position: relative;
  z-index: 2;
  color: inherit;
  text-decoration: none;
}
.share-author-link:active { opacity: 0.7; }

/* ===== 11. Message Pages ===== */
.msg-list-wrap { padding: 0 16px 8px; }
.message-item {
  display: flex; gap: 12px; padding: 20px 50px 20px 16px;
  background: var(--card); border-radius: var(--radius);
  margin-bottom: 8px; cursor: pointer; transition: all 0.15s;
  position: relative;
}
.message-item:active { background: var(--primary-light); transform: scale(0.99); }
.message-item.selected { background: var(--primary-light); }
.msg-check {
  width: 14px; height: 14px;
  accent-color: var(--primary); cursor: pointer; margin: 0;
}
.msg-check-wrap {
  display: flex; align-items: center;
  margin-top: 3px; flex-shrink: 0; cursor: pointer;
  position: relative;
}
.msg-check-wrap::before {
  content: '';
  position: absolute;
  top: -5px; left: -8px;
  right: -8px; bottom: -5px;
}
.batch-bar {
  display: none; position: fixed;
  bottom: calc(var(--tab-height) + var(--safe-bottom));
  left: 0; right: 0; padding: 8px 12px;
  background: var(--card); border-top: 1px solid var(--border);
  gap: 8px; align-items: center; z-index: 100;
  justify-content: space-between; flex-wrap: wrap;
}
.batch-bar.active { display: flex; }
.batch-select-all { display: flex; align-items: center; gap: 5px; font-size: 12px; cursor: pointer; min-height: 32px; white-space: nowrap; }
.batch-btn {
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 16px;
  background: var(--card); font-size: 12px; cursor: pointer; color: var(--text);
  white-space: nowrap;
}
.batch-btn:active { opacity: 0.7; }
.batch-danger { color: var(--accent); border-color: var(--accent); }
.batch-actions { display: flex; gap: 6px; justify-content: flex-end; min-width: 0; flex-wrap: wrap; }
.message-icon {
  width: 44px; height: 44px; border-radius: 50%;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.message-icon.sys { background: var(--primary-light); }
.message-icon.interact { background: var(--accent-light); }
.message-body { flex: 1; min-width: 0; }
.message-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.message-title {
  font-size: 15px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.message-title.unread { font-weight: 700; }
.message-time {
  font-size: 11px; color: var(--text-muted); flex-shrink: 0; margin-left: auto;
}
.message-preview {
  font-size: 13px; color: var(--text-secondary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; white-space: normal;
}
.unread-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
  position: absolute; top: 17px; right: 16px;
}
.unread-dot::before {
  content: '';
  position: absolute;
  top: -8px; left: -8px;
  right: -8px; bottom: -8px;
}
.unread-dot.interact { background: var(--accent); }
.unread-dot.removing {
  animation: dot-burst 0.35s ease-out forwards;
  pointer-events: none;
}
@keyframes dot-burst {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
.msg-more-abs {
  position: absolute; bottom: 12px; right: 12px;
  line-height: 1; z-index: 1;
}

/* Message filter bar */
.filter-bar {
  display: flex; gap: 0;
  margin: 12px 16px 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 3px;
}
.filter-label {
  flex: 1; text-align: center; padding: 9px 0;
  font-size: 15px; font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.25s;
  min-height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.filter-label.active { background: var(--primary); color: #fff; }

/* Conversation page */
body.conv-page { padding-top: 0; padding-bottom: 0; }
body.conv-page .app-shell { height: 100vh; height: 100dvh; overflow: hidden; }
body.conv-page .header { position: static; z-index: auto; }
.conv-body {
  flex: 1; overflow-y: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.conv-date-divider {
  text-align: center; font-size: 11px;
  color: var(--text-muted); padding: 4px 0;
}
.conv-msg {
  max-width: 80%; padding: 10px 14px;
  border-radius: 12px; font-size: 16px;
  line-height: 1.5; word-break: break-word;
}
.conv-msg.left {
  align-self: flex-start; background: var(--card);
  border-bottom-left-radius: 4px;
}
.conv-msg.right {
  align-self: flex-end; background: var(--primary);
  color: #fff; border-bottom-right-radius: 4px;
}
.conv-msg-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.conv-msg.right .conv-msg-time { color: rgba(255,255,255,0.7); text-align: right; }
.conv-input-bar {
  display: flex; gap: 8px;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
  background: var(--card);
  border-top: 1px solid var(--border);
  flex-shrink: 0; align-items: flex-end;
}
.conv-input {
  flex: 1; border: 1px solid var(--border);
  border-radius: 20px; padding: 10px 14px;
  font-size: 14px; outline: none; resize: none;
  max-height: 80px; font-family: inherit; line-height: 1.4;
}
.conv-input:focus { border-color: var(--primary); }
.conv-send {
  width: 40px; height: 40px;
  border: none; background: var(--primary); border-radius: 50%;
  color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.conv-send:active { opacity: 0.8; }
.conv-send:disabled { background: var(--border); color: var(--text-muted); }
.conv-send.btn-loading { color: transparent; pointer-events: none; position: relative; }
.conv-send.btn-loading::after {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  top: 50%; left: 50%; margin: -11px 0 0 -11px;
}
.conv-empty {
  text-align: center; padding: 40px; color: var(--text-muted); font-size: 13px;
}
.conv-loadmore-top {
  text-align: center; padding: 10px; font-size: 12px;
  color: var(--primary); cursor: pointer; flex-shrink: 0;
}
.conv-loadmore-top:active { opacity: 0.6; }

/* ===== 通用提交按钮加载动画 ===== */
.btn-loading { pointer-events: none; opacity: 0.8; cursor: not-allowed; }
.btn-loading::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 6px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* 照片选择/展示网格（发布页、详情页共用） */
.photo-zone { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photo-thumb { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; background: var(--bg); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.photo-del { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.55); color: #fff; font-size: 11px; border-radius: 6px; padding: 2px 5px; display: flex; align-items: center; gap: 3px; }
.photo-del input { margin: 0; }
.photo-rm { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; background: rgba(0,0,0,0.55); color: #fff; border: 0; border-radius: 50%; font-size: 12px; line-height: 1; cursor: pointer; }
.photo-add-btn { width: 84px; height: 84px; border: 1px dashed #ccc; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #999; cursor: pointer; }
.photo-add-btn:active { background: var(--bg); }
.photo-tip { margin-top: 8px; padding: 10px 14px; background: #FFF3E0; border-radius: 8px; color: #FF6B35; font-size: 13px; }
.photo-field-divider { border-top: 1px solid var(--border); margin: 2px 0 16px; }

.photo-card-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }
.photo-card-grid img { max-width: 100%; width: auto; height: auto; border-radius: 8px; display: block; justify-self: center; }
.photo-card-grid-3 { display: grid; grid-template-columns: repeat(3, 100px); gap: 8px; margin-top: 10px; justify-content: center; }
.photo-card-grid-3 img { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; display: block; cursor: zoom-in; }
.photo-card-empty { color: var(--text-muted); font-size: 13px; margin-top: 8px; }
.photo-view-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.photo-view-overlay img { max-width: 95%; max-height: 95%; border-radius: 6px; }

/* ===== 通用上传遮罩 ===== */
.upload-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; animation: overlayIn 0.2s ease-out; }
.upload-spinner { width: 44px; height: 44px; border: 4px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: uploadSpin 0.8s linear infinite; }
.upload-text { color: #fff; margin-top: 14px; font-size: 15px; letter-spacing: 1px; }
@keyframes uploadSpin { to { transform: rotate(360deg); } }
#photos { scroll-margin-top: 70px; }
