/* 餐饮朝前看 H5 · 复刻小程序设计（rpx→px 按 375 屏宽 ÷2） */
:root {
  --red: #E60012;
  --red-dark: #B0000E;
  --ink: #232323;
  --ink-2: #4A4A4A;
  --gray: #8A8A8A;
  --line: #ECECEC;
  --bg: #F6F6F6;
  --nav-h: 48px;
  --tab-h: 56px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: #DDD;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
}
#phone {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 24px rgba(0,0,0,.12);
  overflow-x: hidden;
}
.hidden { display: none !important; }
img { display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- 顶部导航 ---------- */
#navbar {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: var(--nav-h); z-index: 50;
  background: #1A1A1A; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
#nav-title { font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.nav-back {
  position: absolute; left: 8px; top: 0; height: var(--nav-h); line-height: var(--nav-h);
  padding: 0 14px; font-size: 26px; color: #fff; cursor: pointer;
}

/* ---------- 内容区 ---------- */
.view { padding-top: var(--nav-h); padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); min-height: 100vh; }
.view.no-tab { padding-bottom: 72px; }
.container { padding: 12px 12px 40px; }
.loading { padding: 80px 0; text-align: center; color: var(--gray); }

/* ---------- 底部 TabBar ---------- */
#tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #FFF; border-top: 1px solid var(--line);
  display: flex; z-index: 50;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #8A8A8A; font-size: 11px; gap: 2px;
}
.tab img { width: 24px; height: 24px; }
.tab.active { color: var(--red); }

/* ---------- 通用组件 ---------- */
.card { background: #fff; border-radius: 10px; padding: 14px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
.block-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; padding-left: 10px; position: relative; }
.block-title::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: var(--red); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 10px; }
.section-title { font-size: 17px; font-weight: 700; padding-left: 10px; position: relative; }
.section-title::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--red); }
.more { font-size: 12px; color: var(--gray); cursor: pointer; }
.tag { display: inline-block; color: var(--red); background: rgba(230,0,18,.08); font-size: 10px; padding: 1px 7px; border-radius: 4px; }
.ep-tag { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 999px; }
.dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 4px; }
.dot { margin: 0 5px; color: #C5C5C5; }
.end { text-align: center; color: #B5B5B5; font-size: 12px; padding: 20px 0 4px; }
.cover { width: 100%; height: 100%; object-fit: cover; display: block; }

.toast {
  position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%);
  background: rgba(0,0,0,.75); color: #fff; font-size: 13px;
  padding: 8px 18px; border-radius: 999px; z-index: 99; white-space: nowrap;
}

/* ---------- 首页 hero ---------- */
.hero {
  background: linear-gradient(160deg, #262626 0%, #101010 100%);
  padding: 24px 20px 26px; display: flex; flex-direction: column; align-items: center;
}
.hero-logo { width: 200px; height: 150px; border-radius: 8px; background: #fff; object-fit: contain; }
.hero-slogan { margin-top: 14px; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 3px; }
.hero-en { margin-top: 6px; color: rgba(255,255,255,.5); font-size: 9px; letter-spacing: .5px; text-align: center; }
.hero-badges { margin-top: 13px; display: flex; }
.badge { color: rgba(255,255,255,.85); font-size: 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 3px 10px; margin: 0 5px; }

/* 最新一期 */
.latest { overflow: hidden; padding: 0; cursor: pointer; }
.latest-cover { position: relative; width: 100%; height: 190px; }
.latest-info { padding: 12px 14px 14px; }
.latest-title { font-size: 17px; font-weight: 700; }
.latest-guest { margin-top: 5px; color: var(--ink-2); font-size: 13px; }
.latest-meta { margin-top: 5px; color: var(--gray); font-size: 12px; }

/* 关于栏目 */
.intro-text { color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.intro-hosts { display: flex; margin-top: 14px; }
.host { flex: 1; display: flex; flex-direction: column; align-items: center; }
.host-avatar { width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.host-avatar.qa { background: var(--red); }
.host-avatar.xk { background: #232323; }
.host-name { margin-top: 6px; font-size: 13px; font-weight: 600; }
.host-role { margin-top: 2px; font-size: 11px; color: var(--gray); }

/* 往期网格 */
.grid { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.grid-item { width: calc(50% - 6px); background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.03); cursor: pointer; }
.grid-cover { position: relative; width: 100%; height: 96px; }
.grid-info { padding: 8px 10px 10px; }
.grid-title { font-size: 13px; font-weight: 600; line-height: 1.4; height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.grid-meta { margin-top: 4px; font-size: 11px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 精选文章行 */
.arow { display: flex; align-items: center; background: #fff; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.03); cursor: pointer; }
.arow-main { flex: 1; min-width: 0; }
.arow-title { font-size: 15px; font-weight: 700; margin-top: 6px; }
.arow-summary { font-size: 12px; color: var(--ink-2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.arow-meta { font-size: 11px; color: var(--gray); margin-top: 6px; }
.arow-arrow { color: #C5C5C5; font-size: 22px; margin-left: 10px; }

/* 合作 banner */
.coop-banner {
  background: linear-gradient(135deg, #E60012 0%, #B0000E 100%);
  border-radius: 10px; padding: 20px; color: #fff; margin-bottom: 12px; cursor: pointer;
}
.coop-title { font-size: 17px; font-weight: 700; }
.coop-desc { margin-top: 6px; font-size: 12px; opacity: .85; }
.coop-btn { display: inline-block; margin-top: 12px; background: #fff; color: var(--red); font-size: 13px; font-weight: 600; padding: 6px 18px; border-radius: 999px; }

.footer { text-align: center; color: #B5B5B5; font-size: 11px; padding: 18px 0 6px; line-height: 1.9; }

/* ---------- 视频列表 ---------- */
.vitem { overflow: hidden; padding: 0; cursor: pointer; }
.vitem-cover { position: relative; width: 100%; height: 176px; }
.vitem-body { padding: 10px 14px 12px; }
.vitem-title { font-size: 15px; font-weight: 700; }
.vitem-guest { margin-top: 4px; color: var(--ink-2); font-size: 12px; }
.vitem-meta { margin-top: 4px; color: var(--gray); font-size: 11px; }

/* ---------- 视频详情 ---------- */
.player { width: 100%; height: 211px; background: #000; display: block; }
.vinfo-title { font-size: 17px; font-weight: 700; }
.vinfo-meta { margin-top: 8px; font-size: 12px; color: var(--gray); display: flex; align-items: center; flex-wrap: wrap; }
.chip { display: inline-block; background: rgba(230,0,18,.08); color: var(--red); font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-right: 8px; }
.guest { display: flex; align-items: center; margin-top: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.guest-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.guest-info { margin-left: 10px; }
.guest-name { font-size: 14px; font-weight: 600; }
.guest-role { font-size: 11px; color: var(--gray); margin-top: 1px; }
.vinfo-desc { margin-top: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.8; }

.ep { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ep:last-child { border-bottom: none; }
.ep-cover { width: 100px; height: 56px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.ep-main { flex: 1; min-width: 0; margin-left: 10px; }
.ep-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-meta { font-size: 11px; color: var(--gray); margin-top: 3px; }
.ep-no { font-size: 12px; color: #C5C5C5; margin-left: 8px; font-weight: 600; }
.ep.ep-active .ep-title, .ep.ep-active .ep-no { color: var(--red); }

.bottom-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 50;
  background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.bb-info { font-size: 12px; color: var(--ink-2); }
.bb-phone { color: var(--red); font-weight: 600; margin-left: 6px; }
.bb-btn { background: var(--red); color: #fff; font-size: 14px; font-weight: 600; padding: 8px 22px; border-radius: 999px; }

/* ---------- 文章列表 ---------- */
.aitem { cursor: pointer; }
.aitem-top { display: flex; align-items: center; justify-content: space-between; }
.aitem-date { font-size: 11px; color: var(--gray); }
.aitem-title { font-size: 15px; font-weight: 700; margin-top: 8px; }
.aitem-summary { font-size: 12px; color: var(--ink-2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.aitem-meta { font-size: 11px; color: var(--gray); margin-top: 8px; }

/* ---------- 文章详情 ---------- */
.art .tag { font-size: 11px; padding: 2px 9px; }
.art-title { font-size: 19px; font-weight: 700; line-height: 1.5; margin-top: 10px; }
.art-meta { display: flex; align-items: center; margin-top: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.art-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.art-author { margin-left: 10px; }
.art-author-name { font-size: 13px; font-weight: 600; }
.art-author-sub { font-size: 11px; color: var(--gray); }
.c-p { font-size: 14px; color: var(--ink-2); line-height: 1.9; margin-top: 14px; text-align: justify; }
.c-h2 { font-size: 16px; font-weight: 700; margin-top: 20px; padding-left: 10px; position: relative; }
.c-h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--red); }
.c-quote { margin-top: 16px; padding: 12px 14px; background: rgba(230,0,18,.04); border-left: 3px solid var(--red); border-radius: 0 8px 8px 0; color: var(--ink-2); font-size: 13px; line-height: 1.8; }

.contact-card { background: linear-gradient(135deg, #262626 0%, #101010 100%); border-radius: 10px; padding: 20px; color: #fff; margin: 12px; }
.contact-card-title { font-size: 16px; font-weight: 700; }
.contact-card-desc { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.6); }
.contact-card-btns { margin-top: 14px; }
.cc-btn { display: inline-block; background: var(--red); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 20px; border-radius: 999px; }
.footer-tip { text-align: center; color: #B5B5B5; font-size: 11px; padding: 4px 12px 20px; }

/* ---------- 合作页 ---------- */
.coop-hero {
  background: linear-gradient(160deg, #262626 0%, #101010 100%);
  padding: 36px 20px; color: #fff; text-align: center;
}
.coop-hero-title { font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.coop-hero-sub { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.55); }
.ways { display: flex; flex-wrap: wrap; gap: 10px; }
.way { width: calc(50% - 5px); background: var(--bg); border-radius: 8px; padding: 12px; }
.way-no { font-size: 18px; font-weight: 800; color: var(--red); }
.way-title { font-size: 14px; font-weight: 700; margin-top: 4px; }
.way-desc { font-size: 11px; color: var(--gray); margin-top: 4px; line-height: 1.6; }

.contact { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact:last-of-type { border-bottom: none; }
.contact-name { font-size: 14px; font-weight: 600; }
.contact-label { font-size: 10px; color: var(--gray); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; margin-left: 8px; font-weight: 400; }
.contact-phone { font-size: 15px; color: var(--red); font-weight: 700; margin-top: 2px; letter-spacing: .5px; }
.contact-actions { display: flex; flex-direction: column; gap: 6px; }
.btn-call { background: var(--red); color: #fff; font-size: 12px; padding: 5px 14px; border-radius: 999px; text-align: center; }
.btn-copy { border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; padding: 5px 14px; border-radius: 999px; text-align: center; cursor: pointer; }
.tip { margin-top: 10px; font-size: 11px; color: var(--gray); }
.about-text { font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.about-slogan { margin-top: 12px; text-align: center; color: var(--red); font-size: 14px; font-weight: 600; }