/* ============================================================
   HKTV V2 - 前台设计系统（浅色红调）
   合并自：首頁預覽 v2 / 香港生活資訊 / 電視頻道介面 三份設計稿
   ============================================================ */

:root {
  --red: #a6192e; --red2: #c5283d; --ink: #22252a; --muted: #747982;
  --line: #e9e9e9; --paper: #f7f7f8; --white: #fff; --gold: #bd9a58;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }

/* ---------------- 顶部红条 ---------------- */
.topline { height: 4px; background: linear-gradient(90deg, #7b1022, var(--red2), #e8bd71); }

/* ---------------- 头部导航 ---------------- */
.header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 60; }
.head-inner { max-width: 1200px; margin: auto; height: 76px; display: flex; align-items: center; gap: 30px; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 184px; }
.brand-mark {
  width: 42px; height: 42px; background: var(--red); border-radius: 12px;
  display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 900;
  box-shadow: 0 5px 14px rgba(166, 25, 46, .19);
}
.brand-name { font-size: 20px; font-weight: 850; letter-spacing: .04em; color: var(--ink); }
.brand-name small { display: block; font-weight: 500; color: #888; font-size: 9px; letter-spacing: .18em; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 650; flex: 1; min-width: 0; }
.nav a { height: 76px; display: flex; align-items: center; position: relative; white-space: nowrap; color: #555; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--red); font-weight: 750; }
.nav a.active:after { content: ""; height: 3px; position: absolute; bottom: 0; left: 0; right: 0; background: var(--red); border-radius: 3px 3px 0 0; }
.head-actions { display: flex; align-items: center; gap: 12px; }
.fav-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font-size: 12.5px; color: var(--ink); background: #fff; white-space: nowrap;
}
.fav-btn i { color: var(--gold); }
.fav-btn:hover { border-color: #d8a0a8; color: var(--red); }
.fav-btn b { color: var(--gold); }
.search { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #666; }

/* ---------------- Hero ---------------- */
.hero-wrap { background: #fff; padding: 26px 24px 24px; }
.hero {
  max-width: 1152px; margin: auto; min-height: 356px; border-radius: 18px; overflow: hidden;
  position: relative;
  background: radial-gradient(ellipse at 78% 45%, rgba(216, 72, 80, .38), transparent 35%),
              linear-gradient(112deg, #701020 0%, #a6192e 48%, #c53343 100%);
  color: #fff; display: flex; align-items: center; padding: 46px 54px;
  box-shadow: 0 15px 38px rgba(130, 23, 42, .15);
}
.hero:before, .hero:after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; width: 460px; height: 460px; right: 10%; top: -220px; pointer-events: none; }
.hero:after { width: 570px; height: 570px; right: -3%; top: -280px; }
.hero-copy { position: relative; z-index: 2; max-width: 570px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); padding: 7px 12px; border-radius: 30px; font-size: 11px; letter-spacing: .11em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffcb72; box-shadow: 0 0 0 4px rgba(255, 203, 114, .3); }
.hero h1 { font-size: 42px; line-height: 1.22; margin: 19px 0 12px; letter-spacing: .01em; font-weight: 850; }
.hero p { color: #ffe5e7; font-size: 15px; line-height: 1.9; margin: 0; max-width: 490px; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn-primary, .btn-ghost { border-radius: 7px; padding: 12px 18px; font-size: 13px; font-weight: 750; display: inline-flex; gap: 9px; align-items: center; text-decoration: none; cursor: pointer; }
.btn-primary { background: #fff; color: var(--red); border: 1px solid transparent; }
.btn-primary:hover { filter: brightness(.97); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .76); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.download-note { font-size: 11px; color: rgba(255, 255, 255, .74); margin-top: 13px; }

/* 手机 + 电视设备示意 */
.device-stage { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); width: 400px; height: 300px; z-index: 1; }
.tv-device { position: absolute; width: 300px; height: 195px; right: 2px; top: 16px; background: #1b1d21; border: 8px solid #292c32; border-radius: 12px; box-shadow: 0 23px 45px rgba(66, 11, 23, .38); transform: rotate(2deg); }
.tv-screen { height: 100%; background: #171a20; padding: 11px; position: relative; overflow: hidden; }
.tv-scene { height: 100%; border-radius: 5px; background: radial-gradient(ellipse at 75% 35%, #d77c4a, #821c31 34%, #14233a 75%); display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; color: #fff; }
.tv-scene span { position: absolute; top: 12px; left: 13px; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.tv-scene b { font-size: 13px; }
.tv-channel-row { position: absolute; bottom: 10px; right: 12px; display: flex; gap: 4px; }
.tv-channel-row i { width: 16px; height: 10px; border-radius: 2px; background: rgba(255, 255, 255, .48); }
.tv-stand { position: absolute; width: 76px; height: 19px; background: linear-gradient(#34373d, #1e2024); bottom: -26px; left: calc(50% - 38px); clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%); }
.phone-device { position: absolute; width: 132px; height: 252px; left: 14px; bottom: 6px; background: #16181c; border: 6px solid #2d3036; border-radius: 23px; box-shadow: 0 20px 35px rgba(66, 11, 23, .44); transform: rotate(-7deg); padding: 5px; }
.phone-screen { height: 100%; border-radius: 16px; background: #fff; overflow: hidden; position: relative; padding: 8px; color: #292b30; }
.phone-top { display: flex; justify-content: space-between; font-size: 7px; font-weight: 800; }
.phone-brand { font-size: 12px; font-weight: 900; color: var(--red); margin: 8px 1px; }
.phone-brand small { font-size: 6px; background: var(--red); color: #fff; padding: 2px 4px; border-radius: 4px; }
.phone-poster { height: 111px; border-radius: 8px; background: linear-gradient(140deg, #172035, #96243a 58%, #d7a256); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 9px; }
.phone-poster span { font-size: 8px; }
.phone-poster b { font-size: 12px; margin-top: 3px; }
.phone-lines { padding: 10px 2px; }
.phone-lines i { display: block; height: 5px; border-radius: 5px; background: #ececee; margin: 6px 0; }
.phone-lines i:first-child { width: 85%; }
.phone-lines i:nth-child(2) { width: 62%; }
.phone-nav { position: absolute; bottom: 5px; left: 12px; right: 12px; display: flex; justify-content: space-between; color: var(--red); font-size: 12px; }
.device-caption { position: absolute; right: 5px; bottom: -3px; color: rgba(255, 255, 255, .73); font-size: 10px; letter-spacing: .12em; }

/* ---------------- 主体容器 ---------------- */
.wrap { max-width: 1200px; margin: auto; padding: 26px 24px 55px; }
.container { max-width: 1152px; margin: auto; padding: 0 24px; }

/* 快捷入口 */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 21px; }
.quick a { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 17px; display: flex; align-items: center; gap: 13px; transition: .2s; color: var(--ink); }
.quick a:hover { border-color: #d8a0a8; transform: translateY(-2px); box-shadow: 0 7px 20px rgba(166, 25, 46, .05); }
.quick-icon { width: 42px; height: 42px; display: grid; place-items: center; background: #fbf0f1; border-radius: 10px; color: var(--red); font-size: 20px; flex-shrink: 0; }
.quick b { font-size: 13px; display: block; }
.quick small { font-size: 11px; color: var(--muted); display: block; margin-top: 4px; }

/* 栏目 */
.section { padding-top: 34px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 15px; gap: 12px; }
.section-title { font-size: 20px; letter-spacing: .01em; margin: 0; font-weight: 800; }
.section-sub { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.more { font-size: 12px; font-weight: 700; color: var(--red); white-space: nowrap; }

/* 频道卡片 */
.channels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 13px; }
.channel { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 14px; min-height: 121px; position: relative; transition: .2s; display: block; color: var(--ink); }
.channel:hover { border-color: #d5a1a8; box-shadow: 0 8px 24px rgba(48, 16, 21, .07); transform: translateY(-2px); }
.channel-logo { width: 44px; height: 44px; border-radius: 10px; background: #f9f0f1; color: var(--red); display: grid; place-items: center; font-size: 13px; font-weight: 900; letter-spacing: -.05em; margin-bottom: 10px; overflow: hidden; }
.channel-logo img { width: 100%; height: 100%; object-fit: cover; }
.channel strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onair { position: absolute; right: 11px; top: 12px; font-size: 9px; color: #21845b; background: #eaf6ef; border-radius: 12px; padding: 4px 7px; font-weight: 700; }

/* 节目表 */
.program-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.program-row { display: grid; grid-template-columns: 74px 112px 1fr 110px; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid #f0f0f0; }
.program-row:last-child { border-bottom: 0; }
.time { font-size: 13px; font-weight: 800; color: var(--red); }
.program-tag { font-size: 10px; color: #777; background: #f3f3f4; border-radius: 4px; padding: 5px 8px; width: max-content; }
.program-name { font-size: 13px; font-weight: 700; }
.program-desc { font-size: 11px; color: var(--muted); margin-top: 4px; }
.progress { height: 4px; background: #eee; border-radius: 4px; margin-top: 8px; max-width: 410px; }
.progress i { height: 100%; display: block; width: 63%; background: var(--red); border-radius: 4px; }
.program-state { text-align: right; font-size: 10px; color: #888; }
.program-state em { font-style: normal; color: #21845b; font-weight: 700; }

/* 下载选项 */
.download-options { grid-template-columns: repeat(2, 1fr); }
.download-options a { position: relative; }
.option-arrow { margin-left: auto; color: var(--red); font-size: 21px; font-weight: 800; }

/* ---------------- 分类频道列表页 ---------------- */
.crumb { font-size: 11px; color: #858990; margin: 1px 0 17px; }
.crumb a:hover { color: var(--red); }
.crumb b { color: var(--red); font-weight: 700; }
.breadcrumb { font-size: 11px; color: #858990; margin-bottom: 14px; }
.breadcrumb b { color: var(--red); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.cat-row {
  background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px;
  display: flex; align-items: center; gap: 12px; transition: .2s; position: relative;
}
.cat-row:hover { border-color: #d5a1a8; box-shadow: 0 8px 24px rgba(166, 25, 46, .06); transform: translateY(-2px); }
.cat-row .ch-logo { width: 40px; height: 40px; border-radius: 9px; background: #faf1f2; color: var(--red); display: grid; place-items: center; font-size: 11px; font-weight: 900; flex-shrink: 0; overflow: hidden; }
.cat-row .ch-logo img { width: 100%; height: 100%; object-fit: cover; }
.cat-row .ch-body { min-width: 0; flex: 1; }
.cat-row .ch-body b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-row .ch-body small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-row .ch-go { color: var(--muted); font-size: 15px; flex-shrink: 0; }
.cat-row:hover .ch-go { color: var(--red); }
.cat-row .row-fav { background: transparent; border: 0; color: #c9c9c9; font-size: 15px; cursor: pointer; padding: 6px 4px; flex-shrink: 0; }
.cat-row .row-fav.fav-on { color: var(--gold); }

/* ---------------- 频道播放页 ---------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 21px; align-items: start; }
.maincol { min-width: 0; }
.player-shell { background: #17191e; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 32px rgba(30, 30, 36, .14); position: relative; }
.player { aspect-ratio: 16/9; position: relative; overflow: hidden; background: #0c0d10; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.player-loading { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: #fff; font-size: 12px; background: rgba(12, 13, 16, .55); z-index: 3; }
.player-loading .spin { width: 26px; height: 26px; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: hktvspin .8s linear infinite; }
@keyframes hktvspin { to { transform: rotate(360deg); } }
.live-label { position: absolute; left: 18px; top: 17px; background: #d51e37; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .09em; padding: 6px 9px; border-radius: 4px; z-index: 4; }
.quality { position: absolute; right: 16px; top: 17px; background: rgba(21, 23, 28, .66); border: 1px solid rgba(255, 255, 255, .25); color: #fff; padding: 6px 8px; border-radius: 4px; font-size: 10px; z-index: 4; }
.player-bottom { position: absolute; z-index: 4; bottom: 0; left: 0; right: 0; padding: 15px 18px; display: flex; justify-content: space-between; align-items: end; color: #fff; pointer-events: none; }
.onscreen-title { font-size: 18px; font-weight: 800; text-shadow: 0 2px 8px #000; }
.onscreen-sub { font-size: 11px; color: rgba(255, 255, 255, .78); margin-top: 5px; }
.player-controls { display: flex; gap: 14px; font-size: 17px; align-items: center; pointer-events: auto; }
.player-controls span { cursor: pointer; }

.channel-info { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-top: 15px; padding: 18px 20px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.channel-id { display: flex; align-items: center; gap: 13px; min-width: 0; }
.ch-logo-lg { width: 48px; height: 48px; background: #fbf0f1; color: var(--red); border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 13px; flex-shrink: 0; overflow: hidden; }
.ch-logo-lg img { width: 100%; height: 100%; object-fit: cover; }
.channel-info h1 { font-size: 19px; margin: 0 0 5px; }
.channel-meta { font-size: 11px; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.action { border: 1px solid var(--line); border-radius: 7px; padding: 10px 13px; font-size: 11px; font-weight: 700; background: #fff; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; color: var(--ink); }
.action:hover { border-color: #d8a0a8; }
.action.red { color: #fff; background: var(--red); border-color: var(--red); }
.action.red:hover { background: #8e1527; }
.action.on { color: var(--gold); border-color: #e6cfa4; }

/* 线路切换 */
.line-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; width: 100%; }
.line-chips button {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 6px 13px; font-size: 11px; font-weight: 700; cursor: pointer;
}
.line-chips button.on { background: var(--red); color: #fff; border-color: var(--red); }

/* 节目表（频道页） */
.schedule-card, .side-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.schedule-head { padding: 16px 18px 13px; display: flex; justify-content: space-between; align-items: center; }
.schedule-head h2, .side-card h2 { font-size: 15px; margin: 0; font-weight: 800; }
.date { font-size: 10px; color: #858990; }
.schedule-row { display: grid; grid-template-columns: 55px 1fr 66px; gap: 10px; padding: 14px 17px; border-top: 1px solid #f0f0f1; align-items: center; }
.schedule-row.current { background: #fff9f9; }
.schedule-row .time { font-size: 12px; }
.show-name { font-size: 12px; font-weight: 750; }
.show-desc { font-size: 10px; color: var(--muted); margin-top: 4px; }
.now { font-size: 9px; color: #18804f; background: #e9f6ee; border-radius: 12px; padding: 5px 7px; text-align: center; font-weight: 800; }
.upcoming { text-align: right; font-size: 9px; color: #9a9da3; }

/* 侧栏 */
.sidecol { display: flex; flex-direction: column; gap: 14px; }
.side-card { padding: 17px; }
.side-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.all { font-size: 10px; color: var(--red); font-weight: 700; }
.side-channel { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid #f1f1f1; color: var(--ink); }
.side-channel:first-of-type { border-top: 0; }
.mini-logo { width: 39px; height: 39px; background: #faf1f2; color: var(--red); border-radius: 9px; display: grid; place-items: center; font-size: 10px; font-weight: 900; flex-shrink: 0; overflow: hidden; }
.mini-logo img { width: 100%; height: 100%; object-fit: cover; }
.side-channel b { display: block; font-size: 11px; }
.side-channel small { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; }
.watching { margin-left: auto; font-size: 9px; color: #228452; font-weight: 800; }
.download-card { background: linear-gradient(145deg, #791326, #b72137); color: #fff; border-radius: 12px; padding: 17px; position: relative; overflow: hidden; }
.download-card:after { content: ""; position: absolute; width: 130px; height: 130px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; right: -35px; top: -53px; box-shadow: 0 0 0 17px rgba(255, 255, 255, .04), 0 0 0 34px rgba(255, 255, 255, .03); }
.download-card h3 { font-size: 15px; margin: 0 0 7px; position: relative; z-index: 1; }
.download-card p { font-size: 10px; line-height: 1.7; color: #ffe7e9; margin: 0 0 14px; position: relative; z-index: 1; }
.download-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; position: relative; z-index: 1; }
.download-links a { background: #fff; color: var(--red); border-radius: 6px; padding: 9px 7px; text-align: center; font-size: 10px; font-weight: 800; }
.tip { font-size: 10px; line-height: 1.7; color: #747982; }
.schedule-card { margin-top: 15px; }

/* ---------------- 香港生活資訊頁 ---------------- */
.info-hero .hero { min-height: 176px; padding: 29px 34px; justify-content: space-between; }
.info-hero .hero h1 { font-size: 28px; margin: 9px 0 7px; }
.info-hero .hero p { font-size: 12px; }
.hero-stamp { position: relative; z-index: 1; text-align: right; color: rgba(255, 255, 255, .79); font-size: 10px; line-height: 1.9; letter-spacing: .05em; }
.tabs { display: flex; gap: 8px; overflow: auto; margin: 18px 0 17px; padding-bottom: 3px; }
.tab { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 9px 15px; font-size: 11px; font-weight: 750; color: #5b5f66; cursor: pointer; }
.tab.active, .tab:hover { background: var(--red); color: #fff; border-color: var(--red); }
.page { display: none; padding: 0; }
.page.active { display: block; padding: 0; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 295px; gap: 18px; align-items: start; }
.main { min-width: 0; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; cursor: default; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.card-head > div { flex: 1; min-width: 0; }
.card-head h2 { font-size: 16px; margin: 0; }
.sub { font-size: 10px; color: var(--muted); margin-top: 5px; line-height: 1.7; }
.source { font-size: 9px; color: #1d8053; background: #eaf6ef; border-radius: 12px; padding: 5px 8px; white-space: nowrap; font-weight: 750; }
.weather-now { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px; background: linear-gradient(120deg, #fff8f2, #fff); border: 1px solid #f1e7df; border-radius: 10px; padding: 17px; }
.weather-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sun { font-size: 34px; flex-shrink: 0; filter: drop-shadow(0 4px 5px rgba(225, 162, 71, .25)); }
.temp { font-size: 32px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.temp small { font-size: 14px; font-weight: 600; }
.weather-text { font-size: 12px; font-weight: 750; white-space: nowrap; }
.weather-place { font-size: 10px; color: var(--muted); margin-top: 5px; white-space: nowrap; }
.weather-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.fact { border-left: 2px solid #e9c9a1; padding-left: 9px; min-width: 0; }
.fact small { display: block; font-size: 9px; color: var(--muted); white-space: nowrap; }
.fact b { font-size: 12px; display: block; margin-top: 4px; white-space: nowrap; }
.forecast { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; border-top: 1px solid #f0f0f0; padding-top: 12px; }
.day { text-align: center; border-right: 1px solid #f0f0f0; }
.day:last-child { border: 0; }
.day small { font-size: 9px; color: var(--muted); }
.day b { display: block; font-size: 11px; margin: 7px 0; }
.day i { font-style: normal; font-size: 18px; }
.day span { display: block; font-size: 9px; color: #858990; margin-top: 5px; }
.mini-note { font-size: 9px; color: #999; margin-top: 12px; line-height: 1.6; }
.bus-top { display: flex; gap: 10px; margin-bottom: 14px; }
.input { flex: 1; border: 1px solid var(--line); border-radius: 7px; padding: 11px 12px; font-size: 11px; color: #666; background: #fff; }
.redbtn { background: var(--red); color: #fff; border: 0; border-radius: 7px; padding: 0 15px; font-size: 11px; font-weight: 750; cursor: pointer; }
.redbtn:hover { background: #8e1527; }
.stop-label { font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.bus-row { display: grid; grid-template-columns: 51px 1fr auto; align-items: center; gap: 11px; border-top: 1px solid #f0f0f0; padding: 12px 0; }
.route { font-size: 14px; font-weight: 850; color: var(--red); }
.bus-dest b { display: block; font-size: 11px; }
.bus-dest small { display: block; color: var(--muted); font-size: 9px; margin-top: 4px; }
.eta { font-size: 11px; font-weight: 800; color: #218452; background: #eaf6ef; padding: 7px 9px; border-radius: 6px; }
.exchange-table { width: 100%; border-collapse: collapse; }
.exchange-table th { text-align: left; color: #878b91; font-size: 9px; font-weight: 650; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.exchange-table td { padding: 12px 8px; border-bottom: 1px solid #f2f2f2; font-size: 11px; }
.exchange-table tr:last-child td { border: 0; }
.currency { font-weight: 800; }
.curr-code { font-size: 9px; color: var(--muted); margin-left: 5px; }
.rate { font-weight: 800; }
.change { color: #20814e; font-size: 10px; }
.sidebar { display: flex; flex-direction: column; gap: 13px; }
.sidecard { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 16px; }
.sidehead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.sidehead h3 { font-size: 13px; margin: 0; }
.sidehead a { font-size: 9px; color: var(--red); font-weight: 700; }
.brief { padding: 10px 0; border-top: 1px solid #f0f0f0; }
.brief:first-of-type { border-top: 0; }
.brief .tag { font-size: 8px; color: var(--red); background: #fbf0f1; border-radius: 3px; padding: 4px 6px; font-weight: 800; }
.brief b { display: block; font-size: 10px; line-height: 1.6; margin-top: 7px; }
.brief small { display: block; font-size: 9px; color: var(--muted); margin-top: 5px; }
.disclaimer { background: #f8f8f8; border-radius: 7px; padding: 10px; font-size: 9px; line-height: 1.7; color: #7d8188; margin-top: 12px; }
.source-link { color: var(--red); font-weight: 700; }
.data-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.data-card b { display: block; font-size: 11px; }
.data-card small { display: block; font-size: 9px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.data-pill { font-size: 9px; color: #218452; background: #eaf6ef; padding: 5px 8px; border-radius: 12px; white-space: nowrap; }
.section-title-lg { font-size: 17px; margin: 0 0 5px; font-weight: 800; }
.section-sub-lg { font-size: 10px; color: var(--muted); margin: 0 0 13px; }

/* ---------------- 下载 / 帮助 / 关于 页面 ---------------- */
.step-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 14px; }
.step-card h2 { font-size: 16px; margin: 0 0 13px; display: flex; align-items: center; gap: 9px; }
.step-card h2 .step-no { width: 24px; height: 24px; background: var(--red); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
.step-list { list-style: none; margin: 0; padding: 0; }
.step-list li { display: flex; gap: 11px; padding: 10px 0; border-top: 1px solid #f2f2f2; font-size: 12px; line-height: 1.7; }
.step-list li:first-child { border-top: 0; }
.step-list li i { color: var(--red); font-style: normal; font-weight: 900; flex-shrink: 0; }
.help-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 13px; }
.help-card h3 { font-size: 14px; margin: 0 0 9px; display: flex; gap: 9px; align-items: center; }
.help-card h3 i { font-style: normal; color: var(--red); }
.help-card p { font-size: 12px; color: #555; line-height: 1.8; margin: 0; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 14px; }
.about-card h2 { font-size: 16px; margin: 0 0 11px; }
.about-card p { font-size: 12.5px; line-height: 2; color: #4d5157; margin: 0 0 9px; }
.contact-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid #f0f0f0; font-size: 12.5px; }
.contact-row:first-of-type { border-top: 0; }
.contact-row i { color: var(--red); font-style: normal; font-weight: 900; }

/* ---------------- 页脚 ---------------- */
.footer { margin-top: 46px; background: #24262b; color: #d7d7d9; padding: 25px 24px; }
.footer-inner { max-width: 1200px; margin: auto; display: flex; align-items: center; justify-content: space-between; font-size: 11px; flex-wrap: wrap; gap: 14px; }
.footer b { color: #fff; letter-spacing: .08em; }
.footer-links { display: flex; gap: 20px; color: #aaa; }
.footer-links a:hover { color: #fff; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1160px) {
  .head-inner { gap: 16px; padding: 0 16px; }
  .nav { gap: 15px; font-size: 12.5px; }
}
@media (max-width: 900px) {
  .head-inner { gap: 16px; }
  .nav { gap: 13px; font-size: 12px; }
  .hero { padding: 38px; min-height: 330px; }
  .hero h1 { font-size: 32px; }
  .device-stage { right: -24px; transform: translate(16%, -50%) scale(.78); opacity: .72; }
  .channels { grid-template-columns: repeat(3, 1fr); }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: minmax(0, 1fr) 250px; }
  .weather-now { grid-template-columns: 1fr; }
  .weather-facts { grid-template-columns: repeat(4, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; }
  .channel-info { align-items: flex-start; }
}
@media (max-width: 650px) {
  .head-inner { height: 61px; padding: 0 15px; justify-content: space-between; gap: 10px; }
  .brand { min-width: 0; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 17px; }
  .brand-name { font-size: 17px; }
  .nav { display: none; }
  .fav-btn { padding: 6px 10px; font-size: 11px; }
  .hero-wrap { padding: 15px 14px 17px; }
  .hero { min-height: 340px; padding: 28px 23px; align-items: flex-start; border-radius: 14px; }
  .hero h1 { font-size: 31px; margin-top: 17px; }
  .hero p { font-size: 13px; max-width: 330px; }
  .device-stage { right: -116px; top: 73%; transform: translateY(-50%) scale(.72); opacity: .42; }
  .wrap { padding: 18px 13px 35px; }
  .container { padding: 0 14px; }
  .quick { gap: 9px; margin-top: 13px; }
  .quick a { padding: 12px 10px; gap: 9px; }
  .quick-icon { width: 36px; height: 36px; font-size: 17px; }
  .quick b { font-size: 12px; }
  .quick small { font-size: 10px; }
  .section { padding-top: 27px; }
  .section-title { font-size: 18px; }
  .channels { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .channel { min-height: 112px; padding: 12px; }
  .channel-logo { width: 39px; height: 39px; margin-bottom: 8px; }
  .program-row { grid-template-columns: 53px 1fr 55px; gap: 9px; padding: 13px 12px; }
  .program-tag { display: none; }
  .program-name { font-size: 12px; }
  .program-desc { font-size: 10px; }
  .program-state { font-size: 9px; }
  .download-options { grid-template-columns: 1fr; }
  .grid { display: flex; flex-direction: column; }
  .main, .sidebar { width: 100%; }
  .card { padding: 14px; margin-bottom: 11px; }
  .weather-now { padding: 12px; }
  .weather-facts { grid-template-columns: 1fr 1fr; }
  .forecast { grid-template-columns: repeat(4, 1fr); }
  .layout { display: flex; flex-direction: column; gap: 13px; }
  .maincol { width: 100%; }
  .player-shell { border-radius: 10px; }
  .player { aspect-ratio: 16/10; }
  .live-label { left: 10px; top: 10px; font-size: 9px; }
  .quality { right: 9px; top: 10px; }
  .player-bottom { padding: 10px 11px; }
  .onscreen-title { font-size: 14px; }
  .onscreen-sub { font-size: 9px; }
  .player-controls { gap: 11px; font-size: 15px; }
  .channel-info { padding: 13px; border-radius: 10px; margin-top: 10px; display: block; }
  .channel-id { gap: 10px; }
  .ch-logo-lg { width: 42px; height: 42px; }
  .channel-info h1 { font-size: 16px; }
  .channel-meta { font-size: 10px; }
  .actions { margin-top: 13px; }
  .action { flex: 1; padding: 10px 7px; font-size: 10px; justify-content: center; }
  .schedule-row { grid-template-columns: 46px 1fr 54px; padding: 12px 13px; gap: 7px; }
  .sidecol { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .side-card { padding: 13px; margin: 0; grid-column: 1/-1; }
  .download-card { padding: 14px; grid-column: 1/-1; }
  .footer { padding: 22px 16px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 14px; }
  .info-hero .hero { padding: 23px 19px; min-height: 155px; }
  .info-hero .hero h1 { font-size: 24px; }
  .info-hero .hero p { font-size: 10px; max-width: 290px; }
  .hero-stamp { display: none; }
  .tabs { margin: 14px 0; gap: 6px; }
  .tab { padding: 8px 12px; font-size: 10px; }
}
