
:root{
  --bg:#fbfaf7;
  --panel:#fffdfa;
  --panel-2:#f7fbfe;
  --text:#15345b;
  --muted:#64748b;
  --muted-2:#8aa0b8;
  --border:#e7edf3;
  --accent:#0ea5e9;
  --accent-2:#2563eb;
  --soft-blue:#eaf6ff;
  --warm:#fff5e7;
  --shadow:0 18px 45px rgba(55,84,120,.08);
  --radius:18px;
  --max:1280px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at 50% 0%, rgba(219,234,254,.45), transparent 36rem),
    linear-gradient(180deg,#fbfaf7 0%,#f8fafc 100%);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","Noto Sans CJK SC",Arial,sans-serif;
  line-height:1.72;
}
body.dark{
  --bg:#0f172a;--panel:#111c2e;--panel-2:#13233a;--text:#e6f0ff;--muted:#a8bad1;--muted-2:#7e91aa;--border:#243449;--accent:#38bdf8;--accent-2:#60a5fa;--soft-blue:#132b42;--warm:#1f2333;--shadow:0 18px 45px rgba(0,0,0,.22);
  background:linear-gradient(180deg,#0d1728 0%,#111827 100%);
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.site-header{height:86px;border-bottom:1px solid rgba(203,213,225,.45);backdrop-filter:blur(12px);background:rgba(251,250,247,.74);position:sticky;top:0;z-index:20}
body.dark .site-header{background:rgba(15,23,42,.78)}
.navbar{max-width:var(--max);margin:0 auto;height:100%;display:flex;align-items:center;padding:0 34px;gap:36px}
.logo{font-size:27px;font-weight:760;letter-spacing:.04em;color:#12345a}
body.dark .logo{color:#eaf6ff}
.nav-links{display:flex;gap:54px;margin-left:auto;margin-right:auto;align-items:center}
.nav-links a{font-weight:650;color:#27496c;position:relative;padding:30px 0 26px}
body.dark .nav-links a{color:#cbdcf2}
.nav-links a.active,.nav-links a:hover{color:var(--accent-2)}
.nav-links a.active:after{content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:48px;height:3px;border-radius:10px;background:var(--accent)}
.header-icons{display:flex;gap:22px;align-items:center;color:#15345b}
.icon-btn{border:0;background:transparent;color:inherit;cursor:pointer;padding:6px;border-radius:99px;display:inline-flex;align-items:center;justify-content:center}
.icon-btn:hover{background:var(--soft-blue);color:var(--accent-2)}
.container{max-width:var(--max);margin:0 auto;padding:34px}
.page-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:34px;align-items:start}
.sidebar{display:flex;flex-direction:column;gap:28px}
.hero-banner{
  border:1px solid var(--border);border-radius:var(--radius);min-height:300px;overflow:hidden;position:relative;background:var(--panel);box-shadow:var(--shadow);display:flex;align-items:center;padding:52px 58px;background-size:cover;background-position:center;
}
.hero-banner:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,253,250,.9),rgba(255,253,250,.52),rgba(255,253,250,.15));}
body.dark .hero-banner:before{background:linear-gradient(90deg,rgba(15,23,42,.78),rgba(15,23,42,.48),rgba(15,23,42,.18))}
.hero-content{position:relative;z-index:1;max-width:680px}
.hero-title{font-size:58px;line-height:1.05;margin:0 0 22px;font-weight:820;letter-spacing:.06em}
.hero-subtitle{font-size:21px;color:#334e68;margin:0;line-height:1.75;white-space:pre-line}
body.dark .hero-subtitle{color:#c7d9ee}
.section{margin-top:34px}
.section-head{display:flex;align-items:center;gap:14px;margin:0 0 18px;color:#15345b}
.section-head h2{font-size:27px;margin:0;font-weight:760}
.section-icon{color:var(--accent);display:inline-flex}
.card{background:rgba(255,253,250,.83);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
body.dark .card{background:rgba(17,28,46,.82)}
.prose-card{padding:26px 10px 22px}
.prose-card p{font-size:17px;color:#405871;margin:8px 0;white-space:pre-line}
.area-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.area-card{text-align:center;padding:26px 18px;transition:.18s ease}
.area-card:hover{transform:translateY(-3px);border-color:#b9dff6}
.area-icon{width:62px;height:62px;margin:0 auto 16px;border-radius:999px;display:grid;place-items:center;background:var(--soft-blue);color:var(--accent-2)}
.area-card:nth-child(2) .area-icon{background:#fff1e5;color:#c9681b}
.area-card:nth-child(4) .area-icon{background:#fff4e0;color:#b65f16}
.area-card h3{font-size:19px;margin:0 0 8px}
.area-card p{font-size:14px;color:var(--muted);margin:0 0 12px}
.more{color:var(--accent-2);font-weight:650;font-size:14px}
.friend-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.friend-card{text-align:center;padding:24px 14px}
.avatar{width:74px;height:74px;border-radius:50%;margin:0 auto 12px;object-fit:cover;background:#eaf6ff}
.friend-card h3{margin:0 0 8px;font-size:18px}
.friend-card p{margin:0 0 14px;color:var(--muted);font-size:14px;min-height:46px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #bfdbfe;border-radius:999px;padding:9px 18px;color:var(--accent-2);background:rgba(239,246,255,.72);font-weight:650}
.btn:hover{border-color:var(--accent);background:var(--soft-blue)}
.sidebar-card{padding:26px}
.sidebar-card h3{margin:0 0 16px;font-size:22px}
.about-mini{text-align:center}
.about-mini .b-avatar{width:96px;height:96px;border-radius:50%;background:#12345a;color:white;display:grid;place-items:center;margin:12px auto 16px;font-size:54px;font-weight:760}
.about-mini .name{font-size:24px;font-weight:760;margin-bottom:14px}
.about-mini p{white-space:pre-line;color:#405871;margin:0;line-height:1.85}
.stat-list,.recent-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:14px}
.stat-list li{display:flex;align-items:center;justify-content:space-between;color:#405871}
.stat-list b{color:#12345a}
.recent-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;font-size:14px;color:#405871}
.recent-list span{color:#7c91a9}
.social-row{display:flex;gap:16px;margin-top:20px}
.social-row a{width:46px;height:46px;border-radius:50%;background:#f3f6f9;display:grid;place-items:center;color:#0f172a;border:1px solid var(--border)}
body.dark .social-row a{background:#1e2d42;color:#eaf6ff}
.social-row img{width:24px;height:24px}
.footer{max-width:var(--max);margin:34px auto 0;padding:26px 34px;text-align:center;color:var(--muted);border-top:1px solid rgba(203,213,225,.45)}
/* Archive pages */
.page-hero{border:1px solid var(--border);border-radius:var(--radius);min-height:270px;padding:58px;background:var(--panel);background-size:cover;background-position:center;box-shadow:var(--shadow);position:relative;overflow:hidden;margin-bottom:34px}
.page-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,253,250,.86),rgba(255,253,250,.38))}
body.dark .page-hero:before{background:linear-gradient(90deg,rgba(15,23,42,.76),rgba(15,23,42,.32))}
.page-hero > *{position:relative}
.page-hero h1{font-size:58px;line-height:1;margin:0 0 20px}
.page-hero p{font-size:22px;margin:0;color:#334e68}
.toolbar-panel{padding:18px 24px;display:flex;gap:20px;align-items:center;margin-bottom:24px}
.searchbox{flex:1;border:1px solid var(--border);background:var(--panel);border-radius:14px;padding:13px 18px;color:var(--text);font-size:15px}
.pills{display:flex;gap:12px;flex-wrap:wrap}
.pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:8px 17px;background:#f6f8fb;border:1px solid var(--border);color:#31506d;font-weight:650}
.pill.active{background:#e7f4ff;color:var(--accent-2);border-color:#c7e5fb}
.article-list{display:flex;flex-direction:column;gap:18px}
.post-card{display:grid;grid-template-columns:450px minmax(0,1fr);overflow:hidden;min-height:186px}
.post-thumb{height:100%;background:#e6f3fb;background-size:cover;background-position:center;min-height:186px}
.post-info{padding:24px 30px;display:flex;flex-direction:column;justify-content:center}
.post-info h2,.post-info h3{font-size:25px;margin:0 0 10px}
.post-info p{color:#506985;margin:0 0 18px}
.meta-row{display:flex;gap:16px;flex-wrap:wrap;align-items:center;color:#64809d;font-size:14px}
.meta-row .views{margin-left:auto}
.tag{border:1px solid var(--border);background:#f8fafc;border-radius:999px;padding:4px 12px;color:#5b6f86}
.pagination{display:flex;justify-content:center;gap:12px;margin:28px 0}.pagination span,.pagination a{width:42px;height:42px;border-radius:12px;border:1px solid var(--border);display:grid;place-items:center}.pagination .active{background:var(--accent);color:white}
.tag-cloud{padding:28px}.tag-cloud .pill{margin:7px}
.hot-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.hot-card{padding:24px}
.hot-card h3{font-size:21px;margin:8px 0}.hot-card ul{color:var(--muted);padding-left:18px;font-size:14px}
.topic-map{padding:18px}.topic-row{display:grid;grid-template-columns:190px minmax(0,1fr);gap:18px;align-items:center;padding:16px;border-bottom:1px solid var(--border)}.topic-row:last-child{border-bottom:0}
.topic-row h3{margin:0}.topic-row p{margin:3px 0 0;color:var(--muted);font-size:13px}
.featured-friends{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}.featured-card{display:grid;grid-template-columns:130px minmax(0,1fr);gap:22px;padding:28px;align-items:center}
.all-friends{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.small-friend{display:grid;grid-template-columns:74px minmax(0,1fr);gap:16px;align-items:center;padding:18px}
.panel-two{display:grid;grid-template-columns:1fr 1fr;gap:24px}.panel-two .card{padding:24px}
.activity-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.activity-list li{display:flex;justify-content:space-between;gap:18px;color:#405871}
.friend-hero{display:grid;grid-template-columns:160px minmax(0,1fr);gap:28px;align-items:center}.friend-hero .avatar{width:140px;height:140px;margin:0}.friend-hero h1{margin:0 0 10px;font-size:46px}
/* Markdown single */
.article-shell{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:28px;align-items:start}
.article-reader{padding:28px 34px}
.article-toc{padding:22px;position:sticky;top:110px;max-height:calc(100vh - 130px);overflow:auto}
.article-toc h3{margin:0 0 14px}
.article-toc nav ul{list-style:none;padding-left:0;margin:0}.article-toc nav li{margin:4px 0}.article-toc nav ul ul{padding-left:16px}.article-toc a{font-size:14px;color:#3e5a77}.article-toc a:hover{color:var(--accent-2)}
.markdown-body{font-size:17px;color:#263f5b}
.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4{line-height:1.35;color:#12345a;margin:1.35em 0 .65em}
.markdown-body h1{font-size:2.1em;border-bottom:1px solid var(--border);padding-bottom:.28em}
.markdown-body h2{font-size:1.62em;border-bottom:1px solid var(--border);padding-bottom:.26em}
.markdown-body h3{font-size:1.3em}.markdown-body p{margin:13px 0}.markdown-body a{color:var(--accent-2)}
.markdown-body code{background:#eef5fb;border:1px solid #dbe9f5;padding:2px 6px;border-radius:7px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.92em}
.markdown-body pre{background:#111827;color:#e5edf8;border-radius:14px;padding:18px;overflow:auto}
.markdown-body pre code{background:transparent;border:0;color:inherit;padding:0}.markdown-body blockquote{border-left:4px solid var(--accent);background:#eef7ff;color:#49657f;margin:18px 0;padding:12px 18px;border-radius:0 12px 12px 0}
.markdown-body table{border-collapse:collapse;width:100%;display:block;overflow:auto;margin:20px 0}.markdown-body th,.markdown-body td{border:1px solid var(--border);padding:9px 13px}.markdown-body th{background:#f3f7fb}.markdown-body img{border-radius:14px;margin:20px auto}.markdown-body hr{border:0;border-top:1px solid var(--border);margin:30px 0}.markdown-body ul,.markdown-body ol{padding-left:1.5em}
.prev-next{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}.nav-card{padding:18px 20px;display:flex;justify-content:space-between;gap:16px;align-items:center}.nav-card small{color:var(--muted)}.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.related-card{overflow:hidden}.related-card .post-thumb{height:110px;min-height:110px}.related-card .post-info{padding:16px}.related-card h3{font-size:17px}
@media (max-width: 980px){
  .navbar{padding:0 18px;gap:18px}.nav-links{gap:24px;margin-left:auto;margin-right:0}.container{padding:22px}.page-grid,.article-shell{grid-template-columns:1fr}.sidebar,.article-toc{display:none}.area-grid,.friend-grid,.all-friends,.hot-grid,.related-grid{grid-template-columns:1fr 1fr}.post-card{grid-template-columns:1fr}.post-thumb{height:190px}.hero-title,.page-hero h1{font-size:42px}.hero-banner,.page-hero{padding:36px 28px}.panel-two,.featured-friends{grid-template-columns:1fr}
}
@media (max-width: 620px){
  .site-header{height:auto}.navbar{flex-wrap:wrap;padding:16px}.logo{width:100%;font-size:22px}.nav-links{order:3;width:100%;justify-content:space-between;gap:0}.nav-links a{padding:10px 0}.header-icons{margin-left:auto}.area-grid,.friend-grid,.all-friends,.hot-grid,.related-grid{grid-template-columns:1fr}.toolbar-panel{flex-direction:column;align-items:stretch}.hero-title{font-size:34px}.page-hero h1{font-size:38px}.hero-subtitle,.page-hero p{font-size:17px}.prev-next{grid-template-columns:1fr}.friend-hero{grid-template-columns:1fr;text-align:center}.friend-hero .avatar{margin:0 auto}
}

button.pill{font:inherit;cursor:pointer}
button.pill:hover{border-color:var(--accent);color:var(--accent-2)}
.post-search-item{display:block}


/* v6.6 深色模式可读性优化：保留柔和风格，提高文字对比度 */
body.dark{
  --text:#f2f7ff;
  --muted:#d3e2f3;
  --muted-2:#b7c8dc;
  --border:#36506e;
  --panel:#132238;
  --panel-2:#182b45;
  --soft-blue:#19334f;
}
body.dark .card,
body.dark .post-card,
body.dark .featured-card,
body.dark .small-friend,
body.dark .hot-card,
body.dark .toolbar-panel,
body.dark .tag-cloud,
body.dark .topic-map,
body.dark .article-reader,
body.dark .toc-card{
  background:rgba(19,34,56,.92);
  border-color:rgba(116,151,188,.32);
  color:var(--text);
}
body.dark p,
body.dark li,
body.dark .markdown-body,
body.dark .post-card p,
body.dark .featured-card p,
body.dark .hot-card p,
body.dark .topic-row p{
  color:#dbeafe;
}
body.dark .meta,
body.dark .date,
body.dark .summary,
body.dark .section-subtitle,
body.dark .sidebar .meta,
body.dark .post-meta,
body.dark .activity-list small{
  color:#bfd0e6 !important;
}
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark .hero-title,
body.dark .section-head h2{
  color:#f8fbff;
}
body.dark .hero-subtitle,
body.dark .page-hero p{
  color:#d7e8fb;
}
body.dark .pill{
  background:#203753;
  color:#e7f1ff;
  border-color:#3a5878;
}
body.dark .pill b{
  color:#ffffff;
}
body.dark .searchbox,
body.dark input,
body.dark textarea,
body.dark select{
  background:#0f1d31;
  border-color:#3a5878;
  color:#f2f7ff;
}
body.dark .searchbox::placeholder,
body.dark input::placeholder,
body.dark textarea::placeholder{
  color:#aebfd4;
}
body.dark .markdown-body blockquote{
  color:#e4f0ff;
  background:rgba(56,189,248,.10);
  border-left-color:#38bdf8;
}
body.dark .markdown-body code{
  background:#0c1a2d;
  color:#dbeafe;
  border-color:#324b68;
}
body.dark .markdown-body pre{
  background:#071120;
  border:1px solid #263f5d;
}
body.dark .markdown-body table th{
  background:#162942;
  color:#f2f7ff;
}
body.dark .markdown-body table td{
  color:#dbeafe;
  border-color:#34516f;
}
body.dark .icon-btn{
  color:#e6f2ff;
}
body.dark .icon-btn:hover{
  background:#1f3856;
  color:#ffffff;
}


/* v6.7 深色模式全覆盖修复：客户端整页背景、容器、页脚、空白区统一变暗 */
html,
body{
  min-height:100%;
}
body{
  background:var(--bg);
  color:var(--text);
}
body.dark{
  color:#f2f7ff;
  min-height:100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(56,189,248,.10), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(96,165,250,.08), transparent 32%),
    linear-gradient(180deg,#0d1728 0%,#111827 100%) !important;
}
body.dark .container,
body.dark main,
body.dark .site-main,
body.dark .content,
body.dark .section,
body.dark .page-grid,
body.dark .sidebar,
body.dark .article-list,
body.dark .all-friends,
body.dark .featured-friends,
body.dark .hot-grid,
body.dark .panel-two{
  background:transparent;
  color:#f2f7ff;
}
body.dark .site-header{
  background:rgba(12,24,40,.88) !important;
  border-bottom-color:rgba(116,151,188,.28);
}
body.dark footer,
body.dark .site-footer{
  background:#0d1728;
  color:#d3e2f3;
  border-top:1px solid rgba(116,151,188,.24);
}
body.dark .card,
body.dark .post-card,
body.dark .featured-card,
body.dark .small-friend,
body.dark .hot-card,
body.dark .toolbar-panel,
body.dark .tag-cloud,
body.dark .topic-map,
body.dark .article-reader,
body.dark .toc-card,
body.dark .empty,
body.dark .area-card,
body.dark .friend-card,
body.dark .sidebar-card{
  background:rgba(19,34,56,.94) !important;
  border-color:rgba(116,151,188,.34) !important;
  color:#f2f7ff !important;
}
body.dark .page-hero,
body.dark .hero-banner{
  background-color:#132238 !important;
  border-color:rgba(116,151,188,.36) !important;
}
body.dark .page-hero:before,
body.dark .hero-banner:before{
  background:linear-gradient(90deg,rgba(12,24,40,.84),rgba(12,24,40,.55),rgba(12,24,40,.24)) !important;
}
body.dark .nav-links a,
body.dark .header-icons,
body.dark .logo{
  color:#e6f2ff;
}
body.dark .nav-links a.active,
body.dark .nav-links a:hover{
  color:#7dd3fc;
}
body.dark hr{
  border-color:#36506e;
}


/* v6.8 深色细节与交互优化 */
body.dark .stat-list b,
body.dark .stats b,
body.dark .site-stats b,
body.dark .sidebar li b,
body.dark .sidebar-card b{
  color:#ffffff !important;
  text-shadow:0 0 18px rgba(125,211,252,.20);
}
body.dark .stat-list span,
body.dark .stats span,
body.dark .site-stats span{
  color:#d6e6f7 !important;
}
body.dark .featured-card .btn,
body.dark .friend-card .btn,
body.dark .small-friend .btn,
body.dark a.btn,
body.dark .more{
  background:#203753;
  color:#eaf6ff !important;
  border:1px solid #4b6f93;
}
body.dark .featured-card .btn:hover,
body.dark .friend-card .btn:hover,
body.dark .small-friend .btn:hover,
body.dark a.btn:hover,
body.dark .more:hover{
  background:#2c4c70;
  color:#ffffff !important;
  border-color:#7dd3fc;
}
.card,
.post-card,
.featured-card,
.small-friend,
.hot-card,
.area-card,
.topic-row,
.media-card,
.pill,
.icon-btn,
.btn,
button,
.nav-links a,
.logo,
.small-friend,
.featured-card,
.hot-card{
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease,
    color .18s ease,
    opacity .18s ease;
}
.card:hover,
.post-card:hover,
.featured-card:hover,
.small-friend:hover,
.hot-card:hover,
.area-card:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 52px rgba(39,74,112,.12);
  border-color:rgba(14,165,233,.32);
}
body.dark .card:hover,
body.dark .post-card:hover,
body.dark .featured-card:hover,
body.dark .small-friend:hover,
body.dark .hot-card:hover,
body.dark .area-card:hover{
  box-shadow:0 22px 58px rgba(0,0,0,.34);
  border-color:rgba(125,211,252,.42) !important;
  background:rgba(24,43,69,.96) !important;
}
.pill:hover{
  transform:translateY(-1px);
  border-color:var(--accent);
  color:var(--accent-2);
  box-shadow:0 8px 22px rgba(14,165,233,.10);
}
body.dark .pill:hover{
  background:#294866;
  color:#ffffff;
  border-color:#7dd3fc;
}
.topic-row:hover{
  background:rgba(14,165,233,.045);
  border-radius:16px;
}
body.dark .topic-row:hover{
  background:rgba(125,211,252,.08);
}
.searchbox:focus,
input:focus,
textarea:focus,
select:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(14,165,233,.14);
}
body.dark .searchbox:focus,
body.dark input:focus,
body.dark textarea:focus,
body.dark select:focus{
  border-color:#7dd3fc;
  box-shadow:0 0 0 4px rgba(125,211,252,.16);
}


/* v6.9 细节优化：圆滑按钮、当前状态图标、柔和切换 */
html,
body,
.site-header,
.card,
.post-card,
.featured-card,
.small-friend,
.hot-card,
.area-card,
.toolbar-panel,
tag-cloud,
.topic-map,
.article-reader,
.toc-card,
.page-hero,
.hero-banner,
.pill,
.btn,
.icon-btn,
input,
textarea,
select,
footer,
.site-footer{
  transition:
    background-color .38s ease,
    background .38s ease,
    color .38s ease,
    border-color .38s ease,
    box-shadow .38s ease,
    opacity .28s ease,
    transform .18s ease;
}
.area-card .more,
.more{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  border-radius:999px !important;
  padding:8px 14px;
  border:1px solid rgba(14,165,233,.18);
  background:rgba(14,165,233,.07);
  color:var(--accent-2);
  font-weight:720;
}
.area-card:hover .more,
.more:hover{
  background:rgba(14,165,233,.13);
  border-color:rgba(14,165,233,.38);
  transform:translateY(-1px);
}
body.dark .area-card .more,
body.dark .more{
  background:#203753 !important;
  color:#eaf6ff !important;
  border-color:#4b6f93 !important;
}
body.dark .area-card:hover .more,
body.dark .more:hover{
  background:#2c4c70 !important;
  color:#ffffff !important;
  border-color:#7dd3fc !important;
}


/* v7.0 手机端适配：公开站 */
@media (max-width: 900px){
  .site-header{
    height:auto;
    min-height:72px;
  }
  .navbar{
    padding:16px 18px;
    gap:14px;
    flex-wrap:wrap;
    align-items:center;
  }
  .logo{
    font-size:22px;
    flex:1 1 auto;
  }
  .header-icons{
    gap:10px;
  }
  .nav-links{
    order:3;
    width:100%;
    margin:4px 0 0;
    gap:8px;
    overflow-x:auto;
    padding:6px 0 2px;
    scrollbar-width:none;
    justify-content:flex-start;
  }
  .nav-links::-webkit-scrollbar{display:none}
  .nav-links a{
    padding:9px 13px;
    border-radius:999px;
    background:rgba(14,165,233,.07);
    white-space:nowrap;
  }
  .nav-links a.active:after{display:none}
  .container{
    padding:18px;
  }
  .page-grid{
    grid-template-columns:1fr;
    gap:22px;
  }
  .sidebar{
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
  }
  .hero-banner{
    min-height:240px;
    padding:36px 26px;
    border-radius:22px;
  }
  .hero-title{
    font-size:42px;
  }
  .hero-subtitle{
    font-size:17px;
  }
  .area-grid,
  .friend-grid,
  .hot-grid,
  .all-friends,
  .featured-friends,
  .related-grid,
  .post-grid,
  .panel-two{
    grid-template-columns:1fr !important;
  }
  .section-head{
    align-items:flex-start;
  }
  .toolbar-panel{
    flex-direction:column;
    align-items:stretch;
  }
  .searchbox{
    width:100%;
  }
  .article-reader{
    grid-template-columns:1fr !important;
  }
  .toc-card{
    position:static !important;
    order:-1;
  }
  .post-card,
  .related-card,
  .featured-card,
  .small-friend,
  .hot-card{
    min-width:0;
  }
  .post-thumb{
    min-height:180px;
  }
  .topic-row{
    grid-template-columns:1fr;
    gap:10px;
  }
}

@media (max-width: 560px){
  .navbar{
    padding:14px 14px;
  }
  .logo{
    font-size:20px;
  }
  .icon-btn{
    padding:8px;
  }
  .container{
    padding:14px;
  }
  .hero-banner,
  .page-hero{
    min-height:210px;
    padding:28px 20px;
    border-radius:20px;
  }
  .hero-title,
  .page-hero h1{
    font-size:34px;
    line-height:1.12;
  }
  .hero-subtitle,
  .page-hero p{
    font-size:16px;
  }
  .card{
    border-radius:18px;
    padding:18px;
  }
  .section{
    margin-top:24px;
  }
  .section-head h2{
    font-size:22px;
  }
  .area-card,
  .hot-card,
  .featured-card,
  .small-friend{
    padding:18px;
  }
  .markdown-body{
    font-size:16px;
    line-height:1.78;
  }
  .markdown-body pre{
    overflow-x:auto;
  }
  .markdown-body table{
    display:block;
    overflow-x:auto;
    white-space:nowrap;
  }
  .nav-card{
    padding:16px;
  }
  .pagination{
    flex-wrap:wrap;
  }
}


/* v7.1 作者身份与公告区分 */
.notice-badge{
  display:inline-flex;
  width:max-content;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:5px 10px;
  background:rgba(14,165,233,.10);
  border:1px solid rgba(14,165,233,.22);
  color:var(--accent-2);
  font-size:13px;
  font-weight:800;
  letter-spacing:.03em;
}
.notice-badge:before{content:"✦"}
.notice-badge.large{
  margin-bottom:12px;
  font-size:14px;
}
.notice-card{
  border-color:rgba(14,165,233,.28);
}
.post-card-head{
  display:grid;
  gap:8px;
}
.notice-list{
  display:grid;
  gap:14px;
}
.notice-item{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:14px;
  align-items:start;
}
.notice-item h3{
  margin:0 0 6px;
}
.notice-item p{
  margin:0 0 8px;
  color:var(--muted);
}
body.dark .notice-badge{
  background:#203753;
  border-color:#4b6f93;
  color:#eaf6ff;
}
body.dark .notice-card,
body.dark .notice-item{
  border-color:rgba(125,211,252,.42)!important;
}
