/*
 * Theme Name: MyTheme
 * Version: 2.0
 * Description: JustNews 风格 - 新闻资讯主题
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* =========================================
   Reset & Variables
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1677ff;
  --blue-dark:  #0958d9;
  --blue-light: #e6f4ff;
  --red:        #f5222d;
  --green:      #52c41a;
  --orange:     #fa8c16;
  --yellow:     #fadb14;

  --bg:         #f5f6f7;
  --bg-card:    #ffffff;
  --text:       #1d2129;
  --text-muted: #86909c;
  --text-light: #c9cdd4;
  --border:     #e4e6ef;

  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow:     0 1px 4px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 24px rgba(0,0,0,.12);
  --trans:      180ms ease;

  --font:       'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:      1200px;
  --col-main:   780px;
}

html { scroll-behavior: smooth; font-size: 15px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--text); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   Header / Nav（参考设计稿）
   ========================================= */
#site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  margin-right: 20px;
  text-decoration: none;
}
.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--blue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { color: #fff; }
#BlogTitle {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
#BlogTitle a { color: var(--text); }
#BlogTitle a:hover { color: var(--blue); }
#BlogSubTitle { display: none; }

/* Nav */
#divNavBar { flex: 1; min-width: 0; }
#divNavBar nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 0;
  align-items: center;
}
#divNavBar nav ul li { position: relative; }
#divNavBar nav ul li a {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 13px;
  height: 52px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--trans);
  border-bottom: 2px solid transparent;
  position: relative;
}
#divNavBar nav ul li a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
#divNavBar nav ul li.current > a {
  color: var(--blue);
  font-weight: 600;
  border-bottom-color: var(--blue);
}
/* ---- 普通下拉菜单（列表型）---- */
#divNavBar nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 150px;
  padding: 6px 0;
  z-index: 300;
  flex-direction: column;
  gap: 0;
}
#divNavBar nav ul li:hover > ul { display: flex; }
#divNavBar nav ul li ul li a {
  height: auto;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  border-bottom: none;
  display: block;
  white-space: nowrap;
  transition: background var(--trans), color var(--trans);
}
#divNavBar nav ul li ul li a:hover {
  background: var(--blue-light);
  color: var(--blue);
  border-bottom: none;
}

/* 有下拉的菜单项显示小箭头 */
#divNavBar nav ul li.has-sub > a::after,
#divNavBar nav ul li.has-mega > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 4px;
  opacity: 0.65;
  transition: transform var(--trans);
  flex-shrink: 0;
}
#divNavBar nav ul li.has-sub:hover > a::after,
#divNavBar nav ul li.has-mega:hover > a::after {
  transform: rotate(180deg);
  opacity: 1;
}

/* ---- 大图卡片型 Mega Dropdown ---- */
#divNavBar nav ul li.has-mega { position: static; }
.nav-mega-dropdown {
  display: none;
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0,0,0,.09);
  z-index: 300;
  padding: 20px 0;
}
#divNavBar nav ul li.has-mega:hover .nav-mega-dropdown { display: block; }
.nav-mega-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 16px;
}
.nav-mega-card {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--trans), box-shadow var(--trans);
}
.nav-mega-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.nav-mega-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg);
}
.nav-mega-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.nav-mega-card:hover .nav-mega-card-img img { transform: scale(1.04); }
.nav-mega-card-name {
  display: block;
  text-align: center;
  padding: 8px 4px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  transition: color var(--trans);
}
.nav-mega-card:hover .nav-mega-card-name { color: var(--blue); }

/* 右侧操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 12px;
  position: relative;
}

/* 图标按钮（搜索） */
.hd-icon-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--trans), color var(--trans);
  flex-shrink: 0;
}
.hd-icon-btn:hover { background: var(--bg); color: var(--blue); }

/* 搜索展开框 */
.header-search-box {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px 12px;
  z-index: 400;
  width: 240px;
}
.header-search-box.open { display: block; }
.header-search-box form {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: transparent;
}
.header-search-box input::placeholder { color: var(--text-muted); }
.header-search-box button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0;
}
.header-search-box button:hover { color: var(--blue); }

/* 文字按钮（登录/注册） */
.hd-text-btn {
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--trans), background var(--trans);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.hd-text-btn:hover { color: var(--blue); background: var(--blue-light); }

/* 投稿按钮 */
.hd-submit-btn {
  height: 30px;
  padding: 0 16px;
  background: var(--blue);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: background var(--trans), box-shadow var(--trans);
  margin-left: 4px;
}
.hd-submit-btn:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 2px 8px rgba(22,119,255,.35); }

/* 移动端汉堡按钮 */
.hd-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
}
.hd-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.hd-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hd-menu-btn.open span:nth-child(2) { opacity: 0; }
.hd-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端菜单 */
.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 8px 0;
}
.mobile-nav.open { display: block; }
.mobile-nav nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-nav nav ul li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text);
  transition: background var(--trans), color var(--trans);
}
.mobile-nav nav ul li a:hover,
.mobile-nav nav ul li.current a {
  color: var(--blue);
  background: var(--blue-light);
}
.mobile-nav nav ul li ul { display: none; }

/* =========================================
   Page Layout
   ========================================= */
#divAll { min-height: 100vh; display: flex; flex-direction: column; }

.page-body {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 16px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: start;
}

/* =========================================
   Section Headers
   ========================================= */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 16px;
  background: var(--blue);
  border-radius: 2px;
}
.section-more {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
}
.section-more:hover { color: var(--blue); }

/* =========================================
   Category Tab Bar
   ========================================= */
.cat-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.cat-tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--trans), border-color var(--trans);
  white-space: nowrap;
  user-select: none;
}
.cat-tab:hover { color: var(--blue); }
.cat-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 700;
}
/* Tab 面板底部"加载更多"按钮 */
.tab-panel-more {
  padding: 16px 0 8px;
  text-align: center;
}
.tab-more-btn {
  display: inline-block;
  padding: 8px 32px;
  border: 1px solid var(--blue);
  border-radius: 20px;
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  transition: background .15s, color .15s, opacity .15s;
  outline: none;
}
.tab-more-btn:hover {
  background: var(--blue);
  color: #fff;
}
.tab-more-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}
/* 空状态 */
.tab-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
}


/* =========================================
   Post Card (List)
   ========================================= */
.post-list { display: flex; flex-direction: column; gap: 0; }

.post-card {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  transition: background var(--trans);
}
.post-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.post-card:last-child { border-bottom: none; border-radius: 0 0 var(--radius) var(--radius); }
.post-card:hover { background: #fafbff; }

/* Thumbnail */
.post-thumb {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--border);
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans);
}
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e6f4ff 0%, #bae0ff 100%);
  color: var(--blue);
  font-size: 28px;
  font-weight: 700;
  opacity: .5;
}

/* Post content */
.post-card-body { flex: 1; min-width: 0; }

.post-cat-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  margin-bottom: 5px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.post-cat-tag:hover { background: var(--blue); color: #fff; }

.post-card .post-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .post-title a { color: var(--text); }
.post-card .post-title a:hover { color: var(--blue); }

.post-intro {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.post-meta span { display: flex; align-items: center; gap: 3px; }
.post-meta a { color: var(--text-muted); }
.post-meta a:hover { color: var(--blue); }

/* Top badge */
.post-card.is-top { border-left: 3px solid var(--red); }
.post-top-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  margin-right: 4px;
  letter-spacing: .05em;
  vertical-align: middle;
}

/* No thumb variant */
.post-card.no-thumb .post-card-body {
  width: 100%;
}

/* =========================================
   Pagination
   ========================================= */
.pagebar {
  margin: 12px 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: 0 0 var(--radius) var(--radius);
}
.pagebar a, .pagebar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  background: #fff;
  cursor: pointer;
  transition: all var(--trans);
}
.pagebar a:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }
.pagebar .thisclass { background: var(--blue); color: #fff; border-color: var(--blue); }

/* =========================================
   Main Content Wrapper
   ========================================= */
#divMain > .card-wrap {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* =========================================
   Sidebar
   ========================================= */
#divSidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sidebar-card-head {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-card-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 14px;
  background: var(--blue);
  border-radius: 2px;
}
.sidebar-card-more {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}
.sidebar-card-more:hover { color: var(--blue); }
.sidebar-card-body { padding: 8px 0; }

/* Sidebar list items */
.sidebar-list { list-style: none; padding: 0; }
.sidebar-list li {
  padding: 7px 16px;
  font-size: 13px;
  border-bottom: 1px solid #f2f3f5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li:hover { background: #f7f9ff; }

/* News flash (快讯) style */
.news-flash li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 16px;
}
.news-flash .flash-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 5px;
}
.news-flash .flash-info {
  flex: 1;
  min-width: 0;
}
.news-flash .flash-title {
  display: block;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}
.news-flash .flash-title:hover { color: var(--blue); }
.news-flash .flash-date { font-size: 11px; color: var(--text-muted); display: block; }

/* Sidebar cat list */
.sidebar-cats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-cats .cat-name { color: var(--text); }
.sidebar-cats .cat-name:hover { color: var(--blue); }
.sidebar-cats .cat-count {
  font-size: 11px;
  background: var(--bg);
  color: var(--text-muted);
  padding: 1px 7px;
  border-radius: 999px;
}

/* =========================================
   Single Post
   ========================================= */
.post-single-wrap {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
}
.post-single-wrap .post-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.post-single-wrap .post-meta { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.post-single-wrap .post-cat-tag { margin-bottom: 10px; }

/* Cover image */
.post-cover {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}
.post-cover img { width: 100%; height: auto; max-height: 400px; object-fit: cover; }

/* Article typography */
.post-content {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
}
.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5 {
  margin: 1.6rem 0 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}
.post-content h2 { font-size: 1.25rem; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.post-content h3 { font-size: 1.1rem; }
.post-content p  { margin-bottom: 1rem; }
.post-content a  { color: var(--blue); text-decoration: underline; text-decoration-color: #bae0ff; }
.post-content a:hover { color: var(--blue-dark); }
.post-content blockquote {
  border-left: 4px solid var(--blue);
  padding: 10px 16px;
  background: var(--blue-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.2rem 0;
  color: var(--text-muted);
}
.post-content pre {
  background: #1e2330;
  color: #abb2bf;
  padding: 16px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.65;
  margin: 1rem 0;
}
.post-content code {
  background: #f0f4ff;
  color: var(--blue);
  padding: .15em .45em;
  border-radius: var(--radius-sm);
  font-size: .875em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content img { border-radius: var(--radius-sm); margin: 1rem 0; }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 14px;
}
.post-content th, .post-content td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}
.post-content th { background: #f7f8fb; font-weight: 600; }
.post-content ul, .post-content ol { margin: .75rem 0 .75rem 1.5rem; }
.post-content li { margin-bottom: .35rem; }

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.post-tags .label { font-size: 13px; color: var(--text-muted); }
.post-tags a {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--trans);
}
.post-tags a:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }

/* =========================================
   Comments
   ========================================= */
.comments-wrap {
  margin-top: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 32px;
}
.comments-wrap h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.comments-wrap h3::before {
  content: '';
  display: block;
  width: 4px;
  height: 15px;
  background: var(--blue);
  border-radius: 2px;
}

.comment-item {
  padding: 12px 0;
  border-bottom: 1px solid #f2f3f5;
}
.comment-item:last-of-type { border-bottom: none; }
.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.comment-header img { border-radius: 50%; width: 32px; height: 32px; }
.comment-author { font-size: 13px; font-weight: 600; color: var(--text); }
.comment-date   { font-size: 11px; color: var(--text-muted); margin-left: 4px; }
.comment-reply-btn {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}
.comment-reply-btn:hover { color: var(--blue); }
.comment-body   { font-size: 14px; color: var(--text); line-height: 1.65; padding-left: 40px; }

.comment-form { margin-top: 20px; }
.comment-form h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.comment-form .form-group { margin-bottom: 10px; }
.comment-form label { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color var(--trans);
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(22,119,255,.1); }
.comment-form textarea { resize: vertical; min-height: 100px; }
.comment-form .btn-submit {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--trans), box-shadow var(--trans);
}
.comment-form .btn-submit:hover { background: var(--blue-dark); box-shadow: 0 4px 8px rgba(22,119,255,.3); }

/* =========================================
   Footer
   ========================================= */
#site-footer {
  background: #0a0d14;
  color: #6b7280;
  margin-top: 48px;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── 站点地图 ── */
.footer-sitemap {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-sitemap-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-sitemap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.footer-sitemap-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer-sitemap-label svg { color: #374151; }
.footer-sitemap-desc {
  font-size: 11px;
  color: #374151;
}
.footer-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 18px 20px;
}
.footer-sitemap-col { min-width: 0; }
.footer-sitemap-cat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #c9d1d9;
  margin-bottom: 7px;
  transition: color .2s;
}
.footer-sitemap-cat:hover { color: #fff; }
.footer-sitemap-cat-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
}
.footer-sitemap-cat-count {
  margin-left: auto;
  font-size: 10px;
  color: #374151;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0 6px;
  line-height: 17px;
  font-weight: 400;
}
.footer-sitemap-subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-bottom: 7px;
}
.footer-sitemap-sub {
  font-size: 11px;
  color: #60a5fa;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 4px;
  padding: 1px 7px;
  line-height: 18px;
  transition: background .2s, color .2s;
}
.footer-sitemap-sub:hover { background: rgba(37,99,235,0.22); color: #93c5fd; }
.footer-sitemap-arts {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-sitemap-arts li {
  position: relative;
  padding-left: 11px;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.footer-sitemap-arts li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 1px;
  background: #374151;
}
.footer-sitemap-arts li a {
  font-size: 12px;
  color: #4b5563;
  transition: color .2s;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.footer-sitemap-arts li a:hover { color: #9ca3af; }

/* ── 友链区域 ── */
.footer-links-bar {
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-links-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 0;
}
.footer-links-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 14px;
  margin-right: 6px;
  border-right: 1px solid rgba(255,255,255,0.06);
  letter-spacing: .04em;
}
.footer-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.footer-link-item {
  font-size: 12px;
  color: #4b5563;
  transition: color .2s;
}
.footer-link-item:hover { color: #9ca3af; }

/* ── 主内容区 ── */
.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 24px 18px;
  display: grid;
  grid-template-columns: 1.4fr 1.8fr 1fr 1.4fr;
  gap: 24px;
  align-items: start;
}

/* 品牌列 */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.footer-logo-icon {
  width: 30px; height: 30px;
  background: linear-gradient(135deg,#1e3a5f,#2563eb);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.footer-logo-icon svg { width: 16px; height: 16px; }
.footer-logo-name {
  font-size: 15px;
  font-weight: 700;
  color: #e5e7eb;
  letter-spacing: 0;
}
.footer-brand-desc {
  font-size: 12px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 12px;
  max-width: 200px;
}
.footer-brand-links {
  display: flex;
  gap: 8px;
}
.footer-brand-link {
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #4b5563;
  transition: all .2s;
}
.footer-brand-link:hover {
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
}

/* 导航/信息列 */
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 10px;
}
.footer-col-title svg { color: #4b5563; flex-shrink: 0; }
/* 横排（快速导航用） */
.footer-link-list {
  list-style: none; padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.footer-link-list li { margin-bottom: 0; }
.footer-link-list li a {
  font-size: 12px;
  line-height: 1.9;
  color: #4b5563;
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.footer-link-list li a:hover { color: #d1d5db; }
/* 竖排（关于、联系列用） */
.footer-link-list--col {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
}
.footer-link-list--col li a {
  padding: 2px 0;
  line-height: 1.8;
}

/* 订阅描述 */
.footer-subscribe-desc {
  font-size: 12px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 10px;
}

/* ── 底栏 ── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 12px 24px;
}
.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-copyright {
  font-size: 11px;
  color: #374151;
}
.footer-copyright a { color: #374151; transition: color .2s; }
.footer-copyright a:hover { color: #6b7280; }
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-icp {
  font-size: 11px;
  color: #374151;
  transition: color .2s;
}
.footer-icp:hover { color: #6b7280; }
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.footer-bottom-links a { color: #374151; transition: color .2s; }
.footer-bottom-links a:hover { color: #6b7280; }
.footer-dot { color: #1f2937; font-size: 10px; }

/* =========================================
   404 Page
   ========================================= */
.page-404 {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 60vh; text-align: center; padding: 2rem;
}
.page-404 .num {
  font-size: 6rem; font-weight: 900;
  color: var(--blue); line-height: 1; letter-spacing: -0.04em;
}
.page-404 h2 { font-size: 1.4rem; margin: 0.5rem 0; }
.page-404 p  { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 14px; }
.page-404 .btn-home {
  display: inline-block; background: var(--blue); color: #fff;
  padding: 9px 24px; border-radius: var(--radius-sm); font-weight: 500;
  font-size: 14px; cursor: pointer; transition: background var(--trans);
}
.page-404 .btn-home:hover { background: var(--blue-dark); color: #fff; }

/* =========================================
   Search Header
   ========================================= */
.search-header {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 10px 14px;
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.search-header strong { color: var(--blue); }

/* =========================================
   Utilities
   ========================================= */
.clear { clear: both; }

/* =========================================
   Banner Slider
   ========================================= */
.banner-section {
  background: var(--bg);
  padding: 14px 0 0;
}
.banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: stretch;
}

/* Left: slider */
.banner-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  height: 300px;
}
.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.slide-item {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}
.slide-item a { display: block; width: 100%; height: 100%; }
.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
}
.slide-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 50px 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 100%);
}
.slide-cat {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 7px;
}
.slide-title {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.35);
  color: #fff;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--trans);
  z-index: 10;
}
.slider-btn:hover { background: rgba(0,0,0,.6); }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.slider-dots {
  position: absolute;
  bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10;
}
.slider-dots .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
}
.slider-dots .dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* Right panel: top grid + bottom ad card */
.banner-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 300px;
}

/* Top 2-column category grid (takes ~55% height) */
.banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 0 0 calc(55% - 4px);
}
.banner-grid-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  background: #c9cdd4;
  cursor: pointer;
}
.banner-grid-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--trans);
}
.banner-grid-item:hover img { transform: scale(1.06); }
.banner-grid-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e6f4ff, #bae0ff);
}
.banner-grid-mask {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 10px 8px;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
}
.banner-grid-mask span {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* Bottom ad card (takes remaining ~45% height) */
.banner-ad-card {
  flex: 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1e6fff 0%, #3b5bdb 50%, #5c7cfa 100%);
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  transition: filter var(--trans);
}
.banner-ad-card:hover { filter: brightness(1.06); }
.banner-ad-deco {
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.banner-ad-deco::after {
  content: '';
  position: absolute;
  top: 20px; right: -35px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,100,80,.35);
}
.banner-ad-content {
  position: relative;
  z-index: 2;
  padding: 16px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.banner-ad-quote {
  font-size: 32px;
  line-height: 1;
  color: rgba(255,255,255,.4);
  font-family: Georgia, serif;
  margin-bottom: 4px;
}
.banner-ad-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.banner-ad-title span {
  color: #ffd43b;
}
.banner-ad-sub {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  margin-bottom: 12px;
}
.banner-ad-btn {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.4);
  width: fit-content;
  transition: background var(--trans);
}
.banner-ad-card:hover .banner-ad-btn { background: rgba(255,255,255,.35); }

/* =========================================
   Topic Section
   ========================================= */
.topic-wrap-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px 16px;
}
.section-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 8px;
}

/* 4列横排专题卡 */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.topic-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* 图片容器：固定高度，纯图片展示 */
.topic-card-img {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: #e8edf2;
}
.topic-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.topic-card:hover .topic-card-img img { transform: scale(1.07); }

/* 下方白色文字区 */
.topic-card-info {
  padding: 8px 10px;
  background: var(--bg-card);
}
.topic-card-name {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topic-card:hover .topic-card-name { color: var(--blue); }

/* =========================================
   Post Hero Card (置顶大图)
   ========================================= */
.post-card-hero {
  flex-direction: column;
  padding: 0;
  gap: 0;
  border-left: none;
}
.post-card-hero .post-hero-thumb {
  display: block;
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--border);
  flex-shrink: 0;
}
.post-card-hero .post-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.post-card-hero:hover .post-hero-thumb img { transform: scale(1.04); }
.post-hero-overlay {
  position: absolute;
  top: 10px; left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-cat-tag-hero {
  background: rgba(22,119,255,.85);
}
.post-card-hero .post-card-body {
  padding: 14px 16px 16px;
}
.post-title-hero {
  font-size: 17px !important;
  -webkit-line-clamp: 2 !important;
}

/* =========================================
   Sidebar Tab (热门/最新)
   ========================================= */
.sb-tab-head {
  padding: 0 !important;
  border-bottom: 1px solid var(--border);
}
.sb-tabs {
  display: flex;
}
.sb-tab {
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--trans), border-color var(--trans);
  white-space: nowrap;
  user-select: none;
}
.sb-tab:hover { color: var(--blue); }
.sb-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* =========================================
   Sidebar 文章小图列表
   ========================================= */
.sb-art-list { list-style: none; padding: 0; }
.sb-art-list li {
  border-bottom: 1px solid #f2f3f5;
}
.sb-art-list li:last-child { border-bottom: none; }
.sb-art-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  align-items: flex-start;
  text-decoration: none;
  transition: background var(--trans);
}
.sb-art-item:hover { background: #f7f9ff; }
.sb-art-thumb {
  width: 72px;
  height: 50px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--border);
}
.sb-art-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--trans);
}
.sb-art-item:hover .sb-art-thumb img { transform: scale(1.05); }
.sb-art-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e6f4ff, #bae0ff);
}
.sb-art-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sb-art-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--trans);
}
.sb-art-item:hover .sb-art-title { color: var(--blue); }
.sb-art-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 960px) {
  .page-body { grid-template-columns: 1fr; }
  #divSidebar { order: 2; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 20px 16px; }
  .banner-inner { grid-template-columns: 1fr; }
  .banner-right { display: none; }
  .topic-inner { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #divNavBar { display: none; }
  .hd-menu-btn { display: flex; }
  .hd-text-btn { display: none; }
  .hd-submit-btn { display: none; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 12px; }
  .page-body { padding: 0 12px; margin-top: 10px; }
  .post-card { flex-direction: column; }
  .post-thumb { width: 100%; height: 160px; }
  .post-single-wrap { padding: 18px 16px; }
  .comments-wrap { padding: 16px; }
  .comment-form .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 16px; padding: 20px 16px; }
  .footer-brand-desc { max-width: 100%; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .cat-tabs { overflow-x: auto; }
  .banner-slider { height: 220px; }
  .banner-inner { padding: 0 12px; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================
   Flash Page (快讯列表页) — 对齐设计稿
   ========================================= */

/* 面包屑导航条 */
.flash-breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.flash-breadcrumb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.flash-breadcrumb-inner a { color: var(--text-muted); }
.flash-breadcrumb-inner a:hover { color: var(--blue); }
.fbc-sep { color: var(--text-light); }
.fbc-cur { color: var(--text); font-weight: 500; }

/* 主布局 */
.flash-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
.flash-main {
  min-width: 0;
}
.flash-sidebar {
  min-width: 0;
}

/* ---- 侧边栏顶部广告卡 ---- */
.flash-ad-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1677ff 0%, #0958d9 60%, #003eb3 100%);
  padding: 28px 22px 24px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.flash-ad-card::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 14px;
  font-size: 100px;
  font-weight: 900;
  color: rgba(255,255,255,.18);
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}
.flash-ad-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.flash-ad-slogan {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.flash-ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 22px;
  border-radius: 20px;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  width: fit-content;
  transition: opacity var(--trans);
  position: relative;
  z-index: 1;
  text-decoration: none;
}
.flash-ad-btn:hover { opacity: .88; color: var(--blue); }

/* ---- 时间轴整体 ---- */
.flash-timeline {
  position: relative;
}

/* ---- 日期分组 ---- */
.flash-day-group {
  margin-bottom: 8px;
}

/* 日期标题行：蓝色圆点在轴线起点 */
.flash-day-header {
  display: flex;
  align-items: center;
  padding: 14px 0 8px;
  position: relative;
}
/* 圆点占位宽度 = flash-item-node 宽度，保持对齐 */
.flash-day-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;          /* 与 flash-item-node 一致 */
  flex-shrink: 0;
}
.flash-day-dot-outer {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e0eeff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(22,119,255,.12);
}
.flash-day-dot-inner {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  display: block;
}
.flash-day-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .01em;
  padding-left: 8px;
}

/* 当天条目容器：左侧竖线，缩进与圆点中心对齐 */
.flash-day-items {
  border-left: 2px solid #d0dff7;
  margin-left: 29px;
  padding-left: 0;
}

/* ---- 单条快讯 ---- */
/*
  时间和圆点均绝对定位于 flash-item（position:relative）内：
  - flash-item 有 padding-left:20px，卡片从左侧20px处开始
  - 竖线（flash-day-items border-left）在 flash-item 左边缘，即 left=0
  - 圆点：left=-5px（圆点中心落在竖线上）
  - 时间文字：绝对定位在竖线左侧，left=-54px（宽46px，距竖线8px）
*/
.flash-item {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0;
}

.flash-item-time {
  position: absolute;
  left: -46px;
  top: 17px;
  width: 38px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
  font-family: 'Courier New', Consolas, monospace;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
  pointer-events: none;
}

.flash-item-dot {
  position: absolute;
  left: -5px;
  top: 19px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
}

/* 内容卡片 */
.flash-item-card {
  display: block;
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 18px 12px;
  margin-left: 0;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 8px rgba(0,0,0,.04);
  border: 1px solid #edf0f7;
  transition: box-shadow var(--trans), border-color var(--trans);
}
.flash-item-card:hover {
  box-shadow: 0 4px 16px rgba(22,119,255,.10);
  border-color: #c5d8ff;
}

/* 标题 */
.flash-item-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 8px;
}
.flash-item-title a {
  color: var(--text);
  transition: color var(--trans);
}
.flash-item-title a:hover { color: var(--blue); }

/* 正文段落 */
.flash-item-content {
  font-size: 13.5px;
  color: #4e5969;
  line-height: 1.85;
  margin-bottom: 10px;
}
.flash-item-content p { margin: 0; }
.flash-read-more {
  display: inline-block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--blue);
}
.flash-read-more:hover { text-decoration: underline; }

/* 底部操作栏 */
.flash-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f2f4f8;
  margin-top: 4px;
}
.flash-item-actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 生成摘要按钮 */
.flash-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 14px;
  border: 1px solid #d0dbe8;
  background: #f7f9fc;
  color: #606a7a;
  cursor: pointer;
  transition: all var(--trans);
  font-family: var(--font);
  outline: none;
  line-height: 1.4;
}
.flash-btn:hover {
  background: var(--blue-light);
  border-color: #91caff;
  color: var(--blue);
}
.flash-btn-summary svg {
  color: var(--blue);
  flex-shrink: 0;
}

/* 分享区 */
.flash-item-share {
  display: flex;
  align-items: center;
  gap: 5px;
}
.flash-share-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 2px;
}
.flash-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #dde3ee;
  background: #f7f9fc;
  color: #8a94a8;
  transition: all var(--trans);
  cursor: pointer;
  text-decoration: none;
}
.flash-share-btn:hover {
  background: var(--blue-light);
  border-color: #91caff;
  color: var(--blue);
}

/* 空状态 */
.flash-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.flash-empty p { margin: 0; }

/* 加载更多 */
.flash-loadmore-wrap {
  text-align: center;
  padding: 28px 0 16px;
}
.flash-loadmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 52px;
  border: 1.5px solid var(--blue);
  border-radius: 24px;
  font-size: 14px;
  color: var(--blue);
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  transition: background var(--trans), color var(--trans), opacity var(--trans);
  outline: none;
  letter-spacing: .02em;
  font-family: var(--font);
}
.flash-loadmore-btn:hover {
  background: var(--blue);
  color: #fff;
}
.flash-loadmore-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* 响应式 */
@media (max-width: 960px) {
  .flash-layout {
    grid-template-columns: 1fr;
  }
  .flash-sidebar { display: none; }
}
@media (max-width: 640px) {
  .flash-layout { padding: 12px; gap: 12px; }
  .flash-day-node { width: 48px; }
  .flash-day-items { margin-left: 23px; }
  .flash-item { padding-left: 16px; }
  .flash-item-time { left: -38px; width: 30px; font-size: 10.5px; }
  .flash-item-dot { left: -5px; }
  .flash-item-card { padding: 12px 14px 10px; }
  .flash-item-title { font-size: 14px; }
}
