/* ========== 茶百道专用字体 ========== */
@font-face { font-family: 'MuYao'; src: url('/static/fonts/muyao.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'FZLanTing'; src: url('/static/fonts/FZLanTing.ttf') format('truetype'); font-display: swap; }

/* ========== 发现页样式 v2 ========== */
.discovery-page { padding-bottom: 70px; background: var(--bg); }

/* 顶部头 */
.disc-header {
  background: linear-gradient(135deg, var(--p) 0%, var(--pl) 100%);
  padding: 16px 16px 14px;
}
.disc-header-inner { display: flex; align-items: baseline; gap: 8px; }
.disc-title { font-size: 20px; font-weight: 700; color: #fff; }
.disc-subtitle { font-size: 12px; color: rgba(255,255,255,0.85); }

.disc-body { padding: 12px 12px 0; }

/* ===== 非饮食横向滑动栏 ===== */
.nf-section { margin-bottom: 14px; }
.nf-section-title {
  font-size: 15px; font-weight: 600; color: #333;
  margin-bottom: 10px; padding-left: 2px;
}
.nf-scroll {
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.nf-track {
  display: flex; gap: 10px;
  will-change: transform;
}
.nf-card {
  flex-shrink: 0; width: 140px;
  background: #fff; border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  cursor: pointer;
  transition: transform 0.15s;
}
.nf-card:active { transform: scale(0.96); }
.nf-card-img {
  position: relative; width: 100%; height: 90px;
  overflow: hidden; background: #eee;
}
.nf-card-img .carousel-image {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.nf-card-badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 3px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff; font-size: 11px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nf-card-body { padding: 8px 8px 10px; }
.nf-card-name {
  font-size: 13px; font-weight: 600; color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nf-card-sub {
  font-size: 11px; color: #888; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== 饮食广告紧凑卡片 ===== */
.fd-section-title {
  font-size: 15px; font-weight: 600; color: #333;
  margin-bottom: 10px; padding-left: 2px;
}
.fd-card {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 10px;
  padding: 10px; margin-bottom: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.fd-card:active {
  transform: scale(0.98);
  box-shadow: 0 0 3px rgba(0,0,0,0.1);
}
.fd-card-left { flex-shrink: 0; }
.fd-logo {
  width: 44px; height: 44px; border-radius: 10px;
  object-fit: cover; background: #f0f0f0; display: block;
}
.fd-card-center { flex: 1; min-width: 0; }
.fd-name {
  font-size: 15px; font-weight: 600; color: #222;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fd-desc {
  font-size: 12px; color: #888; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fd-bottom { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.fd-price { font-size: 16px; font-weight: 700; color: var(--p); }
.fd-orig { font-size: 11px; color: #bbb; text-decoration: line-through; }
.fd-tag {
  font-size: 10px; color: #fff; padding: 1px 5px;
  background: linear-gradient(135deg,var(--p),var(--pl));
  border-radius: 3px; white-space: nowrap;
}
.fd-card-right { flex-shrink: 0; text-align: center; }
.fd-thumb {
  width: 64px; height: 52px; border-radius: 8px;
  object-fit: cover; background: #f0f0f0; display: block;
}

/* ===== 加载和空状态 ===== */
.loading-ads, .empty-ads {
  text-align: center; padding: 40px 20px; color: #aaa;
}
.loading-spinner {
  width: 32px; height: 32px; margin: 0 auto 10px;
  border: 3px solid #f0f0f0; border-top: 3px solid var(--p);
  border-radius: 50%; animation: disc-spin 0.8s linear infinite;
}
@keyframes disc-spin {
  to { transform: rotate(360deg); }
}
.empty-icon { font-size: 40px; margin-bottom: 8px; }

/* ===== 弹窗通用 ===== */
.ad-modal-mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: flex-end;
  z-index: 9999;
  animation: disc-fade 0.2s;
}
@keyframes disc-fade { from{opacity:0} to{opacity:1} }
@keyframes disc-slideUp { from{transform:translateY(100%)} to{transform:translateY(0)} }

.ad-modal-close {
  width: 28px; height: 28px; border: none;
  background: #f0f0f0; border-radius: 50%;
  font-size: 15px; color: #666; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; flex-shrink: 0;
}
.ad-modal-close:active { background: #ddd; }

/* ===== 饮食菜单弹窗 ===== */
.ad-menu-modal {
  width: 100%; max-height: 82vh;
  background: #fff; border-radius: 16px 16px 0 0;
  display: flex; flex-direction: column;
  animation: disc-slideUp 0.25s;
}
.ad-menu-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.ad-menu-header h3 { margin: 0; font-size: 17px; font-weight: 700; color: #222; flex: 1; }
.ad-menu-header-meta {
  display: flex; gap: 10px; font-size: 11px; color: #999;
}
.ad-menu-content { flex: 1; overflow-y: auto; padding: 12px 16px; }

.menu-category { margin-bottom: 18px; }
.category-name {
  margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #333;
  padding-bottom: 6px; border-bottom: 2px solid var(--p);
}
.menu-items { display: flex; flex-direction: column; gap: 8px; }
.menu-item {
  display: flex; gap: 10px; padding: 8px;
  background: #fafafa; border-radius: 8px;
}
.menu-item-image {
  width: 56px; height: 56px; border-radius: 6px;
  object-fit: cover; flex-shrink: 0; background: #eee;
}
.menu-item-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.menu-item-info h5 { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: #333; }
.item-description { margin: 0; font-size: 11px; color: #aaa; }
.item-price { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.item-price .current-price { font-size: 15px; font-weight: 700; color: var(--p); }
.item-price .original-price { font-size: 11px; color: #bbb; text-decoration: line-through; }

/* ===== 非饮食详情弹窗 ===== */
.ad-detail-modal {
  width: 100%; max-height: 82vh;
  background: #fff; border-radius: 16px 16px 0 0;
  display: flex; flex-direction: column;
  animation: disc-slideUp 0.25s;
}
.ad-detail-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.ad-detail-header h3 { margin: 0; font-size: 17px; font-weight: 700; color: #222; }
.ad-detail-content { flex: 1; overflow-y: auto; }

.detail-carousel { position: relative; }
.detail-carousel-wrapper {
  width: 100%; height: 200px; position: relative;
  overflow: hidden; background: #eee;
}
.detail-carousel-image { width: 100%; height: 100%; object-fit: cover; }
.detail-carousel-indicators {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.detail-carousel-indicators .indicator {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.45); cursor: pointer; transition: all 0.25s;
}
.detail-carousel-indicators .indicator.active {
  width: 20px; border-radius: 3.5px; background: #fff;
}

.detail-info { padding: 16px; }
.detail-info h4 { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: #222; }
.detail-meta {
  margin-bottom: 14px; padding: 10px 12px;
  background: #f8f8f8; border-radius: 8px;
}
.detail-meta p { margin: 4px 0; font-size: 13px; color: #666; }
.detail-offers h5 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #333; }
.detail-offers ul { margin: 0; padding-left: 18px; }
.detail-offers li { margin: 5px 0; font-size: 13px; color: #555; line-height: 1.5; }

/* ===== 登录页广告 ===== */
.login-ad {
  margin-top: 16px; padding: 10px 12px;
  background: linear-gradient(135deg, var(--bg), #fff);
  border: 1.5px solid var(--border); border-radius: 12px;
  cursor: pointer; transition: transform 0.15s;
  overflow: hidden;
}
.login-ad:active { transform: scale(0.97); }
.login-ad-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.login-ad-label { font-size: 12px; font-weight: 600; color: var(--p); }
.login-ad-tag {
  font-size: 10px; color: #fff; padding: 1px 6px;
  background: linear-gradient(135deg, var(--p), var(--pl));
  border-radius: 8px;
}
.login-ad-body { display: flex; align-items: center; gap: 10px; }
.login-ad-logo {
  width: 36px; height: 36px; border-radius: 8px;
  object-fit: cover; background: #e0e0e0; flex-shrink: 0;
}
.login-ad-text { flex: 1; min-width: 0; }
.login-ad-name {
  font-size: 13px; font-weight: 600; color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.login-ad-desc {
  font-size: 11px; color: #888; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.login-ad-arrow { font-size: 18px; color: #bbb; flex-shrink: 0; }

/* ===== 今日页广告 ===== */
.today-ad {
  margin: 12px 16px 8px; cursor: pointer;
  transition: transform 0.15s;
}
.today-ad:active { transform: scale(0.97); }
.today-ad-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #FFF8F0, #FFF3E8);
  border: 1.5px dashed #FFD4B0; border-radius: 12px;
}
.today-ad-icon { font-size: 24px; flex-shrink: 0; }
.today-ad-content { flex: 1; min-width: 0; }
.today-ad-title { font-size: 13px; font-weight: 600; color: var(--p); }
.today-ad-info {
  display: flex; align-items: center; gap: 6px;
  margin-top: 2px; flex-wrap: wrap;
}
.today-ad-name { font-size: 12px; color: #666; }
.today-ad-price { font-size: 13px; font-weight: 700; color: var(--p); }
.today-ad-tag {
  font-size: 10px; color: #fff; padding: 1px 5px;
  background: linear-gradient(135deg, var(--p), var(--pl));
  border-radius: 3px;
}
.today-ad-go {
  font-size: 12px; font-weight: 500; color: var(--p);
  white-space: nowrap; flex-shrink: 0;
}

/* ===== 广告轮换动画 ===== */
.ad-pop-in { animation: adPopIn 0.35s cubic-bezier(0.34,1.56,0.64,1); }
.ad-fade-out { animation: adFadeOut 0.25s ease forwards; }
.ad-slide-in { animation: adSlideIn 0.4s cubic-bezier(0.25,0.46,0.45,0.94); }
.ad-slide-out { animation: adSlideOut 0.3s ease forwards; }

@keyframes adPopIn {
  0% { opacity: 0; transform: scale(0.85); }
  60% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes adFadeOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.92); }
}
@keyframes adSlideIn {
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes adSlideOut {
  0% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(-40px); }
}

/* ===== 广告小圆点指示器 ===== */
.login-ad-wrap, .today-ad-wrap, .community-wrap { position: relative; }
.ad-dots {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; padding: 6px 0 2px;
}
.ad-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #d0d0d0; cursor: pointer;
  transition: all 0.3s ease;
}
.ad-dot.active {
  width: 16px; border-radius: 3px;
  background: var(--p, #FF6B35);
}

/* ===== 微信社群入口卡片 ===== */
.community-card {
  background: linear-gradient(135deg, #FF6B35 0%, #FF9A5C 50%, #FFD4A8 100%);
  border-radius: 12px; padding: 0; margin-bottom: 14px;
  cursor: pointer; transition: transform 0.15s;
  overflow: hidden; position: relative;
}
.community-card:active { transform: scale(0.97); }
.community-card-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px 0;
}
.community-badge {
  font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 10px;
}
.community-arrow2 { font-size: 11px; color: rgba(255,255,255,0.85); }
.community-card-main {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px;
}
.community-icon2 { font-size: 32px; flex-shrink: 0; }
.community-card .community-text { flex: 1; min-width: 0; }
.community-card .community-title {
  font-size: clamp(12px, 4vw, 15px); font-weight: 700; color: #fff;
  word-break: break-word; line-height: 1.3;
}
.community-card .community-sub {
  font-size: 11px; color: rgba(255,255,255,0.9); margin-top: 1px;
}
.community-card-benefits {
  display: flex; gap: 6px; padding: 6px 12px 10px;
  overflow-x: auto; white-space: nowrap;
}
.community-bf {
  font-size: 10px; color: #fff; background: rgba(0,0,0,0.15);
  padding: 2px 8px; border-radius: 8px; flex-shrink: 0;
}

/* ===== 社群弹窗 ===== */
.community-modal {
  width: 100%; max-height: 90vh; background: #fff;
  border-radius: 16px 16px 0 0; display: flex; flex-direction: column;
  animation: disc-slideUp 0.25s;
}
.community-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
  background: linear-gradient(135deg, #FF6B35, #FF9A5C); color: #fff;
  border-radius: 16px 16px 0 0;
}
.community-modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.community-modal-head .ad-modal-close { background: rgba(255,255,255,0.25); color: #fff; }
.community-modal-body { flex: 1; overflow-y: auto; padding: 14px 16px 20px; }

.cm-subtitle {
  text-align: center; font-size: 13px; font-weight: 600;
  color: #FF6B35; margin-bottom: 12px;
  padding: 6px 0; border-bottom: 1px dashed #ffe0cc;
}
.cm-benefit {
  background: #FFF8F2; border-radius: 10px; padding: 10px 12px;
  margin-bottom: 8px; border-left: 3px solid #FF6B35;
}
.cm-bf-head { font-size: 14px; font-weight: 700; color: #C85A24; }
.cm-bf-icon { font-size: 16px; }
.cm-bf-desc { font-size: 12px; color: #666; margin-top: 4px; line-height: 1.6; }
.cm-bf-note { font-size: 10px; color: #aaa; margin-top: 3px; font-style: italic; }

.cm-countdown {
  background: linear-gradient(135deg, #FFF0E6, #FFE8D6);
  border-radius: 10px; padding: 10px 14px; margin: 10px 0;
  font-size: 13px; font-weight: 600; color: #C85A24;
  text-align: center; line-height: 1.8;
}

.cm-qr-box { text-align: center; margin-top: 12px; }
.cm-qr-img {
  width: 240px; height: 240px; border-radius: 12px;
  object-fit: contain; background: #fff; margin: 0 auto 10px; display: block;
  border: 2px solid #f0f0f0;
}
.cm-qr-hint {
  font-size: 13px; font-weight: 600; color: #07C160;
  padding: 8px 0; background: #f0fff6; border-radius: 8px;
}

/* ===== 今日页社群横幅 ===== */
.today-community {
  margin: 12px 16px 6px; cursor: pointer;
  transition: transform 0.15s;
}
.today-community:active { transform: scale(0.97); }
.tc-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #FF6B35 0%, #FF4E50 40%, #F9D423 100%);
  border-radius: 12px; position: relative; overflow: hidden;
}
.tc-inner::before {
  content: ''; position: absolute; top: -50%; right: -30%;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.tc-left { position: relative; flex-shrink: 0; }
.tc-emoji { font-size: 30px; position: relative; z-index: 1; }
.tc-pulse {
  position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%,-50%);
  animation: tcPulse 2s ease-in-out infinite;
}
@keyframes tcPulse {
  0%,100% { transform: translate(-50%,-50%) scale(0.8); opacity: 0.5; }
  50% { transform: translate(-50%,-50%) scale(1.4); opacity: 0; }
}
.tc-content { flex: 1; min-width: 0; }
.tc-title {
  font-size: 13px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-benefits {
  display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap;
}
.tc-tag {
  font-size: 9px; color: #fff; background: rgba(0,0,0,0.2);
  padding: 1px 6px; border-radius: 6px; white-space: nowrap;
}
.tc-action { flex-shrink: 0; }
.tc-btn {
  background: #fff; color: #FF4E50;
  font-size: 11px; font-weight: 700; text-align: center;
  padding: 6px 10px; border-radius: 8px;
  line-height: 1.3;
  animation: tcShake 3s ease-in-out infinite;
}
@keyframes tcShake {
  0%,85%,100% { transform: rotate(0); }
  88% { transform: rotate(-3deg); }
  91% { transform: rotate(3deg); }
  94% { transform: rotate(-2deg); }
  97% { transform: rotate(2deg); }
}

/* ===== 登录页社群入口 ===== */
.login-community {
  margin-top: 14px; border-radius: 12px; cursor: pointer;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FF6B35 0%, #FF4E50 50%, #F9D423 100%);
  transition: transform 0.15s;
}
.login-community:active { transform: scale(0.97); }
.lc-shine {
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: lcShine 3s ease-in-out infinite;
}
@keyframes lcShine {
  0% { left: -100%; }
  50% { left: 150%; }
  100% { left: 150%; }
}
.lc-body {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; position: relative; z-index: 1;
}
.lc-left { position: relative; flex-shrink: 0; }
.lc-emoji { font-size: 28px; }
.lc-fire {
  position: absolute; top: -6px; right: -8px; font-size: 14px;
  animation: lcBounce 1s ease-in-out infinite;
}
@keyframes lcBounce {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.15); }
}
.lc-info { flex: 1; min-width: 0; }
.lc-title {
  font-size: 13px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lc-sub { font-size: 11px; color: rgba(255,255,255,0.9); margin-top: 1px; }
.lc-go {
  background: #fff; color: #FF4E50;
  font-size: 11px; font-weight: 700; text-align: center;
  padding: 5px 10px; border-radius: 8px; line-height: 1.3;
  flex-shrink: 0; white-space: nowrap;
}

/* ===== 统计切换卡片（三层淡入淡出） ===== */
.stats-flip-wrap {
  cursor: pointer;
}
.stats-flip-box {
  position: relative;
}
.stats-face-0, .stats-face-1, .stats-face-2, .stats-face-3 {
  display: block;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0; transform: scale(0.9);
}
.stats-flip-box.flip-0 .stats-face-0,
.stats-flip-box.flip-1 .stats-face-1,
.stats-flip-box.flip-2 .stats-face-2,
.stats-flip-box.flip-3 .stats-face-3 { opacity: 1; transform: scale(1); }

.stats-face-1, .stats-face-2, .stats-face-3 {
  position: absolute; top: 0; left: 0; right: 0;
}

/* ===== 响应式 ===== */
@media (min-width: 768px) {
  .disc-body { max-width: 600px; margin: 0 auto; }
  .ad-menu-modal, .ad-detail-modal { max-width: 600px; margin: 0 auto; }
}

/* ===== 茶百道蓝白主题：发现页大卡片 (图1) ===== */
.theme-chapanda.community-card {
  background: linear-gradient(135deg, #429DE2 0%, #68B4EF 100%);
  border: none; padding: 0;
  position: relative; overflow: hidden;
  font-family: 'FZLanTing', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
.theme-chapanda.community-card::before {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cpd1-card {
  display: flex; align-items: center;
  padding: 16px 14px; gap: 12px; position: relative; z-index: 1;
}
.cpd1-left { flex-shrink: 0; }
.cpd1-icon-box {
  width: 60px; height: 60px;
  background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; /* 确保图片被裁剪成完美圆形 */
  box-shadow: 0 4px 12px rgba(26,117,192,0.15);
  padding: 2px;
}
.cpd1-icon-box img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 50%;
  transform: scale(1.1); /* 稍微放大一点让logo更居中显眼 */
}
.cpd1-center { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cpd1-title {
  font-family: 'FZLanTing', sans-serif !important;
  font-size: clamp(13px, 4vw, 17px); font-weight: 700; color: #fff;
  word-break: break-word; line-height: 1.3;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.cpd1-sub {
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 11px; color: rgba(255,255,255,0.9);
  line-height: 1.3; margin-top: -2px;
}
.cpd1-benefits { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.cpd1-bf {
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 12px; color: #fff;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px; border-radius: 12px;
}
.cpd1-right { flex-shrink: 0; }
.cpd1-btn {
  background: #fff; color: #429DE2;
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 14px; font-weight: 700;
  text-align: center; line-height: 1.3;
  padding: 10px 14px; border-radius: 12px;
  box-shadow: 0 4px 10px rgba(26,117,192,0.15);
}

/* ===== 茶百道蓝白主题：横幅 (图2样式) ===== */
.theme-chapanda.login-community,
.theme-chapanda.today-community {
  background: linear-gradient(135deg, #429DE2 0%, #68B4EF 100%);
  border: none; padding: 0;
  position: relative; overflow: hidden !important;
  border-radius: 16px;
  font-family: 'FZLanTing', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
.theme-chapanda.login-community::after,
.theme-chapanda.today-community::after {
  content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  /* 将水印再向左移，缩小尺寸，确保 ChaPanda 完全可见 */
  background: url('/static/images/ads/chapanda_logo.jpg') no-repeat right 30px bottom -5px;
  background-size: 100px; opacity: 0.15; mix-blend-mode: multiply;
  pointer-events: none;
}
.theme-chapanda.today-community .tc-inner { background: transparent; padding: 0; }
.theme-chapanda.login-community .lc-body { padding: 0; }
.theme-chapanda.login-community .lc-shine { display: none; }

.cpd2-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px; position: relative; z-index: 1;
}
.cpd2-top {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.cpd2-badge {
  background: rgba(255,255,255,0.25); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 12px;
  font-family: 'FZLanTing', sans-serif !important;
}
.cpd2-hint {
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 11px; color: rgba(255,255,255,0.9);
  margin-right: 48px; margin-top: 2px;
}
.cpd2-logo {
  display: none; /* 已确认移除右上角logo */
}
.cpd2-main {
  display: flex; align-items: flex-start; gap: 10px;
}
.cpd2-icon { 
  width: 40px; height: 40px; flex-shrink: 0;
  background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; /* 确保图标呈现完美圆形 */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 2px;
}
.cpd2-icon img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 50%;
  transform: scale(1.1); /* 稍微放大以便居中，并避免留白 */
}
.cpd2-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cpd2-title {
  font-family: 'FZLanTing', sans-serif !important;
  font-size: clamp(12px, 3.5vw, 15px); font-weight: 700; color: #fff;
  word-break: break-word; line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.cpd2-sub {
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 11px; color: rgba(255,255,255,0.95);
  word-break: break-word; line-height: 1.3;
}
.cpd2-benefits { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.cpd2-bf {
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 10px; color: #429DE2;
  background: rgba(255,255,255,0.95);
  padding: 2px 8px; border-radius: 12px; font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 社群弹窗蓝白 */
.theme-chapanda.community-modal .community-modal-head { background: linear-gradient(135deg, #1A75C0, #4DA3E8); }
.theme-chapanda.community-modal .cm-subtitle { color: #1A75C0; border-bottom-color: #B8DBF5; font-family: 'MuYao', 'FZLanTing', sans-serif !important; font-size: 15px; }
.theme-chapanda.community-modal .cm-benefit { background: #EFF7FF; border-left-color: #1A75C0; }
.theme-chapanda.community-modal .cm-bf-head { color: #1A75C0; font-family: 'FZLanTing', sans-serif !important; }
.theme-chapanda.community-modal .cm-bf-desc { font-family: 'FZLanTing', sans-serif !important; }
.theme-chapanda.community-modal .cm-countdown { background: linear-gradient(135deg, #EFF7FF, #D6ECFF); color: #1A75C0; font-family: 'FZLanTing', sans-serif !important; }
.theme-chapanda.community-modal .cm-qr-img { border-color: #B8DBF5; }
.theme-chapanda.community-modal .cm-qr-hint { color: #1A75C0; background: #EFF7FF; font-family: 'FZLanTing', sans-serif !important; }

/* ===== 抽奖入口卡片 ===== */
.lottery-entry {
  margin-bottom: 14px; cursor: pointer;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #429DE2 0%, #68B4EF 100%);
  box-shadow: 0 4px 14px rgba(66,157,226,0.25);
  position: relative;
}
.lottery-entry::before {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.1); pointer-events: none;
}
.lottery-entry-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; position: relative; z-index: 1;
}
.lottery-entry-left { flex-shrink: 0; }
.lottery-entry-logo {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: contain; background: #fff; padding: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.lottery-entry-center { flex: 1; min-width: 0; }
.lottery-entry-title {
  font-family: 'FZLanTing', sans-serif; font-size: 15px;
  font-weight: 700; color: #fff;
}
.lottery-entry-sub {
  font-family: 'FZLanTing', sans-serif; font-size: 11px;
  color: rgba(255,255,255,0.9); margin-top: 2px;
}
.lottery-entry-right { flex-shrink: 0; }
.lottery-entry-btn {
  background: #fff; color: #429DE2;
  font-family: 'FZLanTing', sans-serif; font-size: 13px;
  font-weight: 700; padding: 6px 14px; border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.lottery-entry-btn.done {
  background: rgba(255,255,255,0.3); color: #fff;
  box-shadow: none;
}

/* ===== 抽奖弹窗 ===== */
.lottery-modal {
  width: 100%; max-height: 90vh; background: #fff;
  border-radius: 16px 16px 0 0; display: flex; flex-direction: column;
  animation: disc-slideUp 0.25s;
}
.lottery-modal-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px; flex-shrink: 0;
  background: linear-gradient(135deg, #429DE2, #68B4EF); color: #fff;
  border-radius: 16px 16px 0 0;
}
.lottery-modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; font-family: 'FZLanTing', sans-serif; }
.lottery-modal-body { flex: 1; overflow-y: auto; padding: 14px 16px 20px; }

/* 奖项列表 */
.lottery-prizes-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.lottery-prize-row {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #f0f6ff 0%, #f8fbff 100%);
  border-radius: 12px; padding: 12px 14px;
  border: 1px solid rgba(66,157,226,0.08);
}
.lottery-prize-icon { font-size: 26px; flex-shrink: 0; }
.lottery-prize-info { flex: 1; min-width: 0; }
.lottery-prize-name { font-size: 14px; font-weight: 700; color: #333; font-family: 'FZLanTing', sans-serif; line-height: 1.4; }
.lottery-prize-desc { font-size: 11px; color: #888; margin-top: 2px; line-height: 1.3; }
.lottery-prize-remain { font-size: 10px; color: #888; }
.lottery-prize-remain b { color: #429DE2; font-size: 14px; }

/* 抽奖按钮 */
.lottery-action { text-align: center; margin: 16px 0; }
.lottery-draw-btn {
  display: inline-block; padding: 14px 48px;
  background: linear-gradient(135deg, #429DE2, #68B4EF);
  color: #fff; border: none; border-radius: 28px;
  font-size: 18px; font-weight: 700; cursor: pointer;
  font-family: 'FZLanTing', sans-serif;
  box-shadow: 0 6px 20px rgba(66,157,226,0.35);
  transition: transform 0.15s;
}
.lottery-draw-btn:active { transform: scale(0.95); }

/* 抽奖动画 */
.lottery-anim { padding: 20px 0; text-align: center; }
.lottery-spin {
  width: 48px; height: 48px; border: 4px solid #e0e0e0;
  border-top-color: #429DE2; border-radius: 50%;
  animation: lotterySpin 0.8s linear infinite; margin: 0 auto 10px;
}
@keyframes lotterySpin { to { transform: rotate(360deg); } }
.lottery-spin-text { font-size: 14px; color: #429DE2; font-weight: 600; font-family: 'FZLanTing', sans-serif; }

/* 中奖结果 */
.lottery-result-box { padding: 10px 0; animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lottery-win { text-align: center; }
.lottery-win-icon { font-size: 48px; }
.lottery-win-title { font-size: 20px; font-weight: 700; color: #429DE2; margin: 6px 0; font-family: 'FZLanTing', sans-serif; }
.lottery-win-prize { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 12px; font-family: 'FZLanTing', sans-serif; }
.lottery-qr-box {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  background: #f0f6ff; border: 2px dashed #429DE2;
  border-radius: 12px; padding: 16px; margin: 8px 0; min-width: 220px;
}
.code-label { font-size: 12px; color: #888; margin-bottom: -4px; font-family: 'FZLanTing', sans-serif; }
.code-value { font-size: 28px; font-weight: 700; color: #429DE2; letter-spacing: 4px; font-family: 'FZLanTing', sans-serif; line-height: 1.1; }
.lottery-qr-img { background: #fff; padding: 8px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; justify-content: center; }
.lottery-win-hint { font-size: 12px; color: #e55; margin-top: 8px; font-family: 'FZLanTing', sans-serif; }

.lottery-lose { text-align: center; padding: 20px 0; background: #fafafa; border-radius: 16px; border: 1px dashed #ddd; margin-top: 10px; }
.lottery-lose-icon { font-size: 48px; margin-bottom: 8px; display: inline-block; animation: shake 2s infinite ease-in-out; }
@keyframes shake { 0%, 100% {transform: rotate(0deg);} 25% {transform: rotate(-10deg);} 75% {transform: rotate(10deg);} }
.lottery-lose-text { font-size: 16px; font-weight: 600; color: #555; margin-top: 6px; font-family: 'FZLanTing', sans-serif; }
.lottery-lose-sub { font-size: 13px; color: #999; margin-top: 4px; font-family: 'FZLanTing', sans-serif; }

/* 中奖名单 */
.lottery-winners { margin-top: 16px; }
.lottery-winners-title {
  font-size: 14px; font-weight: 700; color: #333; margin-bottom: 8px;
  padding-bottom: 6px; border-bottom: 1px solid #f0f0f0; font-family: 'FZLanTing', sans-serif;
}
.lottery-winners-empty { text-align: center; color: #aaa; font-size: 12px; padding: 10px 0; }
.lottery-winner-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid #f8f8f8; font-size: 13px;
}
.winner-name { flex: 1; color: #333; }
.winner-prize { color: #666; font-size: 12px; }
.winner-level {
  font-size: 10px; font-weight: 600; padding: 2px 6px;
  border-radius: 6px;
}
.winner-level.lv1 { background: #fff3e0; color: #e65100; }
.winner-level.lv2 { background: #e3f2fd; color: #1565c0; }
.winner-level.lv3 { background: #f3e5f5; color: #7b1fa2; }

/* 活动规则 */
.lottery-rules { margin-top: 16px; }
.lottery-rules-title {
  font-size: 13px; font-weight: 700; color: #333; margin-bottom: 6px;
  font-family: 'FZLanTing', sans-serif;
}
.lottery-rules-text { font-size: 11px; color: #999; line-height: 1.8; }

/* 我的记录列表 */
.lottery-records-view { padding-top: 6px; }
.lottery-record-list { display: flex; flex-direction: column; gap: 12px; }
.lottery-record-card { background: #fff; border: 1px solid #eef3fa; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(66,157,226,0.06); }
.lottery-record-card.expired { filter: grayscale(1); opacity: 0.6; }
.lrc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed #eee; }
.lrc-name { font-size: 16px; font-weight: 700; color: #333; }
.lrc-status { font-size: 13px; font-weight: 700; }
.lrc-mid { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 16px; }
.lrc-code { font-size: 24px; font-weight: 700; letter-spacing: 4px; color: #429DE2; background: #f0f6ff; padding: 8px 24px; border-radius: 8px; font-family: monospace; }
.lrc-qr { width: 140px; height: 140px; margin: 0 auto; }
.lrc-bot { font-size: 12px; color: #999; text-align: center; }

/* ===== 新知教育品牌红主题（专升本口碑分享位） =====
   品牌色取自新知教育官方 Logo：#E6102E
   配色思路：深胭脂红打底 + 香槟金描边 + 宣纸白正文，
   只用「红 / 金 / 白」三色，避免糖果粉与大面积高饱和渐变 */

/* --- 发现页大卡片 --- */
.theme-xinzhi.community-card {
  background: linear-gradient(152deg, #74070F 0%, #A20C1F 46%, #CB0F29 100%);
  border: none; padding: 0; border-radius: 16px;
  position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(227,192,141,0.30), 0 8px 22px rgba(96,6,16,0.26);
  font-family: 'FZLanTing', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
.theme-xinzhi.community-card::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(112deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 32%, rgba(255,255,255,0) 58%);
  pointer-events: none;
}
.theme-xinzhi.community-card::after {
  content: ''; position: absolute; right: -14px; bottom: -24px;
  width: 118px; height: 118px;
  background: url('/static/images/ads/xinzhi/xinzhi_seal.png') no-repeat center / contain;
  opacity: 0.07; pointer-events: none;
}
.xz1-card { padding: 15px 14px 12px; position: relative; z-index: 1; }
.xz1-row { display: flex; align-items: center; gap: 12px; }
.xz1-left { flex-shrink: 0; }
.xz1-seal {
  width: 56px; height: 56px;
  background: #FFFCF6; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 3px;
  border: 1px solid rgba(227,192,141,0.55);
  box-shadow: 0 3px 10px rgba(70,4,12,0.28);
}
.xz1-seal img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.xz1-center { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.xz1-kicker {
  align-self: flex-start;
  font-size: 9.5px; font-weight: 600; color: #F0D8B0;
  letter-spacing: 2px; text-indent: 2px;
  background: transparent; border: 1px solid rgba(227,192,141,0.5);
  padding: 2px 7px; border-radius: 3px;
}
.xz1-title {
  font-family: 'FZLanTing', -apple-system, sans-serif !important;
  font-size: clamp(17px, 5.2vw, 21px); font-weight: 700; color: #FFF7EF;
  line-height: 1.2; letter-spacing: 2.2px;
  text-shadow: 0 1px 5px rgba(70,4,12,0.3);
  word-break: break-word;
}
.xz1-sub {
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 11px; color: rgba(255,240,233,0.76);
  line-height: 1.55; letter-spacing: 0.2px; word-break: break-word;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
/* 卡片底部一条通栏「小金点」特色条，比灰色小胶囊更耐看，也不会挤成两行 */
.xz1-tags {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: nowrap; overflow: hidden;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(227,192,141,0.22);
}
.xz1-tag {
  position: relative; flex-shrink: 0; padding-left: 9px;
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 10px; font-weight: 500; color: rgba(255,240,233,0.88);
  letter-spacing: 0.5px; white-space: nowrap;
}
.xz1-tag::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 3px; border-radius: 50%; background: #E3C08D;
}
.xz1-right { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.xz1-btn {
  background: linear-gradient(142deg, #FCF1DC 0%, #E3C08D 100%);
  color: #8A0A1B;
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 13px; font-weight: 700;
  text-align: center; line-height: 1.25; letter-spacing: 0.5px;
  padding: 9px 12px; border-radius: 8px;
  box-shadow: 0 3px 10px rgba(70,4,12,0.30);
}
.xz1-slogan {
  font-size: 9px; color: rgba(240,216,176,0.85); letter-spacing: 1px;
  white-space: nowrap;
}
/* --- 登录页 / 今日页横幅 --- */
.theme-xinzhi.login-community,
.theme-xinzhi.today-community {
  background: linear-gradient(152deg, #74070F 0%, #A20C1F 48%, #CB0F29 100%);
  border: none; padding: 0;
  position: relative; overflow: hidden !important;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(227,192,141,0.26), 0 5px 16px rgba(96,6,16,0.22);
  font-family: 'FZLanTing', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
.theme-xinzhi.login-community::after,
.theme-xinzhi.today-community::after {
  content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  background: url('/static/images/ads/xinzhi/xinzhi_seal.png') no-repeat right -8px bottom -20px;
  background-size: 82px; opacity: 0.09;
  pointer-events: none;
}
.theme-xinzhi.today-community .tc-inner { background: transparent; padding: 0; }
.theme-xinzhi.login-community .lc-body { padding: 0; }
.theme-xinzhi.login-community .lc-shine { display: none; }

.xz2-card {
  display: flex; flex-direction: column; gap: 7px;
  padding: 11px 12px; position: relative; z-index: 1;
}
.xz2-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.xz2-badge {
  font-family: 'FZLanTing', sans-serif !important;
  background: rgba(0,0,0,0.16); color: #F0D8B0;
  border: 1px solid rgba(227,192,141,0.42);
  font-size: 9.5px; font-weight: 600; letter-spacing: 1.6px; text-indent: 1.6px;
  padding: 2px 7px; border-radius: 3px; white-space: nowrap;
}
.xz2-hint {
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 9.5px; font-weight: 500; color: rgba(255,238,230,0.68);
  letter-spacing: 0.6px; white-space: nowrap;
}
.xz2-main { display: flex; align-items: center; gap: 10px; }
.xz2-seal {
  width: 38px; height: 38px; flex-shrink: 0;
  background: #FFFCF6; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 2px;
  border: 1px solid rgba(227,192,141,0.5);
  box-shadow: 0 2px 7px rgba(70,4,12,0.24);
}
.xz2-seal img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.xz2-text { flex: 1; min-width: 0; }
.xz2-title {
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 15px; font-weight: 700; color: #FFF7EF;
  line-height: 1.25; letter-spacing: 1.6px;
  text-shadow: 0 1px 4px rgba(70,4,12,0.3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.xz2-sub {
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 10px; color: rgba(255,240,233,0.72);
  line-height: 1.4; margin-top: 3px; letter-spacing: 0.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.xz2-btn {
  flex-shrink: 0; color: #8A0A1B;
  background: linear-gradient(142deg, #FCF1DC 0%, #E3C08D 100%);
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  padding: 7px 11px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(70,4,12,0.24); white-space: nowrap;
}
/* --- 弹窗（长文口碑分享） --- */
.theme-xinzhi.community-modal { background: #FFFCF9; }
.theme-xinzhi.community-modal .community-modal-head {
  background: linear-gradient(140deg, #74070F 0%, #B60D24 100%);
  border-bottom: 1px solid rgba(227,192,141,0.45);
  gap: 10px;
}
.theme-xinzhi.community-modal .community-modal-head h3 {
  font-family: 'FZLanTing', -apple-system, sans-serif !important;
  font-size: 16.5px; font-weight: 700; letter-spacing: 2.5px; color: #FFF7EF;
}
.theme-xinzhi.community-modal .community-modal-body {
  font-family: 'FZLanTing', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background: #FFFCF9; padding: 16px 16px 22px;
}
.xz-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 9px; padding: 0 0 12px;
  border-bottom: 1px solid #F0E7E2;
  margin-bottom: 14px;
}
.xz-brand img { height: 24px; width: auto; object-fit: contain; }
.xz-brand span {
  font-size: 9.5px; color: #B0A8A4; letter-spacing: 1.2px;
}
.theme-xinzhi.community-modal .cm-subtitle {
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 13px; font-weight: 600; color: #8A0A1B;
  letter-spacing: 0.6px; line-height: 1.6;
  border-bottom: none; padding: 0 0 2px; margin-bottom: 14px;
}
.theme-xinzhi.community-modal .cm-subtitle::after {
  content: ''; display: block; width: 28px; height: 2px;
  background: linear-gradient(90deg, #E3C08D, rgba(227,192,141,0));
  margin: 9px auto 0;
}
.xz-lead {
  font-size: 13px; color: #4A4441; line-height: 1.95;
  letter-spacing: 0.2px;
  background: #FFF9F1; border-radius: 4px;
  padding: 13px 14px; margin-bottom: 6px;
  border-left: 2px solid #E3C08D;
}
/* 署名：手写体太细，正文一律用兰亭，靠字号和字距做质感 */
.xz-sign {
  text-align: right; font-size: 11px; color: #A0938A;
  letter-spacing: 1.2px; margin: 2px 2px 16px;
}
.xz-sign::before { content: '—— '; color: #E3C08D; }
.xz-quote {
  position: relative; margin: 16px 0;
  padding: 13px 15px 13px 16px;
  background: #FBF4EA;
  border-left: 2px solid #E3C08D; border-radius: 4px;
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 13.5px; font-weight: 600; color: #8A0A1B;
  line-height: 1.8; letter-spacing: 0.4px;
}
.theme-xinzhi.community-modal .cm-benefit {
  background: #fff; border: 1px solid #F1E8E2; border-left: none;
  border-radius: 6px; padding: 13px 14px; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(116,7,15,0.04);
}
.theme-xinzhi.community-modal .cm-bf-head {
  color: #3A3330; font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.3px; line-height: 1.5;
  font-family: 'FZLanTing', sans-serif !important;
}
.theme-xinzhi.community-modal .cm-bf-icon {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 21px; height: 17px; margin-right: 7px;
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  color: #8A0A1B; background: linear-gradient(140deg, #FCF1DC, #E9CFA4);
  border-radius: 3px;
}
.theme-xinzhi.community-modal .cm-bf-desc {
  font-size: 12.5px; color: #5C5451; line-height: 1.95;
  letter-spacing: 0.2px; margin-top: 7px;
  font-family: 'FZLanTing', sans-serif !important;
}
.theme-xinzhi.community-modal .cm-bf-note {
  color: #A99C90; font-style: normal; font-size: 10.5px;
  line-height: 1.7; margin-top: 6px;
  padding-top: 6px; border-top: 1px dashed #F1E8E2;
}
/* 每段下面的真实截图：竖图两张一行等分，横图独占一行；落单的那张居中，不留空洞 */
.xz-shots {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 11px; padding-top: 11px; border-top: 1px dashed #F1E8E2;
}
.xz-shots:only-child { border-top: none; padding-top: 0; }
.xz-shot {
  position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid #EFE2D0; border-radius: 5px; background: #FBF7F2;
  flex: 0 0 calc(50% - 4px); aspect-ratio: 3 / 4;
}
.xz-shot img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
/* 横图占满一行、按原比例显示，避免被 3:4 的格子裁成一条 */
.xz-shot.wide { flex-basis: 100%; aspect-ratio: auto; }
.xz-shot.wide img { height: auto; object-fit: contain; }
.xz-shot::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 72%, rgba(46,4,10,0.22) 100%);
}
.xz-shot-zoom {
  position: absolute; right: 5px; bottom: 4px; z-index: 1;
  font-size: 10px; line-height: 1; padding: 3px 5px;
  border-radius: 3px; background: rgba(28,10,12,0.5);
  color: #FFF3E6; pointer-events: none;
}
.xz-shot:active { transform: scale(0.985); }
.theme-xinzhi.community-modal .cm-countdown {
  background: #FBF4EA; color: #8A0A1B; border-radius: 4px;
  font-family: 'FZLanTing', sans-serif !important;
}

/* 联系方式 */
.xz-contact {
  margin-top: 18px; padding: 16px 14px; border-radius: 8px;
  background: linear-gradient(180deg, #FFFDF9 0%, #FBF4EA 100%);
  border: 1px solid #EFE2D0;
  box-shadow: 0 2px 8px rgba(116,7,15,0.04);
}
.xz-contact-t {
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 13.5px; font-weight: 700; color: #8A0A1B;
  text-align: center; letter-spacing: 1px; margin-bottom: 13px;
}
.xz-contact-t::after {
  content: ''; display: block; width: 24px; height: 2px;
  background: #E3C08D; margin: 8px auto 0;
}
/* 拼团说明：作者可以帮学生凑人一起报名，比正文重一点但压过微信号。
   留白收得比别处紧，是为了让一句话尽量排在同一行、不出现只剩两三个字的尾行 */
.xz-pin {
  display: flex; align-items: center; gap: 6px;
  margin: -2px 0 12px; padding: 8px 9px;
  background: linear-gradient(180deg, #FFFAF0 0%, #FCF2DE 100%);
  border: 1px solid #EBD8B2; border-radius: 6px;
  font-family: 'FZLanTing', -apple-system, sans-serif !important;
  font-size: 12px; font-weight: 600; line-height: 1.7;
  color: #7C4A0C; letter-spacing: 0.2px;
}
.xz-pin-tag {
  flex: none;
  background: linear-gradient(140deg, #9C0B1C, #C50F28);
  color: #FFF3E0; font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px; padding: 3px 6px; border-radius: 3px;
  white-space: nowrap;
}
.xz-wx-row {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}
.xz-wx-label { font-size: 11px; color: #A99C90; letter-spacing: 0.5px; }
.xz-wx-id {
  font-size: 15px; font-weight: 700; color: #2E2A28;
  letter-spacing: 1.5px; font-family: 'Menlo', Consolas, monospace;
  background: #fff; padding: 5px 11px; border-radius: 4px;
  border: 1px solid #EFE2D0; user-select: all;
}
.xz-wx-copy {
  font-size: 11.5px; font-weight: 700; color: #FFF7EF;
  background: linear-gradient(140deg, #9C0B1C, #C50F28);
  padding: 6px 13px; border-radius: 4px;
  border: none; cursor: pointer; white-space: nowrap;
  letter-spacing: 1px;
  box-shadow: 0 2px 6px rgba(116,7,15,0.22);
}
.xz-wx-copy:active { transform: scale(0.96); }
.xz-wx-copy.done { background: #1AAD52; box-shadow: none; }
.xz-wx-tip {
  margin: 8px 0 0; font-size: 11px; line-height: 1.6; color: #8A0A1B;
  background: #FFF6F6; border: 1px solid #F6E2E2;
  border-radius: 4px; padding: 7px 9px;
  font-family: 'FZLanTing', -apple-system, sans-serif !important;
}
.theme-xinzhi.community-modal .cm-qr-box { margin-top: 2px; }
.theme-xinzhi.community-modal .cm-qr-img {
  width: 190px; height: 190px; border: 1px solid #EFE2D0;
  border-radius: 6px; padding: 8px; background: #fff;
  box-shadow: 0 3px 12px rgba(116,7,15,0.07);
}
.theme-xinzhi.community-modal .cm-qr-hint {
  font-family: 'FZLanTing', sans-serif !important;
  font-size: 11.5px; font-weight: 600; color: #7A8A80;
  letter-spacing: 0.5px; background: transparent; padding: 2px 0 0;
}
.xz-note {
  margin-top: 16px; padding: 11px 12px;
  background: transparent; border-top: 1px solid #F0E7E2;
  border-radius: 0;
  font-size: 10px; color: #ABA5A1; line-height: 1.85; letter-spacing: 0.2px;
}

/* 截图看大图：盖在广告弹窗（z-index 9999）上面 */
.xz-lightbox {
  position: fixed; inset: 0; z-index: 10050;
  display: flex; align-items: center; justify-content: center;
  padding: 34px 10px 46px;
  background: rgba(12,4,6,0.92);
  animation: xzLbIn 0.16s ease-out;
  overscroll-behavior: contain;
}
@keyframes xzLbIn { from { opacity: 0 } to { opacity: 1 } }
.xz-lightbox img {
  /* object-fit 才能既铺满可用空间又不变形（只靠 width/max-height 会被拉扁） */
  width: 100%; height: 100%; object-fit: contain;
  background: transparent;
}
/* 1:1 原图模式：宽度取「原图宽 / 屏宽」里的大者，长图放大着看，宽图横向滚动看细节 */
.xz-lightbox.zoom {
  display: block; overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 34px 0 46px;
}
.xz-lightbox.zoom img {
  display: block; margin: 0 auto;
  width: auto; min-width: 100%; height: auto;
  max-width: none; max-height: none;
}
.xz-lb-close {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; color: #FFF3E6;
  background: rgba(255,255,255,0.14); border: none; border-radius: 50%;
  cursor: pointer;
}
.xz-lb-close:active { background: rgba(255,255,255,0.24); }
.xz-lb-hint {
  position: absolute; left: 0; right: 0; bottom: 16px;
  text-align: center; font-size: 11px; letter-spacing: 0.5px;
  color: rgba(255,243,230,0.6); pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .xz-lightbox { animation-duration: 0.01ms !important; }
}
