/* ===== 基础重置 ===== */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  background:#ffffff;
  color:#1f2937;
  font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
ul{list-style:none}
img{max-width:100%;display:block}
::selection{background:#2563eb;color:#ffffff}

/* ===== 导航 ===== */
.nav{
  position:sticky;top:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 6%;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid #e5e9f0;
}
.nav .brand{font-size:1.15rem;font-weight:700;letter-spacing:1px}
.nav .brand em{color:#b45309;font-style:normal}
.nav ul{display:flex;gap:28px}
.nav ul li a{
  color:#6b7280;font-size:.95rem;letter-spacing:1px;
  padding:6px 2px;position:relative;transition:color .25s;
}
.nav ul li a::after{
  content:"";position:absolute;left:0;bottom:0;width:0;height:2px;
  background:#2563eb;transition:width .25s;
}
.nav ul li a:hover{color:#1f2937}
.nav ul li a:hover::after{width:100%}
.nav ul li a.on{color:#2563eb;font-weight:600}
.nav ul li a.on::after{width:100%}

#nav-toggle{display:none}
.burger{display:none;flex-direction:column;justify-content:center;gap:5px;
  width:30px;height:24px;cursor:pointer;z-index:110}
.burger span{display:block;height:2px;width:100%;background:#1f2937;
  border-radius:2px;transition:.3s}

/* ===== Hero ===== */
.hero{
  min-height:auto;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:60px 6%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%,rgba(37,99,235,.07),transparent 70%),
    radial-gradient(ellipse 40% 35% at 80% 80%,rgba(180,83,9,.06),transparent 70%),
    #ffffff;
}
.hero .sub{color:#6b7280;letter-spacing:3px;font-size:.9rem;margin-bottom:18px}
.hero h1{
  font-size:clamp(2.2rem,6vw,3.8rem);
  font-weight:800;letter-spacing:2px;line-height:1.3;
  background:linear-gradient(120deg,#1f2937 20%,#2563eb 55%,#b45309 90%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}
.hero p{max-width:620px;color:#6b7280;margin:22px auto 34px}
.hero .actions{display:flex;gap:16px;flex-wrap:wrap;justify-content:center}

/* ===== 通用区块 ===== */
.section{max-width:1100px;margin:0 auto;padding:70px 6%}
.section h2{
  text-align:center;font-size:1.7rem;letter-spacing:4px;
  margin-bottom:14px;font-weight:700;
}
.section h2 span{color:#2563eb}
.section .lead{text-align:center;color:#6b7280;margin-bottom:44px}

/* ===== 网格 ===== */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px}

/* ===== 卡片 ===== */
.card{
  background:#ffffff;border:1px solid #e5e9f0;border-radius:10px;
  padding:26px;transition:transform .3s,border-color .3s,box-shadow .3s;
  box-shadow:0 2px 8px rgba(31,41,55,.06);
}
.card:hover{
  transform:translateY(-6px);
  border-color:#2563eb;
  box-shadow:0 12px 28px rgba(31,41,55,.12);
}
.card h3{font-size:1.1rem;margin-bottom:10px}
.card p{color:#6b7280;font-size:.95rem}
.card .meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}

/* ===== 标签 ===== */
.tag{
  display:inline-block;padding:3px 12px;font-size:.78rem;
  color:#2563eb;background:rgba(37,99,235,.08);
  border:1px solid rgba(37,99,235,.25);
  border-radius:999px;letter-spacing:.5px;
}
.tag.gold{color:#b45309;background:rgba(180,83,9,.08);border-color:rgba(180,83,9,.25)}

/* ===== 按钮 ===== */
.btn{
  display:inline-block;padding:12px 30px;border-radius:8px;
  background:#2563eb;color:#ffffff;font-weight:600;font-size:.95rem;
  letter-spacing:1px;border:1px solid transparent;cursor:pointer;
  transition:background .25s,color .25s,transform .25s;
}
.btn:hover{background:#b45309;color:#ffffff;transform:translateY(-2px)}
.btn.ghost{background:transparent;color:#2563eb;border-color:#2563eb}
.btn.ghost:hover{background:#b45309;border-color:#b45309;color:#ffffff}
.btn-sm{padding:7px 18px;font-size:.85rem;border-radius:6px}

/* ===== 时间线 ===== */
.timeline{position:relative;padding-left:34px;max-width:760px;margin:0 auto}
.timeline::before{
  content:"";position:absolute;left:8px;top:6px;bottom:6px;width:2px;
  background:linear-gradient(#2563eb,#e5e9f0);
}
.timeline .item{position:relative;padding:0 0 34px}
.timeline .item::before{
  content:"";position:absolute;left:-32px;top:7px;width:12px;height:12px;
  border-radius:50%;background:#ffffff;border:2px solid #2563eb;
}
.timeline .item .date{color:#b45309;font-size:.85rem;letter-spacing:1px}
.timeline .item h3{font-size:1.05rem;margin:4px 0 6px}
.timeline .item p{color:#6b7280;font-size:.93rem}

/* ===== 关于页 ===== */
.about-wrap{
  display:grid;grid-template-columns:1fr;gap:32px;align-items:start;
}
/* 关于页简介卡：标签居中横排 */
.about-wrap .card .grid{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.info-card{
  background:#ffffff;border:1px solid #e5e9f0;border-radius:10px;padding:28px;
}
.info-card .avatar{
  width:110px;height:110px;border-radius:50%;margin:0 auto 18px;
  border:2px solid #2563eb;display:flex;align-items:center;justify-content:center;
  font-size:2.4rem;font-weight:700;color:#2563eb;
  background:radial-gradient(circle at 30% 30%,rgba(37,99,235,.12),transparent);
}
.info-card h3{text-align:center;margin-bottom:4px}
.info-card .role{text-align:center;color:#b45309;font-size:.88rem;letter-spacing:2px;margin-bottom:20px}
.info-card dl{font-size:.92rem}
.info-card dt{color:#6b7280;margin-top:12px;font-size:.8rem;letter-spacing:1px}
.info-card dd{color:#1f2937}

/* ===== 辅助 ===== */
.muted{color:#6b7280}
.divider{height:1px;background:#e5e9f0;max-width:1100px;margin:0 auto}

/* ===== 页脚 ===== */
.footer{
  text-align:center;padding:40px 6%;color:#6b7280;font-size:.88rem;
  border-top:1px solid #e5e9f0;background:#ffffff;
}
.footer .links{display:flex;justify-content:center;gap:22px;margin-bottom:12px}
.footer .links a{color:#6b7280;transition:color .25s}
.footer .links a:hover{color:#2563eb}
.footer .gold{color:#b45309}

/* ===== 移动端 ===== */
@media (max-width:768px){
  .burger{display:flex}
  .nav ul{
    position:absolute;top:100%;left:0;right:0;
    flex-direction:column;gap:0;
    background:rgba(255,255,255,.98);
    backdrop-filter:blur(12px);
    border-bottom:1px solid #e5e9f0;
    max-height:0;overflow:hidden;transition:max-height .35s ease;
  }
  .nav ul li{border-top:1px solid #e5e9f0}
  .nav ul li a{display:block;padding:16px 6%;font-size:1rem}
  #nav-toggle:checked ~ ul{max-height:400px}
  #nav-toggle:checked ~ .burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  #nav-toggle:checked ~ .burger span:nth-child(2){opacity:0}
  #nav-toggle:checked ~ .burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

  .grid{grid-template-columns:1fr}
  .hero{min-height:auto;padding:80px 6%}
  .hero h1{font-size:clamp(1.9rem,8vw,2.6rem)}
  .section{padding:56px 6%}
  .about-wrap{grid-template-columns:1fr}
  .btn,.btn-sm{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .nav ul li a{min-height:44px;display:flex;align-items:center}
  .timeline{padding-left:28px}
}

/* ===== 博客列表流 ===== */
.post-list{max-width:780px;margin:0 auto}
.post-list article{padding:24px 4px;border-bottom:1px solid #e5e9f0}
.post-list article:last-child{border-bottom:none}
.post-list h3{font-size:1.18rem;margin-bottom:6px;font-weight:650}
.post-list h3 a{transition:color .25s}
.post-list h3 a:hover{color:#2563eb}
.post-list .date{color:#6b7280;font-size:.85rem;letter-spacing:.5px}
.post-list .summary{color:#4b5563;margin-top:8px;font-size:.95rem}
.post-list .why{color:#b45309;font-size:.88rem;margin-top:6px}

/* ===== 轻动效：滚动渐入（渐进增强） ===== */
@supports (animation-timeline: view()) {
  .card,.post-list article,.timeline .item{
    animation:fade-up .6s ease both;
    animation-timeline:view();
    animation-range:entry 0% entry 30%;
  }
}
@keyframes fade-up{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}

/* =====  reduced-motion 兜底 ===== */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}

/* ===== 荣誉卡片（统一居中排版） ===== */
.honor-card{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}
.honor-card .muted{font-size:.85rem;letter-spacing:1px}
.honor-card h3{font-size:1.02rem;margin:0;line-height:1.5}
.honor-card .meta{margin-top:2px}
.honor-card .honor-thumb{display:block;width:100%;max-width:240px}
.honor-card .honor-thumb img{display:block;width:100%;height:150px;object-fit:contain;background:#f7f9fc;border:1px solid #e5e9f0;border-radius:8px;transition:transform .3s,box-shadow .3s}
.honor-card .honor-thumb:hover img{transform:scale(1.04);box-shadow:0 8px 20px rgba(31,41,55,.14)}
.honor-card .zoom-hint{font-size:.78rem;color:#6b7280}

/* ===== 证书画廊（独立区） ===== */
.subhead{text-align:center;font-size:1.15rem;letter-spacing:3px;margin:44px 0 20px;color:#1f2937}
.cert-gallery{max-width:1000px;margin:0 auto}
.cert-item{margin:0;text-align:center}
.cert-item a{display:block;overflow:hidden;border-radius:10px;border:1px solid #e5e9f0;background:#f7f9fc;box-shadow:0 2px 8px rgba(31,41,55,.06);transition:transform .3s,box-shadow .3s}
.cert-item a:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(31,41,55,.12)}
.cert-item img{display:block;width:100%;height:210px;object-fit:contain;background:#f7f9fc}
.cert-item figcaption{margin-top:10px;font-size:.9rem;color:#1f2937}
.cert-gallery{grid-template-columns:repeat(3,1fr)}
@media (max-width:768px){.cert-gallery{grid-template-columns:1fr}}

/* ===== 全站卡片文字优先居中 ===== */
.card{text-align:center}
.card .meta{justify-content:center}
.about-wrap .card p{text-align:center}

/* ===== 证书画廊 2+1：左列两张横屏叠放，右列竖屏等高 ===== */
.cert-gallery{display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:1000px;margin:0 auto;align-items:stretch}
.cert-col-stack{display:flex;flex-direction:column;gap:24px;min-width:0}
.cert-col-stack .cert-item img{height:auto}
.cert-tall{display:flex;flex-direction:column}
.cert-tall a{flex:1;display:flex}
.cert-tall img{height:100%;width:100%}
@media (max-width:768px){.cert-gallery{grid-template-columns:1fr}}
