/* 星程直击 · 全局样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Noto Sans CJK SC", sans-serif;
  background:
    radial-gradient(1200px 800px at 82% -10%, rgba(139, 92, 246, .18), transparent 60%),
    radial-gradient(1000px 700px at -10% 20%, rgba(236, 72, 153, .14), transparent 55%),
    linear-gradient(180deg, #0b0f1c, #0e1424 45%, #0a0e18);
  color: #eef1f8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
::selection { background: rgba(236, 72, 153, .35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 999px; border: 2px solid #0b0f1c; }
::-webkit-scrollbar-track { background: transparent; }
button { font-family: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid rgba(139, 92, 246, .7); outline-offset: 2px; }

/* 背景光球 */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-orbs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: orb 22s ease-in-out infinite alternate; }
.bg-orbs i:nth-child(1) { width: 420px; height: 420px; background: #7c3aed; top: -120px; left: 8%; }
.bg-orbs i:nth-child(2) { width: 380px; height: 380px; background: #db2777; bottom: -140px; right: 4%; animation-delay: -8s; }
.bg-orbs i:nth-child(3) { width: 300px; height: 300px; background: #d97706; top: 42%; left: 56%; opacity: .22; animation-delay: -15s; }
@keyframes orb { to { transform: translate(60px, 40px) scale(1.12); } }

.site-header, .container, .mobile-tabbar, .site-footer { position: relative; z-index: 1; }

/* 顶栏 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(11, 15, 26, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 62px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #eef1f8; font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.brand-icon { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(120deg, #8b5cf6, #ec4899 55%, #f59e0b); display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(236, 72, 153, .6); flex: none; }
.brand-text em { font-style: normal; background: linear-gradient(120deg, #8b5cf6, #ec4899 55%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { margin-left: auto; display: flex; gap: 6px; }
.main-nav a { padding: 8px 16px; border-radius: 999px; color: #9aa3b5; text-decoration: none; font-size: 14px; font-weight: 600; transition: .25s; border: 1px solid transparent; }
.main-nav a:hover { color: #eef1f8; background: rgba(255, 255, 255, .06); }
.main-nav a.active { color: #fff; background: linear-gradient(120deg, #8b5cf6, #ec4899); box-shadow: 0 8px 20px -8px rgba(139, 92, 246, .7); }
.header-clock { font-variant-numeric: tabular-nums; font-size: 13px; color: #9aa3b5; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); padding: 6px 12px; border-radius: 999px; }

/* 阅读进度条 */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(120deg, #8b5cf6, #ec4899 55%, #f59e0b); }

/* 主容器 */
.container { max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; }

/* Hero */
.hero { padding: 54px 0 26px; text-align: center; }
.hero > * { animation: fadeUp .65s cubic-bezier(.2, .8, .2, 1) both; }
.hero > *:nth-child(1) { animation-delay: .02s; }
.hero > *:nth-child(2) { animation-delay: .08s; }
.hero > *:nth-child(3) { animation-delay: .14s; }
.hero > *:nth-child(4) { animation-delay: .2s; }
.hero > *:nth-child(5) { animation-delay: .26s; }
.hero > *:nth-child(6) { animation-delay: .32s; }
.hero > *:nth-child(7) { animation-delay: .38s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 77, 109, .12); border: 1px solid rgba(255, 77, 109, .3); color: #ff9db0; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d6d; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 {
  font-size: clamp(40px, 7vw, 64px); font-weight: 900; letter-spacing: .06em; line-height: 1.15;
  background: linear-gradient(120deg, #fff, #d4bfff 40%, #ffb3d9 70%, #ffd9a8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 30px rgba(139, 92, 246, .35));
}
.hero-sub { color: #9aa3b5; margin: 14px auto 26px; font-size: 15px; max-width: 520px; }
.hero-stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-stats > div { background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 16px; padding: 12px 22px; min-width: 104px; }
.hero-stats b { display: block; font-size: 26px; background: linear-gradient(120deg, #8b5cf6, #ec4899 55%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: 12px; color: #9aa3b5; }

/* 搜索框 */
.search-box { max-width: 520px; margin: 0 auto; position: relative; }
.search-box > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #6b7488; pointer-events: none; }
.search-box input {
  width: 100%; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px; padding: 13px 20px 13px 46px; color: #eef1f8; font-size: 15px; outline: none;
  transition: .25s; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.search-box input:focus { border-color: rgba(139, 92, 246, .55); box-shadow: 0 0 0 4px rgba(139, 92, 246, .15); }
.search-box input::placeholder { color: #6b7488; }

/* 筛选 chips */
.chip-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.chip {
  appearance: none; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .055);
  color: #9aa3b5; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: .25s; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chip:hover { color: #eef1f8; border-color: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.chip.active { color: #fff; background: linear-gradient(120deg, #8b5cf6, #ec4899); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(236, 72, 153, .6); }

/* 卡片基础 */
.card { background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .6); }

/* 明星分组 */
.home-list { margin-top: 6px; }
.star-section { margin: 34px 0 8px; }
.star-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.avatar {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none;
  font-weight: 800; color: #fff; font-size: 17px; background: var(--av-grad);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); position: relative;
}
.avatar::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 1px solid rgba(255, 255, 255, .18); pointer-events: none; }
.avatar.lg { width: 52px; height: 52px; border-radius: 16px; font-size: 22px; }
.avatar.sm { width: 30px; height: 30px; border-radius: 10px; font-size: 13px; }
.star-head-info { display: flex; flex-direction: column; gap: 2px; }
.star-head h2 { font-size: 20px; font-weight: 800; line-height: 1.2; }
.chip-cat { display: inline-flex; align-items: center; font-size: 11px; color: #9aa3b5; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); padding: 2px 10px; border-radius: 999px; width: max-content; }
.star-head .icon-btn { margin-left: auto; }

/* 事件卡片 */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.event-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; position: relative; overflow: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; }
.event-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(120deg, #8b5cf6, #ec4899 55%, #f59e0b); opacity: 0; transition: .3s; }
.event-card:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, .35); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55), 0 0 0 1px rgba(139, 92, 246, .12); }
.event-card:hover::before { opacity: 1; }
.event-card.is-live { border-color: rgba(255, 77, 109, .28); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.status.live { background: rgba(255, 77, 109, .14); color: #ff8098; }
.status.live .dot { background: #ff4d6d; animation: pulse 1.4s infinite; }
.status.upcoming { background: rgba(245, 166, 35, .14); color: #ffc46b; }
.status.upcoming .dot { background: #f5a623; }
.status.ended { background: rgba(124, 134, 155, .14); color: #9aa3b5; }
.status.ended .dot { background: #7c869b; }
.badge.platform { background: rgba(255, 255, 255, .05); color: #9aa3b5; border: 1px solid rgba(255, 255, 255, .08); }
.badge.platform svg { width: 11px; height: 11px; fill: var(--pf); color: var(--pf); }
.event-title { font-size: 16px; font-weight: 700; line-height: 1.5; }
.event-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #9aa3b5; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; margin-top: 2px; }
.star-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.star-name { font-weight: 700; font-size: 14px; white-space: nowrap; }
.card-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04); color: #9aa3b5; display: grid; place-items: center;
  cursor: pointer; transition: .2s;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { color: #eef1f8; border-color: rgba(255, 255, 255, .25); transform: translateY(-1px); }
.icon-btn.fav.on { color: #ff4d6d; border-color: rgba(255, 77, 109, .4); background: rgba(255, 77, 109, .12); }
.icon-btn.fav.on svg { fill: #ff4d6d; }
.icon-btn.pop { animation: pop .45s ease; }
@keyframes pop { 30% { transform: scale(1.35); } }
.icon-btn.ok { color: #34d399; border-color: rgba(52, 211, 153, .4); }
.btn-watch {
  display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(120deg, #8b5cf6, #ec4899);
  color: #fff; border: none; padding: 8px 16px; border-radius: 11px; font-size: 13px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: .25s; box-shadow: 0 8px 18px -8px rgba(139, 92, 246, .7);
}
.btn-watch:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(139, 92, 246, .85); }
.btn-watch::after { content: " ↗"; transition: transform .25s; }
.btn-watch:hover::after { transform: translate(2px, -1px); }

/* 空状态 */
.empty-state { text-align: center; padding: 70px 20px; color: #9aa3b5; background: rgba(255, 255, 255, .055); border: 1px dashed rgba(255, 255, 255, .12); border-radius: 18px; }
.empty-state .big { font-size: 44px; margin-bottom: 12px; }
.empty-state h3 { color: #eef1f8; margin-bottom: 8px; font-size: 18px; }
.empty-state p { font-size: 14px; margin-bottom: 18px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .06); color: #eef1f8; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; transition: .25s; cursor: pointer; }
.btn-ghost:hover { border-color: rgba(139, 92, 246, .5); color: #c4b5fd; transform: translateY(-1px); }
.empty-inline { padding: 22px; text-align: center; font-size: 13px; color: #6b7488; background: rgba(255, 255, 255, .03); border: 1px dashed rgba(255, 255, 255, .1); border-radius: 14px; }

/* 页头 / 章节标题 */
.page-head { padding: 36px 0 8px; }
.page-head h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 900; letter-spacing: .04em; }
.page-head .sub { color: #9aa3b5; font-size: 14px; margin-top: 8px; }
.page-head .sub b { color: #c4b5fd; }
.section-title { font-size: 18px; font-weight: 800; margin: 34px 0 4px; display: flex; align-items: center; gap: 8px; }

/* 时间线 */
.timeline { list-style: none; margin-top: 26px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 122px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, rgba(139, 92, 246, .5), rgba(236, 72, 153, .35), transparent); }
.tl-item { display: grid; grid-template-columns: 96px 26px 1fr; gap: 14px; position: relative; padding-bottom: 20px; }
.tl-item.tl-empty { display: block; }
.tl-time { text-align: right; padding-top: 4px; }
.tl-time-main { display: block; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tl-time-sub { font-size: 12px; color: #6b7488; }
.tl-marker { display: flex; justify-content: center; padding-top: 9px; }
.tl-marker .dot { width: 12px; height: 12px; border-radius: 50%; border: 3px solid #10141f; box-shadow: 0 0 0 2px rgba(255, 255, 255, .1); }
.tl-marker .dot.live { background: #ff4d6d; box-shadow: 0 0 0 2px rgba(255, 77, 109, .4); animation: pulse 1.4s infinite; }
.tl-marker .dot.upcoming { background: #f5a623; }
.tl-marker .dot.ended { background: #7c869b; }

/* 本周分组 */
.week-section { margin-top: 10px; }
.week-group { margin-top: 34px; }
.week-date { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.week-date h2 { font-size: 18px; font-weight: 800; }
.week-date .count { font-size: 12px; color: #6b7488; background: rgba(255, 255, 255, .06); padding: 3px 10px; border-radius: 999px; }

/* 移动端底部导航 */
.mobile-tabbar { display: none; }
.fav-count { position: absolute; top: 0; right: calc(50% - 18px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: linear-gradient(120deg, #8b5cf6, #ec4899); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; transform: scale(0); opacity: 0; transition: .2s; }
.fav-count.on { transform: scale(1); opacity: 1; }

/* 页脚 */
.site-footer { text-align: center; padding: 34px 20px 90px; color: #6b7488; font-size: 13px; border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(8, 11, 18, .4); }
.site-footer p { margin: 4px 0; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px);
  background: rgba(20, 26, 42, .92); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: #eef1f8; padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none; transition: .35s cubic-bezier(.2, .8, .2, 1); z-index: 100;
  max-width: 86vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-icon { font-size: 16px; }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

.noscript { max-width: 600px; margin: 40px auto; text-align: center; padding: 24px; background: rgba(255, 77, 109, .1); border: 1px solid rgba(255, 77, 109, .3); border-radius: 14px; color: #ff9db0; }

/* 响应式 */
@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-clock { display: none; }
  .mobile-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    background: rgba(12, 16, 28, .82); border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 0; color: #6b7488; text-decoration: none; font-size: 11px; font-weight: 600;
    position: relative; transition: .2s;
  }
  .mobile-tabbar a svg { width: 22px; height: 22px; }
  .mobile-tabbar a.active { color: #c4b5fd; }
  .mobile-tabbar a.active svg { filter: drop-shadow(0 0 6px rgba(139, 92, 246, .6)); }
  .tl-item { grid-template-columns: 64px 22px 1fr; gap: 10px; }
  .timeline::before { left: 84px; }
  .event-grid { grid-template-columns: 1fr; }
  .container { padding: 20px 14px 100px; }
  .hero { padding-top: 38px; }
  .hero-stats > div { padding: 10px 14px; min-width: 78px; }
  .hero-stats b { font-size: 22px; }
  .site-footer { padding-bottom: 120px; }
  .toast { bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
