/* ============================================
   智经慧 - 新拟态样式表
   ============================================ */

:root {
  --bg: #e6e9ef;
  --bg-soft: #eef1f6;
  --shadow-dark: #b8bcc4;
  --shadow-light: #ffffff;
  --text: #2d3748;
  --text-soft: #4a5568;
  --text-mute: #718096;
  --primary: #5b8def;
  --primary-dark: #4a7bd9;
  --accent: #ff7a59;
  --accent-2: #6ec6a4;
  --accent-3: #b288d9;
  --accent-4: #f4b860;
  --accent-5: #f06b8a;
  --accent-6: #7ad0e3;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-out: 9px 9px 18px var(--shadow-dark), -9px -9px 18px var(--shadow-light);
  --shadow-out-sm: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
  --shadow-in: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
  --shadow-in-sm: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s;
}

a:hover { color: var(--primary); }

img { max-width: 100%; display: block; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--bg);
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(184, 188, 196, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand .logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
}

.brand .name span {
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 400;
  display: block;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  font-size: 14px;
  color: var(--text-soft);
}

.nav a:hover {
  box-shadow: var(--shadow-in-sm);
  color: var(--primary);
}

/* ---------- 主容器 ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 5%;
}

/* ---------- Hero ---------- */
.hero {
  margin: 30px 5%;
  padding: 60px 50px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-out);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-left .badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 30px;
  background: var(--bg);
  box-shadow: var(--shadow-in-sm);
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.hero h1 .hl { color: var(--primary); }

.hero p.lead {
  color: var(--text-soft);
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  font-size: 14px;
  color: var(--text);
  border: none;
  cursor: pointer;
  transition: all .25s;
}

.btn:hover {
  box-shadow: var(--shadow-in-sm);
  color: var(--primary);
}

.btn.primary {
  background: linear-gradient(145deg, #6ea8ff, #4a7bd9);
  color: #fff;
  box-shadow: 5px 5px 12px var(--shadow-dark), -5px -5px 12px var(--shadow-light);
}

.hero-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.hero-card {
  padding: 26px 20px;
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  text-align: center;
}

.hero-card .icon {
  font-size: 30px;
  margin-bottom: 8px;
}

.hero-card h4 { font-size: 15px; margin-bottom: 4px; }
.hero-card p { font-size: 12px; color: var(--text-mute); }

/* ---------- 区块标题 ---------- */
.section-head {
  margin: 50px 0 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.section-head h2 {
  font-size: 28px;
  letter-spacing: 1px;
}

.section-head h2 small {
  font-size: 14px;
  color: var(--text-mute);
  font-weight: 400;
  margin-left: 12px;
}

.section-head .more {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  font-size: 13px;
}

/* ---------- 栏目网格 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.cat-card {
  padding: 28px 22px;
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  text-align: center;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.cat-card:hover {
  box-shadow: var(--shadow-in-sm);
  transform: translateY(2px);
}

.cat-card .ico {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
}

.cat-card h3 { font-size: 17px; margin-bottom: 6px; }
.cat-card p { font-size: 12px; color: var(--text-mute); }
.cat-card .num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 11px;
  color: var(--text-mute);
}

/* ---------- 文章卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  overflow: hidden;
  transition: all .3s;
}

.card:hover {
  box-shadow: var(--shadow-in-sm);
}

.card .thumb {
  height: 180px;
  background: var(--bg);
  box-shadow: var(--shadow-in-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: var(--primary);
  position: relative;
}

.card .body {
  padding: 22px;
}

.card .tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--shadow-in-sm);
  font-size: 11px;
  color: var(--primary);
  margin-bottom: 12px;
}

.card h3 {
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.card p {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 14px;
}

.card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-mute);
  border-top: 1px dashed #d3d6dd;
  padding-top: 12px;
}

/* ---------- 数据条 ---------- */
.stats {
  margin: 50px 5%;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-out);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stats .item h3 {
  font-size: 38px;
  color: var(--primary);
  letter-spacing: 1px;
}

.stats .item p {
  color: var(--text-mute);
  font-size: 13px;
  margin-top: 6px;
}

/* ---------- 列表页 ---------- */
.cat-hero {
  padding: 50px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-out);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.cat-hero .ico-big {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  flex-shrink: 0;
}

.cat-hero h1 {
  font-size: 36px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.cat-hero p {
  color: var(--text-soft);
  max-width: 700px;
  font-size: 14px;
}

/* ---------- 文章页 ---------- */
.article {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
}

.article-main {
  padding: 40px 50px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-out);
}

.article-head {
  border-bottom: 1px dashed #d3d6dd;
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.bread {
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 16px;
}

.bread a:hover { color: var(--primary); }

.article-head h1 {
  font-size: 30px;
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.article-head .info {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--text-mute);
}

.article-body {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.95;
}

.article-body p {
  margin-bottom: 18px;
  text-indent: 2em;
}

.article-body h2 {
  font-size: 22px;
  margin: 32px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  color: var(--text);
}

.article-body h3 {
  font-size: 17px;
  margin: 22px 0 12px;
  color: var(--text);
}

.article-body ul, .article-body ol {
  margin: 14px 0 18px 30px;
}

.article-body li { margin-bottom: 6px; }

.article-body blockquote {
  margin: 22px 0;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: var(--shadow-in-sm);
  color: var(--text-soft);
  font-style: normal;
}

.tip-box {
  margin: 24px 0;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: var(--shadow-in-sm);
}

.tip-box h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 16px;
}

.tip-box p {
  margin-bottom: 0;
  text-indent: 0;
  font-size: 14px;
}

.article-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.side-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
}

.side-card h4 {
  font-size: 15px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #d3d6dd;
}

.side-card ul li {
  list-style: none;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-soft);
  border-bottom: 1px dashed #e0e3ea;
}

.side-card ul li:last-child { border-bottom: 0; }
.side-card ul li a:hover { color: var(--primary); }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  font-size: 12px;
  color: var(--text-soft);
  cursor: pointer;
}

.tag-cloud span:hover { color: var(--primary); }

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0 10px;
  flex-wrap: wrap;
}

.pager a, .pager span {
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding: 0 14px;
}

.pager .cur {
  box-shadow: var(--shadow-in-sm);
  color: var(--primary);
  font-weight: 700;
}

.pager a:hover { color: var(--primary); }

/* ---------- 页脚 ---------- */
.footer {
  margin: 60px 5% 30px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-out);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 28px;
}

.footer h5 {
  font-size: 15px;
  margin-bottom: 14px;
}

.footer p {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.8;
}

.footer ul li {
  list-style: none;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-soft);
}

.footer ul li a:hover { color: var(--primary); }

.footer-bot {
  text-align: center;
  padding-top: 20px;
  border-top: 1px dashed #d3d6dd;
  font-size: 12px;
  color: var(--text-mute);
}

.footer-bot .icp {
  display: inline-block;
  margin-left: 12px;
}

.footer-bot a:hover { color: var(--primary); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .article { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .topbar { flex-direction: column; gap: 16px; padding: 16px 5%; }
  .nav { justify-content: center; }
  .hero { padding: 36px 24px; margin: 20px 4%; }
  .hero h1 { font-size: 28px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; padding: 24px; }
  .article-main { padding: 24px; }
  .cat-hero { flex-direction: column; padding: 30px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding: 26px; }
}