/* ==================== 全局变量 ==================== */
:root {
  --color-primary: #C8102E;
  --color-primary-dark: #A00D24;
  --color-primary-light: #E63950;
  --color-gold: #D4AF37;
  --color-gold-light: #F0D77B;
  --color-bg: #F5F6FA;
  --color-card: #FFFFFF;
  --color-text: #1A1A2E;
  --color-text-sub: #6B7280;
  --color-text-light: #9CA3AF;
  --color-border: #E8E8EC;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.15);
  --header-h: 52px;
  --nav-h: 54px;
  --max-w: 480px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ==================== Reset ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
input, button, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
svg { display: block; }

/* ==================== 登录页 ==================== */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}
.login-bg {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 48px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.login-bg::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.login-bg::before {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(212,175,55,.1);
}
.login-logo { position: relative; z-index: 1; }
.logo-circle {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 900; color: var(--color-primary-dark);
  box-shadow: 0 4px 20px rgba(212,175,55,.4);
}
.login-logo h1 {
  color: #fff; font-size: 24px; font-weight: 700; letter-spacing: 1px;
  margin-bottom: 6px;
}
.login-logo p { color: rgba(255,255,255,.75); font-size: 13px; }

.login-form-card {
  margin: -32px 16px 0;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}
.login-tabs {
  display: flex; gap: 0; margin-bottom: 24px;
  border-bottom: 2px solid var(--color-border);
}
.login-tab {
  flex: 1; text-align: center; padding: 10px 0;
  font-size: 15px; font-weight: 600; color: var(--color-text-light);
  cursor: pointer; position: relative;
  transition: color .2s;
}
.login-tab.active { color: var(--color-primary); }
.login-tab.active::after {
  content: ''; position: absolute;
  bottom: -2px; left: 20%; right: 20%;
  height: 2px; background: var(--color-primary);
  border-radius: 2px;
}

.login-form { display: none; flex-direction: column; gap: 16px; }
.login-form.active { display: flex; }
.input-group {
  display: flex; align-items: center;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  height: 48px;
  border: 1.5px solid transparent;
  transition: border-color .2s;
}
.input-group:focus-within { border-color: var(--color-primary-light); }
.input-icon { width: 20px; height: 20px; color: var(--color-text-light); flex-shrink: 0; }
.input-group input {
  flex: 1; margin-left: 10px; height: 100%;
  color: var(--color-text); font-size: 15px;
}
.input-group-code input { flex: 1; margin-left: 0; }
.input-group-code { padding-left: 14px; }
.btn-code {
  flex-shrink: 0; padding: 8px 14px; margin-left: 8px;
  background: var(--color-primary); color: #fff;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  white-space: nowrap; cursor: pointer;
  transition: opacity .2s;
}
.btn-code:active { opacity: .8; }
.btn-code:disabled { opacity: .5; }

.btn-primary {
  height: 48px; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600; letter-spacing: 4px;
  cursor: pointer; margin-top: 4px;
  box-shadow: 0 4px 14px rgba(200,16,46,.3);
  transition: transform .1s;
}
.btn-primary:active { transform: scale(.98); }
.login-hint {
  text-align: center; font-size: 12px; color: var(--color-text-light);
  margin-top: 4px;
}
.login-hint b { color: var(--color-primary); }
.login-contact {
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.login-contact p { font-size: 12px; color: var(--color-text-light); line-height: 1.8; }

/* ==================== 主应用容器 ==================== */
.app-container {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,.05);
}

/* ==================== 顶部导航 ==================== */
.app-header {
  height: var(--header-h);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(200,16,46,.2);
}
.header-left {
  width: 44px; display: flex; align-items: center;
  flex-shrink: 0;
}
.header-right {
  display: flex; align-items: center; justify-content: flex-end;
  flex-shrink: 0; max-width: 42%;
}
.header-left svg { width: 24px; height: 24px; color: #fff; cursor: pointer; }
.header-title {
  flex: 1; text-align: center;
  color: #fff; font-size: 15px; font-weight: 600;
  letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.station-badge {
  background: rgba(255,255,255,.18);
  color: var(--color-gold-light);
  padding: 3px 8px; border-radius: 20px;
  font-size: 10px; font-weight: 600;
  border: 1px solid rgba(212,175,55,.3);
  white-space: nowrap;
}

/* ==================== 内容区 ==================== */
.app-main {
  flex: 1;
  padding-bottom: calc(var(--nav-h) + 16px);
  overflow-x: hidden;
}
.view { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ==================== 轮播图 ==================== */
.banner-wrap {
  position: relative;
  margin: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.banner-track {
  display: flex;
  transition: transform .4s cubic-bezier(.25,.1,.25,1);
}
.banner-slide {
  min-width: 100%;
  height: 160px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
}
.banner-dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.4);
  transition: all .3s;
}
.banner-dot.active { width: 18px; background: #fff; }

/* ==================== 跑马灯 ==================== */
.marquee-bar {
  margin: 0 12px 12px;
  background: var(--color-card);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.marquee-icon { flex-shrink: 0; }
.marquee-icon svg { width: 18px; height: 18px; color: var(--color-primary); }
.marquee-content {
  flex: 1; overflow: hidden; position: relative;
}
.marquee-text {
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  font-size: 13px; color: var(--color-text-sub);
}
@keyframes marquee {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* ==================== 金刚区 ==================== */
.king-kong-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 4px 12px 16px;
}
.king-kong-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 4px 10px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  cursor: pointer; position: relative;
  transition: transform .15s;
  box-shadow: var(--shadow-sm);
}
.king-kong-item:active { transform: scale(.95); }
.king-kong-item.highlight {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}
.king-kong-item.highlight .kk-label { color: #fff; }
.kk-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.kk-icon svg { width: 22px; height: 22px; }
.kk-icon-daily { background: rgba(255,255,255,.2); color: var(--color-gold-light); }
.kk-icon-video { background: #FFF0F3; color: var(--color-primary); }
.kk-icon-photo { background: #FFF8E7; color: var(--color-gold); }
.kk-icon-training { background: #EEF4FF; color: #3B6EF0; }
.kk-label { font-size: 12px; color: var(--color-text); font-weight: 500; }
.kk-badge {
  position: absolute; top: 6px; right: 6px;
  background: var(--color-gold); color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 8px;
  line-height: 1.4;
}

/* ==================== 区块标题 ==================== */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 16px 10px;
}
.section-header h2 { font-size: 16px; font-weight: 700; color: var(--color-text); }
.section-header h2::before {
  content: ''; display: inline-block;
  width: 3px; height: 16px;
  background: var(--color-primary);
  border-radius: 2px; margin-right: 8px;
  vertical-align: -2px;
}
.section-more { font-size: 12px; color: var(--color-text-light); cursor: pointer; }

/* ==================== 最新更新列表 ==================== */
.update-list { padding: 0 12px; display: flex; flex-direction: column; gap: 10px; }
.update-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.update-item:active { transform: scale(.98); }
.update-thumb {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
}
.update-thumb img { width: 100%; height: 100%; object-fit: cover; }
.update-info { flex: 1; min-width: 0; }
.update-info h3 { font-size: 14px; font-weight: 600; color: var(--color-text); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.update-info p { font-size: 12px; color: var(--color-text-light); }
.update-stats {
  display: flex; align-items: center; gap: 10px;
  margin-top: 3px;
}
.update-stats span {
  display: flex; align-items: center; gap: 3px;
  font-size: 10px; color: var(--color-text-light);
}
.update-stats svg { width: 10px; height: 10px; }
.update-stats .stat-hot { color: #E67E22; }
.update-stats .stat-dl { color: var(--color-primary); }
.update-tag {
  flex-shrink: 0;
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
}
.update-tag.ssq { background: #FFF0F3; color: var(--color-primary); }
.update-tag.kl8 { background: #FFF8E7; color: #B8860B; }
.update-tag.tag-3d { background: #EEF4FF; color: #3B6EF0; }
.update-tag.ggl { background: #F0FDF4; color: #16A34A; }
.update-tag.new { background: var(--color-gold); color: #fff; }

/* ==================== 每日推荐号 ==================== */
.daily-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 8px;
}
.daily-title h2 { font-size: 18px; font-weight: 700; }
.daily-title p { font-size: 12px; color: var(--color-text-light); margin-top: 2px; }
.date-picker-wrap { display: flex; align-items: center; gap: 6px; }
.btn-date {
  width: 32px; height: 32px;
  background: var(--color-card); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.btn-date svg { width: 18px; height: 18px; color: var(--color-text-sub); }
.date-input {
  background: var(--color-card); border-radius: 8px;
  padding: 6px 8px; font-size: 13px; color: var(--color-text);
  box-shadow: var(--shadow-sm);
  text-align: center;
  min-width: 110px;
}

/* ==================== Tab 滚动 ==================== */
.tab-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 0 16px 10px;
  scrollbar-width: none;
}
.tab-scroll::-webkit-scrollbar { display: none; }
.tab-list { display: flex; gap: 8px; width: max-content; }
.tab-item {
  padding: 6px 18px; border-radius: 20px;
  background: var(--color-card); color: var(--color-text-sub);
  font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: all .2s;
  box-shadow: var(--shadow-sm);
}
.tab-item.active {
  background: var(--color-primary); color: #fff;
  box-shadow: 0 2px 10px rgba(200,16,46,.3);
}

/* ==================== 排序条 ==================== */
.sort-tabs {
  display: flex; gap: 6px;
  padding: 0 16px 10px;
}
.sort-item {
  padding: 4px 12px; border-radius: 14px;
  background: var(--color-bg); color: var(--color-text-sub);
  font-size: 12px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--color-border);
  transition: all .2s;
}
.sort-item.active {
  background: var(--color-gold); color: #fff;
  border-color: var(--color-gold);
  box-shadow: 0 2px 8px rgba(212,175,55,.35);
}

/* ==================== 图片网格 ==================== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 12px 16px;
}
.image-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.image-card:active { transform: scale(.97); }
.image-card-img {
  width: 100%; aspect-ratio: 3/4;
  overflow: hidden; position: relative;
}
.image-card-img img { width: 100%; height: 100%; object-fit: cover; }
.image-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.3) 0%, transparent 40%);
}
.image-card-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(200,16,46,.9); color: #fff;
  font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
  z-index: 1;
}
.image-card-info {
  padding: 8px 10px;
}
.image-card-info h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-card-info p { font-size: 11px; color: var(--color-text-light); }
.image-card-download {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 6px; margin-top: 6px;
  background: var(--color-bg); border-radius: 6px;
  font-size: 12px; color: var(--color-primary); font-weight: 600;
}
.image-card-download svg { width: 14px; height: 14px; }

/* 图片卡片统计行 */
.image-card-stats {
  display: flex; align-items: center; gap: 10px;
  margin-top: 5px; padding-top: 5px;
  border-top: 1px dashed var(--color-border);
}
.image-card-stats span {
  display: flex; align-items: center; gap: 3px;
  font-size: 10px; color: var(--color-text-light);
}
.image-card-stats svg { width: 11px; height: 11px; }
.image-card-stats .stat-hot { color: #E67E22; }
.image-card-stats .stat-dl { color: var(--color-primary); }

/* ==================== 空状态 ==================== */
.empty-state {
  text-align: center; padding: 60px 0;
  color: var(--color-text-light);
}
.empty-state p { margin-top: 12px; font-size: 14px; }

/* ==================== 视频列表 ==================== */
.video-list { padding: 0 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.video-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.video-thumb {
  width: 100%; aspect-ratio: 16/9;
  position: relative; overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.2);
}
.video-play-btn {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.video-play-btn svg { width: 24px; height: 24px; color: var(--color-primary); margin-left: 3px; }
.video-duration {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,.65); color: #fff;
  font-size: 11px; padding: 2px 6px; border-radius: 4px;
}
.video-info { padding: 10px 12px; }
.video-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.video-info p { font-size: 12px; color: var(--color-text-light); }
.video-stats {
  display: flex; align-items: center; gap: 12px;
  margin-top: 6px; padding-top: 6px;
  border-top: 1px dashed var(--color-border);
}
.video-stats span {
  display: flex; align-items: center; gap: 3px;
  font-size: 11px; color: var(--color-text-light);
}
.video-stats svg { width: 12px; height: 12px; }
.video-stats .stat-play { color: var(--color-primary); }
.video-stats .stat-dl { color: #E67E22; }

/* ==================== 培训资料列表 ==================== */
.training-list { padding: 0 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.training-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.training-card:active { transform: scale(.98); }
.training-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.training-icon.pdf { background: #FFF0F0; color: #E53E3E; }
.training-icon.ppt { background: #FFF5E6; color: #DD6B20; }
.training-icon.video { background: #EBF8FF; color: #3182CE; }
.training-icon svg { width: 24px; height: 24px; }
.training-info { flex: 1; min-width: 0; }
.training-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.training-info p { font-size: 12px; color: var(--color-text-light); }
.training-arrow { color: var(--color-text-light); }
.training-arrow svg { width: 20px; height: 20px; }

/* ==================== 我的页面 ==================== */
.mine-header {
  margin: 12px;
  padding: 24px 20px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 4px 16px rgba(200,16,46,.25);
  position: relative; overflow: hidden;
}
.mine-header::after {
  content: '';
  position: absolute; top: -30px; right: -20px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.mine-header::before {
  content: '';
  position: absolute; bottom: -40px; left: 40%;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(212,175,55,.1);
}
.mine-avatar {
  width: 64px; height: 64px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900; color: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(212,175,55,.4);
  position: relative; z-index: 1;
}
.mine-info { position: relative; z-index: 1; min-width: 0; }
.mine-info h3 {
  color: #fff; font-size: 20px; font-weight: 700;
  margin-bottom: 6px;
}
.mine-info p { color: rgba(255,255,255,.75); font-size: 13px; }

.mine-menu {
  margin: 0 12px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.mine-menu-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  transition: background .15s;
}
.mine-menu-item:last-child { border-bottom: none; }
.mine-menu-item:active { background: var(--color-bg); }
.mine-menu-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.mine-menu-icon svg { width: 20px; height: 20px; }
.mine-menu-icon.training { background: #EEF4FF; color: #3B6EF0; }
.mine-menu-icon.contact { background: #FFF0F3; color: var(--color-primary); }
.mine-menu-icon.records { background: #F0FDF4; color: #16A34A; }
.mine-menu-icon.about { background: #F5F3FF; color: #7C3AED; }
.mine-menu-icon.logout { background: #FEF2F2; color: #DC2626; }
.mine-menu-label { flex: 1; font-size: 15px; font-weight: 500; color: var(--color-text); }
.mine-arrow { width: 18px; height: 18px; color: var(--color-text-light); }
.mine-menu-item.danger .mine-menu-label { color: #DC2626; }
.mine-version {
  text-align: center; margin-top: 24px;
  font-size: 12px; color: var(--color-text-light);
}

/* ==================== 联系客服弹窗 ==================== */
.contact-content { text-align: center; }
.contact-title { margin-bottom: 20px; }
.contact-title-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(200,16,46,.3);
}
.contact-title-icon svg { width: 28px; height: 28px; color: #fff; }
.contact-title h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.contact-title p { font-size: 12px; color: var(--color-text-light); }
.contact-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.contact-item-label { font-size: 13px; color: var(--color-text-sub); }
.contact-item-value { font-size: 14px; font-weight: 600; color: var(--color-primary); }
.contact-tip {
  font-size: 12px; color: var(--color-text-light);
  margin: 12px 0 16px;
}
.contact-content .btn-primary { width: 100%; margin-top: 0; }

/* ==================== 底部导航 ==================== */
.bottom-nav {
  max-width: var(--max-w);
  width: 100%;
  height: calc(var(--nav-h) + var(--safe-bottom));
  background: var(--color-card);
  display: flex;
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%);
  border-top: 1px solid var(--color-border);
  z-index: 100;
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px; cursor: pointer;
  color: var(--color-text-light);
  transition: color .2s;
}
.nav-item svg { width: 24px; height: 24px; }
.nav-item span { font-size: 10px; font-weight: 500; }
.nav-item.active { color: var(--color-primary); }
.nav-item.active svg { transform: scale(1.05); }

/* ==================== 弹窗 ==================== */
.modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  width: 90%; max-width: 400px;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  z-index: 1;
  animation: modalIn .3s ease;
  max-height: 90vh; overflow-y: auto;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: var(--color-bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
}
.modal-close svg { width: 18px; height: 18px; color: var(--color-text-sub); }
.preview-image-wrap {
  width: 100%; border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: 12px;
  background: var(--color-bg);
}
.preview-image-wrap img { width: 100%; height: auto; }
.preview-watermark-preview {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px; margin-bottom: 16px;
  background: #FFF8E7; border-radius: var(--radius-sm);
  font-size: 12px; color: var(--color-text-sub);
  border: 1px dashed var(--color-gold);
}
.wm-preview-text { font-weight: 700; color: var(--color-primary); }
.preview-save-tip {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px; margin-bottom: 12px;
  background: #EFFDF5; border: 1px solid #A7F3D0; border-radius: var(--radius-sm);
  font-size: 12px; color: #047857;
}
.preview-actions { display: flex; gap: 12px; }
.btn-secondary {
  flex: 1; height: 44px;
  background: var(--color-bg); color: var(--color-text-sub);
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 500;
  cursor: pointer;
}
.btn-download {
  flex: 2; height: 44px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(200,16,46,.3);
  transition: transform .1s;
}
.btn-download:active { transform: scale(.97); }

/* ==================== Toast ==================== */
.toast {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.8); color: #fff;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 14px; z-index: 2000;
  max-width: 80%; text-align: center;
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* ==================== 加载动画 ==================== */
.loading-dots {
  display: inline-flex; gap: 4px; align-items: center;
}
.loading-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: dotBounce 1.2s infinite ease-in-out;
}
.loading-dots span:nth-child(2) { animation-delay: .15s; }
.loading-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dotBounce { 0%, 80%, 100% { opacity: .3; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

/* ==================== PC适配 ==================== */
@media (min-width: 481px) {
  body { background: #e9eaf0; }
  .app-container { box-shadow: 0 0 60px rgba(0,0,0,.12); }
  .banner-slide { height: 200px; }
  .image-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==================== 滚动条隐藏 ==================== */
.app-main::-webkit-scrollbar { display: none; }

/* ==================== 下载记录弹窗 ==================== */
.records-content {
  width: 90%; max-width: 460px;
  max-height: 75vh;
  display: flex; flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.records-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.records-head h3 {
  margin: 0; font-size: 17px; color: var(--color-text);
}
.modal-close-inline {
  background: none; border: none; padding: 4px;
  cursor: pointer; color: var(--color-text-light);
  display: flex; align-items: center; justify-content: center;
}
.modal-close-inline svg { width: 22px; height: 22px; }
.records-list {
  overflow-y: auto; padding: 12px 16px 20px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.records-list::-webkit-scrollbar { width: 4px; }
.records-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.records-loading, .records-empty {
  text-align: center; padding: 40px 0; color: var(--color-text-light); font-size: 14px;
}
.records-item {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.records-item:last-child { border-bottom: none; }
.records-item-main {
  display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0;
}
.records-item-md5 {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12px; color: var(--color-text); word-break: break-all;
}
.records-item-meta {
  font-size: 12px; color: var(--color-text-light);
}
.records-item-time {
  font-size: 11px; color: #999; white-space: nowrap;
}

/* ==================== 素材管理（管理员） ==================== */
.mine-menu-icon.admin { background: #FFF7E6; color: #B45309; }
.mine-menu-tag {
  font-size: 10px; color: #B45309; background: #FEF3C7;
  padding: 2px 8px; border-radius: 10px; font-weight: 600; margin-right: 4px;
}

.admin-head {
  padding: 16px 16px 4px;
}
.admin-head h2 { font-size: 18px; color: var(--color-text); }
.admin-head p { font-size: 12px; color: var(--color-text-light); margin-top: 2px; }

.admin-list { padding: 8px 12px 88px; display: flex; flex-direction: column; gap: 10px; }
.admin-item {
  display: flex; gap: 12px; align-items: stretch;
  background: var(--color-card); border-radius: var(--radius-md);
  padding: 10px; box-shadow: var(--shadow-sm);
}
.admin-thumb {
  width: 84px; height: 84px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--color-bg); display: flex; align-items: center; justify-content: center;
}
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-thumb-video {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--color-primary); background: linear-gradient(135deg, #FFF0F3, #FFE4E8);
}
.admin-thumb-video svg { width: 26px; height: 26px; }
.admin-thumb-video span { font-size: 10px; color: var(--color-text-sub); }
.admin-thumb-text {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 8px; font-size: 12px; color: var(--color-text-sub);
  background: #F0FDF4; border-radius: var(--radius-sm); text-align: center;
  line-height: 1.6; word-break: break-all;
}
.admin-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-info h4 {
  font-size: 14px; color: var(--color-text); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-info .admin-meta { font-size: 11px; color: var(--color-text-light); margin-top: 2px; }
.admin-stats { display: flex; gap: 10px; font-size: 11px; color: var(--color-text-light); margin-top: 3px; }
.admin-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.admin-btn {
  flex: 1; height: 30px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.admin-btn svg { width: 13px; height: 13px; }
.admin-btn-edit {
  background: var(--color-primary); color: #fff;
}
.admin-btn-del {
  background: #FEF2F2; color: #DC2626;
  border: 1px solid #FECACA;
}
.admin-add-btn {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px + var(--safe-bottom));
  transform: translateX(-50%);
  width: 150px; height: 46px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff; border-radius: 23px;
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 6px 20px rgba(200,16,46,.35);
  cursor: pointer; z-index: 90;
  transition: transform .1s;
}
.admin-add-btn:active { transform: translateX(-50%) scale(.96); }
.admin-add-btn svg { width: 18px; height: 18px; }
.admin-empty {
  padding: 60px 0; text-align: center; color: var(--color-text-light); font-size: 14px;
}

/* ==================== 素材编辑弹窗 ==================== */
.admin-modal-content { width: 92%; max-width: 440px; padding: 0; overflow: hidden; }
.admin-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--color-border);
}
.admin-modal-head h3 { font-size: 17px; color: var(--color-text); }
.admin-form { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.admin-field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--color-text);
  margin-bottom: 6px;
}
.admin-field input[type="text"],
.admin-field input[type="date"],
.admin-field select {
  width: 100%; height: 42px;
  background: var(--color-bg); border-radius: var(--radius-sm);
  padding: 0 12px; font-size: 14px; color: var(--color-text);
  -webkit-appearance: none; appearance: none;
}
.admin-field input[type="date"] { padding-right: 8px; }
.admin-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236B7280' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  background-size: 16px;
}
.admin-upload-box {
  border: 2px dashed var(--color-border); border-radius: var(--radius-md);
  background: var(--color-bg); overflow: hidden; cursor: pointer;
  transition: border-color .2s;
}
.admin-upload-box:active { border-color: var(--color-primary); }
.admin-upload-hint {
  padding: 22px 12px; text-align: center; color: var(--color-text-light);
}
.admin-upload-hint svg { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--color-primary); opacity: .6; }
.admin-upload-hint p { font-size: 13px; }
.admin-upload-hint .admin-upload-sub { font-size: 11px; color: #999; margin-top: 4px; }
.admin-upload-preview { width: 100%; }
.admin-upload-preview img { width: 100%; max-height: 200px; object-fit: contain; background: #fff; }
.admin-upload-preview video { width: 100%; max-height: 200px; background: #000; }
.admin-file-tip {
  font-size: 11px; color: var(--color-text-light); margin-top: 6px;
  word-break: break-all;
}
.admin-submit { height: 46px; font-size: 16px; margin-top: 4px; }

/* ==================== 视频播放器弹窗 ==================== */
.video-modal-content { width: 94%; max-width: 520px; padding: 0; overflow: hidden; }
/* 播放器容器自适应：支持 16:9 横屏与 9:16 竖屏（1080×1920）视频完整显示 */
.video-player-box {
  position: relative; width: 100%;
  background: #000;
  max-height: 84vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.video-player-box video {
  width: 100%; height: auto; max-height: 84vh;
  object-fit: contain; background: #000; display: block;
}
.video-player-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: rgba(255,255,255,.7); text-align: center; padding: 20px;
}
.video-player-empty svg { width: 44px; height: 44px; opacity: .6; }
.video-player-empty p { font-size: 15px; color: #fff; }
.video-player-empty .video-empty-sub { font-size: 12px; color: rgba(255,255,255,.55); }
.video-player-meta { padding: 14px 16px 18px; }
.video-player-meta h4 { font-size: 16px; color: var(--color-text); }
.video-player-meta p { font-size: 12px; color: var(--color-text-light); margin-top: 4px; }

/* ==================== 营销文案库 ==================== */
.section-sub { font-size: 12px; color: var(--color-text-light); font-weight: 400; }
.copy-list { padding: 8px 12px 40px; display: flex; flex-direction: column; gap: 12px; }
.copy-card {
  background: var(--color-card); border-radius: var(--radius-md);
  padding: 16px; box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-gold);
}
.copy-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.copy-cat {
  flex-shrink: 0; font-size: 11px; font-weight: 700; color: #fff;
  padding: 2px 8px; border-radius: 10px; margin-top: 2px;
}
.copy-cat.ssq { background: #C8102E; }
.copy-cat.kl8 { background: #1A6B3C; }
.copy-cat.three-d { background: #2563EB; }
.copy-cat.ggl { background: #F59E0B; }
.copy-head h4 {
  font-size: 15px; font-weight: 700; color: var(--color-text);
  line-height: 1.5; word-break: break-all;
}
.copy-body {
  border-left: 3px solid var(--color-gold);
  padding-left: 12px; margin-left: 2px;
}
.copy-paragraph {
  font-size: 14px; line-height: 1.85; color: var(--color-text);
  text-indent: 2em; margin: 0 0 8px;
}
.copy-paragraph:last-child { margin-bottom: 0; }
.copy-paragraph.copy-empty { text-indent: 0; color: var(--color-text-light); }
.copy-actions { margin-top: 12px; display: flex; justify-content: flex-end; }
.copy-btn {
  height: 34px; padding: 0 16px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff; border-radius: 17px;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 5px;
  cursor: pointer; transition: transform .1s;
  box-shadow: 0 3px 10px rgba(200,16,46,.25);
}
.copy-btn:active { transform: scale(.96); }
.copy-btn svg { width: 15px; height: 15px; }

/* ==================== 水印 Logo 设置 ==================== */
.admin-logo-btn {
  margin-top: 8px; height: 30px; padding: 0 12px;
  background: #FFF7E6; color: #B45309;
  border: 1px solid #FDE68A; border-radius: 15px;
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  cursor: pointer;
}
.admin-logo-btn svg { width: 14px; height: 14px; }
.admin-copy-excerpt {
  font-size: 11px; color: var(--color-text-light);
  margin-top: 3px; line-height: 1.5;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.logo-modal-content { width: 92%; max-width: 400px; padding: 0; overflow: hidden; }
.logo-form { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.logo-tip { font-size: 12px; color: var(--color-text-light); line-height: 1.6; }
.logo-preview-box { background: var(--color-bg); border-radius: var(--radius-md); padding: 12px; }
.logo-preview-label { font-size: 12px; color: var(--color-text-sub); margin-bottom: 8px; }
.logo-preview-img {
  height: 110px; border-radius: var(--radius-sm);
  background: repeating-conic-gradient(#f1f5f9 0% 25%, #fff 0% 50%) 50% / 20px 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--color-text-light);
  overflow: hidden;
}
.logo-preview-img img {
  height: 100%; max-width: 100%; object-fit: contain;
  background: #fff; border-radius: 8px;
}
.btn-logo-reset {
  height: 38px; border-radius: var(--radius-sm);
  background: #FEF2F2; color: #DC2626;
  border: 1px solid #FECACA;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.mine-menu-icon.logo { background: #F0FDF4; color: #059669; }

/* ==================== 弹窗内容文字区（编辑弹窗复用） ==================== */
.admin-field textarea {
  width: 100%; min-height: 120px;
  background: var(--color-bg); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14px; color: var(--color-text);
  line-height: 1.7; resize: vertical;
  -webkit-appearance: none; appearance: none;
}
