/*
Theme Name: Qiyanjin Tech
Theme URI: https://www.qiyanjin.com
Author: Qiyanjin
Description: 个人技术站 —— 天蓝色系，参考 Neo-Brutalism 结构，手作感布局。
Version: 4.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: qiyanjin-tech
Tags: light, blue, portfolio, blog, neobrutalism
*/

/* ===================== 阿里巴巴普惠体 3.0（免费商用） ===================== */
/* 子集化 WOFF2：按站点实际用字裁剪，4 个字重共约 260KB；未收录的字自动回退系统中文字体 */
@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("assets/fonts/puhuiti-45.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap; font-named-instance: auto;
}
@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("assets/fonts/puhuiti-55.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("assets/fonts/puhuiti-65.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("assets/fonts/puhuiti-85.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ===================== 变量 ===================== */
:root {
  /* 天蓝主色 */
  --sky-900: #0b2a3d;
  --sky-800: #12405c;
  --sky-700: #1a5f80;
  --sky-600: #2481a8;
  --sky-500: #3d9fc4;
  --sky-400: #5fb8d8;
  --sky-300: #8fd2e8;
  --sky-200: #bfe5f2;
  --sky-100: #e0f2f9;
  --sky-50:  #f0f9fd;

  /* 点缀色 */
  --accent-teal: #2ec4b6;
  --accent-sand: #fdfcf0;

  /* 中性 */
  --ink: #0b2a3d;
  --ink-soft: #3d5c70;
  --ink-mute: #6b8598;
  --line: #cfe3ee;
  --bg: #fbfdfe;
  --paper: #fdfcf0;

  --border-w: 2px;
  --shadow-hard: 4px 4px 0 var(--ink);
  --shadow-hard-sm: 3px 3px 0 var(--ink);

  --grad: linear-gradient(120deg, #2481a8 0%, #3d9fc4 55%, #5fb8d8 100%);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --wrap: 1180px;
  --font-sans: "Alibaba PuHuiTi", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-serif: "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.4,0,.2,1);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:92px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--sky-600); text-decoration:none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-teal); }
img { max-width:100%; height:auto; display:block; }
.wrap { max-width: var(--wrap); margin:0 auto; padding:0 28px; width:100%; }

/* ===================== 导航 ===================== */
.site-header {
  position: sticky; top:0; z-index:200;
  background: var(--bg);
  border-bottom: var(--border-w) solid var(--ink);
}
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; height:78px; }

.site-logo { display:flex; align-items:center; gap:10px; font-size:20px; font-weight:900; color:var(--ink); letter-spacing:-.4px; }
.site-logo-mark {
  width:38px; height:38px; border-radius:10px; background:var(--sky-400);
  border:var(--border-w) solid var(--ink); box-shadow:3px 3px 0 var(--ink);
  color:var(--ink); display:flex; align-items:center; justify-content:center;
  font-size:16px; font-weight:900;
}

.main-nav ul { display:flex; gap:6px; list-style:none; align-items:center; }
.main-nav a {
  display:block; color:var(--ink-soft); font-size:15px; font-weight:700;
  padding:8px 16px; border-radius:999px; transition: all .18s var(--ease);
  border:1.5px solid transparent;
}
.main-nav a:hover { color:var(--ink); background:var(--sky-100); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color:var(--ink); background:var(--sky-200); border-color:var(--ink);
}

/* 语言切换 */
.lang-switch {
  display:flex; border:1.5px solid var(--ink); border-radius:999px;
  overflow:hidden; background:#fff; flex-shrink:0; box-shadow:2px 2px 0 var(--ink);
}
.lang-switch a, .lang-switch span {
  font-size:13px; font-weight:800; padding:6px 13px;
  color:var(--ink-soft); transition: all .18s var(--ease);
}
.lang-switch a:hover { background:var(--sky-100); color:var(--ink); }
.lang-switch .active { background:var(--ink); color:#fff; }

.nav-toggle {
  display:none; background:#fff; border:1.5px solid var(--ink);
  border-radius:8px; padding:8px 9px; cursor:pointer; box-shadow:2px 2px 0 var(--ink);
}
.nav-toggle span { display:block; width:18px; height:2.5px; background:var(--ink); margin:3.5px 0; border-radius:2px; transition:.22s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity:0; }
.nav-toggle.open span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }

/* ===================== Hero (排版驱动) ===================== */
.hero {
  padding: clamp(96px, 14vh, 168px) 0 clamp(80px, 10vh, 120px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-eyebrow-simple {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: .5px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 9vw, 116px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -2.5px;
  color: var(--ink);
  margin-bottom: 36px;
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  color: var(--sky-600);
}

.hero-lead {
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 44px;
}

.hero-cta { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 4px;
  transition: gap .22s var(--ease), color .22s var(--ease);
}
.link-arrow span { transition: transform .22s var(--ease); }
.link-arrow:hover { color: var(--sky-600); border-bottom-color: var(--sky-600); }
.link-arrow:hover span { transform: translateX(6px); }

/* ===================== 区块 ===================== */
.section { padding: 80px 0; }
.section-alt { background: var(--paper); border-top: var(--border-w) solid var(--ink); border-bottom: var(--border-w) solid var(--ink); }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; margin-bottom: 40px; flex-wrap: wrap;
}
.section-head-center { justify-content: center; text-align: center; }
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 46px); font-weight: 400;
  letter-spacing: -1.4px; color: var(--ink); line-height: 1.12;
}
.section-sub { color: var(--ink-mute); font-size: 15px; margin-top: 10px; font-weight: 500; }
.section-more { margin-top: 36px; }

/* ===================== 卡片（新粗野风） ===================== */
.grid { display:grid; gap:24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: #fff;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  padding: 26px;
  transition: all .18s var(--ease);
  display: flex; flex-direction: column;
  position: relative;
}
.card:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.card.card-accent { background: var(--accent-sand); }

.card-num {
  position: absolute; top: 0; left: 0;
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-bottom-right-radius: 10px;
  letter-spacing: .5px;
}
/* 图标与标题同行 */
.card-icon {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px;
  background: var(--sky-100); border: 1.5px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 19px;
  flex-shrink: 0; vertical-align: middle;
}
.card h3 {
  font-size: 19px; font-weight: 900; margin-bottom: 10px;
  letter-spacing: -.4px; line-height: 1.4;
}
/* 图标 + 标题同排（同一行，图标在标题文字前面） */
.card-icon {
  display: inline-flex; vertical-align: middle;
  margin: 0 10px 0 0; float: none;
}
.card-icon + h3 {
  display: inline; vertical-align: middle;
  margin-bottom: 0; line-height: 1.35;
}
/* 图标+标题整行 */
.card-icon + h3::after {
  content: ""; display: table; clear: both;
}
.card h3 + p { margin-top: 14px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--sky-600); }
.card p { color: var(--ink-soft); font-size: 14.5px; flex: 1; line-height: 1.72; }

/* 项目卡片域名行 */
.card-domain {
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  color: var(--sky-600); margin-bottom: 8px; letter-spacing: -.2px;
  word-break: break-all;
}

.skill-tags { display:flex; flex-wrap:wrap; gap:7px; margin-top:18px; }
.tag {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
  background: var(--sky-100); color: var(--sky-700);
  border: 1px solid var(--sky-300);
}

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800;
  padding: 4px 11px; border-radius: 6px; margin-bottom: 12px; width: fit-content;
  border: 1.5px solid var(--ink);
}
.status-done { background: #d4f5e9; color: #0a6b4d; }
.status-doing { background: #fdf0c4; color: #8a5a00; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-doing .status-dot { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }

/* 卡片底部链接 */
.card-foot {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-mute); font-weight: 600;
}
.card-foot a { font-weight: 800; color: var(--sky-600); display: inline-flex; align-items: center; gap: 5px; }
.card-foot a:hover { gap: 9px; }

/* ===================== 项目：Bento 网格 ===================== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.bento-item {
  position: relative;
  background: var(--bg);
  padding: 32px 28px 30px;
  display: flex; flex-direction: column;
  text-decoration: none;
  transition: background .25s var(--ease);
  min-height: 220px;
}
.bento-item:hover { background: var(--sky-50); }
.bento-item.bento-wide { grid-column: span 2; }

.bento-num {
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 500;
  color: var(--ink-mute); letter-spacing: 1px;
  margin-bottom: 20px;
}
.bento-item h3 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400; line-height: 1.3;
  color: var(--ink); letter-spacing: -.4px;
  margin-bottom: 14px;
}
.bento-item p {
  font-size: 14.5px; line-height: 1.75;
  color: var(--ink-soft); flex: 1;
  margin-bottom: 20px;
}
.bento-tech {
  font-family: var(--mono);
  font-size: 11.5px; color: var(--ink-mute);
  letter-spacing: .3px; line-height: 1.6;
}
.bento-arrow {
  position: absolute; top: 28px; right: 28px;
  font-size: 18px; color: var(--ink-mute);
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.bento-item:hover .bento-arrow { transform: translateX(5px); color: var(--sky-600); }

/* ===================== 已完成：文字列表 ===================== */
.done-list { border-top: 1px solid var(--line); }
.done-row {
  display: grid;
  grid-template-columns: 48px 1fr auto 24px;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left .25s var(--ease), background .25s var(--ease);
}
.done-row:hover { padding-left: 16px; background: var(--sky-50); }

.done-num {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-mute); letter-spacing: .5px;
}
.done-title {
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 500; color: var(--ink);
  letter-spacing: -.2px;
}
.done-tech {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--ink-mute); text-align: right;
  letter-spacing: .2px;
}
.done-arrow {
  font-size: 16px; color: var(--ink-mute); text-align: right;
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.done-row:hover .done-arrow { transform: translateX(4px); color: var(--sky-600); }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item.bento-wide { grid-column: span 2; }
}

/* ===================== 文章：文字列表 ===================== */
.article-list { border-top: 1px solid var(--line); }

.article-row {
  display: grid;
  grid-template-columns: 96px 1fr auto 22px;
  align-items: start;
  gap: 24px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left .25s var(--ease), background .25s var(--ease);
}
.article-row:hover { padding-left: 14px; background: var(--sky-50); }

.article-date {
  font-family: var(--mono);
  font-size: 11.5px; color: var(--ink-mute);
  letter-spacing: .3px; padding-top: 4px;
}
.article-main { display: flex; flex-direction: column; gap: 7px; }
.article-title {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 400; color: var(--ink);
  line-height: 1.4; letter-spacing: -.2px;
}
.article-excerpt {
  font-size: 14px; color: var(--ink-soft);
  line-height: 1.7;
}
.article-cat {
  font-family: var(--mono);
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: .4px; padding-top: 5px;
  white-space: nowrap;
}
.article-arrow {
  font-size: 16px; color: var(--ink-mute);
  padding-top: 2px;
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.article-row:hover .article-arrow { transform: translateX(4px); color: var(--sky-600); }

/* 归档页仍用原 post-list */
/* ===================== 内页 ===================== */
.page-wrap { padding: 64px 0 88px; }
.page-header { margin-bottom: 44px; padding-bottom: 28px; border-bottom: var(--border-w) solid var(--ink); }
.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 52px); font-weight: 400;
  line-height: 1.18; letter-spacing: -1.8px; color: var(--ink);
}
.page-header .meta {
  color: var(--ink-mute); font-size: 14px; margin-top: 16px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-weight: 600;
}

.entry-content { color: var(--ink-soft); font-size: 16.5px; line-height: 1.85; }
.entry-content > * + * { margin-top: 18px; }
.entry-content h2 {
  font-size: 27px; font-weight: 900; margin: 48px 0 18px; color: var(--ink);
  letter-spacing: -.8px; padding-left: 16px; border-left: 5px solid var(--sky-400);
}
.entry-content h3 { font-size: 20px; font-weight: 900; margin: 34px 0 14px; color: var(--sky-800); }
.entry-content h4 { font-size: 17.5px; font-weight: 800; margin: 26px 0 12px; color: var(--ink); }
.entry-content p { margin-bottom: 18px; }
.entry-content ul, .entry-content ol { margin: 0 0 18px 26px; }
.entry-content li { margin-bottom: 9px; }
.entry-content li::marker { color: var(--sky-500); font-weight: 900; }
.entry-content a { border-bottom: 2px solid var(--sky-300); font-weight: 600; }
.entry-content a:hover { border-bottom-color: var(--accent-teal); }
.entry-content blockquote {
  border: var(--border-w) solid var(--ink); border-left-width: 5px;
  background: var(--paper); padding: 20px 26px; margin: 26px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-soft);
  box-shadow: var(--shadow-hard-sm);
}
.entry-content code {
  font-family: var(--mono); font-size: 13.5px;
  background: var(--sky-100); color: var(--sky-700);
  padding: 2px 7px; border-radius: 5px; border: 1px solid var(--sky-300);
}
.entry-content pre {
  background: var(--ink); border-radius: var(--radius-sm);
  padding: 22px 24px; overflow-x: auto; margin: 26px 0;
  line-height: 1.68; box-shadow: var(--shadow-hard-sm); border: var(--border-w) solid var(--ink);
}
.entry-content pre code { background: none; padding: 0; color: #cfe9f5; font-size: 13.5px; border: none; }
.entry-content img {
  border-radius: var(--radius-sm); margin: 26px 0;
  border: var(--border-w) solid var(--ink); box-shadow: var(--shadow-hard-sm);
}
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 14.5px;
  background: #fff; border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-hard-sm);
}
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; }
.entry-content th { background: var(--sky-100); font-weight: 900; color: var(--ink); }
.entry-content tr:nth-child(even) td { background: var(--sky-50); }
.entry-content hr { border: none; border-top: 1px dashed var(--line); margin: 40px 0; }

/* ===================== 页脚 ===================== */
.site-footer {
  background: var(--ink); color: #cfe3ee; padding: 56px 0 28px;
  border-top: var(--border-w) solid var(--ink);
}
.footer-grid {
  display: grid; gap: 44px;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col-brand .footer-brand {
  font-size: 18px; font-weight: 900; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.footer-col-brand .footer-brand .site-logo-mark {
  width: 32px; height: 32px; font-size: 14px; border-radius: 8px;
  background: var(--sky-400); border-color: var(--ink);
}
.footer-desc { color: #9bbdd2; font-size: 13.5px; margin-top: 14px; max-width: 330px; line-height: 1.75; }

.footer-social { display: flex; gap: 9px; margin-top: 22px; flex-wrap: wrap; }
.social-btn {
  width: 38px; height: 38px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: #a8c8dc; transition: all .18s var(--ease);
}
.social-btn:hover { background: var(--sky-400); border-color: var(--sky-400); color: var(--ink); }

.footer-title {
  font-size: 12.5px; font-weight: 900; letter-spacing: .6px;
  color: #fff; margin-bottom: 16px;
}
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: #9bbdd2; font-size: 14px; font-weight: 500; display: inline-block; transition: all .18s var(--ease); }
.footer-nav a:hover { color: var(--sky-300); transform: translateX(3px); }
.footer-static { color: #7a9bb0; font-size: 13.5px; }

.footer-bottom {
  padding-top: 24px; color: #7a9bb0; font-size: 12.5px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ===================== 微信二维码弹层 ===================== */
.wechat-btn { cursor: pointer; font-family: inherit; }

.wechat-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.wechat-modal[hidden] { display: none; }
.wechat-modal-mask {
  position: absolute; inset: 0;
  background: rgba(11, 42, 61, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: wxFade .22s var(--ease);
}
.wechat-modal-box {
  position: relative; z-index: 2;
  background: #fff;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: 30px 30px 24px;
  max-width: 340px; width: 100%;
  text-align: center;
  animation: wxPop .26s cubic-bezier(.2, 1.3, .5, 1);
}
@keyframes wxFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes wxPop {
  from { opacity: 0; transform: translateY(14px) scale(.94) }
  to   { opacity: 1; transform: none }
}
.wechat-modal-close {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 8px;
  border: 1.5px solid var(--ink); background: #fff;
  color: var(--ink); font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .16s var(--ease);
}
.wechat-modal-close:hover { background: var(--ink); color: #fff; }
.wechat-modal-title {
  font-size: 17px; font-weight: 900; color: var(--ink);
  margin-bottom: 18px; letter-spacing: -.3px;
}
.wechat-modal-qr {
  border: 2px solid var(--ink); border-radius: var(--radius-sm);
  overflow: hidden; background: #fff; padding: 8px;
}
.wechat-modal-qr img { width: 100%; height: auto; display: block; border-radius: 4px; }
.wechat-modal-hint {
  margin-top: 14px; font-size: 12.5px; color: var(--ink-mute); font-weight: 600;
}

/* ===================== 分页 ===================== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 15px; border-radius: 8px;
  background: #fff; border: 1.5px solid var(--ink);
  color: var(--ink); font-size: 14px; font-weight: 800;
  transition: all .16s var(--ease); box-shadow: 2px 2px 0 var(--ink);
}
.pagination .page-numbers:hover { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); color: #fff; }

.screen-reader-text { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); }

/* ===================== 响应式 1024 ===================== */
@media (max-width:1024px) {
  .wrap { padding: 0 24px; }
  .section { padding: 60px 0; }
}

/* ===================== 响应式 768 ===================== */
@media (max-width:768px) {
  .wrap { padding: 0 18px; }
  .header-inner { height: 66px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 66px; left: 0; right: 0; background: #fff;
    border-bottom: var(--border-w) solid var(--ink);
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
  }
  .main-nav.open { max-height: 500px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0; align-items: stretch; }
  .main-nav li { width: 100%; }
  .main-nav a { padding: 14px 20px; border-radius: 0; border: none; font-size: 16px; }
  .main-nav .current-menu-item > a,
  .main-nav .current_page_item > a { border: none; background: var(--sky-100); }
  .site-logo-text { font-size: 17px; }
  .site-logo-mark { width: 33px; height: 33px; font-size: 14px; }
  .lang-switch a, .lang-switch span { padding: 5px 10px; font-size: 12px; }

  .hero { padding: 56px 0 64px; }


  .section { padding: 46px 0; }
  .section-head { margin-bottom: 26px; gap: 12px; }
  .section-head h2 { font-size: 26px; letter-spacing: -.8px; }
  .section-sub { font-size: 14px; margin-top: 7px; }
  .grid { gap: 16px; grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-item.bento-wide { grid-column: span 1; }
  .bento-item { padding: 24px 20px; min-height: auto; }
  .bento-arrow { top: 22px; right: 20px; }
  .article-row {
    grid-template-columns: 1fr 18px;
    gap: 8px 12px; padding: 18px 0;
  }
  .article-date { grid-column: 1 / -1; padding-top: 0; }
  .article-cat { display: none; }
  .article-excerpt { font-size: 13.5px; }

  .done-row {
    grid-template-columns: 32px 1fr 18px;
    gap: 12px; padding: 16px 0;
  }
  .done-tech { display: none; }
  .done-title { font-size: 15.5px; }
  .card { padding: 20px; }
  .card-icon { width: 40px; height: 40px; font-size: 18px; margin-bottom: 13px; }
  .card h3 { font-size: 17.5px; }

  .post-item { padding: 18px 20px; flex-direction: column; gap: 0; }
  .post-date { width: auto; margin-bottom: 7px; }
  .post-main h3 { font-size: 16.5px; }

  .page-wrap { padding: 40px 0 60px; }
  .page-header { margin-bottom: 30px; padding-bottom: 20px; }
  .entry-content { font-size: 15.5px; }
  .entry-content h2 { font-size: 22px; margin: 34px 0 15px; }
  .entry-content h3 { font-size: 18.5px; }
  .entry-content pre { padding: 15px 17px; }
  .entry-content table { font-size: 13.5px; }
  .entry-content th, .entry-content td { padding: 9px 11px; }

  .wechat-modal-box { padding: 26px 22px 20px; max-width: 300px; }
  .wechat-modal-title { font-size: 16px; }

  .site-footer { padding: 42px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; padding-bottom: 30px; }
  .footer-col-brand { grid-column: 1 / -1; }
  .footer-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 7px; padding-top: 20px; }
}

/* ===================== 响应式 480 ===================== */
@media (max-width:480px) {
  body { font-size: 15px; }
  .section-head h2 { font-size: 23px; }
  .card h3 { font-size: 16.5px; }
  .btn { padding: 11px 14px; font-size: 14.5px; }
}
