/* R111 活动通知推送 H5 */

:root {
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --contact-footer-h: 72px;
  --primary: #FF8A65;
  --primary-dark: #F4511E;
  --secondary: #FFB74D;
  --success: #66BB6A;
  --warning: #FFA726;
  --danger: #EF5350;
  --bg: #FFF8F0;
  --card: #FFFFFF;
  --text-primary: #3E2723;
  --text-secondary: #8D6E63;
  --border: #E8E0D5;
  --shadow-sm: 0 2px 8px rgba(62, 39, 35, 0.06);
  --shadow-md: 0 4px 16px rgba(62, 39, 35, 0.1);
  --shadow-lg: 0 8px 30px rgba(62, 39, 35, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}
body.has-contact-footer {
  padding-bottom: calc(var(--contact-footer-h) + var(--safe-area-bottom));
}
body.landing-page.has-contact-footer .cta-section.sticky {
  bottom: calc(var(--contact-footer-h) + var(--safe-area-bottom));
}

/* Navbar */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.navbar-left { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.nav-title { font-weight: 700; font-size: 1rem; }
.navbar-right { display: flex; align-items: center; gap: 16px; }
.nav-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-tab {
  border: none; background: transparent; padding: 8px 12px;
  border-radius: var(--radius-sm); cursor: pointer; font-size: .82rem;
  color: var(--text-secondary); transition: all .2s;
}
.nav-tab.active, .nav-tab:hover { background: rgba(255,138,101,.12); color: var(--primary-dark); }
.bell-container { position: relative; cursor: pointer; font-size: 1.2rem; }
.badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--danger); color: #fff; font-size: .65rem;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
}
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 600;
}
.bell-dropdown {
  position: absolute; top: 56px; right: 20px; width: 280px;
  background: var(--card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); z-index: 200; padding: 8px 0;
}
.bell-item {
  display: block; padding: 10px 16px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--border);
}
.bell-item:hover { background: rgba(255,138,101,.06); }
.bell-view-all { display: block; text-align: center; padding: 10px; color: var(--primary); font-size: .85rem; }

/* Layout */
.main-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.view { display: none; }
.view.active { display: block; animation: fadeIn .3s ease; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.dashboard-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.dash-card {
  background: var(--card); border-radius: var(--radius-md);
  padding: 18px; box-shadow: var(--shadow-sm);
  display: flex; gap: 14px; align-items: flex-start;
}
.dash-card__icon { font-size: 1.6rem; }
.dash-card__label { margin: 0; font-size: .82rem; color: var(--text-secondary); }
.dash-card__value { font-size: 1.6rem; font-weight: 700; color: var(--primary-dark); }
.channel-bars { margin-top: 8px; }
.ch-bar { display: flex; align-items: center; gap: 6px; font-size: .72rem; margin: 4px 0; }
.ch-bar .bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.ch-bar .bar i { display: block; height: 100%; background: var(--primary); }
.donut-svg, .spark-svg { margin-top: 8px; }

.editor-layout { display: grid; grid-template-columns: 1fr 420px; gap: 24px; min-height: calc(100vh - 120px); }
.editor-panel, .preview-panel { background: var(--card); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.preview-panel { position: sticky; top: 80px; align-self: start; }
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.preview-tabs { display: flex; gap: 4px; }
.preview-tab {
  border: 1px solid var(--border); background: #fff; border-radius: 8px;
  padding: 4px 8px; cursor: pointer;
}
.preview-tab.active { border-color: var(--primary); background: rgba(255,138,101,.08); }
.phone-frame {
  width: 360px; max-width: 100%; height: 520px;
  background: #F5F5F5; border-radius: 24px; padding: 16px;
  overflow-y: auto; margin: 0 auto; border: 8px solid #333;
}
.preview-placeholder { color: var(--text-secondary); text-align: center; padding: 40px 0; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: .9rem; font-family: inherit;
}
.char-count { font-weight: 400; color: var(--text-secondary); font-size: .78rem; }
.required { color: var(--danger); }
.var-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.channel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.channel-card {
  border: 2px solid var(--border); border-radius: var(--radius-md);
  padding: 14px; cursor: pointer; transition: all .2s;
  background: #fff; text-align: left;
}
.channel-card.selected { border-color: var(--primary); background: rgba(255,138,101,.05); }
.channel-card__icon { font-size: 1.4rem; display: block; margin-bottom: 4px; }

.schedule-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mode-toggle button {
  border: 1px solid var(--border); background: #fff; padding: 4px 10px;
  cursor: pointer; font-size: .78rem;
}
.mode-toggle button:first-child { border-radius: 8px 0 0 8px; }
.mode-toggle button:last-child { border-radius: 0 8px 8px 0; }
.mode-toggle button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.preset-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-btn {
  border: 1px solid var(--border); background: #fff; border-radius: 20px;
  padding: 6px 14px; cursor: pointer; font-size: .82rem;
}
.preset-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.countdown-hint, .cron-preview { font-size: .82rem; color: var(--text-secondary); margin-top: 8px; }

.notification-layout { display: flex; gap: 16px; min-height: 60vh; }
.list-panel { flex: 0 0 380px; max-width: 100%; }
.detail-panel {
  flex: 1; background: var(--card); border-radius: var(--radius-md);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.filter-bar { margin-bottom: 12px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.filter-chip {
  border: 1px solid var(--border); background: #fff; border-radius: 16px;
  padding: 4px 10px; font-size: .75rem; cursor: pointer;
}
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.notify-item {
  background: var(--card); border-radius: var(--radius-md); padding: 14px;
  margin-bottom: 10px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.notify-item:hover { transform: translateY(-2px); }
.notify-item__head { display: flex; justify-content: space-between; align-items: center; }
.notify-item__meta { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-secondary); margin-top: 8px; }
.detail-panel__head { display: flex; justify-content: space-between; align-items: center; }
.detail-section { margin: 16px 0; }
.detail-section h3 { font-size: .9rem; margin-bottom: 6px; }
.detail-stats { list-style: none; display: flex; gap: 16px; padding: 0; }
.tag-chip {
  display: inline-block; background: rgba(255,138,101,.12);
  padding: 4px 10px; border-radius: 12px; font-size: .78rem; margin: 2px;
}

.timeline-container { background: var(--card); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }
.timeline-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.timeline { display: flex; gap: var(--node-gap, 120px); overflow-x: auto; padding: 24px 0; }
.timeline-node { position: relative; text-align: center; min-width: 80px; cursor: pointer; }
.timeline-node__dot {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
}
.timeline-node__label { font-size: .85rem; font-weight: 600; margin: 0; }
.timeline-node__status { font-size: .72rem; }

/* Buttons */
.btn {
  border: none; border-radius: var(--radius-sm); padding: 8px 16px;
  font-size: .88rem; cursor: pointer; font-family: inherit;
  transition: all .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text-primary); }
.btn-link { background: none; border: none; color: var(--primary); cursor: pointer; padding: 0; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-sm { padding: 4px 10px; font-size: .78rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-send { width: 100%; margin-top: 12px; }
.btn-block { display: block; width: 100%; text-align: center; text-decoration: none; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal-content {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 28px; width: min(92vw, 440px); max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); position: relative;
}
.modal-icon { font-size: 2rem; text-align: center; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin: 12px 0; }
.progress-bar .fill { height: 100%; background: var(--primary); transition: width .2s; }
.log-stream {
  max-height: 180px; overflow-y: auto; font-size: .75rem;
  background: #fafafa; border-radius: var(--radius-sm); padding: 8px; margin-top: 10px;
}
.log-line { padding: 4px 0; border-bottom: 1px solid var(--border); }
.progress-header { display: flex; justify-content: space-between; align-items: center; }
.progress-actions { display: flex; gap: 6px; }

/* Preview styles */
.pv-wechat { background: #fff; border-radius: 8px; overflow: hidden; }
.pv-wechat__head { background: #393a3e; color: #fff; padding: 8px 12px; font-size: .75rem; }
.pv-wechat__body { padding: 12px; }
.pv-link { color: #576b95; font-size: .82rem; }
.pv-sms { background: #e8f5e9; padding: 12px; border-radius: 8px; font-size: .85rem; }
.pv-email { background: #fff; padding: 12px; }
.pv-email__banner { height: 60px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 6px; margin-bottom: 10px; }
.pv-h5 { display: flex; gap: 10px; background: #fff; padding: 12px; border-radius: 8px; }
.pv-h5__thumb { font-size: 2rem; }

/* Status */
.status-icon { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; }
.status-icon.ripple-active { animation: ripple .6s ease; }

/* Toggle */
.toggle-switch { position: relative; width: 44px; height: 24px; display: inline-block; }
.toggle-switch input { display: none; }
.toggle-switch .slider {
  position: absolute; inset: 0; background: var(--border);
  border-radius: 12px; transition: .2s; cursor: pointer;
}
.toggle-switch input:checked + .slider { background: var(--primary); }
.toggle-switch .slider::before {
  content: ''; position: absolute; width: 20px; height: 20px;
  left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .2s;
}
.toggle-switch input:checked + .slider::before { transform: translateX(20px); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }

/* FAB */
.fab-create {
  position: fixed; right: 24px; bottom: calc(24px + var(--contact-footer-h) + var(--safe-area-bottom)); z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow-lg);
}

/* Empty */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-secondary); }

/* Landing */
.landing-page { background: var(--bg); }
.hero-full {
  position: relative; min-height: 280px;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.hero-full::before {
  content: ''; position: absolute; inset: 0;
  background: var(--hero-overlay, rgba(0,0,0,.4));
}
.hero-content { position: relative; z-index: 1; color: #fff; padding: 32px 20px; width: 100%; }
.hero-title { margin: 0 0 8px; font-size: 1.6rem; }
.hero-subtitle { margin: 0; opacity: .9; }
.countdown-section { padding: 24px 20px; text-align: center; }
.countdown { display: flex; justify-content: center; align-items: center; gap: 8px; }
.countdown-item span {
  display: block; font-size: 2rem; font-weight: 700;
  background: var(--card); padding: 8px 14px; border-radius: var(--radius-sm);
  min-width: 56px; animation: flipDigit .6s ease;
}
.countdown-item label { font-size: .72rem; color: var(--text-secondary); }
.countdown-sep { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.intro-section { padding: 20px; max-width: 960px; margin: 0 auto; }
.intro-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.intro-card {
  background: var(--card); border-radius: var(--radius-md); padding: 16px;
  box-shadow: var(--shadow-sm);
}
.intro-card span { font-size: 1.4rem; }
.schedule-section { padding: 20px; max-width: 720px; margin: 0 auto; }
.vertical-timeline { margin-top: 16px; }
.vt-item {
  display: flex; gap: 16px; padding: 14px 0;
  border-left: 3px solid var(--primary); padding-left: 16px; margin-left: 8px;
}
.vt-item time { font-weight: 700; color: var(--primary); min-width: 48px; }
.cta-section { padding: 20px; max-width: 480px; margin: 0 auto 80px; }
.cta-section.sticky {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--card); padding: 12px 20px; box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.landing-footer { text-align: center; padding: 24px; color: var(--text-secondary); font-size: .85rem; }
.footer-logo { width: 40px; height: 40px; border-radius: 8px; }

/* Preferences */
.pref-page { max-width: 480px; margin: 0 auto; padding: 24px 20px; }
.pref-section { background: var(--card); border-radius: var(--radius-md); padding: 16px; margin: 16px 0; }

.confetti-canvas { position: absolute; inset: 0; pointer-events: none; }

/* Keyframes */
@keyframes slideInRight { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: .6; transform: translateY(0); } 50% { opacity: 1; transform: translateY(8px); } }
@keyframes ripple { 0% { box-shadow: 0 0 0 0 rgba(102,187,106,.5); } 100% { box-shadow: 0 0 0 12px rgba(102,187,106,0); } }
@keyframes tagPopIn { 0% { transform: scale(0); } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes bellShake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-15deg); } 75% { transform: rotate(15deg); } }
@keyframes flipDigit { 0% { transform: rotateX(0deg); } 50% { transform: rotateX(-90deg); } 100% { transform: rotateX(0deg); } }
@keyframes confettiFall { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(300px) rotate(720deg); opacity: 0; } }
@keyframes progressFill { from { width: 0; } }
@keyframes tabSlide { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes cardFloat { to { transform: translateY(-4px); box-shadow: var(--shadow-md); } }

/* Responsive */
/* P1 人群标签 */
.p1-badge {
  display: inline-block; font-size: .65rem; background: var(--secondary);
  color: #fff; padding: 2px 6px; border-radius: 8px; vertical-align: middle;
}
.audience-section { margin-bottom: 16px; padding: 14px; background: rgba(255,183,77,.08); border-radius: var(--radius-md); }
.audience-search { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; margin: 8px 0; }
.selected-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; margin: 8px 0; }
.tag-bubble {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  background: var(--primary); color: #fff; border-radius: 16px; font-size: .78rem;
  animation: tagPopIn .3s ease;
}
.tag-bubble button { border: none; background: transparent; color: #fff; cursor: pointer; font-size: 1rem; }
.tag-hint { font-size: .82rem; color: var(--text-secondary); }
.audience-estimate { font-size: .85rem; color: var(--primary-dark); font-weight: 600; margin: 6px 0; }
.tag-group { margin-top: 10px; }
.tag-group h4 { font-size: .82rem; color: var(--text-secondary); margin-bottom: 6px; }
.tag-pool { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-btn {
  border: 1px solid var(--border); background: #fff; border-radius: 16px;
  padding: 4px 12px; font-size: .78rem; cursor: pointer;
}
.tag-btn.selected { background: var(--primary); color: #fff; border-color: var(--primary); }

/* P1 深度分析 */
.analytics-panel { margin-top: 28px; }
.analytics-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.day-tabs { display: flex; gap: 6px; }
.day-tab {
  border: 1px solid var(--border); background: #fff; border-radius: 16px;
  padding: 4px 12px; font-size: .78rem; cursor: pointer;
}
.day-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.analytics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.analytics-card {
  background: var(--card); border-radius: var(--radius-md); padding: 16px;
  box-shadow: var(--shadow-sm);
}
.analytics-card--wide { grid-column: 1 / -1; }
.analytics-card h3 { font-size: .9rem; margin-bottom: 10px; }
.bar-row { display: flex; align-items: center; gap: 8px; font-size: .78rem; margin: 6px 0; }
.bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 4px; }
.chart-caption { font-size: .78rem; color: var(--text-secondary); margin-top: 6px; }
.heatmap-wrap { overflow-x: auto; }
.heatmap-row { display: flex; align-items: center; gap: 4px; margin: 2px 0; }
.heatmap-day { width: 36px; font-size: .72rem; color: var(--text-secondary); }
.heatmap-cell {
  width: 36px; height: 28px; border-radius: 4px; font-size: .65rem;
  display: flex; align-items: center; justify-content: center; color: var(--text-primary);
}
.heatmap-labels { display: flex; gap: 4px; margin-left: 40px; margin-bottom: 4px; }
.heatmap-labels span { width: 36px; font-size: .6rem; text-align: center; color: var(--text-secondary); }

/* 固定底栏 */
.contact-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 101;
  background: #1a1a1a; padding: 8px 12px calc(6px + var(--safe-area-bottom));
}
.contact-footer__btns {
  display: grid; grid-template-columns: repeat(3, minmax(0, 88px));
  justify-content: center; gap: 8px; max-width: 320px; margin: 0 auto 4px;
}
.contact-footer__cta {
  background: #c41e1e !important; color: #fff !important; text-align: center;
  border-radius: 6px; padding: .48rem .2rem; font-size: .72rem; text-decoration: none;
}
.contact-footer__btn {
  background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff;
  border-radius: 6px; padding: .48rem .2rem; font-size: .72rem; cursor: pointer;
  text-align: center; text-decoration: none;
}
.contact-footer__brand {
  text-align: center; font-size: .62rem; color: rgba(255,255,255,.5); margin: 0;
}
body.has-contact-footer .zw-root .zw-fab {
  bottom: calc(var(--contact-footer-h) + var(--safe-area-bottom) + 8px);
}

/* 分享页 */
body.share-page.has-contact-footer {
  padding-bottom: calc(var(--contact-footer-h) + var(--safe-area-bottom));
}
.share-main { max-width: 480px; margin: 0 auto; padding: 16px; }
.share-landing-card {
  background: var(--card); border-radius: var(--radius-lg); padding: 20px 16px;
  box-shadow: var(--shadow-md);
}
.share-eyebrow { font-size: .82rem; color: var(--primary); margin: 0 0 8px; }
.share-landing-card h1 { font-size: 1.35rem; margin: 0 0 8px; }
.share-tagline { color: var(--text-secondary); margin: 0 0 10px; }
.share-desc { font-size: .9rem; margin-bottom: 16px; }
.share-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.share-stat { text-align: center; background: rgba(255,138,101,.08); border-radius: var(--radius-sm); padding: 8px 4px; }
.share-stat strong { display: block; font-size: 1rem; color: var(--primary-dark); }
.share-stat span { font-size: .65rem; color: var(--text-secondary); }
.share-svc-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.share-svc-chip {
  font-size: .72rem; padding: 4px 10px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 14px;
}
.share-cta { text-decoration: none; display: block; text-align: center; margin-top: 8px; }
.share-qr-block { text-align: center; margin: 20px 0; padding: 16px; background: var(--bg); border-radius: var(--radius-md); }
.share-qr-block small { color: var(--text-secondary); font-size: .72rem; }
.share-poster-panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.share-poster-panel h2 { font-size: 1rem; margin-bottom: 4px; }
.sheet-tip { font-size: .78rem; color: var(--text-secondary); margin-bottom: 10px; }
.share-canvas-wrap { margin: 12px 0; overflow-x: auto; }
.share-canvas-wrap canvas { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* Toast */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--contact-footer-h) + 24px);
  background: rgba(0,0,0,.82); color: #fff; padding: 10px 18px;
  border-radius: 20px; font-size: .85rem; opacity: 0; pointer-events: none;
  transition: opacity .3s; z-index: 9999;
}
.toast.show { opacity: 1; }

/* 偏好页 */
.freq-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; cursor: pointer; }
.pref-all { background: var(--card); padding: 12px; border-radius: var(--radius-md); margin-bottom: 12px; }

@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; }
  .nav-tabs { order: 3; width: 100%; overflow-x: auto; }
  .editor-layout { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .notification-layout { flex-direction: column; }
  .list-panel { flex: none; max-height: 50vh; overflow-y: auto; }
  .phone-frame { width: 100%; height: 420px; }
  .timeline { flex-direction: column; overflow-x: visible; gap: 24px; }
  .intro-grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: 1fr; }
  .analytics-grid { grid-template-columns: 1fr; }
  .share-stats { grid-template-columns: repeat(2, 1fr); }
}
