﻿/* ==========================================================
   番番狗  影音导航  |  style.css
   ========================================================== */

/* === 设计变量（亮色） === */
:root {
  --bg:           #F5F7FB;
  --surface:      #FFFFFF;
  --surface-2:    #F0F3FA;
  --border:       #E3E9F4;
  --border-hover: #B8C8E8;

  --accent:       #1677FF;
  --accent-dim:   rgba(22, 119, 255, 0.09);
  --accent-glow:  rgba(22, 119, 255, 0.22);
  --accent-hover: #0E60D4;

  --text:         #1A2340;
  --text-2:       #5C6A8A;
  --text-3:       #9DA6C0;

  --green:        #18C75D;
  --green-dim:    rgba(24, 199, 93, 0.14);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC",
          "Microsoft YaHei UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  18px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  0.15s;
}

/* === 暗色模式 === */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0C1021;
    --surface:      #131929;
    --surface-2:    #1B2236;
    --border:       rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);

    --accent:       #3B87FF;
    --accent-dim:   rgba(59, 135, 255, 0.12);
    --accent-glow:  rgba(59, 135, 255, 0.26);
    --accent-hover: #5CA3FF;

    --text:         #DCE4FF;
    --text-2:       #6A7899;
    --text-3:       #3E4A66;

    --green:        #26D668;
    --green-dim:    rgba(38, 214, 104, 0.15);
  }
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === Layout === */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   Header   一行，轻量
   ============================================================ */
.header {
  height: 52px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

@supports (backdrop-filter: blur(1px)) {
  .header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(245, 247, 251, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  @media (prefers-color-scheme: dark) {
    .header { background: rgba(12, 16, 33, 0.90); }
  }
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent) 0%, #7C6CF8 100%);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand-desc {
  font-size: 12px;
  color: var(--text-3);
  padding: 2px 7px;
  background: var(--surface-2);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.header-tip {
  font-size: 12px;
  color: var(--text-3);
  text-align: right;
  flex-shrink: 0;
}

/* ============================================================
   Main
   ============================================================ */
.main {
  padding: 0 0 48px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-kicker::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.hero-headline {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-dot {
  color: var(--accent);
}

.hero-sub {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ============================================================
   Sites List
   ============================================================ */
.sites-list {
  margin-bottom: 36px;
}

.noscript-tip {
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
  padding: 40px 0;
}

.site-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 0 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.site-item:first-child {
  border-top: 1px solid var(--border);
}

/* hover 左侧竖条 */
.site-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), #7C6CF8);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transform: scaleY(0.5);
  transition: opacity .2s var(--ease), transform .22s var(--ease);
}

.site-item:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.site-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  align-self: start;
  padding-top: 4px;
  line-height: 1;
}

.site-info {
  min-width: 0;
}

.site-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2.5px var(--green-dim);
  flex-shrink: 0;
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 2.5px var(--green-dim); }
  50%      { box-shadow: 0 0 0 5px rgba(24,199,93,.04); }
}

.site-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.site-badge {
  padding: 2px 7px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.site-badge--hot {
  background: rgba(255, 59, 48, 0.10);
  color: #E8322A;
  border: 1px solid rgba(232, 50, 42, 0.18);
}

@media (prefers-color-scheme: dark) {
  .site-badge--hot { color: #FF5044; border-color: rgba(255,80,68,.22); }
}

.site-badge--ios {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(22, 119, 255, 0.20);
}

@media (prefers-color-scheme: dark) {
  .site-badge--ios { border-color: rgba(59,135,255,.25); }
}

.site-badge--new {
  background: rgba(24, 199, 93, 0.10);
  color: #18C75D;
  border: 1px solid rgba(24, 199, 93, 0.20);
}

.site-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}

/* 操作区 */
.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
  border: none;
  -webkit-appearance: none;
  text-decoration: none;
}

.btn-primary {
  padding: 9px 20px;
  font-size: 13px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-ghost {
  padding: 8px 13px;
  font-size: 12px;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--border);
  color: var(--text);
  border-color: var(--border-hover);
}

/* ============================================================
   底部免责声明（单行）
   ============================================================ */
.notice-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

.notice-sep {
  color: var(--border-hover);
  user-select: none;
}

/* ============================================================
   Responsive  移动端
   ============================================================ */
@media (max-width: 600px) {
  .header-tip { display: none; }
  .brand-desc { display: none; }

  .hero { padding: 28px 0 22px; }
  .hero-headline { margin-bottom: 6px; }

  .site-item {
    grid-template-columns: 22px 1fr;
    grid-template-rows: auto auto;
    gap: 0 14px;
    padding: 18px 0;
  }

  .site-actions {
    grid-column: 2;
    grid-row: 2;
    margin-top: 12px;
  }

  .site-title { font-size: 18px; }

  .btn-primary {
    padding: 9px 16px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .container { padding: 0 14px; }
}
