/* ===== 众思元设计工作室 - 全局样式 ===== */
:root {
  --primary: #1a3a2e;
  --primary-light: #2a5a47;
  --primary-dark: #0f2419;
  --accent: #c9a96e;
  --accent-light: #dfc08a;
  --bg: #faf8f5;
  --bg-alt: #f3f0ea;
  --white: #ffffff;
  --text: #2d2d2d;
  --text-light: #6b6b6b;
  --text-muted: #999;
  --border: #e5e0d8;
  --shadow: 0 2px 12px rgba(26,58,46,0.08);
  --shadow-lg: 0 8px 32px rgba(26,58,46,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header / Navigation ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo::before {
  content: "";
  width: 28px; height: 28px;
  background: var(--primary);
  border-radius: 4px;
  display: inline-block;
  position: relative;
}
.logo::after {
  content: "众";
  position: absolute;
  color: var(--accent);
  font-size: 14px;
  margin-left: 7px;
  margin-top: -1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  transition: background .2s, transform .2s;
}
.nav-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-btn span {
  width: 24px; height: 2px;
  background: var(--primary);
  transition: .3s;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero::after {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,169,110,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(201,169,110,0.4);
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent-light);
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: 4px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 560px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .25s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-decor {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  z-index: 1;
  writing-mode: vertical-rl;
  letter-spacing: 20px;
  user-select: none;
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.9;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}
.about-visual {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.about-visual-icon {
  font-size: 80px;
  color: rgba(255,255,255,0.2);
  position: relative;
  z-index: 1;
}

/* ===== Works Grid ===== */
.works-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 24px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 24px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  color: var(--text-light);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.work-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.work-cover {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.work-cover-bg {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.3);
}
.work-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.work-card:hover .work-cover-img {
  transform: scale(1.05);
}
.work-category {
  position: absolute;
  top: 16px; left: 16px;
  padding: 4px 12px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 12px;
  border-radius: 4px;
}
.work-body {
  padding: 24px;
}
.work-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.work-summary {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-tags {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.work-tag {
  padding: 2px 10px;
  background: var(--bg-alt);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-light);
}

/* Cover gradients by category */
.cover-drone { background: linear-gradient(135deg, #1a3a2e 0%, #2d6a4f 60%, #40916c 100%); }
.cover-airport { background: linear-gradient(135deg, #1b2a4a 0%, #2d4a7a 60%, #4a7ab5 100%); }
.cover-vtol { background: linear-gradient(135deg, #1a3a4a 0%, #2d6a7a 60%, #40a0b5 100%); }
.cover-ducted { background: linear-gradient(135deg, #3a2a1a 0%, #7a5a2d 60%, #b58a40 100%); }
.cover-upgrade { background: linear-gradient(135deg, #2a2a3a 0%, #4a4a6a 60%, #6a6a8a 100%); }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform .3s;
  text-align: center;
}
.service-card:hover { transform: translateY(-4px); }
.service-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent);
}
.service-card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 12px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.cta-section h2 {
  font-size: 36px;
  margin-bottom: 16px;
  position: relative;
}
.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand h3 {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
}
.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}
.footer-col a:hover { color: var(--accent); }
.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.footer-contact .icon { color: var(--accent); flex-shrink: 0; }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-copyright { width: 100%; }
.footer-beian {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-beian:hover { color: var(--accent); }
.footer-beian-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 24px;
}
.footer-beian-logo { width: 14px; height: 16px; flex-shrink: 0; display: block; }

/* ===== Page Header (inner pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: calc(var(--header-h) + 60px) 0 60px;
  text-align: center;
}
.page-header h1 {
  font-size: 36px;
  margin-bottom: 12px;
}
.page-header p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
}

/* ===== Knowledge Base ===== */
.kb-layout {
  display: block;
  padding: 32px 0 40px;
}
/* 吸顶搜索工具条（冻结在知识树上方） */
.kb-toolbar {
  position: sticky;
  top: var(--header-h, 64px);
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 12px 0;
  margin: -12px 0 20px;
  background: rgba(250, 248, 245, .86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.kb-toolbar .kb-search { width: 100%; max-width: 560px; margin-bottom: 0; }
.kb-toolbar .kb-search input { border-radius: 22px; padding: 11px 18px; }
.kb-tree { list-style: none; }
.kb-tree ul { list-style: none; padding-left: 16px; }
.kb-tree li { margin: 2px 0; }
.kb-node {
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: background .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kb-node:hover { background: var(--bg-alt); }
.kb-node.active { background: var(--primary); color: var(--white); }
.kb-node.parent { font-weight: 600; color: var(--primary); }
.kb-node.parent.active { color: var(--white); }
.kb-toggle {
  width: 16px;
  font-size: 10px;
  text-align: center;
  color: var(--text-muted);
  transition: transform .2s;
}
.kb-toggle.open { transform: rotate(90deg); }
.kb-children.collapsed { display: none; }

/* ── Knowledge tree map（知识树导图） ── */
.kb-content { display: none; }  /* 隐藏中栏文章卡片，以知识树为主体 */
.kb-map-wrap {
  position: static;
  max-height: none;
  overflow: visible;
  background:
    radial-gradient(1100px 320px at 15% -8%, rgba(47,143,107,.10), transparent 60%),
    var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 32px 34px;
  box-shadow: var(--shadow);
}
.kb-map-wrap h3 {
  font-size: 21px;
  letter-spacing: 1px;
  color: var(--primary);
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  position: static;
  background: transparent;
}
.kb-map-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: -12px 0 6px;
}
.kb-map-wrap { overflow-x: auto; }
/* 知识库页容器放宽：页面最大化时知识树随之放大适配 */
[data-page="knowledge"] .container {
  max-width: 1920px;
}

.kb-radial-box {
  position: relative;
  width: 100%;
  max-width: 1920px;
  min-width: 1000px;
  min-height: 420px;
  margin: 0 auto;
}
#kbMap.kb-radial {
  width: 100%;
  height: 100%;
  margin: 0;
}
/* 中心圆球已移除，根节点文字由 ECharts 直接渲染 */
#kbMap.kb-radial canvas { cursor: grab; }
#kbMap.kb-radial canvas:active { cursor: grabbing; }

.kb-map-root,
.kb-map-root ul { list-style: none; }
/* 树干主脊线（连接各工程方向） */
.kb-map-root {
  position: relative;
  margin-left: 10px;
  padding-left: 26px;
  border-left: 3px solid var(--primary-light);
}
.kb-map-root > li { position: relative; margin-bottom: 22px; }
.kb-map-root > li::before {
  content: "";
  position: absolute;
  left: -29px; top: 19px;
  width: 24px; height: 3px;
  background: var(--primary-light);
  border-radius: 2px;
}
/* 各级分枝：竖向枝线 + 横向短枝 */
.kb-map-root ul {
  position: relative;
  margin: 8px 0 4px 16px;
  padding-left: 24px;
  border-left: 2px solid #cfe3d8;
}
.kb-map-root ul li { position: relative; margin: 6px 0; }
.kb-map-root ul li::before {
  content: "";
  position: absolute;
  left: -24px; top: 16px;
  width: 20px; height: 2px;
  background: #cfe3d8;
  border-radius: 2px;
}
.kb-map-node {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1.4;
  font-size: 13.5px;
  border-radius: 16px;
  padding: 5px 13px;
  cursor: pointer;
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.kb-map-node:hover { filter: brightness(1.06); }
.kb-map-name { font-weight: 600; }
.kb-map-toggle {
  flex: 0 0 auto;
  width: 10px;
  font-size: 9px;
  color: inherit;
  opacity: .8;
  transition: transform .2s;
}
.kb-map-toggle.open { transform: rotate(0deg); }
.kb-map-toggle:not(.open) { transform: rotate(-90deg); }
.kb-map-count {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 16px;
  padding: 0 8px;
  border-radius: 9px;
  background: rgba(0,0,0,.08);
}
/* L0 工程方向：树干主枝（深绿胶囊） */
.kb-map-node.level-0 {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 15.5px;
  padding: 8px 18px;
  border-radius: 22px;
  box-shadow: 0 4px 12px rgba(26,58,46,.22);
}
.kb-map-node.level-0 .kb-map-name { color: #fff; font-weight: 700; }
.kb-map-node.level-0 .kb-map-count { background: rgba(255,255,255,.22); color: #fff; }
/* L1 领域：中绿胶囊 */
.kb-map-node.level-1 { background: #2f8f6b; color: #fff; }
.kb-map-node.level-1 .kb-map-name { color: #fff; }
.kb-map-node.level-1 .kb-map-count { background: rgba(255,255,255,.22); color: #fff; }
/* L2 分类：浅绿软胶囊；L3 更浅虚线 */
.kb-map-node.level-2,
.kb-map-node.leaf-cat {
  background: #e9f4ee;
  color: var(--primary);
  border: 1px solid #cfe3d8;
}
.kb-map-node.level-3 {
  background: #f2f8f4;
  color: var(--primary-light);
  border: 1px dashed #cfe3d8;
}
.kb-map-children.collapsed { display: none; }
/* 文章叶片：白底金边胶囊 */
.kb-map-article {
  display: inline-block;
  margin: 3px 8px 3px 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 5px 13px;
  font-size: 13px;
  color: var(--text-light);
  box-shadow: 0 1px 3px rgba(26,58,46,.05);
  transition: transform .15s, border-color .15s, color .15s;
}
.kb-map-article:hover {
  color: var(--primary);
  border-color: var(--accent);
  transform: translateX(3px);
}
.kb-map-root ul li:has(> .kb-map-article)::before { top: 14px; width: 14px; }
.kb-search {
  margin-bottom: 20px;
}
.kb-search input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border .2s;
}
.kb-search input:focus { border-color: var(--primary); }

.kb-content { min-width: 0; }
.kb-article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kb-article-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border-left: 3px solid transparent;
}
.kb-article-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--accent);
}
.kb-article-card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
}
.kb-article-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.kb-article-meta span { display: flex; align-items: center; gap: 4px; }
.kb-article-summary {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}
.kb-article-tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.kb-article-tag {
  padding: 2px 8px;
  background: var(--bg-alt);
  border-radius: 3px;
  font-size: 11px;
  color: var(--text-light);
}
.kb-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.kb-breadcrumb a { color: var(--primary); }
.kb-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ===== Article Detail ===== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 40px 0;
}
.article-main {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.article-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-header h1 {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.4;
}
.article-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.article-body { font-size: 16px; line-height: 1.9; color: var(--text); }
.article-body h2 {
  font-size: 24px;
  color: var(--primary);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.article-body h3 {
  font-size: 20px;
  color: var(--primary-light);
  margin: 28px 0 12px;
}
.article-body h4 {
  font-size: 17px;
  color: var(--text);
  margin: 20px 0 8px;
}
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 12px 0 16px 24px; }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--primary); }
.article-body code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
}
.article-body pre {
  background: var(--primary-dark);
  color: #e0e0e0;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
}
.article-body pre code { background: none; padding: 0; color: inherit; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  margin: 16px 0;
  background: var(--bg-alt);
  border-radius: 0 6px 6px 0;
  color: var(--text-light);
}

/* Data tables (from [TABLE] blocks) */
.data-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.data-table th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  white-space: normal;
  line-height: 1.5;
}
table.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  white-space: normal;
  line-height: 1.6;
  vertical-align: top;
  color: var(--text);
}
table.data-table td:first-child, table.data-table th:first-child {
  white-space: nowrap;
  font-weight: 600;
}
table.data-table tr:nth-child(even) td { background: var(--bg-alt); }
table.data-table tr:hover td { background: rgba(201,169,110,0.08); }

/* Mermaid diagram */
.mermaid-container {
  margin: 24px 0;
  text-align: center;
  overflow-x: auto;
}
.mermaid {
  display: inline-block;
  min-width: 100%;
}

.article-toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.article-toc h4 {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 12px;
}
.article-toc ul { list-style: none; }
.article-toc li { margin: 4px 0; }
.article-toc a {
  font-size: 13px;
  color: var(--text-light);
  display: block;
  padding: 4px 8px;
  border-radius: 4px;
  border-left: 2px solid transparent;
}
.article-toc a:hover, .article-toc a.active {
  color: var(--primary);
  border-left-color: var(--accent);
  background: var(--bg-alt);
}
.article-toc .toc-h3 { padding-left: 20px; }

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-light);
}
.article-back:hover { color: var(--primary); }

/* ===== Work Detail ===== */
.work-detail {
  padding: 40px 0;
}
.work-detail-hero {
  aspect-ratio: 21/9;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.work-detail-hero.has-image {
  background: var(--bg-alt);
}
.work-detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-detail-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}
.work-detail-main h1 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 16px;
}
.work-detail-main .work-desc {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 24px;
}
.work-detail-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.work-info-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.work-info-item:last-child { border-bottom: none; }
.work-info-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.work-info-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.work-detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.related-works {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.related-works h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 24px;
}

/* ===== Booking Page ===== */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  padding: 40px 0;
}
.booking-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.booking-form-card h2 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 8px;
}
.booking-form-card .form-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group label .required { color: #c0392b; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border .2s;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,46,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group .error-msg {
  color: #c0392b;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #c0392b; }
.form-group.has-error .error-msg { display: block; }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: var(--primary-light); }
.btn-submit:disabled { background: var(--text-muted); cursor: not-allowed; }

.booking-success {
  text-align: center;
  padding: 40px 20px;
  display: none;
}
.booking-success.show { display: block; }
.booking-success .icon {
  width: 72px; height: 72px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #4caf50;
  margin: 0 auto 20px;
}
.booking-success h3 { font-size: 24px; color: var(--primary); margin-bottom: 12px; }
.booking-success p { color: var(--text-light); margin-bottom: 24px; }

.booking-contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.booking-contact-card h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 8px;
}
.booking-contact-card .subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.contact-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .ci-icon {
  width: 40px; height: 40px;
  background: var(--bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-item .ci-label {
  font-size: 12px;
  color: var(--text-muted);
}
.contact-item .ci-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.smart-match {
  margin-top: 32px;
}
.smart-match h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 16px;
}
.smart-match-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.smart-match-item {
  padding: 12px;
  background: var(--bg-alt);
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s;
}
.smart-match-item:hover { background: rgba(201,169,110,0.1); }
.smart-match-item .title { font-size: 14px; font-weight: 500; color: var(--primary); }
.smart-match-item .match { font-size: 12px; color: var(--accent); }

/* ===== Team Page ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 40px 0;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.team-card:hover { transform: translateY(-4px); }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--accent);
  font-weight: 700;
}
.team-card h3 { font-size: 20px; color: var(--primary); margin-bottom: 4px; }
.team-card .title { font-size: 14px; color: var(--accent); margin-bottom: 12px; }
.team-card .bio { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.team-status {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 12px;
  font-size: 12px;
}
.team-status.available { background: #e8f5e9; color: #2e7d32; }
.team-status.busy { background: #fff3e0; color: #e65100; }
.team-skills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}
.team-skill {
  padding: 2px 10px;
  background: var(--bg-alt);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-light);
}

/* ===== Pagination / Load more ===== */
.load-more {
  text-align: center;
  margin-top: 40px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .kb-map-wrap { padding: 24px 20px 26px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { display: none; }
  .work-detail-body { grid-template-columns: 1fr; }
  .booking-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-decor { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }
  .mobile-menu-btn { display: flex; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; }
  .works-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-value { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .article-main { padding: 24px; }
  .booking-form-card { padding: 24px; }
  .container { padding: 0 16px; }
  .kb-map-root { margin-left: 4px; }
}

/* ===== Loading ===== */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Highlight search */
mark {
  background: rgba(201,169,110,0.3);
  padding: 0 2px;
  border-radius: 2px;
}
