/* licai_green 理财绿色 - 左側邊欄佈局、綠色主題 */
:root {
  /* 红色金融官网风 */
  --lcg-bg: #f3f3f3;
  --lcg-surface: #ffffff;
  --lcg-card: #ffffff;
  --lcg-text: #1f2328;
  --lcg-muted: #6b7280;
  --lcg-primary: #b10f16;
  --lcg-primary-dark: #8f0c12;
  --lcg-primary-light: #cc1a22;
  --lcg-border: #e5e7eb;
  --lcg-accent: #f3c04a;
  --lcg-w: 1180px;
  --lcg-side-w: 240px;
  --lcg-top-h: 86px;
  /* 顶部导航（浅米色 + 深色上边 + 橙色下边，参考截图） */
  --lcg-topbar-bg-1: #f7e6cd;
  --lcg-topbar-bg-2: #f2d3ad;
  --lcg-topbar-topline: #1b2b45;
  --lcg-topbar-bottomline: #f3a21a;
  --lcg-topbar-link: #222;
  --lcg-topbar-link-muted: #444;
  --lcg-topbar-current: #2aa7df;
}
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0;
}
body.lcg-body {
  background: var(--lcg-bg);
  color: var(--lcg-text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 顶部红色导航（参考图风格） */
.lcg-top { position: sticky; top: 0; z-index: 120; }
.lcg-topbar {
  background: linear-gradient(180deg, var(--lcg-topbar-bg-1), var(--lcg-topbar-bg-2));
  color: var(--lcg-topbar-link);
  border-top: 2px solid var(--lcg-topbar-topline);
  border-bottom: 3px solid var(--lcg-topbar-bottomline);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .08);
}
.lcg-topbar-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.lcg-logo {
  display: grid;
  place-items: center;
  gap: 2px;
  text-align: center;
  color: var(--lcg-topbar-link);
  padding: 10px 0;
}
.lcg-logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(27, 43, 69, .18);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.lcg-logo-mark i { color: var(--lcg-primary); }
.lcg-logo-text { font-weight: 900; letter-spacing: .04em; color: var(--lcg-primary); }
.lcg-logo-sub { font-size: 11px; letter-spacing: .2em; color: var(--lcg-topbar-link-muted); }
.lcg-top-contact { display: flex; justify-content: flex-end; }
.lcg-top-phone { font-weight: 800; color: var(--lcg-topbar-link-muted); white-space: nowrap; }
.lcg-top-phone i { margin-right: 8px; }

.lcg-nav { display: flex; align-items: center; gap: 12px; }
.lcg-nav { justify-content: center; }
.lcg-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.10);
  color: #fff;
}
.lcg-nav-bars {
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  display: inline-block;
}
.lcg-nav-bars:before,
.lcg-nav-bars:after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.lcg-nav-bars:before { top: -6px; }
.lcg-nav-bars:after { top: 6px; }
.lcg-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lcg-nav-link {
  color: var(--lcg-topbar-link);
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 999px;
  line-height: 1;
}
.lcg-nav-link:hover,
.lcg-nav-link.lcg-is-current {
  background: rgba(42, 167, 223, .14);
  color: #111827;
}
.lcg-nav-link.lcg-is-current {
  background: var(--lcg-topbar-current);
  color: #fff;
}

/* 首屏大横幅 + 搜索条 */
.lcg-hero {
  background: #111;
  position: relative;
  overflow: hidden;
}
.lcg-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}
.lcg-hero-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 420px at 50% 10%, rgba(255,215,128,.22), transparent 55%),
              linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.20) 55%, rgba(0,0,0,.55));
}
.lcg-hero-inner {
  position: relative;
  padding: 48px 0 30px;
  min-height: 360px;
  display: grid;
  align-content: end;
  gap: 10px;
  color: #fff;
}
.lcg-hero-kicker { font-weight: 800; letter-spacing: .16em; opacity: .9; font-size: 12px; }
.lcg-hero-title { margin: 0; font-size: 34px; line-height: 1.15; }
.lcg-hero-sub { margin: 0; color: rgba(255,255,255,.88); max-width: 760px; }
.lcg-searchbar {
  position: relative;
  margin-top: 18px;
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  padding: 8px;
  max-width: 860px;
}
.lcg-searchbar input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 14px;
  height: 42px;
  font-size: 15px;
  background: transparent;
}
.lcg-searchbar button {
  border: 0;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--lcg-primary);
  color: #fff;
  font-weight: 800;
}

/* 通用区块 */
.lcg-section { padding: 26px 0; }
.lcg-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.lcg-section-title { margin: 0; font-size: 18px; font-weight: 900; }
.lcg-section-title:before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--lcg-primary);
  margin-right: 10px;
  transform: translateY(-1px);
}
.lcg-section-desc { margin: 0; color: var(--lcg-muted); font-size: 13px; }

/* 卡片栅格（与 magazine 完全不同的白底方正官网感） */
.lcg-grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 680px) { .lcg-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.lcg-card {
  background: var(--lcg-card);
  border: 1px solid var(--lcg-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}
.lcg-card-media { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.lcg-card-body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.lcg-card-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--lcg-muted); font-size: 12px; }
.lcg-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--lcg-border);
  color: var(--lcg-primary);
  font-weight: 800;
}
.lcg-card-title { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 900; }
.lcg-card-text { margin: 0; color: var(--lcg-muted); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 深色页脚贴近参考图 */
.lcg-footer {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  background: #171717;
  color: rgba(255,255,255,.85);
}
.lcg-footer-head { color: #fff; }
.lcg-footer-desc, .lcg-footer-nav, .lcg-footer-contact { color: rgba(255,255,255,.70); }
.lcg-footer-copy { border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.65); }
.lcg-footer-copy a { color: #fff; }

/* TOP 按钮（全站） */
.lcg-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: rgba(35, 35, 40, .92);
  color: #fff;
  box-shadow: 0 16px 36px rgba(0,0,0,.22);
  z-index: 160;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}
.lcg-top-btn:before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 12px;
  background: rgba(35, 35, 40, .92);
  border-radius: 3px 3px 0 0;
}
.lcg-top-btn:hover { background: rgba(35, 35, 40, 1); }
.lcg-top-text {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 13px;
  color: #f3c04a;
}
.lcg-top-btn.lcg-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .lcg-top-btn { right: 14px; bottom: 14px; width: 56px; height: 56px; }
  .lcg-top-btn:before { width: 20px; }
}

/* 顶部导航移动端 */
@media (max-width: 860px) {
  .lcg-topbar-inner { grid-template-columns: auto 1fr auto; }
  .lcg-logo { justify-items: start; text-align: left; }
  .lcg-logo-mark { width: 44px; height: 44px; font-size: 18px; }
  .lcg-logo-sub { display: none; }
  .lcg-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .lcg-nav-menu {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 86px;
    background: rgba(143,12,18,.98);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 18px 36px rgba(0,0,0,.25);
    flex-direction: column;
    gap: 2px;
    max-height: 60vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lcg-nav-menu.lcg-open { display: flex; }
  .lcg-nav-link { padding: 14px 14px; border-radius: 10px; min-height: 44px; display: flex; align-items: center; }
  .lcg-hero-inner { padding: 34px 0 22px; min-height: 300px; }
  .lcg-hero-title { font-size: 24px; }
  .lcg-searchbar { border-radius: 14px; flex-direction: column; padding: 10px; }
  .lcg-searchbar input { height: 44px; padding: 0 12px; }
  .lcg-searchbar button { width: 100%; }
}

/* 详情页：封面图驱动设计 */
.lcg-article-hero {
  position: relative;
  overflow: hidden;
  background: #0b0b0b;
}
.lcg-article-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.05);
}
.lcg-article-hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(980px 360px at 50% 20%, rgba(243,192,74,.24), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.78));
}
.lcg-article-hero-inner {
  position: relative;
  padding: 56px 0 30px;
  min-height: 360px;
  display: grid;
  align-content: end;
  gap: 12px;
  color: #fff;
}
.lcg-article-bc {
  font-size: 13px;
  color: rgba(255,255,255,.82);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.lcg-article-bc a { color: rgba(255,255,255,.92); }
.lcg-article-bc a:hover { color: #fff; text-decoration: underline; }
.lcg-article-bc-sep { opacity: .65; }
.lcg-article-bc--plain { color: var(--lcg-muted); }
.lcg-article-bc--plain a { color: var(--lcg-primary); }
.lcg-article-hero-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: .01em;
  text-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.lcg-article-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: rgba(255,255,255,.86);
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  padding: 10px 12px;
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
}
.lcg-article-hero-meta a { color: rgba(255,255,255,.92); text-decoration: underline; text-underline-offset: 3px; }
.lcg-article-hero-search {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 8px;
  max-width: 860px;
}
.lcg-article-hero-search input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 14px;
  height: 42px;
  font-size: 15px;
  background: transparent;
}
.lcg-article-hero-search button {
  border: 0;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--lcg-primary);
  color: #fff;
  font-weight: 900;
}

.lcg-article-body-wrap { padding-top: 18px; overflow: visible; }
.lcg-article-body-wrap .lcg-wrap { overflow: visible; }
.lcg-article-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lcg-article-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 88px;
  align-self: flex-start;
}

@media (min-width: 1024px) {
  .lcg-article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: flex-start;
  }
}
.lcg-read-main {
  background: var(--lcg-surface);
  border: 1px solid var(--lcg-border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}
.lcg-read-body {
  font-size: 16px;
  line-height: 1.95;
  color: #111827;
}
.lcg-read-body h2,
.lcg-read-body h3 { line-height: 1.35; }
.lcg-read-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--lcg-border);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}
.lcg-read-body table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--lcg-border);
  background: #fff;
  display: block;
  max-width: 100%;
}
.lcg-read-body thead,
.lcg-read-body tbody { display: table; width: 100%; }
.lcg-read-body th,
.lcg-read-body td {
  border-bottom: 1px solid var(--lcg-border);
  padding: 10px 12px;
  font-size: 14px;
}
.lcg-read-body th { background: #f8fafc; text-align: left; }
.lcg-read-body pre {
  background: #0b1220;
  color: #e5e7eb;
  padding: 14px 16px;
  border-radius: 12px;
  overflow: auto;
}
.lcg-read-body blockquote {
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--lcg-primary);
  background: #fff7f7;
  color: #111827;
  border-radius: 10px;
}

/* 详情页（按截图：正文 + 右侧热门文章 + 红色关注条 + 上下篇 + 兴趣推荐） */
.lcg-article-page { padding-top: 18px; }
.lcg-article-page .lcg-wrap{ overflow: visible; }
.lcg-article-page-grid{
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  overflow: visible;
}
/* 对齐 gupiao：>1040 才两栏 */
@media (min-width: 1041px){
  .lcg-article-page-grid{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
  }
}
.lcg-article-main{
  background: var(--lcg-surface);
  border: 1px solid var(--lcg-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  padding: 18px 18px 16px;
}
@media (min-width: 769px){
  .lcg-article-main{ padding: 22px 22px 18px; border-radius: 14px; }
}
.lcg-article-crumb{
  font-size: 13px;
  color: var(--lcg-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.lcg-article-crumb a{ color: inherit; }
.lcg-article-crumb a:hover{ color: var(--lcg-primary); text-decoration: underline; text-underline-offset: 3px; }
.lcg-article-crumb-sep{ opacity: .7; margin: 0 2px; }
.lcg-article-crumb-current{
  color: #111827;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lcg-article-adbar{
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 769px){
  .lcg-article-adbar{ grid-template-columns: 1fr 1fr; }
}
.lcg-article-ad{
  display: block;
  height: 58px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--lcg-border);
  background: #fff;
}
.lcg-article-ad img{ width: 100%; height: 100%; object-fit: cover; }
.lcg-article-ad-ph{ display: block; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(177,15,22,.14), rgba(243,192,74,.18)); }

.lcg-article-head{ margin-top: 14px; }
.lcg-article-title{
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .01em;
}
@media (max-width: 860px){
  .lcg-article-title{ font-size: 24px; line-height: 1.25; }
}
.lcg-article-meta{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--lcg-muted);
  font-size: 13px;
  align-items: center;
}
.lcg-article-tag{
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--lcg-primary);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}
.lcg-article-divider{
  margin-top: 14px;
  height: 1px;
  background: var(--lcg-border);
}
.lcg-article-cover{
  margin: 16px 0 0;
  border-radius: 0;
  overflow: hidden;
}
.lcg-article-cover img{
  width: 100%;
  height: auto;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}
.lcg-article-body{
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.95;
  color: #111827;
}
.lcg-article-body p{ margin: 0 0 1em; }
.lcg-article-body a{ color: var(--lcg-primary); text-decoration: underline; text-underline-offset: 3px; }
.lcg-article-body a:hover{ color: var(--lcg-primary-dark); }
.lcg-article-body img{
  max-width: 100%;
  height: auto;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}
.lcg-article-body hr{
  border: 0;
  border-top: 1px solid var(--lcg-border);
  margin: 18px 0;
}

.lcg-article-follow{
  margin-top: 18px;
  background: var(--lcg-primary);
  color: #fff;
  border-radius: 0;
  padding: 14px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.lcg-article-follow-text{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}
.lcg-article-follow-text strong{ font-weight: 900; }
.lcg-article-follow-icons{ display: flex; align-items: center; gap: 12px; }
.lcg-article-follow-ico{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
}
.lcg-article-follow-ico:hover{ background: rgba(255,255,255,.22); color: #fff; }
@media (max-width: 640px){
  .lcg-article-follow{ flex-direction: column; align-items: flex-start; }
}

.lcg-article-pn{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--lcg-border);
}
.lcg-article-pn-item{
  display: grid;
  gap: 6px;
  padding: 12px 0;
  color: #111827;
}
.lcg-article-pn-item[aria-disabled="true"]{
  opacity: .45;
  pointer-events: none;
}
.lcg-article-pn-dir{
  font-size: 12px;
  color: var(--lcg-muted);
  letter-spacing: .06em;
}
.lcg-article-pn-title{
  font-size: 13px;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lcg-article-pn-next{ text-align: right; }

.lcg-article-interest{ margin-top: 18px; }
.lcg-article-interest-title{
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .01em;
}
.lcg-article-interest-title:before{
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--lcg-primary);
  margin-right: 10px;
  transform: translateY(-1px);
}
.lcg-article-interest-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  border-top: 1px solid var(--lcg-border);
  padding-top: 16px;
}
@media (min-width: 769px){
  .lcg-article-interest-grid{ grid-template-columns: 1fr 1fr; gap: 24px; }
}
.lcg-article-interest-card{
  border-bottom: 1px solid var(--lcg-border);
  padding-bottom: 14px;
}
.lcg-article-interest-link{ display: grid; gap: 12px; }
.lcg-article-interest-media{
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f3f4f6;
}
.lcg-article-interest-media img{ width: 100%; height: 100%; object-fit: cover; }
.lcg-article-interest-name{
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
}
.lcg-article-interest-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--lcg-muted);
  font-size: 12px;
}

.lcg-article-side{
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--lcg-top-h) + 40px);
  align-self: flex-start;
}

/* 对齐 gupiao：<=1040 单栏并取消右侧 sticky */
@media (max-width: 1040px){
  .lcg-article-page-grid{ display: flex; }
  .lcg-article-side{ position: static; top: auto; align-self: auto; }
  .lcg-article-aside{ position: static; top: auto; align-self: auto; }
}
.lcg-hotbox{
  background: var(--lcg-surface);
  border: 1px solid var(--lcg-border);
  border-radius: 12px;
  overflow: hidden;
}
.lcg-hotbox-head{
  padding: 12px 14px;
  border-bottom: 2px solid #111827;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lcg-hotbox-title{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}
.lcg-hotbox-caret{
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #111827;
  opacity: .9;
}
.lcg-hotbox-list{ list-style: none; margin: 0; padding: 0; }
.lcg-hotbox-item{ border-bottom: 1px solid var(--lcg-border); }
.lcg-hotbox-link{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 12px 14px;
  align-items: start;
}
.lcg-hotbox-thumb{
  width: 100px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid var(--lcg-border);
  border-radius: 10px;
}
.lcg-hotbox-thumb img{ width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.lcg-hotbox-body{ min-width: 0; display: grid; gap: 6px; }
.lcg-hotbox-name{
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lcg-hotbox-desc{
  font-size: 12px;
  color: var(--lcg-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lcg-hotbox-date{ font-size: 12px; color: var(--lcg-muted); }

/* 侧栏广告位（热门文章下方） */
.lcg-side-ad{
  background: var(--lcg-surface);
  border: 1px solid var(--lcg-border);
  border-radius: 12px;
  overflow: hidden;
}
.lcg-side-ad-link{ display: block; position: relative; }
.lcg-side-ad-img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.lcg-side-ad-ph{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(177,15,22,.18), rgba(243,192,74,.22));
}
.lcg-side-ad-text{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(17,24,39,.82);
  font-weight: 900;
  letter-spacing: .12em;
  font-size: 14px;
}

@media (max-width: 640px){
  .lcg-hotbox-link{ grid-template-columns: 84px 1fr; }
  .lcg-hotbox-thumb{ width: 84px; aspect-ratio: 16 / 10; border-radius: 10px; }
}

/* 详情页：近期文章 / 推荐资源（参考截图样式） */
.lcg-recent,
.lcg-resources {
  margin-top: 22px;
}
.lcg-article-aside .lcg-recent,
.lcg-article-aside .lcg-resources {
  margin-top: 0;
  background: var(--lcg-surface);
  border: 1px solid var(--lcg-border);
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 12px 28px rgba(0,0,0,.05);
}
.lcg-article-aside .lcg-recent-head {
  margin: 0;
  padding: 14px 16px 10px;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lcg-border);
  z-index: 2;
  border-radius: 14px 14px 0 0;
}
.lcg-article-aside .lcg-recent-list { padding: 0 16px 10px; }
.lcg-article-aside .lcg-resources-list { padding: 12px 16px 16px; }
.lcg-article-aside .lcg-recent-title {
  font-size: 18px;
}
.lcg-article-aside .lcg-recent-link {
  padding: 12px 0;
}
.lcg-article-aside .lcg-recent-row {
  gap: 8px;
}
.lcg-article-aside .lcg-recent-name {
  position: relative;
  padding-left: 14px;
}
.lcg-article-aside .lcg-recent-name:before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--lcg-primary);
  box-shadow: 0 0 0 3px rgba(177,15,22,.12);
}
.lcg-article-aside .lcg-recent-meta {
  padding-left: 14px;
}
.lcg-article-aside .lcg-recent-list {
  border-top: 1px solid var(--lcg-border);
}
.lcg-article-aside .lcg-resources-list {
  padding-bottom: 16px;
}

/* 右侧栏：推荐资源按钮更规整 */
.lcg-article-aside .lcg-resources-link {
  border-color: rgba(37, 99, 235, .85);
  color: #0b3ea8;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
}
.lcg-article-aside .lcg-resources-link:hover {
  background: rgba(37, 99, 235, .06);
  transform: translateY(-1px);
}
.lcg-article-aside .lcg-resources-link:active {
  transform: translateY(0);
}

/* 右侧栏滚动条（仅在需要滚动时出现） */
@media (min-width: 1024px) {
  .lcg-article-aside {
    scrollbar-width: thin;
    scrollbar-color: rgba(177,15,22,.35) rgba(0,0,0,0);
  }
  .lcg-article-aside::-webkit-scrollbar { width: 10px; }
  .lcg-article-aside::-webkit-scrollbar-track { background: transparent; }
  .lcg-article-aside::-webkit-scrollbar-thumb {
    background: rgba(177,15,22,.28);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
  }
  .lcg-article-aside::-webkit-scrollbar-thumb:hover { background: rgba(177,15,22,.40); background-clip: padding-box; }
}
.lcg-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}
.lcg-recent-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .01em;
}
.lcg-recent-title:before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--lcg-primary);
  margin-right: 10px;
  transform: translateY(-1px);
}
.lcg-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--lcg-border);
}
.lcg-recent-item {
  margin: 0;
  border-bottom: 1px solid var(--lcg-border);
}
.lcg-recent-link {
  display: block;
  padding: 14px 0;
}
.lcg-recent-row {
  display: grid;
  gap: 10px;
}
.lcg-recent-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 800;
  color: var(--lcg-text);
}
.lcg-recent-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--lcg-muted);
  font-size: 13px;
}
.lcg-recent-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #2563eb;
  color: #2563eb;
  background: #fff;
  font-weight: 800;
  font-size: 12px;
}
.lcg-recent-date { white-space: nowrap; }

.lcg-resources-list {
  display: grid;
  gap: 10px;
}
.lcg-resources-link {
  display: block;
  padding: 12px 14px;
  border: 2px solid #2563eb;
  border-radius: 8px;
  background: #fff;
  color: #0b3ea8;
  font-weight: 900;
  line-height: 1.45;
}
.lcg-resources-link:hover {
  background: rgba(37, 99, 235, .06);
}
.lcg-resources-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 860px) {
  .lcg-article-hero-inner { padding: 36px 0 20px; min-height: 300px; }
  .lcg-article-hero-title { font-size: 24px; }
  .lcg-article-hero-meta { gap: 10px; border-radius: 10px; }
  .lcg-article-hero-search { border-radius: 14px; flex-direction: column; padding: 10px; }
  .lcg-article-hero-search input { height: 44px; padding: 0 12px; }
  .lcg-article-hero-search button { width: 100%; height: 44px; }
  .lcg-read-main { padding: 16px 14px; border-radius: 12px; }
  .lcg-read-body table { overflow-x: auto; }
  .lcg-read-body thead,
  .lcg-read-body tbody { width: max-content; min-width: 100%; }
  .lcg-recent-title { font-size: 18px; }
  .lcg-resources-link { padding: 12px 12px; }
}
.lcg-wrap {
  max-width: var(--lcg-w);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
@media (min-width: 768px) {
  .lcg-wrap { padding: 0 20px; }
}
.lcg-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--lcg-primary); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* 左側邊欄（桌面） / 頂部欄+抽屜（手機） */
.lcg-app { display: flex; flex-direction: column; min-height: 100vh; }
.lcg-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

/* 详情页（PC）：用浏览器主滚动条滚动文章，右侧栏固定 */
@media (min-width: 960px) {
  /* 恢复页面正常滚动：不做“文章内滚动条” */
  .lcg-article-body-wrap { height: auto; overflow: visible; }
  .lcg-article-body-wrap .lcg-wrap { height: auto; }
  .lcg-article-grid { height: auto; }
  .lcg-read-main { height: auto; overflow: visible; }

  /* 右侧栏固定在视口内，随页面滚动保持位置 */
  .lcg-article-aside,
  .lcg-article-side {
    position: sticky;
    top: calc(var(--lcg-top-h) + 40px);
    height: auto;
    overflow: visible;
    z-index: 90;
  }
}

/* 手機端：頂部橫條 + 導航抽屜 */
.lcg-side {
  width: 100%;
  min-width: 0;
  background: linear-gradient(180deg, var(--lcg-primary-dark), var(--lcg-primary));
  color: #e8f5ef;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(27, 67, 50, .2);
}
.lcg-side-inner {
  padding: 12px 16px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.lcg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .03em;
  flex: 1;
  min-width: 0;
}
.lcg-brand-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.2);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.lcg-brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcg-menu { position: relative; }
.lcg-menu-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #fff;
  display: flex;
}
.lcg-menu-bar { width: 20px; height: 2px; background: currentColor; border-radius: 1px; }
.lcg-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: var(--lcg-primary-dark);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.lcg-menu-list.lcg-open { display: flex; }
.lcg-menu-item { margin: 0; }
.lcg-menu-link {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  color: rgba(255,255,255,.95);
  font-weight: 500;
  min-height: 44px;
  line-height: 1.3;
  display: flex;
  align-items: center;
}
.lcg-menu-link:hover { background: rgba(255,255,255,.15); color: #fff; }
.lcg-menu-link.lcg-is-current { background: rgba(255,255,255,.25); color: #fff; }
.lcg-form-search {
  display: flex;
  gap: 8px;
  width: 100%;
  order: 3;
}
.lcg-form-search .lcg-search-field { flex: 1; }
.lcg-search-field {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 16px;
}
.lcg-search-field::placeholder { color: rgba(255,255,255,.6); }
.lcg-search-submit {
  height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,.25);
  color: #fff;
  display: grid;
  place-items: center;
}

/* 桌面端：保持頂部欄，導航橫向排布 */
@media (min-width: 769px) {
  .lcg-side-inner {
    padding: 16px 24px;
    flex-wrap: nowrap;
    gap: 16px;
  }
  .lcg-brand {
    flex: 0 0 auto;
  }
  .lcg-menu-btn {
    display: none;
  }
  .lcg-menu-list {
    display: flex;
    position: static;
    margin: 0 0 0 16px;
    padding: 0;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    flex-direction: row;
    gap: 8px;
  }
  .lcg-menu-link {
    min-height: 0;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
  }
  .lcg-form-search {
    width: auto;
    order: 0;
    margin-left: auto;
    max-width: 260px;
  }
  .lcg-search-field {
    height: 36px;
    font-size: 14px;
  }
  .lcg-search-submit {
    height: 36px;
    min-width: 36px;
    padding: 0;
  }
}

/* 首頁 Banner 區 - 手機單列，桌面橫條+右側熱門 */
.lcg-banner { padding: 16px 0 12px; }
.lcg-banner .lcg-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lcg-banner-slider { min-height: 200px; }
.lcg-banner-card { height: 100%; }
.lcg-banner-link {
  display: block;
  position: relative;
  height: 100%;
  min-height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--lcg-primary-dark);
}
.lcg-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lcg-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(27,67,50,.85) 0%, rgba(27,67,50,.3) 50%, transparent 100%);
}
.lcg-banner-info {
  position: absolute;
  left: 14px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lcg-banner-tag {
  background: rgba(255,255,255,.25);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-style: normal;
}
.lcg-banner-date { font-size: 12px; color: rgba(255,255,255,.85); }
.lcg-banner-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 44px;
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: #fff;
  font-weight: 700;
}
.lcg-banner-desc {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lcg-banner-rail { background: var(--lcg-surface); border-radius: 12px; padding: 14px; border: 1px solid var(--lcg-border); }
.lcg-rail-title { margin: 0 0 10px; font-size: 15px; color: var(--lcg-primary); }
.lcg-rail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lcg-rail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--lcg-card);
  border-left: 3px solid var(--lcg-primary);
  min-height: 44px;
}
.lcg-rail-link { flex: 1; min-width: 0; font-weight: 500; }
.lcg-rail-link:hover { color: var(--lcg-primary); }
.lcg-rail-time { font-size: 12px; color: var(--lcg-muted); flex-shrink: 0; }

@media (min-width: 769px) {
  .lcg-banner { padding: 20px 0 16px; }
  .lcg-banner .lcg-wrap {
    flex-direction: row;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }
  .lcg-banner-slider { min-height: 280px; }
  .lcg-banner-link { min-height: 280px; }
  .lcg-banner-info { left: 20px; top: 20px; }
  .lcg-banner-title { left: 20px; right: 20px; bottom: 50px; font-size: 22px; }
  .lcg-banner-desc { left: 20px; right: 20px; bottom: 18px; }
  .lcg-banner-rail { padding: 16px; }
  .lcg-rail-item { min-height: 0; padding: 10px 12px; }
}

/* 區塊標題 */
.lcg-block { padding: 24px 0; }
.lcg-block--alt { background: linear-gradient(180deg, rgba(45,106,79,.06), transparent); }
.lcg-block-head { margin-bottom: 16px; }
.lcg-block-title { margin: 0 0 4px; font-size: 18px; color: var(--lcg-text); }
.lcg-block-desc { margin: 0; font-size: 13px; color: var(--lcg-muted); }

/* 瓷磚網格（推薦）- 手機單列，平板2列，桌面3列 */
.lcg-tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .lcg-tile-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 969px) {
  .lcg-tile-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.lcg-tile {
  background: var(--lcg-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--lcg-border);
  border-left: 4px solid var(--lcg-primary);
  transition: box-shadow .2s, border-color .2s;
}
.lcg-tile:hover { box-shadow: 0 8px 24px rgba(45,106,79,.12); border-left-color: var(--lcg-primary-light); }
.lcg-tile-link { display: block; }
.lcg-tile-img { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.lcg-tile-edge { display: block; height: 3px; background: linear-gradient(90deg, var(--lcg-primary), var(--lcg-accent)); }
.lcg-tile-inner { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.lcg-tile-cat { font-size: 12px; color: var(--lcg-primary); font-weight: 600; }
.lcg-tile-views { font-size: 12px; color: var(--lcg-muted); }
.lcg-tile-title { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 600; }
.lcg-tile-text { margin: 0; font-size: 13px; color: var(--lcg-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 流式列表（最新）- 手機圖上文下，桌面圖左文右 */
.lcg-stream { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lcg-stream-item { margin: 0; }
.lcg-stream-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--lcg-card);
  border-radius: 10px;
  border: 1px solid var(--lcg-border);
  transition: box-shadow .2s;
}
.lcg-stream-card:hover { box-shadow: 0 6px 20px rgba(45,106,79,.08); }
.lcg-stream-thumb {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--lcg-surface);
}
.lcg-stream-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lcg-stream-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

@media (min-width: 769px) {
  .lcg-stream { gap: 16px; }
  .lcg-stream-card { flex-direction: row; gap: 20px; padding: 16px; }
  .lcg-stream-thumb {
    flex: 0 0 200px;
    width: 200px;
    height: 130px;
  }
}
.lcg-stream-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--lcg-muted); flex-wrap: wrap; }
.lcg-stream-cat { padding: 3px 8px; border-radius: 4px; background: rgba(45,106,79,.12); color: var(--lcg-primary); font-weight: 600; }
.lcg-stream-title { margin: 0; font-size: 17px; line-height: 1.4; }
.lcg-stream-title a { font-weight: 600; }
.lcg-stream-text { margin: 0; font-size: 14px; color: var(--lcg-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 頁面條（列表/搜尋頂部） */
.lcg-bar {
  padding: 18px 0;
  border-bottom: 1px solid var(--lcg-border);
  background: linear-gradient(180deg, rgba(45,106,79,.05), transparent);
}
.lcg-crumb { font-size: 13px; color: var(--lcg-muted); }
.lcg-crumb-sep { margin: 0 6px; }
.lcg-bar-title { margin: 8px 0 0; font-size: 22px; }
.lcg-bar-desc { margin: 6px 0 0; font-size: 14px; color: var(--lcg-muted); }

/* 列表/詳情佈局 - 手機單列，桌面主欄+側欄 */
.lcg-layout { padding: 16px 0; }
.lcg-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lcg-main { min-width: 0; }

@media (min-width: 769px) {
  .lcg-layout { padding: 20px 0; }
  .lcg-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
  }
}

/* 時間線列表 */
.lcg-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.lcg-timeline-node { margin: 0; padding-left: 20px; border-left: 3px solid var(--lcg-border); position: relative; }
.lcg-timeline-node::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lcg-primary);
}
.lcg-timeline-card {
  background: var(--lcg-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--lcg-border);
  padding: 16px;
  transition: box-shadow .2s;
}
.lcg-timeline-card:hover { box-shadow: 0 6px 20px rgba(45,106,79,.08); }
.lcg-timeline-cover {
  display: block;
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--lcg-surface);
}
.lcg-timeline-cover img { width: 100%; height: 100%; object-fit: cover; }
.lcg-timeline-inner { display: flex; flex-direction: column; gap: 8px; }
.lcg-timeline-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--lcg-muted); flex-wrap: wrap; }
.lcg-timeline-cat { padding: 3px 8px; border-radius: 4px; background: rgba(45,106,79,.12); color: var(--lcg-primary); font-weight: 600; }
.lcg-timeline-head { margin: 0; font-size: 18px; line-height: 1.4; }
.lcg-timeline-head a { font-weight: 600; }
.lcg-timeline-desc { margin: 0; font-size: 14px; color: var(--lcg-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcg-timeline-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--lcg-primary); font-weight: 500; font-size: 14px; }
.lcg-timeline-views { font-size: 12px; }

/* 側邊欄（列表/詳情頁右側） */
.lcg-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; align-self: start; }
.lcg-widget {
  background: var(--lcg-surface);
  border: 1px solid var(--lcg-border);
  border-radius: 10px;
  padding: 16px;
}
.lcg-widget-head { margin: 0 0 12px; font-size: 15px; color: var(--lcg-text); }
.lcg-widget-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lcg-widget-item { margin: 0; }
.lcg-widget-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--lcg-card);
  border-left: 3px solid var(--lcg-primary);
  transition: background .2s;
}
.lcg-widget-link:hover { background: rgba(45,106,79,.06); }
.lcg-widget-num { display: none; }
.lcg-widget-text { flex: 1; min-width: 0; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
.lcg-widget-date { font-size: 12px; color: var(--lcg-muted); }
.lcg-friend-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.lcg-friend-link {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--lcg-border);
  background: var(--lcg-card);
  font-size: 13px;
  color: var(--lcg-text);
}
.lcg-friend-link:hover { border-color: var(--lcg-primary); color: var(--lcg-primary); }

/* 空狀態、分頁 */
.lcg-null {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--lcg-border);
  border-radius: 12px;
  color: var(--lcg-muted);
}
.lcg-null i { font-size: 48px; margin-bottom: 12px; opacity: .5; }
.lcg-null p { margin: 0; }
.lcg-null--search .lcg-null-icon { font-size: 56px; color: var(--lcg-primary); margin-bottom: 16px; }
.lcg-null--search h3 { margin: 0 0 8px; color: var(--lcg-text); }
.lcg-null-actions { margin-top: 20px; }
.lcg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  height: 40px;
  border-radius: 8px;
  background: var(--lcg-primary);
  color: #fff;
  border: none;
  font-weight: 500;
}
.lcg-btn:hover { background: var(--lcg-primary-dark); color: #fff; }
.lcg-search-summary { margin-bottom: 16px; font-size: 14px; color: var(--lcg-muted); }
.lcg-pager { padding-top: 20px; border-top: 1px solid var(--lcg-border); margin-top: 8px; }
.lcg-pager-inner { display: flex; justify-content: center; }

/* 詳情頁 - 手機單列，桌面主欄+側欄 */
.lcg-read { padding: 16px 0; }
.lcg-read-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lcg-read-main { min-width: 0; max-width: 100%; }
.lcg-read-head { margin-bottom: 16px; }
.lcg-read-title { margin: 0 0 12px; font-size: 22px; line-height: 1.4; font-weight: 700; }
.lcg-read-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--lcg-muted); flex-wrap: wrap; }

@media (min-width: 769px) {
  .lcg-read { padding: 20px 0; }
  .lcg-read-row { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .lcg-read-main { max-width: 720px; }
  .lcg-read-title { font-size: 26px; line-height: 1.35; }
  .lcg-read-meta { gap: 16px; }
}
.lcg-read-fig { margin: 0 0 20px; border-radius: 10px; overflow: hidden; border: 1px solid var(--lcg-border); }
.lcg-read-fig img { width: 100%; display: block; }
.lcg-read-body { margin-bottom: 24px; line-height: 1.85; }
.lcg-read-body p { margin: 0 0 1em; }
.lcg-read-share { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.lcg-read-share-label { font-size: 14px; color: var(--lcg-muted); }
.lcg-read-share-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 8px;
  border: 1px solid var(--lcg-border);
  background: var(--lcg-card);
  color: var(--lcg-primary);
  display: grid;
  place-items: center;
}
.lcg-read-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--lcg-border);
  border-bottom: 1px solid var(--lcg-border);
  margin-bottom: 24px;
}
.lcg-read-prev, .lcg-read-next {
  display: grid;
  gap: 6px;
  font-size: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--lcg-border);
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.lcg-read-prev:hover, .lcg-read-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0,0,0,.06);
  border-color: rgba(177,15,22,.35);
}
.lcg-read-prev { text-align: left; justify-items: start; }
.lcg-read-next { text-align: left; justify-items: start; }
.lcg-read-nav-label { font-size: 12px; color: var(--lcg-primary); font-weight: 600; }
.lcg-read-nav-title { white-space: normal; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

@media (min-width: 769px) {
  .lcg-read-share-btn { width: 38px; height: 38px; min-width: 38px; }
  .lcg-read-nav { grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px 0; }
  /* 关键：即使只有“下一篇”，也固定在右侧栏位 */
  .lcg-read-prev { grid-column: 1; }
  .lcg-read-next { grid-column: 2; text-align: right; justify-items: end; }
  .lcg-read-nav-title { white-space: nowrap; -webkit-line-clamp: unset; }
}
.lcg-read-related { margin-top: 24px; }
.lcg-related-head { margin: 0 0 16px; font-size: 17px; }
.lcg-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 500px) {
  .lcg-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 769px) {
  .lcg-related-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.lcg-related-card {
  background: var(--lcg-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--lcg-border);
  border-left: 4px solid var(--lcg-primary);
  transition: box-shadow .2s;
}
.lcg-related-card:hover { box-shadow: 0 6px 20px rgba(45,106,79,.1); }
.lcg-related-link { display: block; }
.lcg-related-img { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.lcg-related-inner { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.lcg-related-cat { font-size: 11px; color: var(--lcg-primary); font-weight: 600; }
.lcg-related-views { font-size: 11px; color: var(--lcg-muted); }
.lcg-related-title { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcg-related-text { margin: 0; font-size: 12px; color: var(--lcg-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 404 */
.lcg-err { padding: 60px 0; }
.lcg-err-box {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  background: var(--lcg-surface);
  border: 1px solid var(--lcg-border);
  border-radius: 12px;
}
.lcg-err-num { font-size: 64px; line-height: 1; font-weight: 800; color: var(--lcg-primary); opacity: .9; }
.lcg-err-head { margin: 16px 0 8px; font-size: 20px; }
.lcg-err-text { margin: 0; color: var(--lcg-muted); }
.lcg-err-actions { margin-top: 24px; }

/* 頁腳 */
.lcg-branch { padding: 20px 0; border-top: 1px solid var(--lcg-border); }
.lcg-branch-title { margin: 0 0 12px; font-size: 17px; }
.lcg-branch-list { display: flex; flex-wrap: wrap; gap: 10px; }
.lcg-branch-item {
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--lcg-card);
  border: 1px solid var(--lcg-border);
  font-size: 14px;
  transition: border-color .2s;
}
.lcg-branch-item:hover { border-color: var(--lcg-primary); color: var(--lcg-primary); }
.lcg-links-bar { padding: 14px 0; border-top: 1px solid var(--lcg-border); }
.lcg-links-bar .lcg-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lcg-links-caption { font-size: 14px; color: var(--lcg-text); font-weight: 600; }
.lcg-links-inner { display: flex; gap: 10px; flex-wrap: wrap; }
.lcg-ext-link { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--lcg-border); background: var(--lcg-card); font-size: 13px; }
.lcg-ext-link:hover { border-color: var(--lcg-primary); color: var(--lcg-primary); }
.lcg-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--lcg-border);
  background: linear-gradient(0deg, rgba(45,106,79,.04), transparent);
}
.lcg-footer-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 20px; }
.lcg-footer-block { min-width: 0; }
.lcg-footer-head { margin: 0 0 10px; font-size: 15px; color: var(--lcg-text); }
.lcg-footer-desc, .lcg-footer-nav, .lcg-footer-contact { margin: 0; font-size: 13px; color: var(--lcg-muted); line-height: 1.7; }
.lcg-footer-nav { list-style: none; padding: 0; }
.lcg-footer-nav a, .lcg-footer-contact a { color: inherit; }
.lcg-footer-nav a:hover, .lcg-footer-contact a:hover { color: var(--lcg-primary); }
.lcg-footer-contact { list-style: none; padding: 0; }
.lcg-footer-contact i { color: var(--lcg-primary); margin-right: 6px; }
.lcg-footer-copy { padding-top: 16px; border-top: 1px solid var(--lcg-border); text-align: center; font-size: 13px; color: var(--lcg-muted); }
.lcg-footer-copy a { color: var(--lcg-primary); }

/* 響應式 */
@media (max-width: 1100px) {
  .lcg-tile-grid { grid-template-columns: repeat(2, 1fr); }
  .lcg-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .lcg-side {
    width: 100%;
    min-width: 0;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }
  .lcg-side-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    gap: 12px;
    width: 100%;
  }
  .lcg-brand { flex: 1; min-width: 0; }
  .lcg-menu { order: 3; width: 100%; }
  .lcg-menu-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .lcg-form-search { order: 2; margin-top: 0; flex: 1; min-width: 160px; }
  .lcg-content { margin-left: 0; }
  .lcg-banner .lcg-wrap { grid-template-columns: 1fr; }
  .lcg-row, .lcg-read-row { grid-template-columns: 1fr; }
  .lcg-aside { position: static; }
  .lcg-stream-card { flex-direction: column; }
  .lcg-stream-thumb { flex: 0 0 auto; width: 100%; height: 180px; }
  .lcg-footer-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lcg-wrap { padding: 0 14px; }
  .lcg-menu-btn { display: flex; }
  .lcg-menu-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    padding: 12px;
    background: var(--lcg-primary-dark);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
  }
  .lcg-menu-list.lcg-open { display: flex; flex-direction: column; }
  .lcg-tile-grid { grid-template-columns: 1fr; }
  .lcg-related-grid { grid-template-columns: 1fr; }
  .lcg-timeline-node { padding-left: 16px; }
  .lcg-read-title { font-size: 22px; }
  .lcg-read-nav { flex-direction: column; align-items: stretch; }
  .lcg-read-prev, .lcg-read-next { align-items: flex-start; text-align: left; }
  .lcg-read-nav-title { white-space: normal; }
  .lcg-footer-row { grid-template-columns: 1fr; }
  .lcg-banner-title { font-size: 18px; bottom: 44px; }
  .lcg-banner-desc { -webkit-line-clamp: 1; }
}
