:root {
  --brand: #dc2f35;
  --brand-deep: #b91f2b;
  --ink: #20232a;
  --muted: #7c8290;
  --line: #e8ebf0;
  --soft: #f4f6f8;
  --panel: #ffffff;
  --radius: 8px;
  --shadow: 0 10px 34px rgba(28, 38, 55, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }

body {
  background: var(--soft);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font: inherit; }
img { max-width: 100%; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(222, 226, 233, 0.92);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 16px rgba(30, 40, 55, 0.035);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 48px));
  height: 72px;
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0 auto;
  padding: 0 30px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px 4px 10px 4px;
  background: linear-gradient(145deg, #f04b50, var(--brand-deep));
  box-shadow: 0 7px 16px rgba(194, 31, 42, 0.22);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { color: #1f2329; font-size: 19px; letter-spacing: 0.08em; }
.brand-copy small { color: #8d929c; font-family: Arial, sans-serif; font-size: 8px; letter-spacing: 0.16em; }

.site-nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 5px;
}

.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #5b616b;
  font-size: 14px;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: 160ms ease;
}

.site-nav a:hover, .site-nav a.is-active { color: var(--brand-deep); }
.site-nav a:hover::after, .site-nav a.is-active::after { opacity: 1; transform: scaleX(1); }

.header-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #858b96;
  font-size: 12px;
  white-space: nowrap;
}

.header-date i { width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: #32aa6b; box-shadow: 0 0 0 3px rgba(50, 170, 107, 0.12); }

.page {
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
  margin: 28px auto 0;
}

.video-feed, .sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.video-feed { min-width: 0; padding: 28px 30px 36px; }

.feed-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.feed-title { min-width: 0; }
.eyebrow { display: block; margin-bottom: 5px; color: var(--brand); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; }
.feed-title h1 { margin: 0; color: #1d2026; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.feed-title p { margin: 7px 0 0; color: #8b919c; font-size: 13px; }
.refresh-button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid #f0b4b7;
  border-radius: 18px;
  background: #fff;
  color: var(--brand-deep);
  font-size: 13px;
  cursor: pointer;
  transition: 160ms ease;
}

.refresh-button::before { content: "↻"; font-size: 16px; line-height: 1; }
.refresh-button:hover { border-color: var(--brand); background: #fff7f7; transform: translateY(-1px); }
.refresh-button:focus-visible { outline: 3px solid rgba(220, 47, 53, 0.2); outline-offset: 2px; }
.refresh-button:disabled { cursor: wait; opacity: 0.65; }

.feature-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(265px, 0.9fr); gap: 22px; }

.feature-video {
  position: relative;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  border-radius: 7px;
  background: #17191d;
  color: #fff;
  text-decoration: none;
}

.feature-video img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 320ms ease; }
.feature-video:hover img { transform: scale(1.025); }
.feature-video::after { position: absolute; z-index: 1; inset: 30% 0 0; background: linear-gradient(to bottom, transparent 3%, rgba(6, 9, 14, 0.2) 35%, rgba(6, 9, 14, 0.82)); content: ""; pointer-events: none; }
.feature-copy { position: absolute; z-index: 2; right: 22px; bottom: 22px; left: 22px; }

.feature-topic, .topic { display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; color: #fff; font-size: 11px; line-height: 1; }
.feature-topic { height: 24px; padding: 0 9px; font-weight: 700; }
.feature-copy h2 { max-width: 92%; margin: 10px 0 0; color: #fff; font-size: 22px; font-weight: 700; line-height: 1.45; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
.feature-hint { position: absolute; z-index: 2; right: 20px; bottom: 18px; display: none; align-items: center; gap: 3px; color: rgba(255, 255, 255, 0.78); font-size: 12px; }
.feature-hint b { font-size: 20px; font-weight: 400; }
.topic-auto { background: #d92f36; }
.topic-ent { background: #8c4bc4; }
.topic-news { background: #2579be; }

.selected-videos {
  min-width: 0;
  padding: 17px 17px 15px;
  border: 1px solid #eceef2;
  border-radius: 7px;
  background: linear-gradient(180deg, #fafbfc, #fff);
}

.selected-title { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid #eef0f3; }
.selected-title > span:last-child { display: grid; gap: 2px; }
.selected-title strong { color: #24272d; font-size: 15px; line-height: 18px; }
.selected-title small { color: #a0a5ae; font-size: 9px; font-weight: 400; letter-spacing: 0.1em; }
.hot-mark { width: 24px; height: 24px; display: inline-flex; flex: 0 0 24px; align-items: center; justify-content: center; border-radius: 5px; background: linear-gradient(145deg, #f15c61, #d52832); box-shadow: 0 4px 10px rgba(211, 40, 51, 0.2); color: #fff; font-size: 12px; font-weight: 700; }

.selected-list { margin: 7px 0 0; padding: 0; list-style: none; }
.selected-list li { min-height: 37px; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 7px; border-bottom: 1px dashed #eff1f4; }
.selected-list li:last-child { border-bottom: 0; }
.selected-list a { display: block; overflow: hidden; color: #3f444d; font-size: 12px; line-height: 19px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.selected-list a:hover { color: var(--brand-deep); }
.rank { width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; color: #8a9099; font-family: Arial, sans-serif; font-size: 10px; font-weight: 700; line-height: 17px; }
.rank-1 { background: linear-gradient(135deg, #ffd75b, #f0a817); color: #fff; }
.rank-2 { background: linear-gradient(135deg, #ff8c93, #e84d57); color: #fff; }
.rank-3 { background: linear-gradient(135deg, #b9d8ff, #618fc4); color: #fff; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 24px; border-top: 1px solid #eceef2; }
.section-heading > div { display: grid; justify-items: start; gap: 4px; }
.section-heading span { color: var(--brand); font-family: Arial, sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.16em; }
.section-heading h2 { margin: 0; color: #22262d; font-size: 20px; line-height: 1.3; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; margin-top: 18px; }

.video-card { min-width: 0; overflow: hidden; border: 1px solid #eceef2; border-radius: 6px; background: #fff; opacity: 1; transform: translateY(0); transition: opacity 150ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.video-card:hover { border-color: #e1e4e9; box-shadow: 0 9px 22px rgba(31, 40, 55, 0.09); transform: translateY(-2px); }
.video-grid.is-switching .video-card { opacity: 0.25; transform: translateY(4px); }
.video-card a { height: 100%; display: flex; flex-direction: column; color: inherit; text-decoration: none; }

.thumb-wrap { position: relative; aspect-ratio: 16 / 10; display: block; overflow: hidden; background: #e7e9ed; }
.thumb { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 260ms ease; }
.video-card:hover .thumb { transform: scale(1.035); }
.topic { position: absolute; top: 8px; left: 8px; height: 21px; padding: 0 7px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.13); }
.news-date { position: absolute; right: 7px; bottom: 7px; height: 19px; padding: 0 6px; border-radius: 3px; background: rgba(11, 15, 21, 0.64); color: #fff; font-size: 9px; line-height: 19px; backdrop-filter: blur(3px); }

.insurance-feature-banner { display: block; margin-top: 26px; overflow: hidden; border: 1px solid #eadfd1; border-radius: 7px; background: #f7f2eb; }
.insurance-feature-banner img { width: 100%; height: auto; display: block; transition: transform 280ms ease; }
.insurance-feature-banner:hover img { transform: scale(1.012); }

.card-content { min-height: 88px; display: flex; flex-direction: column; padding: 11px 12px 12px; }
.video-card h3 { min-height: 45px; margin: 0; overflow: hidden; color: #30343b; font-size: 14px; font-weight: 400; line-height: 22px; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-source { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; color: #a0a5ae; font-size: 10px; }
.card-source::before { width: 11px; height: 1px; background: #d9dce2; content: ""; }
.noscript-tip { margin: 18px 0 0; padding: 14px; border: 1px solid #f0d6d8; border-radius: 5px; background: #fff8f8; color: #9d3439; font-size: 13px; }

.sidebar { position: sticky; top: 96px; min-height: 0; padding: 12px; }
.insurance-sidebar-panel { width: 235px; max-width: 100%; display: block; margin: 0 auto; }
.insurance-secondary-offer { width: 235px; max-width: 100%; height: auto; display: block; margin: 14px auto 0; padding-top: 14px; border-top: 1px solid #edf0f3; }

.sidebar-links { width: 100%; margin-top: 16px; padding-top: 16px; border-top: 1px solid #edf0f3; }
.sidebar-links h2 { margin: 0 0 11px; color: #282b31; font-size: 18px; line-height: 1.35; font-weight: 700; }
.friendly-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 4px; }
.friendly-links a {
  min-width: 0;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  border-radius: 3px;
  background: #f6f7f8;
  color: #737982;
  font-size: 11px;
  line-height: 20px;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
  transition: 160ms ease;
}
.friendly-links a:hover { background: #fff1f2; color: var(--brand-deep); }
.friendly-links a:focus-visible, .sidebar-contact a:focus-visible { outline: 3px solid rgba(220, 47, 53, 0.2); outline-offset: 2px; }
.sidebar-contact { display: flex; flex-wrap: wrap; gap: 2px 3px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #edf0f3; color: #9298a1; font-size: 11px; line-height: 18px; }
.sidebar-contact a { color: #5f6670; text-decoration: none; overflow-wrap: anywhere; }
.sidebar-contact a:hover { color: var(--brand-deep); text-decoration: underline; }

.site-footer { margin-top: 0; padding: 30px 0 38px; background: #202a36; color: #c8ced7; }
.footer-inner { width: min(1180px, calc(100% - 48px)); display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 0 auto; }
.footer-brand { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 0.06em; text-decoration: none; }
.footer-inner p { margin: 8px 0 0; color: #98a2af; font-size: 12px; }
.footer-meta { display: flex; align-items: center; gap: 20px; color: #8994a1; font-size: 11px; }
.footer-meta a { color: #b7c0ca; text-decoration: none; }
.footer-meta a:hover { color: #fff; }

.page-dock { position: fixed; z-index: 20; top: 48%; right: 0; width: 34px; padding: 12px 7px; border-radius: 6px 0 0 6px; background: #fff; box-shadow: 0 5px 18px rgba(29, 38, 52, 0.14); color: #65717f; font-size: 11px; line-height: 17px; text-align: center; }

@media (max-width: 1040px) {
  .header-inner, .page, .footer-inner { width: calc(100% - 40px); }
  .header-inner { padding: 0 24px; }
  .page { grid-template-columns: minmax(0, 1fr) 268px; gap: 20px; }
  .video-feed { padding-right: 24px; padding-left: 24px; }
  .feature-layout { grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.95fr); gap: 18px; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-inner { gap: 20px; }
  .site-nav a { padding: 0 10px; }
  .page { grid-template-columns: 1fr; }
  .sidebar { position: static; width: min(430px, 100%); min-height: 0; margin: 0 auto; }
  .feature-layout { grid-template-columns: 1fr; }
  .selected-videos { padding: 17px 18px; }
  .selected-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
  .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .header-inner, .page, .footer-inner { width: 100%; }
  .header-inner { height: 64px; padding: 0 16px; }
  .page { gap: 0; }
  .brand-mark { width: 34px; height: 34px; font-size: 18px; }
  .brand-copy strong { font-size: 17px; }
  .site-nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 0 9px; font-size: 13px; white-space: nowrap; }
  .site-nav a::after { right: 9px; left: 9px; }
  .header-date { display: none; }
  .page { margin-top: 16px; }
  .video-feed, .sidebar { border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
  .video-feed { padding: 22px 16px 28px; }
  .feed-heading { align-items: center; margin-bottom: 20px; }
  .feed-title h1 { font-size: 26px; }
  .feed-title p { font-size: 12px; }
  .feature-video { border-radius: 6px; }
  .feature-copy { right: 16px; bottom: 16px; left: 16px; }
  .feature-copy h2 { max-width: 100%; margin-top: 8px; font-size: 18px; line-height: 1.5; }
  .selected-list { grid-template-columns: 1fr; }
  .section-heading { margin-top: 28px; padding-top: 20px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .video-card { border-radius: 5px; }
  .video-card h3 { font-size: 13.5px; line-height: 21px; }
  .sidebar { margin-top: 16px; padding: 14px; border-right: 0; border-left: 0; }
  .friendly-links { gap: 7px 6px; }
  .friendly-links a { min-height: 35px; font-size: 12px; }
  .sidebar-links h2 { font-size: 19px; }
  .site-footer { padding: 28px 16px 34px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-meta { flex-wrap: wrap; gap: 12px 18px; }
  .page-dock { display: none; }
}

@media (max-width: 520px) {
  .refresh-button { height: 34px; padding: 0 12px; font-size: 12px; }
  .selected-videos { padding: 15px 14px; }
  .selected-list li { min-height: 39px; }
  .insurance-feature-banner { aspect-ratio: 2.8 / 1; }
  .insurance-feature-banner img { height: 100%; object-fit: cover; object-position: 65% center; }
  .video-grid { grid-template-columns: 1fr; gap: 12px; }
  .video-card a { display: grid; grid-template-columns: 126px minmax(0, 1fr); align-items: stretch; }
  .thumb-wrap { height: 92px; aspect-ratio: auto; border-radius: 5px 0 0 5px; }
  .card-content { min-height: 92px; padding: 9px 11px; }
  .video-card h3 { min-height: 42px; font-size: 13.5px; line-height: 21px; -webkit-line-clamp: 2; }
  .card-source { padding-top: 5px; }
  .sidebar { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
