:root {
  /* 主色体系：科技蓝+花园绿 */
  --bg: #f6f6f6;
  --paper: #fffdf8; /* 暖调纸张白 */
  --text: #0f172a; /* 深灰文字 */
  --primary: #005f73; /* 深科技蓝（替换原#2563eb）*/
  --accent: #3e5f58; /* 花园绿（新加坡花园城市元素）*/

  /* 辅助色系 */
  --muted: #4f5277; /* 深空紫（科技感）*/
  --muted2: #6b7280; /* 中性灰 */
  --border: #005f733d; /* 增强边界清晰度 */
  --divider: rgba(15, 23, 42, 0.08);

  /* 点缀色系（活力橙+珊瑚粉）*/
  --highlight1: #ffa500; /* 活力橙（高对比点缀）*/
  --highlight2: #ffb3ab; /* 珊瑚粉（柔和过渡）*/

  /* 动态色彩系统 */
  --focus: rgba(37, 99, 235, 0.22);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.12);

  /* 基础参数 */
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --container: 1120px;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 动态适配示例：热带模式 */
@media (prefers-color-scheme: tropical) {
  :root {
    --bg: #f5f7fa; /* 浅蓝背景 */
    --accent: #2d6a4f; /* 热带绿调整 */
    --highlight1: #ff6b6b; /* 更鲜活的珊瑚色 */
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: 0.2px;
}
a {
  color: var(--text);
  text-decoration: none;
}
a:hover {
  text-underline-offset: 4px;
  color: var(--primary);
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 20px 40px;
}

/* Header (no search) */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid #005f7357;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
}
h1.brand{
  font-size:0;
  margin:0;
  padding:0;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand img{
  height:42px;
}
.brand strong {
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.brand span {
  font-size: 12px;
  color: var(--muted);
}

nav.links .nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
nav.links .nav-links a {
  font-size: 15px;
  color: var(--muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.links .nav-links a:hover {
  color: var(--text);
  text-decoration: none;
  border-bottom-color:var(--primary);
}
nav.links .nav-links a[aria-current="page"] {
  color: var(--text);
  border-bottom-color:var(--primary);
}

/* Sections */
.section {
  margin-top: 34px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Cards */
.card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.soft {
  background: linear-gradient(180deg, var(--paper), #fff);
}

/* HERO (now NOT first; small intro ribbon at top instead) */
.ribbon {
  margin-top: 18px;
  border: 1px solid rgba(0, 95, 115, 0.1);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--paper), rgba(255, 253, 248, 0.95));
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ribbon p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 80ch;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 14px;
  background: rgba(255, 165, 0, 0.08); /* 活力橙微渐变 */
  box-shadow: 0 2px 4px rgba(255, 165, 0, 0.1);
  color: var(--muted);
  white-space: nowrap;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
}

/* ===== Featured Carousel ===== */
.carousel {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.carousel-track {
  display: flex;
  transition: transform 420ms ease;
  will-change: transform;
  width: 100%; /* 关键：确保容器宽度正确 */
}
.slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  align-items: stretch;
}
.img {
  position: relative;
  min-height: 340px;
  background: #e5e7eb;
}
article.slide .img{
  height:340px;
}
/* Photo placeholder looks like a real photo block (low color, no gradients) */
.img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(0, 0, 0, 0.06)
  );
  pointer-events: none;
}
.img .label {
  position: absolute;
  left: 14px;
  top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(15, 23, 42, 0.8);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.slide .img {
  overflow: hidden;
}
.slide .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: -webkit-transform 0.25s;
  transition: transform 0.25s;
  transition: transform 0.25s, -webkit-transform 0.25s;
}
.slide-copy {
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
}
.kicker {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
.rel-card p.desc,
.rel-card b.tit,
.sb .div_item b,
.rowitem .txt small,
.rowitem .txt b.tit a,
.post h3 a,
.title a {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted2);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.cta {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
}
.btn:hover {
  border-color: rgba(15, 23, 42, 0.16);
}
/* 无障碍优化：色盲友好模式 */
@media (prefers-reduced-motion) {
  .btn.primary {
    background: rgba(0, 95, 115, 0.1); /* 降低蓝调饱和度 */
  }
}

/* 组件级颜色应用 */
.btn.primary {
  border-color: rgba(0, 95, 115, 0.3);
  background: rgba(0, 95, 115, 0.08);
}
.btn.primary:hover {
  background: rgba(0, 95, 115, 0.15);
}

.carousel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--divider);
  background: #fff;
}
.dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dotbtn {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.dotbtn[aria-current="true"] {
  background: var(--primary);
  border-color: rgba(15, 23, 42, 0.55);
}
.car-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.iconbtn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}
.iconbtn:hover {
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.26);
}

/* ===== Latest (6+ flexible magazine grid) ===== */
h1.list_h1{
  font-size:20px;
  font-weight:bold;
  margin-top:0;
}
.latest-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.post {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.post .thumb {
  height: 132px;
  background: #e5e7eb;
  border-bottom: 1px solid var(--divider);
  overflow: hidden;
}
.post .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: -webkit-transform 0.25s;
  transition: transform 0.25s;
  transition: transform 0.25s, -webkit-transform 0.25s;
}
.post .body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.1px;
}
.post p {
  margin: 0;
  color: var(--muted);
  font-size: 13.8px;
}
.post .meta {
  font-size: 12px;
}

/* Layout variants */
.span-6 {
  grid-column: span 6;
}
.span-4 {
  grid-column: span 4;
}
.span-3 {
  grid-column: span 3;
}
.span-8 {
  grid-column: span 8;
}

/* Big feature card inside Latest */
.post.big .thumb {
  height: 180px;
}
.post.big h3 {
  font-size: 17px;
}

/* ===== Life Scenarios (kept minimal) ===== */
.scenarios {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.scenario {
  border: 1px solid rgba(62, 95, 88, 0.15);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  color: var(--muted);
  font-size: 14px;
}
.scenario:nth-of-type(1) {
  background-color: #b6e194;
}
.scenario:nth-of-type(2) {
  background-color: #c0f196;
}
.scenario:nth-of-type(3) {
  background-color: #91aba4;
}
.scenario:nth-of-type(4) {
  background-color: #af96b6;
}
.scenario b {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 14px;
}

/* ===== Columns: Mobile & Wearables (added after scenarios) ===== */
.columns {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  gap: 14px;
}
.colbox {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.colhead {
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.colhead h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.colhead a {
  font-size: 13px;
}
.colbody {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.columns .colbody{
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 980px) {
  .columns .colbody {
    grid-template-columns: 1fr;
  }
}
.rowitem {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items: stretch;
  border: 1px solid var(--divider);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.rowitem .miniimg {
  background: #e5e7eb;
  overflow: hidden;
}
.rowitem .miniimg {
  height: 126px;
}
.rowitem .miniimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: -webkit-transform 0.25s;
  transition: transform 0.25s;
  transition: transform 0.25s, -webkit-transform 0.25s;
}
.slide .img img:hover,
.post .thumb img:hover,
.rowitem .miniimg img:hover {
  -webkit-transform: scale(1.06);
  transform: scale(1.06);
}
.rowitem .txt {
  padding: 10px 10px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rowitem .txt b.tit {
  font-size: 14px;
  line-height: 1.25;
}
.rowitem .txt small {
  color: var(--muted);
  font-size: 13px;
}
.rowitem .txt .meta {
  font-size: 12px;
}

/* ===== About: designed, personal, but not loud ===== */
.about {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--paper), #fff);
  box-shadow: var(--shadow-md);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
  align-items: start;
}
.about-left {
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  background: #dbdcff63;
  box-shadow: var(--shadow-sm);
  padding: 16px;
  position: relative;
  overflow: hidden;
}
/* Signature-like design (typography, not colors) */
.about-left::before {
  content: "";
  position: absolute;
  inset: -60px -80px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 64px;
  background: rgba(15, 23, 42, 0.03);
  transform: rotate(12deg);
}
.about-left .sig {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 10px;
}
.about-left h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.3px;
  line-height: 1.25;
  position: relative;
}
.about-left p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  position: relative;
}
.about-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quote {
  border: 1px solid rgb(15 23 42 / 33%);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 14px 14px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}
.quote .markq {
  font-family: var(--mono);
  color: var(--muted2);
  font-size: 12px;
  margin-bottom: 8px;
}
.traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trait {
  border: 1px solid rgb(15 23 42 / 33%);
  border-radius: 999px;
  padding: 8px 10px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--divider);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.back-to-top {
  position: fixed;
  bottom: -60px; /* 初始位置在可视区域外 */
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: bottom 0.3s ease-out, transform 0.2s ease,
    background-color 0.2s ease;
  z-index: 100;
  opacity: 0; /* 初始不可见 */
  visibility: hidden;
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

.back-to-top.visible {
  bottom: 24px; /* 滚动时显示的位置 */
  opacity: 1;
  visibility: visible;
}
.crumb {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.crumb a {
  color: var(--muted);
}
.crumb a:hover {
  color: var(--text);
  text-decoration: none;
}
.hero {
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  /* border-radius: var(--r-lg); */
  overflow: hidden;
  /* background: #fff;
  box-shadow: var(--shadow-md); */
}
.hero-top {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(180deg, var(--paper), #fff);
}
.hero h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.6px;
  line-height: 1.15;
  max-width: 34ch;
}
.hero_desc{
  padding: 10px 18px 16px;
  border-top: 1px solid #eee;
}
.hero-img {
  /* reduced height to keep title in first fold */
  height: 280px;
  background: #e5e7eb;
  position: relative;
  border-top: 1px solid var(--divider);
}
.hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(0, 0, 0, 0.1)
  );
  pointer-events: none;
}
.meta-row{
    margin-top:20px;
}
.grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.panel {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.panel.soft {
  background: linear-gradient(180deg, var(--paper), #fff);
}
/* 基础元数据样式 */
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-right: 12px;
}

/* 图标颜色映射 */
.meta-item[data-type="publish"] i,
.meta-item[data-type="update"] i {
  color: var(--primary); /* 科技蓝 */
}

.meta-item[data-type="author"] i,
.meta-item[data-type="category"] i {
  color: var(--accent); /* 花园绿 */
}

.meta-item[data-type="comments"] i {
  color: #64748B; /* 中性灰 */
}

/* 图标大小适配 */
.meta-item i {
  font-size: 14px;
  width: 16px;
  text-align: center;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .meta-item {
    font-size: 13px;
    gap: 6px;
  }
  
  .meta-item i {
    font-size: 13px;
  }
}

/* 悬停效果 */
.meta-item:hover i {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}
/* Article body */
.article {
  padding: 20px 20px 22px;
  margin-bottom:30px;
}
.article .content {
  max-width: var(--content-max);
}

.article p {
  margin: 12px 0;
  color: rgba(15, 23, 42, 0.92);
  line-height:1.9;
}
.article h2,
.article h3,
.article h4 {
  scroll-margin-top: 110px;
}
.article h2 {
  margin: 30px 0 10px;
  font-size: 20px;
  letter-spacing: -0.2px;
}
.article h3 {
  margin: 20px 0 10px;
  font-size: 16px;
  letter-spacing: -0.1px;
  color: rgba(15, 23, 42, 0.92);
}
.article h4 {
  margin: 16px 0 8px;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.9);
}

/* Inline TOC (clearer interaction + spacing) */
.toc-inline {
  margin: 16px 0 22px;
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.toc-inline .toc-head {
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.toc-inline .toc-head b {
  font-size: 15px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.toc-inline .toc-head span {
  font-size: 12px;
  color: var(--muted2);
  font-family: var(--mono);
}
.toc-inline .toc-body {
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.toc-inline a {
  display: inline-block;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}
.toc-inline a:hover {
  color: var(--text);
  text-decoration: none;
  background: rgba(15, 23, 42, 0.03);
  transform: translateY(-1px);
}
.toc-inline a:active {
  transform: translateY(0px);
}
.toc-inline a:focus-visible {
  outline: 0;
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 0 0 4px var(--focus);
}
.toc-inline a.active {
  color: var(--text);
}
.toc-inline .lvl-3 {
  font-size: 14px;
}
.toc-inline .lvl-4 {
  font-size: 14px;
}
.toc-body .toc-body-ol{
  list-style:decimal;
}
.toc-body .toc-body-ol li::marker{
  color: var(--primary);
  font-size: 14px;
  line-height: 1.3;
  font-weight:500;
}
.toc-body .toc-body-ol li ul{
  list-style:inside;
  padding-left:15px;
}
.toc-body .toc-body-ol li ul li a{
  padding-left:0;
}
/* 详情页table */
.content table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 2px 4px rgba(0,0,0,0.35);
  font-size:14px;
  margin:30px 0;
}
.content table caption{
  margin:10px 0;
  font-weight:bold;
}
.content table th {
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
  padding: 10px 15px;
  text-align: left;
  border-bottom: 2px solid #e9ecef;
}
.content table td {
  padding: 10px 15px;
  border-bottom: 1px solid #e9ecef;
}
.content table tr:nth-child(odd) {
  background-color: #ffffff;
}
.content table tr:nth-child(even) {
  background-color: #f8fafc;
}
.content table tr:hover {
  background-color: #e9ecef;
  transition: background 0.3s;
}
.callout {
  margin: 18px 0;
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  background: var(--paper);
  padding: 14px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.callout b {
  color: var(--text);
}

.quote {
  margin: 18px 0;
  border-left: 3px solid rgba(15, 23, 42, 0.18);
  padding: 10px 0 10px 12px;
  color: rgba(15, 23, 42, 0.78);
}
.figure {
  margin: 18px 0;
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.figure .ph {
  height: 220px;
  background: #e5e7eb;
}
.figure figcaption {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--divider);
}

.takeaways {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.takeaways h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.takeaways ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.takeaways li {
  margin: 7px 0;
}

/* Sidebar interaction: stronger hover/focus and spacing */
.sidebar {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sb {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.sb .head {
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--divider);
  font-size: 13px;
  font-weight:bold;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.sb .body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sb .div_item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 11px;
  border-radius: 16px;
  border: 1px solid var(--divider);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 120ms ease, background 120ms ease,
    border-color 120ms ease;
}
.sb .div_item:hover {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
  text-decoration: none;
}
.sb .div_item:active {
  transform: translateY(0px) scale(0.995);
}
.sb .div_item:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--focus), var(--shadow-sm);
}
.sb .div_item b {
  font-size: 15px;
  line-height: 1.25;
}
.sb .div_item:focus b,
.sb .div_item:hover b{
    color:var(--primary);
}
.sb .div_item small {
  font-size: 13px;
  color: var(--muted);
}
.sb .div_item .meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted2);
}

.subscribe {
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--paper), #fff);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.subscribe p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  margin-top: 10px;
  width: 100%;
  transition: transform 120ms ease, background 120ms ease,
    border-color 120ms ease;
}
.btn:hover {
  border-color: rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0px) scale(0.99);
}
.btn.primary {
  border-color: rgba(37, 99, 235, 0.26);
  background: rgba(37, 99, 235, 0.08);
}
.btn.primary:hover {
  background: rgba(37, 99, 235, 0.12);
}
.sides_img{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sides_img .rowitem{
    grid-template-columns: 80px 1fr;
}
.sides_img .rowitem:hover{
    border-color: rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}
.sides_img .rowitem .miniimg{
    height:80px;
}
/* Below content spacing */
.below {
  /* margin-top: 34px; */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.author {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--paper), #fff);
  box-shadow: var(--shadow-md);
  padding: 18px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #e5e7eb;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.avatar img{
    width:100%;
    height:100%;
    object-fit: cover;
}
.author h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.2px;
  line-height: 1.2;
}
.author p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.traits {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  background: #fff;
  color: var(--muted);
  white-space: nowrap;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
}

.prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.pn {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 124px;
  transition: transform 120ms ease, border-color 120ms ease,
    background 120ms ease;
}
.pn:hover {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
  text-decoration: none;
}
.pn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--focus), var(--shadow-sm);
}
.pn small {
  color: var(--muted2);
  font-family: var(--mono);
  font-size: 13px;
}
.pn b {
  font-size: 15px;
  line-height: 1.25;
}
.pn .meta {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
}

.related {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom:30px;
}
.related .head {
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.related .head h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.related .relate_body {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rel-card {
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 224px;
  transition: transform 120ms ease, border-color 120ms ease,
    background 120ms ease;
}
.rel-card:hover {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
  text-decoration: none;
}
.rel-card:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--focus), var(--shadow-sm);
}
.rel-card .thumb {
  height: 130px;
  background: #e5e7eb;
  border-bottom: 1px solid var(--divider);
  overflow:hidden;
}
.rel-card .thumb img{
    width:100%;
    height:100%;
    object-fit: cover;
}
.rel-card .body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rel-card b {
  font-size: 15px;
  line-height: 1.25;
}
.rel-card .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted2);
}
.rel-card p.desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp:3;
}
.about_cont{
    margin-top:20px;
    padding-top:10px;
    border-top:1px solid var(--primary);
}
.about_cont h2{
    font-size:20px;
}
.about_cont h3{
    font-size:18px;
}
.about_cont h4{
    font-size:16px;
}
.about_cont h5{
    font-size:14px;
}
.panel.lists{
    padding:20px;
    margin-bottom:30px;
    border:none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.pagination-container {
  margin: 2rem auto;
  max-width: 800px;
}

.pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  gap: 4px;
}

.page-item {
  display: block;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
a.page-link:focus,
a.page-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 95, 115, 0.15);
}

.page-item.active .page-link {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.page-item.disabled .page-link {
  opacity: 0.4;
  cursor: not-allowed;
}

.ellipsis {
  cursor: default;
}

.ellipsis .page-link {
  background: transparent;
  border: none;
  cursor: default;
}
.footer_nav{
  margin-bottom:15px;
}
.footer_nav a{
  color:#666;
}
.footer_nav a:hover,
.footer_nav a:focus{
  color:var(--primary);
}
/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-item {
  animation: fadeIn 0.3s ease-out;
}
/* 详情页文章标签 */
.content_tags {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
  margin-top:40px;
  padding-top:20px;
  border-top:1px solid var(--border);
}
.content_tags i.fas.fa-tags{
  color: var(--accent);
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.content_tags:hover .fas.fa-tags {
  transform: scale(1.1) rotate(10deg);
  color:var(--accent);
}
.content_tags .tag {
  font-family: var(--sans);
  font-size: 12.5px;
  background: rgba(37,99,235,.10);
  color: var(--accent);
  border: 1px solid rgba(37,99,235,.20);
  padding: 5px 12px;
  border-radius: 999px;
  transition: all 120ms ease;
}
.content_tags .tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(15,23,42,.05);
}
#articleContent img{
  max-width:100%;
  height:auto;
}
/* 详情页标题样式 */
/* 基础样式重置 */
.article h2, .article h3, .article h4, .article h5 {
  margin: 1.5em 0 1em;
  padding: 0.3em 0.5em;
  /* font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif; */
  line-height: 1.4;
  border-left: 4px solid transparent;
}

/* 二级标题样式 - 醒目大气 */
.article h2 {
  font-size: 1.4rem;
  color: #2c3e50;
  font-weight: 700;
  letter-spacing: 1px;
  border-bottom: 3px solid #006eb8;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* 三级标题样式 - 商务专业 */
.article h3 {
  font-size: 1.2rem;
  color: #34495e;
  font-weight: 600;
  border-left-color: #639277;
  background-color: #f4f5f3;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 四级标题样式 - 科技现代 */
.article h4 {
  font-size: 1rem;
  color: #005f73;
  font-weight: 500;
  border-left-color: #68c6da;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
  position: relative;
}

.article h4::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(231,76,60,0.1));
}

/* 五级标题样式 - 简约精致 */
.article h5 {
  font-size: 0.9rem;
  color: #27ae60;
  font-weight: 400;
  letter-spacing: 0.5px;
  border-left-color: #27ae60;
  background-color: #f8fffe;
  text-transform: uppercase;
  border-radius: 2px;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .article h2 { font-size: 1.2rem; }
  .article h3 { font-size: 1rem; }
  .article h4 { font-size: 0.9rem; }
  .article h5 { font-size: 0.8rem; }
}

/* 悬停效果增强 */
.article h2:hover, .article h3:hover, .article h4:hover, .article h5:hover {
  transform: translateY(-2px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
@media (max-width: 980px) {
  .slide {
    grid-template-columns: 1fr;
  }
  .img {
    min-height: 260px;
  }
  .latest-grid {
    grid-template-columns: 1fr;
    display: block;
  }
  .latest-grid > * {
    margin-bottom: 14px;
  }
  .scenarios {
    grid-template-columns: 1fr 1fr;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .about {
    grid-template-columns: 1fr;
  }
  .hero-top {
    padding: 16px 0;
  }
  .hero-img {
    height: 190px;
  } /* ensure title is always visible above image */

  .grid {
    grid-template-columns: 1fr;
    gap: var(--gap-4);
  }
  .sidebar {
    position: static;
    top: auto;
  }

  .article {
    padding: 16px;
  }
  .prevnext {
    grid-template-columns: 1fr;
  }
  .related .relate_body {
    grid-template-columns: 1fr;
  }
}
/* 移动端默认隐藏导航链接 */
@media (max-width: 768px) {
  nav.links .nav-links {
    display: none;
  }
  nav.links .nav-links.active {
    display: flex;
    border-top: 1px solid #005f7357;
    margin-top: 10px;
  }
  .nav-links {
    position: fixed;
    top: 60px; /* 距离顶部60px */
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 100;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 10px;
  }

  .mobile-menu-btn .bar {
    width: 25px;
    height: 3px;
    background: #0f172a;
    margin: 2.5px 0;
    transition: all 0.3s ease;
  }

  /* 菜单展开时的按钮动画 */
  .mobile-menu-btn.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  .back-to-top {
    width: 40px;
    height: 40px;
    right: 16px;
    bottom: -50px;
  }
  .back-to-top.visible {
    bottom: 16px;
  }
  .pagination {
    gap: 2px;
  }
  
  .page-link {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  
  .ellipsis .page-link {
    font-size: 16px;
    line-height: 1;
  }
}
/* 桌面端样式 */
@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none;
  }
}
@media (max-width: 560px) {
  .scenarios {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 500px) {
  .rowitem {
    grid-template-columns: 1fr;
  }
  .pagination {
    gap: 1px;
  }
  
  .page-link {
    width: 32px;
    height: 32px;
  }
}
