/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f5f7;
  --bg-card: #ffffff;
  --bg-card2: #fbfbfd;
  --text: #1d1d1f;
  --text-2: #515154;
  --text-3: #86868b;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --blue: #0071e3;
  --kuaishou: #FF5C00;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Helvetica Neue', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== 导航 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,245,247,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
}
.nav-brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ===== 左右分栏布局 ===== */
.layout {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  padding: 0 24px;
  gap: 0;
}

/* ===== 左侧目录 ===== */
.sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 0 40px;
  border-right: 1px solid var(--border);
  margin-right: 32px;
  transition: width 0.22s ease, margin-right 0.22s ease, padding 0.22s ease;
}
.sidebar.collapsed {
  width: 0;
  margin-right: 12px;
  padding: 0;
  border-right-color: transparent;
}
.sidebar.collapsed .sidebar-label,
.sidebar.collapsed .sidebar-nav {
  opacity: 0;
  pointer-events: none;
}
.sidebar-toggle {
  position: fixed;
  top: 52px + 18px;
  top: calc(52px + 18px);
  /* 跟着 sidebar 右边缘走 */
  left: calc(24px + 200px - 12px);   /* layout padding + sidebar width - 半径 */
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: white;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  transition: left 0.22s ease, color 0.15s, background 0.15s;
  z-index: 200;
  user-select: none;
  padding: 0;
}
.sidebar-toggle:hover {
  background: var(--bg);
  color: var(--text);
}
/* 收起时按钮移到左边 */
body.sidebar-collapsed .sidebar-toggle {
  left: calc(24px - 12px);
}
.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 16px;
  margin-bottom: 8px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}
.sidebar-item:not(.active):hover {
  background: rgba(0,0,0,0.04);
  color: var(--text);
}
.sidebar-item.active {
  color: var(--blue);
}
.sidebar-item.active.expanded .sidebar-item-week::after {
  content: '';
}
.sidebar-item.active:not(.expanded) .sidebar-item-week::after {
  content: '';
}
.sidebar-item-week {
  font-size: 13px;
  font-weight: 600;
}
.sidebar-item-sub {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 400;
}

/* 当前周展开的区段导航 */
.sidebar-sections {
  margin: 2px 0 6px;
  border-left: 2px solid var(--border-strong);
  margin-left: 20px;
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sidebar-anchor {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
  user-select: none;
}
.sidebar-anchor:hover,
.sidebar-anchor.current {
  background: rgba(0,0,0,0.04);
  color: var(--text);
}
.sidebar-anchor.current {
  color: var(--blue);
  font-weight: 500;
}
.sidebar-anchor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sidebar-anchor-line {
  width: 6px;
  height: 2px;
  background: var(--text-3);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ===== 主区域 ===== */
main {
  flex: 1;
  min-width: 0;
  padding: 40px 0 80px;
}

/* ===== Hero 区域 ===== */
.hero {
  padding: 44px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.hero-left {}
.hero-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 6px;
}
.hero-week {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0;
}
.hero-right {
  text-align: right;
  flex-shrink: 0;
}
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: #e8f0fe;
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 6px;
}
.hero-meta {
  font-size: 12px;
  color: var(--text-3);
}
.hero-meta {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-3);
}

/* ===== 头条 ===== */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.headlines {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 40px;
}
.headline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  cursor: pointer;
}
.headline-item:last-child { border-bottom: none; }
.headline-item:hover { background: var(--bg-card2); }
.headline-item:hover .headline-text { color: var(--blue); }
.headline-rank {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  min-width: 18px;
  padding-top: 3px;
}
.headline-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.headline-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  transition: color 0.15s;
}
.headline-summary {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.55;
}
.headline-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  background: #f0f4ff;
  color: var(--blue);
}
.headline-tag.tag-人事 { background: #fff0f3; color: #ff2d55; }
.headline-tag.tag-产品 { background: #f0fff4; color: #34c759; }
.headline-tag.tag-技术 { background: #fff8ed; color: #f5a623; }
.headline-tag.tag-人才 { background: #f5f0ff; color: #af52de; }

/* ===== 公司卡片 ===== */
.companies-grid {
  display: grid;
  gap: 20px;
}
.company-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.company-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px 16px 20px;
  border-bottom: 1px solid var(--border);
  border-left: 4px solid transparent;
}
.card-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  flex: 1;
}
.card-summary {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  max-width: 420px;
  text-align: right;
}
.card-body {
  padding: 0;
}
.card-section {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.card-section:last-child { border-bottom: none; }
.card-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text) !important;   /* 文字统一黑色，品牌色只体现在背景/边框 */
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}
.card-section-content {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}
.card-section-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-section-content li {
  padding-left: 16px;
  position: relative;
}
.card-section-content li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-3);
}
.card-section-content strong {
  color: var(--text);
  font-weight: 600;
}

/* 启示区块：沿用各公司品牌色，白色背景 */
.card-section.insight {
  background: white;
}

/* 引用来源 */
.sources {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-3);
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 3px 8px;
  transition: background 0.15s, color 0.15s;
}
.source-link:hover {
  background: #e8f0fe;
  color: var(--blue);
  border-color: #b3c9f7;
}

/* 行业卡片 */
.industry-card .card-name { color: var(--blue); }

/* block 间距 */
.block { margin-bottom: 40px; }

/* ===== 公司快捷导航 ===== */
.company-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.company-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border-strong);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  background: white;
  transition: all 0.18s;
  color: var(--text-2);        /* 默认黑色文字 */
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.company-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}
.company-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.8;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .layout { padding: 0 16px; }
  .sidebar { display: none; }
  main { padding: 24px 0 60px; }
  .hero { flex-direction: column; align-items: flex-start; padding: 28px 0 20px; }
  .hero-right { text-align: left; }
  .card-header { flex-wrap: wrap; }
  .card-summary { text-align: left; max-width: 100%; }
}
