/* ============================================================
   Beacon Theme — 大留白蓝白极简门户风
   ============================================================ */

:root{
  --theme-primary:      #0a66c2;     /* 主色 深海蓝 */
  --theme-primary-dark: #074a8e;
  --theme-primary-soft: #eaf2fb;
  --theme-accent:       #2dc6c6;     /* 辅色 薄荷青 */
  --theme-accent-dark:  #1d9c9c;
  --theme-text:         #1d2330;
  --theme-text-muted:   #71788a;
  --theme-border:       #e6eaef;
  --theme-bg:           #fff;
  --theme-bg-soft:      #f4f6fa;
  --theme-radius:       10px;
  --theme-radius-sm:    6px;
  --theme-shadow:       0 1px 2px rgba(10,30,70,.04), 0 1px 3px rgba(10,30,70,.04);
  --theme-shadow-lg:    0 16px 36px rgba(10,30,70,.08);
  --theme-container:    1160px;
  --theme-font:         -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; font-family:var(--theme-font);
  font-size:15px; line-height:1.72;
  color:var(--theme-text); background:var(--theme-bg);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
a{ color:var(--theme-primary); text-decoration:none; transition:color .15s; }
a:hover{ color:var(--theme-primary-dark); }
img{ max-width:100%; height:auto; display:block; }
h1,h2,h3,h4{ margin:0 0 .7em; font-weight:700; line-height:1.3; color:var(--theme-text); letter-spacing:-.015em; }
h1{ font-size:1.85rem; }
h2{ font-size:1.42rem; }
h3{ font-size:1.16rem; }
p{ margin:0 0 1em; }
ul,ol{ padding-left:1.4em; margin:0 0 1em; }
code{
  font-family:ui-monospace, SFMono-Regular,Consolas,Menlo,monospace;
  background:var(--theme-primary-soft); color:var(--theme-primary-dark);
  padding:2px 6px; border-radius:4px; font-size:.92em;
}
.container{ max-width:var(--theme-container); margin:0 auto; padding:0 24px; }

/* 头部：纯白通透 */
.site-header{
  background:#fff; border-bottom:1px solid var(--theme-border);
  position:sticky; top:0; z-index:50;
}
.site-header__inner{
  display:flex; align-items:center; justify-content:space-between;
  height:72px; gap:28px;
}
.site-brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.site-brand a{ color:var(--theme-text); display:flex; align-items:center; gap:11px; }
.site-brand .logo-mark{
  width:36px; height:36px; border-radius:10px;
  background:var(--theme-primary); color:#fff;
  display:inline-flex; align-items:center; justify-content:center;
  font-weight:700; font-size:17px;
  box-shadow:0 4px 12px rgba(10,102,194,.22);
}
.site-brand .brand-text{ font-size:1.16rem; font-weight:700; letter-spacing:-.015em; }
.site-brand .brand-sub{ font-size:.75rem; color:var(--theme-text-muted); margin-top:2px; letter-spacing:.02em; }

.main-nav{ display:flex; align-items:center; gap:0; flex:1; min-width:0; }
.main-nav a{
  display:inline-block; padding:8px 16px; border-radius:8px;
  color:var(--theme-text-muted); font-size:14px; font-weight:500;
  white-space:nowrap; transition:color .15s, background .15s;
}
.main-nav a:hover, .main-nav a.active{ color:var(--theme-primary); background:transparent; }

.header-search{ flex-shrink:0; }
.header-search input{
  width:240px; height:38px; padding:0 14px 0 38px;
  border:1px solid var(--theme-border); border-radius:10px;
  font-size:14px; background:var(--theme-bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371788a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 14px center;
  outline:none; transition:border-color .15s, background-color .15s, box-shadow .15s;
}
.header-search input:focus{ border-color:var(--theme-primary); background-color:#fff; box-shadow:0 0 0 3px var(--theme-primary-soft); }
.mobile-menu-btn{ display:none; border:0; background:none; padding:8px; cursor:pointer; color:var(--theme-text); }

/* 主体 */
.page{ padding:32px 0 60px; }
.page-grid{ display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:40px; }
.page-grid--full{ display:block; }

/* Hero：纯白大留白 */
.hero{
  background:#fff; color:var(--theme-text);
  padding:72px 0 60px; margin-bottom:40px;
  border-radius:0; text-align:left;
  border-bottom:1px solid var(--theme-border);
}
.hero h1{
  color:var(--theme-text); font-size:3rem; margin-bottom:.4em;
  font-weight:800; letter-spacing:-.025em; line-height:1.12;
}
.hero .hero-sub{
  color:var(--theme-text-muted); font-size:1.15rem; max-width:640px;
  font-weight:400; line-height:1.55;
}

/* 卡片 */
.card{
  background:#fff; border:1px solid var(--theme-border); border-radius:var(--theme-radius);
  box-shadow:none; overflow:hidden;
}
.card + .card{ margin-top:24px; }
.card__header{
  padding:22px 28px 14px; border-bottom:0;
  display:flex; align-items:center; justify-content:space-between;
}
.card__title{ font-size:1.2rem; font-weight:700; margin:0; display:flex; align-items:center; gap:10px; letter-spacing:-.01em; }
.card__title::before{
  content:""; display:inline-block; width:4px; height:18px;
  background:var(--theme-primary); border-radius:2px;
}
.card__more{ font-size:.85rem; color:var(--theme-primary); font-weight:600; }
.card__more:hover{ color:var(--theme-primary-dark); }
.card__body{ padding:20px 28px; }

/* 文章列表 */
.article-list{ display:grid; gap:0; }
.article-item{
  display:flex; gap:22px; padding:20px 28px;
  border-top:1px solid var(--theme-border); transition:background .15s;
}
.article-item:first-child{ border-top:0; }
.article-item:hover{ background:var(--theme-bg-soft); }
.article-item__cover{
  width:160px; height:108px; border-radius:8px; overflow:hidden;
  flex-shrink:0; background:var(--theme-bg-soft);
}
.article-item__cover img{ width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.article-item:hover .article-item__cover img{ transform:scale(1.04); }
.article-item__body{ flex:1; min-width:0; display:flex; flex-direction:column; }
.article-item__title{
  font-size:1.08rem; font-weight:700; margin:0 0 .4em; line-height:1.4;
  letter-spacing:-.01em;
}
.article-item__title a{ color:var(--theme-text); }
.article-item__title a:hover{ color:var(--theme-primary); }
.article-item__excerpt{
  color:var(--theme-text-muted); font-size:14px; line-height:1.65;
  margin:0 0 auto;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.article-item__meta{
  display:flex; align-items:center; gap:14px; margin-top:10px;
  font-size:12px; color:var(--theme-text-muted);
}
.article-item__meta .views::before{ content:"· "; }
.article-item__meta .date::before{  content:""; }

/* 文章详情：阅读优先大留白 */
.article{
  background:#fff; border:1px solid var(--theme-border); border-radius:var(--theme-radius);
  box-shadow:none; padding:48px 56px;
  max-width:780px; margin:0 auto;
}
.article__title{ font-size:2.2rem; line-height:1.26; margin-bottom:18px; letter-spacing:-.02em; font-weight:800; }
.article__meta{
  display:flex; gap:14px; flex-wrap:wrap; padding-bottom:20px;
  border-bottom:1px solid var(--theme-border); margin-bottom:28px;
  font-size:13px; color:var(--theme-text-muted);
}
.article__meta a{ color:var(--theme-text-muted); }
.article__meta a:hover{ color:var(--theme-primary); }
.article__cover{ width:100%; max-height:380px; object-fit:cover; border-radius:8px; margin-bottom:24px; }
.article__content{ font-size:16.5px; line-height:1.92; color:#2a2f3d; }
.article__content h2,.article__content h3{ margin-top:1.6em; letter-spacing:-.015em; }
.article__content p{ margin-bottom:1.2em; }
.article__content img{ border-radius:8px; margin:1.2em 0; }
.article__content blockquote{
  margin:1.2em 0; padding:.4em 1.4em; border-left:3px solid var(--theme-primary);
  background:transparent; color:#2a2f3d; font-style:italic; font-size:1.05em;
}
.article__content pre{
  background:#1d2330; color:#e6eaef; padding:16px 20px; border-radius:8px;
  overflow-x:auto; font-size:14px;
}

/* 侧栏 */
.aside{ position:sticky; top:96px; align-self:start; }
.widget{
  background:#fff; border:1px solid var(--theme-border); border-radius:var(--theme-radius);
  box-shadow:none; margin-bottom:18px; overflow:hidden;
}
.widget__title{
  padding:18px 22px 10px; border-bottom:0;
  font-size:.92rem; font-weight:700; margin:0;
  display:flex; align-items:center; gap:8px;
  text-transform:uppercase; letter-spacing:.06em;
  color:var(--theme-text-muted);
}
.widget__title::before{
  content:""; width:14px; height:1px; background:var(--theme-primary); border-radius:0;
}
.widget__body{ padding:4px 0 8px; }
.widget__list{ list-style:none; padding:0; margin:0; }
.widget__list li{ padding:8px 22px; }
.widget__list li a{
  color:var(--theme-text); font-size:14px; line-height:1.5;
  display:block; transition:color .15s;
}
.widget__list li a:hover{ color:var(--theme-primary); }

.widget--ranked .widget__list{ counter-reset:rank; }
.widget--ranked .widget__list li{ display:flex; gap:12px; align-items:flex-start; counter-increment:rank; }
.widget--ranked .widget__list li::before{
  content:counter(rank); flex-shrink:0;
  width:22px; height:22px; line-height:22px; text-align:center;
  background:transparent; color:var(--theme-text-muted);
  border:1px solid var(--theme-border);
  border-radius:50%; font-size:11.5px; font-weight:700;
}
.widget--ranked .widget__list li:nth-child(-n+3)::before{
  background:var(--theme-primary); color:#fff; border-color:var(--theme-primary);
}

/* 分类页头 */
.cat-header{
  background:transparent; border:0; border-radius:0; box-shadow:none;
  padding:0 0 22px; margin-bottom:20px;
}
.cat-header h1{ margin:0 0 .4em; font-size:2.2rem; letter-spacing:-.02em; }
.cat-header p{ margin:0; color:var(--theme-text-muted); font-size:.98rem; }

/* 标签云 */
.tag-cloud{ display:flex; flex-wrap:wrap; gap:8px; padding:18px 28px; }
.tag-chip{
  display:inline-block; padding:6px 14px; border-radius:8px;
  background:var(--theme-bg-soft); color:var(--theme-text);
  border:1px solid transparent; font-size:13px; font-weight:500;
  transition:background .15s, color .15s, border-color .15s;
}
.tag-chip:hover{ background:var(--theme-primary-soft); color:var(--theme-primary); border-color:var(--theme-primary-soft); }

/* 标签详情 */
.tag-detail{
  background:#fff; border:1px solid var(--theme-border); border-radius:var(--theme-radius);
  box-shadow:none; padding:40px 48px; max-width:780px; margin:0 auto;
}
.tag-detail__title{ font-size:1.8rem; margin-bottom:.5em; letter-spacing:-.015em; }
.tag-detail__lead{
  color:var(--theme-text-muted); font-size:1rem; margin-bottom:26px;
}
.tag-detail__section{ margin-top:28px; }
.tag-detail__section h2{ font-size:1.18rem; }

/* 分页 */
.pager,.pagination{
  display:flex; gap:4px; justify-content:center; flex-wrap:wrap;
  padding:28px 0; list-style:none; margin:0;
}
.pager a, .pager span,
.pagination li > a, .pagination li > span{
  display:inline-block; padding:7px 13px; border-radius:8px;
  border:1px solid transparent; background:transparent;
  color:var(--theme-text-muted); font-size:14px; text-decoration:none; font-weight:500;
}
.pager a:hover, .pagination li > a:hover{ background:var(--theme-primary-soft); color:var(--theme-primary); }
.pager .active, .pager .current,
.pagination li.active > span, .pagination li.active > a{
  background:var(--theme-primary); border-color:var(--theme-primary); color:#fff;
}
.pager .disabled, .pagination li.disabled > span{ color:var(--theme-border); cursor:not-allowed; }

/* 搜索 */
.search-summary{
  background:var(--theme-primary-soft); border-left:3px solid var(--theme-primary);
  border-radius:6px; padding:14px 18px; margin-bottom:16px;
  color:var(--theme-primary-dark); font-size:14px;
}
.search-summary strong{ color:var(--theme-primary-dark); }

/* 面包屑 */
.crumb{
  font-size:13px; color:var(--theme-text-muted); margin-bottom:18px;
  display:flex; flex-wrap:wrap; gap:6px; align-items:center;
}
.crumb a{ color:var(--theme-text-muted); }
.crumb a:hover{ color:var(--theme-primary); }
.crumb .sep{ opacity:.4; }

/* footer */
.site-footer{
  background:#1d2330; color:#9aa3b5; margin-top:80px; padding:42px 0 24px;
}
.site-footer a{ color:#cdd3e0; }
.site-footer a:hover{ color:var(--theme-accent); }
.site-footer .friend{ margin-bottom:18px; font-size:14px; }
.site-footer .friend a{ margin-right:14px; }
.site-footer .copyright{
  border-top:1px solid #2c3344; padding-top:16px; font-size:13px;
  display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between;
}

/* 错误页 */
.error{ text-align:center; padding:100px 20px; }
.error h1{ font-size:6.5rem; color:var(--theme-primary); margin-bottom:0; font-weight:800; letter-spacing:-.025em; }
.error p{ font-size:1.1rem; color:var(--theme-text-muted); }
.error .btn{
  display:inline-block; margin-top:20px; padding:11px 26px;
  background:var(--theme-primary); color:#fff; border-radius:10px; font-weight:600;
}
.error .btn:hover{ background:var(--theme-primary-dark); }

/* 移动端 */
@media (max-width: 992px){
  .page-grid{ grid-template-columns:1fr; gap:32px; }
  .aside{ position:static; }
  .article{ padding:28px; }
  .article__title{ font-size:1.7rem; }
  .hero h1{ font-size:2.4rem; }
}
@media (max-width: 768px){
  .main-nav{ display:none; position:absolute; top:72px; left:0; right:0;
              background:#fff; flex-direction:column; padding:8px;
              box-shadow:var(--theme-shadow-lg); border-bottom:1px solid var(--theme-border); }
  .main-nav.open{ display:flex; }
  .header-search{ display:none; }
  .mobile-menu-btn{ display:inline-flex; }
  .article-item{ flex-direction:column; }
  .article-item__cover{ width:100%; height:200px; }
  .hero{ padding:48px 0 38px; }
  .hero h1{ font-size:1.9rem; }
  .article{ padding:22px; }
  .article__title{ font-size:1.45rem; }
}

/* 首页聚合块 */
.cat-block .card__title{ font-size:1.2rem; }
.cat-block .card__title a{ color:var(--theme-text); }
.cat-block .card__title a:hover{ color:var(--theme-primary); }
.cat-block__desc{
  margin:0; padding:6px 28px 14px;
  color:var(--theme-text-muted); font-size:14px;
}
.cat-block__body{ display:flex; flex-direction:column; }

.cat-block__featured{
  display:grid; grid-template-columns:1fr 1fr;
  gap:18px; padding:0 28px 22px;
  border-bottom:1px solid var(--theme-border);
}
.cat-block__featured .article-item{
  flex-direction:column; gap:0; padding:0;
  border:1px solid var(--theme-border); border-radius:10px;
  overflow:hidden; background:#fff;
  transition:transform .25s, box-shadow .25s, border-color .25s;
}
.cat-block__featured .article-item:hover{
  transform:translateY(-2px);
  box-shadow:var(--theme-shadow-lg);
  border-color:var(--theme-primary-soft);
}
.cat-block__featured .article-item__cover{ width:100%; height:170px; border-radius:0; }
.cat-block__featured .article-item__body{ padding:16px 18px 18px; }
.cat-block__featured .article-item__title{ font-size:1.02rem; }

.cat-block__list{
  list-style:none; margin:0;
  padding:18px 28px 22px;
  display:grid; grid-template-columns:1fr 1fr;
  gap:0 40px;
}
.cat-block__list li{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 0; border-bottom:1px solid var(--theme-border);
  font-size:14px;
}
.cat-block__list li a{
  color:var(--theme-text); flex:1; min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  transition:color .15s;
}
.cat-block__list li a:hover{ color:var(--theme-primary); }
.cat-block__list time{
  color:var(--theme-text-muted); font-size:12px;
  flex-shrink:0; margin-left:12px;
}
@media (max-width: 768px){
  .cat-block__featured{ grid-template-columns:1fr; gap:14px; padding:0 16px 16px; }
  .cat-block__list{ grid-template-columns:1fr; gap:0; padding:14px 16px; }
}
