/* =========================================================
   模板七 · 星河热榜站群模板（XINGHE HOT RADAR 榜单双栏）
   Figma: GEO内容矩阵网站(开发) — node 12-2
   设计基准宽 1920，正文内容区 1168 居中，无顶栏，顶部留白 70
   ========================================================= */

:root {
  --page-bg: #f4f5f6;         /* 画布浅灰底 */
  --card-bg: #ffffff;         /* 卡片白底 */
  --ink-strong: #3b3b3b;      /* 星河热榜 / 标题 */
  --ink-hot: #666666;         /* 相关热点标题 */
  --ink-meta: #ababab;        /* 日期标签 / 作者元信息 */
  --ink-date: #afafaf;        /* 右上角日期 */
  --accent-soft: rgba(62, 94, 184, 0.7); /* XINGHE 蓝色点缀 */
  --line-soft: rgba(0, 0, 0, 0.1);
  --media-gray: #d4d4d4;      /* 图片占位底 */
  --content-max: 1168px;      /* 内容区宽度（页脚等通用组件对齐用） */
  --font-cn: -apple-system, BlinkMacSystemFont, "PingFang SC",
             "Source Han Sans CN", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-en: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-num: "Inter", "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-cn);
  color: var(--ink-strong);
  background: var(--page-bg);
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* =========================================================
   布局（Frame 35 / 66）
   内容区 1168 居中，顶部留白 70px；无顶栏
   ========================================================= */
.layout {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  max-width: 1168px;
  margin: 0 auto;
  padding-top: 70px;
}

/* ---------- 左栏：星河热榜（Frame 65，右侧 50 内边距） ---------- */
.col-main {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 50px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 头部模块（Frame 67：左标题 + 右日期，底对齐） */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}

.masthead-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.brand-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.5;
  color: var(--accent-soft);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-cn {
  font-family: var(--font-cn);
  font-weight: 600;
  font-size: 42px;
  line-height: 1.4;
  letter-spacing: -0.05em;
  color: var(--ink-strong);
  white-space: nowrap;
}

.masthead-date {
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
  color: var(--ink-date);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* ---------- 左栏榜单白卡片（Frame 58） ---------- */
.rank-card {
  background: var(--card-bg);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 20px 30px 0;
}

/* 日期分组：9月7日 / 9月6日 */
.rank-group + .rank-group {
  margin-top: 30px;
}

.rank-date {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.21;
  letter-spacing: -0.05em;
  color: var(--ink-meta);
}

/* 每条资讯：上留白 10 + 文章行 + 分隔线(下10) */
.rank-unit {
  padding-top: 10px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 50px;
}

.rank-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-meta {
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-meta);
}

.rank-title {
  font-family: var(--font-cn);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.273;
  color: var(--ink-strong);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank-title a:hover { color: #000; }

/* 118 × 118 圆角4 */
.rank-thumb {
  flex: 0 0 118px;
  width: 118px;
  height: 118px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--media-gray);
}
.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.rank-item:hover .rank-thumb img { transform: scale(1.05); }

.rank-line {
  margin-top: 10px;
  height: 1px;
  width: 569.33px;
  max-width: 100%;
  background: var(--line-soft);
}

/* ---------- 右栏：相关热点（Frame 63，宽 318.67） ---------- */
.col-side {
  flex: 0 0 318.67px;
  width: 318.67px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 标题占用 85px 高条，文本底对齐（与左栏头部同高） */
.hot-title {
  height: 85px;
  display: flex;
  align-items: flex-end;
  font-family: var(--font-cn);
  font-weight: 600;
  font-size: 27px;
  line-height: 1.4;
  letter-spacing: -0.05em;
  color: var(--ink-hot);
}

.hot-card {
  background: var(--card-bg);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hot-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hot-headline {
  font-family: var(--font-cn);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink-strong);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-headline:hover { color: #000; }

.hot-meta {
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-meta);
}

.hot-divider {
  height: 1px;
  background: var(--line-soft);
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1240px) {
  .layout {
    max-width: calc(100% - 40px);
    padding-top: 56px;
  }
  :root { --content-max: calc(100% - 40px); }
  .col-main { padding-right: 40px; }
}

@media (max-width: 1024px) {
  .layout {
    flex-direction: column;
    gap: 30px;
  }
  .col-main { padding-right: 0; }
  .col-side {
    width: 100%;
    flex-basis: auto;
  }
  .hot-title { height: auto; }
}

@media (max-width: 640px) {
  .layout { max-width: calc(100% - 32px); padding-top: 40px; }
  :root { --content-max: calc(100% - 32px); }

  .masthead {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .brand-cn { font-size: 32px; }
  .brand-en { font-size: 10px; }
  .masthead-date { font-size: 13px; }

  .rank-card {
    border-radius: 14px;
    padding: 16px 16px 0;
  }
  .rank-group + .rank-group { margin-top: 24px; }
  .rank-date { font-size: 26px; }

  .rank-item {
    gap: 16px;
    align-items: center;
  }
  .rank-title { font-size: 18px; }
  .rank-meta { font-size: 13px; }
  .rank-thumb {
    flex-basis: 88px;
    width: 88px;
    height: 88px;
  }
  .rank-line { width: 100%; }

  .hot-title {
    font-size: 24px;
    line-height: 1.4;
  }
  .hot-card {
    border-radius: 14px;
    padding: 16px;
    gap: 16px;
  }
}
