/* ============================================
   四层跨界、五元融合、三方共生
   现代物流管理专业群 — 国家教学成果奖申报网站
   ============================================ */

:root {
  /* Teal primary */
  --c-teal: #0D9488;
  --c-teal-dark: #0F766E;
  --c-teal-light: #14B8A6;
  --c-teal-bg: #F0FDFA;
  --c-teal-soft: #CCFBF1;

  /* Amber accent */
  --c-amber: #F59E0B;
  --c-amber-dark: #D97706;
  --c-amber-bg: #FFFBEB;

  /* Neutrals */
  --c-bg: #F8FAFB;
  --c-surface: #FFFFFF;
  --c-border: #E4E8EC;
  --c-border-light: #F1F5F9;

  /* Text */
  --c-text: #1A2332;
  --c-text-2: #5A6878;
  --c-text-3: #8B9AAB;
  --c-text-inv: #FFFFFF;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.07), 0 2px 4px -2px rgba(15,23,42,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,0.08), 0 4px 6px -4px rgba(15,23,42,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15,23,42,0.08), 0 8px 10px -6px rgba(15,23,42,0.04);
  --shadow-glow: 0 0 0 4px rgba(13,148,136,0.08);

  /* Typography */
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Consolas", monospace;

  /* Layout */
  --nav-h: 64px;
  --max-w: 1200px;
  --pad: 40px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
}

a { color: var(--c-teal); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--c-teal-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ============ HEADER — 醒目导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 3px solid var(--c-teal);
  box-shadow: 0 4px 16px rgba(13,148,136,0.12);
  height: var(--nav-h);
}

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

.header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo { height: 34px; width: auto; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  white-space: nowrap;
  transition: all .2s var(--ease);
  border-bottom: 3px solid transparent;
}
.nav-link:hover {
  background: var(--c-teal-bg);
  color: var(--c-teal-dark);
  border-bottom-color: var(--c-teal);
}

/* Active — 青绿填充白字 */
.nav-link.active {
  background: var(--c-teal);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(13,148,136,0.3);
  border-bottom-color: var(--c-teal-dark);
}
.nav-link.active:hover {
  background: var(--c-teal-dark);
  color: #ffffff;
  border-bottom-color: var(--c-teal-dark);
}

/* Dropdown wrapper */
.nav-dropdown {
  position: relative;
}

/* Dropdown menu — centered below parent */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 200px;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all .2s var(--ease);
  z-index: 200;
  text-align: center;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 4px);
}

.nav-dropdown-item {
  display: block;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-2);
  white-space: nowrap;
  text-align: center;
  transition: all .15s var(--ease);
}
.nav-dropdown-item:hover {
  background: var(--c-teal-bg);
  color: var(--c-teal-dark);
}
.nav-dropdown-item:first-child {
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.nav-dropdown-item:last-child {
  border-radius: 0 0 var(--r-md) var(--r-md);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--c-text);
  padding: 4px;
}

/* ============ HERO — 简洁居中 ============ */
.hero {
  text-align: center;
  padding: 64px var(--pad) 48px;
  background: linear-gradient(180deg, var(--c-teal-bg) 0%, var(--c-surface) 100%);
}

.hero-container {
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-teal-dark);
  background: rgba(13,148,136,0.08);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-teal);
  display: inline-block;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin-bottom: 24px;
}

.hero-title span {
  display: block;
}

.hero-title .accent {
  color: var(--c-teal);
  font-size: 42px;
  margin-bottom: 8px;
}

.hero-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-teal), var(--c-teal-light));
  border-radius: 2px;
  margin: 0 auto 20px;
}

.hero-sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text-2);
  letter-spacing: 1px;
}

/* ============ HOME CARDS ============ */
.home-cards {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad) 48px;
}

.home-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 40px 32px 36px;
  text-align: center;
  cursor: pointer;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.home-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--c-teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,148,136,0.1);
  border-color: var(--c-teal-light);
}
.home-card:hover::before {
  transform: scaleX(1);
}

.home-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.icon-intro  { background: var(--c-teal-bg); color: var(--c-teal); }
.icon-video  { background: var(--c-amber-bg); color: var(--c-amber); }
.icon-model  { background: #F0F9FF; color: #0369A1; }

.home-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 10px;
}

.home-card p {
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.6;
}

/* ============ MODAL OVERLAY ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform .3s var(--ease);
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s var(--ease);
  z-index: 10;
}
.modal-close:hover {
  background: var(--c-teal);
  color: #fff;
  border-color: var(--c-teal);
}

.modal-body {
  padding: 40px;
}

.modal-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 20px;
}

.modal-body p,
.modal-body .modal-text {
  font-size: 15px;
  color: var(--c-text-2);
  line-height: 1.85;
}

.modal-body p + p {
  margin-top: 12px;
}

.modal-video-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
}
.modal-video-wrap video {
  width: 100%;
  display: block;
}

.modal-pdf-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  background: #F8FAFC;
  border: 1px solid var(--c-border);
}
.modal-pdf-wrap iframe {
  width: 100%;
  height: 75vh;
  border: none;
  display: block;
}

.modal-model-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.modal-model-item {
  background: var(--c-teal-bg);
  border-radius: var(--r-md);
  padding: 20px;
  text-align: center;
}
.modal-model-item strong {
  display: block;
  font-size: 15px;
  color: var(--c-teal-dark);
  margin-bottom: 8px;
}
.modal-model-item span {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.5;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 24px var(--pad);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  height: 26px;
  width: auto;
  opacity: 0.7;
}

.footer-site {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-2);
}

.footer-right {
  font-size: 13px;
  color: var(--c-text-3);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-divider {
  color: var(--c-border);
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-teal);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(13,148,136,0.35);
  transition: all .3s var(--ease);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--c-teal-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13,148,136,0.45);
}

/* ============ SCROLL ANIMATIONS ============ */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SUB-PAGE LAYOUT (申报书/总结报告/成效/获奖/支撑/风采)
   ============================================ */

/* Two-column layout */
.content-page {
  display: flex;
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: calc(100vh - var(--nav-h) - 60px);
}

/* Sidebar */
.page-sidebar {
  width: 275px;
  flex-shrink: 0;
  border-right: 2px solid var(--c-teal);
  padding: 32px 0;
  background: linear-gradient(180deg, #F0FDFA 0%, #F8FAFC 40%);
  box-shadow: 3px 0 16px rgba(13,148,136,0.06);
}

.sidebar-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.sidebar-title {
  font-size: 17px;
  font-weight: 800;
  color: #0F766E;
  padding: 16px 20px 14px;
  margin: 0 12px 16px;
  border-bottom: 2px solid var(--c-teal);
}

.sidebar-nav { list-style: none; }

.sidebar-link {
  display: block;
  padding: 14px 20px 14px 24px;
  margin: 3px 8px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  border-left: 4px solid transparent;
  border-radius: 0 10px 10px 0;
  transition: all 0.2s ease;
  text-decoration: none;
}
.sidebar-link:hover {
  color: #0F766E;
  background: #CCFBF1;
  border-left-color: var(--c-teal);
  padding-left: 28px;
}
.sidebar-link.active {
  color: #0F766E;
  background: linear-gradient(90deg, var(--c-teal-soft) 0%, #F0FDFA 100%);
  border-left-color: var(--c-teal);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(13,148,136,0.08);
}

/* Sidebar parent — expandable group header */
.sidebar-parent {
  font-weight: 700;
  color: #0F172A;
  cursor: pointer;
  user-select: none;
  transition: background .25s var(--ease), color .25s var(--ease);
}

/* Parent highlight when group is open (matching old template #17a48b active style) */
.sidebar-group.open > .sidebar-parent {
  background: var(--c-teal);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(13,148,136,0.25);
}

/* Sidebar sub-nav — smooth slide animation via max-height */
.sidebar-subnav {
  list-style: none;
  padding: 0;
  margin: 0 0 4px 0;
  max-height: 0;
  overflow: hidden;
  background: rgba(240, 253, 250, 0.4);
  border-radius: 0 8px 8px 0;
  margin-right: 8px;
  margin-left: 28px;
  transition: max-height .35s var(--ease);
}

.sidebar-group.open > .sidebar-subnav {
  max-height: 300px;
}

.sidebar-sub-link {
  display: block;
  padding: 10px 18px 10px 28px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: all .15s var(--ease);
  text-decoration: none;
}
.sidebar-sub-link:hover {
  color: #0F766E;
  background: #CCFBF1;
  border-left-color: var(--c-teal-light);
}
.sidebar-sub-link.active {
  color: #0F766E;
  background: var(--c-teal-soft);
  border-left-color: var(--c-teal);
  font-weight: 600;
}

/* Main content */
.page-main {
  flex: 1;
  padding: 32px 48px 64px;
  min-width: 0;
}

.page-hero {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--c-border-light);
}
.page-hero-breadcrumb { font-size: 13px; color: var(--c-text-3); margin-bottom: 8px; }
.page-hero-breadcrumb a { color: var(--c-text-3); }
.page-hero-breadcrumb a:hover { color: var(--c-teal); }
.page-hero-title { font-size: 32px; font-weight: 800; color: var(--c-text); }

.content-section {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.section-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-teal-bg);
}
.section-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-text);
}
.section-body p { margin-bottom: 12px; text-indent: 2em; }
.section-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--c-text);
}

/* Docx tables */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.doc-table th, .doc-table td {
  border: 1px solid var(--c-border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.doc-table th {
  background: var(--c-teal-bg);
  font-weight: 600;
  color: var(--c-text);
}
.doc-table tr:nth-child(even) td { background: var(--c-bg); }

/* PDF embed (sub-pages only) */
.pdf-container {
  width: 100%;
  background: #F8FAFC;
  border: 2px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 8px 0 16px;
  box-shadow: var(--shadow-sm);
}
.pdf-container iframe { width: 100%; height: 800px; border: none; display: block; }
.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--c-teal-bg);
  border-bottom: 1px solid var(--c-border);
  font-size: 13px;
}
.pdf-toolbar-label {
  font-weight: 600;
  color: var(--c-teal-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pdf-toolbar-actions { display: flex; gap: 8px; }
.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--c-teal);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.pdf-download-btn:hover { background: var(--c-teal-dark); color: #FFFFFF; }

/* File badge */
.file-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-teal-bg);
  color: var(--c-teal-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  margin-top: 12px;
}
.file-badge::before { content: "\1F4C4"; font-size: 14px; }

/* ============================================
   文章列表 / 卡片面板样式
   用于侧边栏切换内容区的子页面（如成果应用成效）
   ============================================ */

/* 主区域 — 点击侧边栏后切换内容 */
.article-panel {
  display: none;
  animation: fadeInUp 0.3s cubic-bezier(0, 0, 0.2, 1);
}
.article-panel.active {
  display: block;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 区块头部 */
.panel-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--c-teal-soft);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.panel-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.2px;
}
.panel-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-teal);
  background: rgba(13,148,136,0.08);
  padding: 3px 12px;
  border-radius: 20px;
}

/* 卡片网格 — 两列为主 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* 文章卡片 — 横向档案风格 */
.article-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 0 0 18px;
  cursor: pointer;
  text-decoration: none;
  color: var(--c-text);
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  overflow: hidden;
}

/* 标题 */
.card-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
  padding: 16px 0;
  transition: color 0.2s;
  letter-spacing: 0.2px;
}
.article-card:hover .card-title {
  color: var(--c-teal-dark);
}

/* 箭头指示 */
.card-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-border);
  font-size: 14px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}
.article-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--c-teal);
}

.article-card:hover {
  box-shadow: inset 0 0 0 1px var(--c-teal-soft);
  background: #FAFDFC;
}

/* 无内容空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--c-text-3);
}
.empty-state-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.4;
}
.empty-state p {
  font-size: 14px;
}

/* 文章列表响应式 */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 400px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-title { font-size: 13px; }
  .card-arrow { width: 28px; height: 40px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .home-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Sub-pages: sidebar becomes horizontal on tablets */
  .content-page {
    flex-direction: column;
  }
  .page-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid var(--c-teal);
    padding: 12px 0;
    background: linear-gradient(180deg, #F0FDFA 0%, #F8FAFC 100%);
    box-shadow: none;
  }
  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    padding: 4px 16px;
    gap: 4px;
  }
  .sidebar-link {
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    padding: 10px 16px;
    margin: 0;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
  }
  .sidebar-link:hover {
    padding-left: 16px;
  }
  .sidebar-link.active {
    border-left: none;
    border-bottom-color: var(--c-teal);
    background: linear-gradient(180deg, var(--c-teal-soft) 0%, #F0FDFA 100%);
    box-shadow: none;
  }
  .sidebar-group {
    display: flex;
    flex-direction: column;
  }
  .sidebar-subnav {
    display: flex !important;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
    padding: 2px 8px;
    gap: 4px;
    margin: 0;
    background: transparent;
    border-radius: 0;
  }
  .sidebar-sub-link {
    white-space: nowrap;
    padding: 8px 14px;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: 6px 6px 0 0;
  }
  .sidebar-sub-link.active {
    border-left: none;
    border-bottom-color: var(--c-teal);
    background: var(--c-teal-soft);
  }
  .sidebar-title {
    padding: 14px 16px;
    margin: 0 16px 12px;
    font-size: 17px;
  }
  .page-main {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
    --pad: 20px;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    flex-direction: column;
    padding: 8px;
    box-shadow: var(--shadow-lg);
  }
  .header-nav.open { display: flex; }
  .menu-toggle { display: block; }

  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    background: var(--c-teal-bg);
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }
  .nav-dropdown.open:hover .nav-dropdown-menu {
    display: block;
  }

  .hero {
    padding: 40px var(--pad) 32px;
  }
  .hero-title {
    font-size: 22px;
  }
  .hero-title .accent {
    font-size: 26px;
  }
  .hero-sub {
    font-size: 14px;
  }

  .home-card {
    padding: 32px 24px 28px;
  }

  .modal-overlay {
    padding: 16px;
  }
  .modal-body {
    padding: 28px 20px;
  }
  .modal-model-visual {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .page-hero-title {
    font-size: 24px;
  }
}
