/* ============================================================
   思维优创 - 企业官方网站样式表
   设计系统：科技蓝 + 暖橙辅助
   ============================================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  --color-primary: #0a1f44;
  --color-primary-light: #132d5e;
  --color-blue: #1a5fdc;
  --color-blue-light: #4fc3f7;
  --color-accent: #f47920;
  --color-accent-light: #ffb74d;
  --color-text: #1a1a2e;
  --color-text-medium: #4a4a6a;
  --color-text-light: #7a7a9a;
  --color-bg: #f5f7fa;
  --color-bg-alt: #eef2f7;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --color-card-shadow: 0 2px 16px rgba(10, 31, 68, 0.06);
  --color-card-shadow-hover: 0 8px 32px rgba(10, 31, 68, 0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
  /* 页头 logo 图标（mark）的边长 —— 唯一的尺寸来源。
     改这一个数即可，页头与学员登录页共用。
     依据见文件末尾「logo 图标尺寸」一节（实测标定，不是手感）。 */
  --logo-mark-size: 38px;
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  background: var(--color-bg);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-blue);
  background: rgba(26, 95, 220, 0.08);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-medium);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.subsection-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin: 60px 0 32px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 12px 28px;
  font-size: 0.95rem;
}

.btn-primary:hover {
  background: #1450c0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 95, 220, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 8px rgba(10, 31, 68, 0.06);
}

.header .container {
  height: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 图标边长由 --logo-mark-size 统一控制（见文件末尾「logo 图标尺寸」一节）。
   HTML 上的 width/height 属性只作降级兜底，实际尺寸以这里为准，
   这样"想改大小"只需改 :root 里那一个数。 */
.logo-icon svg {
  display: block;
  width: var(--logo-mark-size);
  height: var(--logo-mark-size);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-cn {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.logo-en {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Navigation --- */
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-medium);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-list a:hover {
  color: var(--color-blue);
  background: rgba(26, 95, 220, 0.05);
}

.nav-list a.active {
  color: var(--color-blue);
  background: rgba(26, 95, 220, 0.08);
  font-weight: 600;
}

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

.nav-dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 4px;
}

.nav-arrow {
  font-size: 0.65rem;
  transition: transform var(--transition);
}

.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 140px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--color-card-shadow-hover);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 1001;
  overflow: hidden;
}

.nav-dropdown:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-submenu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-submenu a:hover {
  background: rgba(26, 95, 220, 0.06);
  color: var(--color-blue);
}

.nav-submenu li + li {
  border-top: 1px solid var(--color-border);
}

/* --- Header Actions --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-blue);
  border: 1.5px solid var(--color-blue);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-login:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

/* --- Workbench Dropdown --- */
.workbench-dropdown {
  position: relative;
}

.workbench-dropdown .dropdown-arrow {
  transition: transform var(--transition);
}

.workbench-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.workbench-dropdown.active .btn-login {
  background: var(--color-blue);
  color: var(--color-white);
}

.workbench-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  width: max-content;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--color-card-shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 1000;
  overflow: hidden;
}

.workbench-dropdown.active .workbench-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0);
  pointer-events: auto !important;
}

.workbench-menu-item {
  display: block;
  width: 100%;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.workbench-menu-item:hover {
  background: rgba(26, 95, 220, 0.06);
  color: var(--color-blue);
}

.workbench-menu li + li {
  border-top: 1px solid var(--color-border);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, #0a1f44 0%, #132d5e 30%, #1a3a6e 60%, #0d2548 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(79, 195, 247, 0.15);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-30px) scale(1.1); opacity: 0.6; }
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(26, 95, 220, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244, 121, 32, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}

.hero-slider {
  min-height: 260px;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #c8d6f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero .btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: var(--radius-lg);
}

.hero .btn-primary:hover {
  background: #e06818;
  box-shadow: 0 6px 24px rgba(244, 121, 32, 0.4);
}

.hero-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.hero-dot.active {
  background: var(--color-accent);
  width: 28px;
  border-radius: 6px;
}

/* --- About Section --- */
.mission-vision {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.mv-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--color-card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--color-card-shadow-hover);
}

.mv-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.mv-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.mv-card p {
  color: var(--color-text-medium);
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.value-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--color-card-shadow);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--color-card-shadow-hover);
  border-color: var(--color-blue-light);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.value-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--color-text-medium);
  line-height: 1.6;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  padding: 16px 0;
  display: flex;
  align-items: flex-start;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: calc(50% + 40px);
  text-align: right;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: calc(50% + 40px);
  text-align: left;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 14px;
  height: 14px;
  background: var(--color-blue);
  border: 3px solid var(--color-white);
  border-radius: 50%;
  transform: translate(-50%, 0);
  box-shadow: 0 0 0 4px rgba(26, 95, 220, 0.15);
  z-index: 1;
}

.timeline-year {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-blue);
  margin-bottom: 6px;
}

.timeline-event {
  font-size: 0.95rem;
  color: var(--color-text-medium);
  line-height: 1.6;
}

/* --- Scene Photos --- */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8edf5 0%, #dce3ef 100%);
  cursor: pointer;
  transition: all var(--transition);
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--color-card-shadow-hover);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
}

.photo-placeholder .photo-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.photo-placeholder .photo-add {
  font-size: 0.8rem;
  background: rgba(26, 95, 220, 0.1);
  color: var(--color-blue);
  padding: 4px 14px;
  border-radius: 100px;
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--color-white);
  padding: 20px 16px 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Courses Section --- */
.course-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-medium);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.filter-btn.active {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

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

.course-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--color-card-shadow);
  transition: all var(--transition);
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--color-card-shadow-hover);
}

.course-card-image {
  height: 180px;
  background: linear-gradient(135deg, #1a5fdc 0%, #4fc3f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.course-card-image::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.course-card-image .course-icon {
  font-size: 3rem;
  position: relative;
  z-index: 1;
}

.course-card-body {
  padding: 24px;
}

.course-card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.course-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.course-badge.age {
  background: rgba(26, 95, 220, 0.08);
  color: var(--color-blue);
}

.course-badge.level {
  background: rgba(244, 121, 32, 0.08);
  color: var(--color-accent);
}

.course-badge.duration {
  background: rgba(16, 185, 129, 0.08);
  color: var(--color-success);
}

.course-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.course-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-medium);
  line-height: 1.6;
}

/* --- Course Modal --- */
.course-modal,
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.course-modal.active,
.news-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 68, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 700px;
  width: calc(100% - 48px);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform var(--transition);
}

.course-modal.active .modal-content,
.news-modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: sticky;
  top: 16px;
  right: 16px;
  float: right;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--color-text-medium);
  cursor: pointer;
  z-index: 1;
  transition: all var(--transition);
}

.modal-close:hover {
  background: #e8e8e8;
  color: var(--color-text);
}

.modal-body {
  padding: 40px;
}

.modal-course-header {
  margin-bottom: 28px;
}

.modal-course-header .course-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-course-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.modal-course-header .modal-summary {
  color: var(--color-text-medium);
  font-size: 1rem;
}

.modal-section {
  margin-bottom: 24px;
}

.modal-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--color-blue);
}

.modal-section ul {
  padding-left: 20px;
}

.modal-section ul li {
  list-style: disc;
  color: var(--color-text-medium);
  margin-bottom: 6px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Teachers Section --- */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.teacher-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--color-card-shadow);
  transition: all var(--transition);
}

.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--color-card-shadow-hover);
}

.teacher-avatar {
  height: 220px;
  background: linear-gradient(135deg, #e8edf5 0%, #d0d9e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-avatar-icon {
  font-size: 4rem;
  opacity: 0.6;
}

.teacher-info {
  padding: 24px;
}

.teacher-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.teacher-title {
  font-size: 0.85rem;
  color: var(--color-blue);
  font-weight: 500;
  margin-bottom: 12px;
}

.teacher-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-medium);
  margin-bottom: 6px;
}

.teacher-detail .detail-icon {
  font-size: 0.9rem;
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.teacher-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: rgba(26, 95, 220, 0.06);
  color: var(--color-blue);
  border-radius: 100px;
}

.teacher-motto {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-accent);
  font-style: italic;
}

.teacher-achievements {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.teacher-achievements h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.teacher-achievements ul {
  padding-left: 16px;
}

.teacher-achievements li {
  font-size: 0.8rem;
  color: var(--color-text-medium);
  margin-bottom: 3px;
  list-style: disc;
}

/* --- Cases Section --- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.case-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--color-card-shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-accent));
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--color-card-shadow-hover);
}

.case-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.case-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-blue), var(--color-blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.case-meta {
  flex: 1;
}

.case-student {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.case-info {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

.case-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.case-compare-item h4 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.case-compare-item.before h4 {
  color: var(--color-text-light);
}

.case-compare-item.after h4 {
  color: var(--color-success);
}

.case-compare-item p {
  font-size: 0.9rem;
  color: var(--color-text-medium);
  line-height: 1.6;
}

.case-achievement {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(244, 121, 32, 0.1), rgba(255, 183, 77, 0.1));
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 14px;
}

.case-quote {
  font-style: italic;
  color: var(--color-text-medium);
  font-size: 0.9rem;
  line-height: 1.6;
  padding-left: 12px;
  border-left: 2px solid var(--color-border);
}

/* --- News Section --- */
.news-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

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

.news-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--color-card-shadow);
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--color-card-shadow-hover);
}

.news-card-image {
  height: 180px;
  background: linear-gradient(135deg, #132d5e 0%, #1a5fdc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.news-card-category.公司动态 {
  background: rgba(26, 95, 220, 0.08);
  color: var(--color-blue);
}

.news-card-category.教研活动 {
  background: rgba(16, 185, 129, 0.08);
  color: var(--color-success);
}

.news-card-category.行业资讯 {
  background: rgba(244, 121, 32, 0.08);
  color: var(--color-accent);
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-summary {
  font-size: 0.88rem;
  color: var(--color-text-medium);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-date {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* --- 新闻：列表形态（「全部」与「行业资讯」）---
   卡片每张约 410px 高、3 列并排 ⇒ 每条平均占 137px；
   列表一行一条 ⇒ 每条占一行高，且全宽行能放下更完整的摘要。
   实测（2026-09-16）：行业资讯摘要均长 129 字、标题 20~41 字、5/7 条带封面。 */
.news-grid.is-list {
  display: block;
}

.news-feature {
  display: flex;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--color-card-shadow);
  transition: all var(--transition);
  cursor: pointer;
  margin-bottom: 16px;
}

.news-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--color-card-shadow-hover);
}

.news-feature-media {
  width: 260px;
  flex: none;
  min-height: 164px;
  background: linear-gradient(135deg, #132d5e 0%, #1a5fdc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.news-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-feature-body {
  flex: 1;
  min-width: 0;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
}

.news-feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-feature-summary {
  font-size: 0.9rem;
  color: var(--color-text-medium);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 行列表整体裹一张白卡，行间用细线分隔 —— 一行一张浮卡会显得很碎 */
.news-rows {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--color-card-shadow);
  overflow: hidden;
}

.news-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 18px;
  cursor: pointer;
  transition: background var(--transition);
}

.news-row + .news-row {
  border-top: 1px solid var(--color-border);
}

.news-row:hover {
  background: rgba(26, 95, 220, 0.04);
}

.news-row-thumb {
  width: 106px;
  height: 72px;
  flex: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, #132d5e 0%, #1a5fdc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

/* 无图时不用深色底 —— 深色块里一个图标比缩略图更抢眼，反而更乱 */
.news-row-thumb.is-plain {
  background: var(--color-bg-alt);
}

.news-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-row-body {
  flex: 1;
  min-width: 0;
}

.news-row-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-row-summary {
  font-size: 0.86rem;
  color: var(--color-text-medium);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-row-meta {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.news-empty {
  padding: 56px 20px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--color-text-light);
}

.news-more {
  margin-top: 28px;
  text-align: center;
}

.news-more-btn {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-blue);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 11px 30px;
  cursor: pointer;
  transition: all var(--transition);
}

.news-more-btn:hover:not(:disabled) {
  border-color: var(--color-blue);
  box-shadow: var(--color-card-shadow);
}

.news-more-btn:disabled {
  color: var(--color-text-light);
  cursor: default;
}

.news-modal-content {
  max-width: 620px;
}

.news-detail-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.news-detail-date {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.news-detail-body {
  font-size: 1rem;
  color: var(--color-text-medium);
  line-height: 1.9;
}

.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4 {
  color: var(--color-primary);
  margin: 1.4em 0 0.6em;
  font-weight: 700;
}
.news-detail-body h2 { font-size: 1.25rem; border-left: 4px solid var(--color-blue); padding-left: 12px; }
.news-detail-body h3 { font-size: 1.1rem; }
.news-detail-body h4 { font-size: 1rem; }

.news-detail-body p {
  margin-bottom: 1em;
}

.news-detail-body ul,
.news-detail-body ol {
  margin: 0.8em 0;
  padding-left: 1.5em;
}
.news-detail-body li {
  margin-bottom: 0.4em;
}

.news-detail-body blockquote {
  margin: 1em 0;
  padding: 10px 16px;
  border-left: 4px solid var(--color-blue);
  background: rgba(26, 95, 220, 0.04);
  border-radius: 0 6px 6px 0;
  color: #555;
}

.news-detail-body code {
  background: #f0f2f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: #e74c3c;
}

.news-detail-body pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1em 0;
  font-size: 0.85rem;
  line-height: 1.6;
}
.news-detail-body pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.news-detail-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
.news-detail-body th,
.news-detail-body td {
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  text-align: left;
  font-size: 0.9rem;
}
.news-detail-body th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--color-primary);
}

.news-detail-body a {
  color: var(--color-blue);
  text-decoration: underline;
}

.news-detail-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 0.8em 0;
}

.news-detail-body hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1.2em 0;
}

.news-detail-body strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* --- Contact Section --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.contact-info-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--color-card-shadow);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(26, 95, 220, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.contact-detail p {
  font-size: 0.9rem;
  color: var(--color-text-medium);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--color-card-shadow);
  transition: all var(--transition);
}

.social-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--color-card-shadow-hover);
}

.social-icon {
  font-size: 1.3rem;
}

.social-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-primary);
}

.social-item span {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.contact-form-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--color-card-shadow);
  position: relative;
}

.contact-form-wrapper h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.contact-form-wrapper > p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(26, 95, 220, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.form-success.active {
  display: flex;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 1.4rem;
  color: var(--color-success);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--color-text-medium);
}

/* --- Map --- */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--color-card-shadow);
}

.map-placeholder {
  height: 320px;
  background: linear-gradient(135deg, #e8edf5 0%, #dce3ef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder-content {
  text-align: center;
  padding: 20px;
}

.map-pin {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.map-placeholder-content h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.map-placeholder-content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* --- Footer --- */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
}

.footer-logo .logo-cn {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer-logo .logo-en {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.footer-slogan {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent-light);
  margin: 12px 0 8px;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-links ul li a:hover {
  color: var(--color-accent-light);
}

.footer-contact p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 8px;
}

/* --- 构建版本标识 --- */
/* 由 _dev/ops/asset-versions.py 自动写入并刷新，**请勿手改**：
   改完 js/css 跑 `--fix` 即可，脚本会把版本号与内容 hash 对齐。
   作用是让任何人都能一眼确认「我这次加载的是哪一版」——
   缓存类问题最难的环节恰恰是"无法确认用户到底看到了哪一版"。 */
.footer-build {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.28);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  user-select: all; /* 便于选中复制，反馈问题时可直接贴给客服 */
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(26, 95, 220, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #1450c0;
  transform: translateY(-3px);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* --- Competition Vertical Timeline (matches OA) --- */
.competition-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 40px;
}

.comp-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.comp-filter-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0;
  white-space: nowrap;
}

.comp-filter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comp-filter-select {
  padding: 6px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
  color: #606266;
  cursor: pointer;
  outline: none;
  min-width: 110px;
}

.comp-filter-select:focus {
  border-color: #409eff;
}

.comp-filter-input {
  padding: 6px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
  color: #606266;
  outline: none;
  width: 150px;
}

.comp-filter-input:focus {
  border-color: #409eff;
}

.comp-filter-reset {
  padding: 6px 14px;
  border: 1px solid #409eff;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
  color: #409eff;
  cursor: pointer;
  transition: all 0.2s;
}

.comp-filter-reset:hover {
  background: #409eff;
  color: #fff;
}

.comp-filter-count {
  font-size: 0.8rem;
  color: #909399;
  white-space: nowrap;
  margin-left: 4px;
}

/* Vertical Timeline */
.vtl-container {
  padding: 10px 0 0;
}

.vtl-item {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-bottom: 28px;
}

.vtl-item:last-child {
  padding-bottom: 0;
}

.vtl-date {
  width: 80px;
  min-width: 80px;
  text-align: right;
  padding-right: 14px;
  padding-top: 14px;
}

.vtl-date-range {
  font-size: 14px;
  font-weight: 700;
  color: #303133;
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}
.vtl-date-year {
  font-size: 13px;
  color: #606266;
  font-weight: 500;
}
.vtl-date-md {
  font-size: 15px;
  color: #303133;
  font-weight: 700;
}
.vtl-date-full {
  font-size: 14px;
  font-weight: 700;
  color: #303133;
}

.vtl-node-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  min-width: 20px;
  position: relative;
  align-self: stretch;
}

.vtl-node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 18px;
  z-index: 1;
  transition: transform 0.2s;
}

.vtl-item:hover .vtl-node {
  transform: scale(1.3);
}

.vtl-line {
  width: 2px;
  background: #e4e7ed;
  flex-grow: 1;
  margin-top: 8px;
  border-radius: 1px;
}

.vtl-card {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: white;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  border: 1px solid #ebeef5;
  border-left: 3px solid transparent;
  transition: all 0.3s;
  margin-left: 16px;
}

.vtl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
  border-color: #d0d7e2;
}

.vtl-card-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 10px;
  gap: 0;
}

.vtl-card-title {
  flex: 0 1 auto;
  max-width: 100%;
  font-size: 17px;
  font-weight: 600;
  color: #303133;
  line-height: 1.4;
  min-width: 0;
}

.vtl-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vtl-title-text {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vtl-card-meta-right {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

.vtl-card-organizer {
  font-size: 12px;
  color: #909399;
  white-space: nowrap;
  flex-shrink: 0;
  border-left: 1px solid #dcdfe6;
  padding-left: 10px;
  margin-left: 4px;
  display: flex;
  align-items: center;
}

.vtl-season-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.vtl-tag-source {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.vtl-tag-cat {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.vtl-card-subnames {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.vtl-subname {
  font-size: 11px;
  background: #f5f7fa;
  color: #909399;
  padding: 1px 8px;
  border-radius: 4px;
  border: 1px solid #ebeef5;
}

.vtl-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.vtl-grade {
  font-size: 11px;
  background: #f5f7fa;
  color: #909399;
  padding: 1px 8px;
  border-radius: 4px;
  border: 1px solid #ebeef5;
}

.vtl-phases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  align-items: center;
}

.vtl-phases-label {
  font-size: 11px;
  color: #909399;
  font-weight: 600;
  flex-shrink: 0;
  padding-right: 4px;
}

.vtl-phase-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #606266;
  background: #f5f7fa;
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid #ebeef5;
}

.vtl-phase-dot em {
  font-style: normal;
  font-size: 11px;
  opacity: 0.7;
}

.vtl-phase-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c0c4cc;
  flex-shrink: 0;
}

.vtl-status-enroll::before {
  background: #e6a23c;
}

.vtl-status-active::before {
  background: #67c23a;
}

.vtl-status-upcoming::before {
  background: #409eff;
}

.vtl-status-ended::before {
  background: #909399;
}

.vtl-desc-info {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ecf5ff;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.5;
  min-width: 0;
}

.vtl-desc-label {
  font-weight: 600;
  color: #409eff;
  flex-shrink: 0;
}

.vtl-desc-text {
  flex: 1;
  min-width: 0;
  color: #606266;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vtl-desc-detail-btn {
  font-size: 12px;
  padding: 2px 8px;
  border: none;
  background: none;
  color: #409eff;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.vtl-desc-detail-btn:hover {
  color: #337ecc;
}

.vtl-guide {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fef9e7;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.5;
  min-width: 0;
}

.vtl-guide-label {
  font-weight: 600;
  color: #e6a23c;
  flex-shrink: 0;
}

.vtl-guide-text {
  flex: 1;
  min-width: 0;
  color: #606266;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vtl-no-season {
  background: #fafafa;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #c0c4cc;
  text-align: center;
}

.vtl-empty {
  text-align: center;
  padding: 60px 20px;
  color: #909399;
}

.vtl-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.competition-empty,
.competition-loading {
  text-align: center;
  padding: 60px 20px;
  color: #909399;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .competition-section {
    padding: 14px;
    margin-top: 24px;
  }
  .comp-filter-bar {
    flex-direction: column;
    gap: 8px;
    padding: 0 0 12px;
  }
  .comp-filter-title {
    font-size: 1rem;
  }
  .comp-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }
  .comp-filter-controls select {
    flex: 1 1 calc(50% - 3px);
    max-width: calc(50% - 3px);
    font-size: 0.82rem;
    padding: 6px 8px;
  }
  .comp-filter-input {
    flex: 1 1 100%;
    width: 100%;
    font-size: 0.82rem;
    padding: 6px 10px;
  }
  .comp-filter-reset {
    font-size: 0.8rem;
    padding: 6px 14px;
  }
  .comp-filter-count {
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .vtl-date {
    width: 42px;
    min-width: 42px;
    padding-right: 4px;
  }
  .vtl-date-year {
    font-size: 10px;
  }
  .vtl-date-md {
    font-size: 12px;
  }
  .vtl-date-full {
    font-size: 11px;
  }
  .vtl-date-range {
    font-size: 10px;
  }
  .vtl-card {
    margin-left: 4px;
    padding: 8px 10px;
  }
  .vtl-card-header {
    flex-wrap: wrap;
    gap: 4px;
  }
  .vtl-card-title {
    font-size: 13px;
  }
  .vtl-card-meta-right {
    font-size: 0.7rem;
  }
  .vtl-card-organizer {
    font-size: 0.7rem;
  }
  .vtl-desc-info {
    font-size: 0.75rem;
    gap: 6px;
  }
  .vtl-desc-label {
    min-width: 36px;
  }
  .vtl-guide {
    padding: 8px 10px;
    gap: 4px;
  }
  .vtl-guide-label {
    font-size: 0.72rem;
    min-width: 36px;
  }
  .vtl-guide-text {
    font-size: 0.72rem;
  }
  .vtl-card-tags {
    gap: 4px;
  }
  .vtl-grade {
    font-size: 0.68rem;
    padding: 2px 6px;
  }
  .vtl-tag-source,
  .vtl-tag-cat {
    font-size: 0.68rem;
    padding: 2px 6px;
  }
  .competition-loading,
  .competition-empty {
    padding: 40px 20px;
    font-size: 0.85rem;
  }
}

/* --- Competition Detail Modal (matches OA) --- */
.comp-detail-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.comp-detail-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.comp-detail-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 750px;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.comp-detail-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid #ebeef5;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  border-radius: 16px 16px 0 0;
}

.comp-detail-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f7fa;
  font-size: 20px;
  color: #909399;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.comp-detail-close:hover {
  background: #e0e2e6;
  color: #303133;
}

.comp-detail-title {
  font-size: 20px;
  font-weight: 700;
  color: #303133;
  margin: 0;
  padding-right: 40px;
  line-height: 1.4;
}

.comp-detail-body {
  padding: 0;
}

/* Meta descriptions table - 2 column OA style */
.comp-meta-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ebeef5;
  table-layout: fixed;
}

.comp-meta-table td {
  padding: 6px 10px;
  border: 1px solid #ebeef5;
  font-size: 13px;
  vertical-align: middle;
}

.comp-meta-label {
  background: #fafafa;
  color: #909399;
  font-weight: 600;
  width: 88px;
  white-space: nowrap;
}

.comp-meta-value {
  color: #606266;
}

.comp-meta-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comp-meta-detail-btn {
  flex-shrink: 0;
  border: none;
  background: none;
  color: #409eff;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.comp-meta-detail-btn:hover {
  color: #337ecc;
}

/* 赛事方向标签 */
.comp-direction-section {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: -2px 28px 12px;
}

.comp-direction-label {
  font-size: 12px;
  color: #606266;
  white-space: nowrap;
}

.comp-direction-tag {
  font-size: 11px;
  background: #f0f2f5;
  color: #909399;
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid #e4e7ed;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.comp-direction-tag:hover {
  color: #409eff;
  border-color: #409eff;
}

.comp-direction-tag.active {
  background: #67c23a;
  color: #fff;
  border-color: #67c23a;
}

/* Season tabs - pill buttons */
.comp-season-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 12px;
  padding: 0 28px 8px;
  border-bottom: 1px solid #ebeef5;
}

.comp-season-tab {
  padding: 6px 16px;
  border-radius: 16px;
  border: 1px solid #d0d7e2;
  background: white;
  cursor: pointer;
  font-size: 13px;
  color: #606266;
  transition: all 0.2s;
}

.comp-season-tab:hover {
  border-color: #409eff;
  color: #409eff;
}

.comp-season-tab.active {
  background: #409eff;
  color: white;
  border-color: #409eff;
}

.comp-season-content {
  padding: 0 28px 24px;
}

.comp-season-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comp-season-subtitle {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #303133;
}

.comp-season-files {
  margin-top: 16px;
}

.comp-season-files h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #303133;
}

/* Phase cards */
.comp-phase-card {
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #ebeef5;
  margin-bottom: 12px;
}

.comp-phase-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comp-phase-name {
  font-size: 14px;
  font-weight: 600;
  color: #303133;
}

.comp-phase-status {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.comp-phase-status-success { background: #f0f9eb; color: #67c23a; }
.comp-phase-status-info { background: #f4f4f5; color: #909399; }
.comp-phase-status-warning { background: #fdf6ec; color: #e6a23c; }
.comp-phase-status-primary { background: #ecf5ff; color: #409eff; }

.comp-phase-field {
  font-size: 13px;
  color: #606266;
  margin-bottom: 2px;
  line-height: 1.6;
}

.comp-phase-grades {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 6px 0;
}

.comp-phase-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-top: 10px;
}

.comp-phase-btn {
  flex-shrink: 0;
  padding: 5px 14px;
  border: 1px solid #409eff;
  border-radius: 4px;
  background: #fff;
  color: #409eff;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.comp-phase-btn:hover {
  background: #ecf5ff;
}

/* Attachment items - dashed border */
.comp-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed #ebeef5;
  font-size: 13px;
  color: #606266;
}

.comp-file-item:last-child {
  border-bottom: none;
}

.comp-file-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comp-file-dl {
  flex-shrink: 0;
  color: #409eff;
  font-size: 12px;
  text-decoration: none;
}

.comp-file-dl:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .comp-detail-content {
    width: 95%;
    max-height: 90vh;
  }
  .comp-detail-header {
    padding: 18px 18px 14px;
  }
  .comp-meta-table td {
    padding: 8px 10px;
    font-size: 12px;
  }
  .comp-meta-label {
    width: 60px;
  }
  .comp-season-content {
    padding: 12px 18px 20px;
  }
  .comp-season-tab {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* --- Text Detail Modal (赛项简介/比赛须知/备赛指南) --- */

@keyframes tdFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes tdSlideUp {
  from { opacity: 0; transform: translateY(32px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.text-detail-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  align-items: center;
  justify-content: center;
  animation: tdFadeIn 0.25s ease;
}

.text-detail-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.text-detail-dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 560px;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  animation: tdSlideUp 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.text-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.text-detail-title {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: 0.3px;
}

.text-detail-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f7;
  font-size: 18px;
  color: #86868b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  line-height: 1;
}

.text-detail-close:hover {
  background: #e8e8ed;
  color: #1d1d1f;
}

.text-detail-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  background: #fff;
}

/* --- Markdown 渲染内容样式（100% 对齐 OA wechat-markdown-content） --- */
.wechat-markdown-content { line-height: 1.85; color: #3a3a3a; letter-spacing: 0.02em; }
.wechat-markdown-content * { max-width: 100%; }
.wechat-markdown-content h2 {
  font-size: 18px; font-weight: 700; color: #222; text-align: center;
  margin: 1.2em 0 0.8em; padding-bottom: 0.5em;
  position: relative;
}
.wechat-markdown-content h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #409eff, #67c23a);
}
.wechat-markdown-content h3 {
  font-size: 16px; font-weight: 600; color: #333;
  margin: 1em 0 0.6em; padding-left: 10px;
  border-left: 3px solid #409eff;
}
.wechat-markdown-content h4 {
  font-size: 14px; font-weight: 600; color: #555;
  margin: 0.8em 0 0.4em;
}
.wechat-markdown-content p { margin: 0.6em 0; text-indent: 0; }
.wechat-markdown-content strong { color: #ff6b2b; }
.wechat-markdown-content em { color: #888; font-style: italic; }
.wechat-markdown-content a {
  color: #409eff; text-decoration: underline; text-underline-offset: 2px;
}
.wechat-markdown-content a:hover { opacity: 0.7; }
.wechat-markdown-content blockquote {
  margin: 1em 0; padding: 12px 16px;
  background: #f0f7ff; border-left: 4px solid #409eff;
  border-radius: 0 8px 8px 0; color: #4a6fa5;
}
.wechat-markdown-content blockquote p { margin: 0.3em 0; }
.wechat-markdown-content blockquote:nth-child(even) {
  background: #fff8e6; border-left-color: #e6a23c; color: #8a6d3b;
}
.wechat-markdown-content hr {
  border: none; height: 1px;
  background: linear-gradient(90deg, transparent, #dcdfe6, transparent);
  margin: 1.2em 0;
}
.wechat-markdown-content ul, .wechat-markdown-content ol {
  padding-left: 1.2em; margin: 0.6em 0;
}
.wechat-markdown-content li { margin: 0.35em 0; }
.wechat-markdown-content li::marker { color: #409eff; }
.wechat-markdown-content code {
  background: #f5f7fa; color: #e6a23c;
  padding: 2px 6px; border-radius: 3px; font-size: 0.9em;
}
.wechat-markdown-content pre {
  background: #2d2d2d; color: #f8f8f2; padding: 12px 16px;
  border-radius: 8px; overflow-x: auto; font-size: 13px; line-height: 1.6;
}
.wechat-markdown-content pre code {
  background: none; color: inherit; padding: 0; border-radius: 0;
}
.wechat-markdown-content table {
  width: 100%; border-collapse: collapse; margin: 0.8em 0;
  font-size: 13px; border-radius: 8px; overflow: hidden;
}
.wechat-markdown-content th {
  background: #409eff; color: #fff; padding: 8px 12px; font-weight: 600;
}
.wechat-markdown-content td {
  padding: 8px 12px; border-bottom: 1px solid #ebeef5;
}
.wechat-markdown-content tr:nth-child(even) td { background: #f8f9fb; }
.wechat-markdown-content img { max-width: 100%; border-radius: 6px; }

/* ============================================================
   营地详情页 - 公众号文章风格
   ============================================================ */
.d-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.d-back {
  padding: 20px 0 12px;
}

.d-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: #576b95;
  text-decoration: none;
  transition: color 0.2s;
}

.d-back-link:hover {
  color: #1a5fdc;
}

/* 文章卡片 —— 模拟公众号推文容器 */
.d-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* 文章头部 */
.d-header {
  padding: 36px 40px 20px;
}

.d-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.5;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.d-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: #999;
}

.d-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.d-badge {
  display: inline-block;
  padding: 2px 12px;
  background: rgba(26,95,220,0.08);
  color: #1a5fdc;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* 头图 */
.d-hero {
  margin: 0 0 24px;
}

.d-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.d-hero-cap {
  padding: 10px 40px;
  font-size: 0.82rem;
  color: #999;
  text-align: center;
}

/* 文章正文 */
.d-body {
  padding: 0 40px 16px;
  font-size: 1rem;
  color: #333;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

.d-body p {
  margin-bottom: 1.2em;
  text-indent: 0;
}

.d-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 1.6em 0 0.8em;
  padding-left: 12px;
  border-left: 4px solid #1a5fdc;
}

/* 信息栏 */
.d-info {
  padding: 20px 40px;
  background: #f8f9fb;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.d-info-item {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  align-items: baseline;
}

.d-info-label {
  font-weight: 700;
  color: #1a5fdc;
  white-space: nowrap;
  flex-shrink: 0;
}

.d-info-value {
  color: #555;
  line-height: 1.6;
}

/* === 公众号文章风格：每日行程图文混排 === */
.d-article {
  padding: 16px 40px 32px;
}

.d-day-block {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px dashed #e8e8e8;
}

.d-day-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.d-day-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.d-day-text {
  font-size: 0.98rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 18px;
}

.d-day-text p {
  margin-bottom: 0.6em;
}

/* 每日配图 —— 公众号文章风格的图片排版 */
.d-day-photos {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
}

.d-photo-figure {
  margin: 0;
  text-align: center;
}

.d-photo-figure img {
  width: 100%;
  max-width: 100%;
  border-radius: 4px;
  display: block;
}

.d-photo-figure figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #999;
  text-align: center;
  line-height: 1.5;
}

/* 操作栏 */
.d-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px 36px;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #f0f0f0;
}

.d-btn-group {
  display: flex;
  gap: 8px;
}

.d-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}

.d-btn-outline {
  background: #fff;
  color: #1a5fdc;
  border: 1.5px solid #1a5fdc;
}

.d-btn-outline:hover {
  background: rgba(26,95,220,0.06);
}

.d-btn-disabled {
  background: #f5f5f5;
  color: #bbb;
  border: 1.5px solid #e8e8e8;
  cursor: not-allowed;
  pointer-events: none;
}

.d-pagination {
  display: flex;
  gap: 8px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .d-container {
    padding: 0 0 32px;
  }
  .d-header {
    padding: 20px 16px 14px 16px;
  }

  .d-title {
    font-size: 1.35rem;
  }

  .d-body {
    padding: 0 16px 10px;
    font-size: 0.95rem;
  }

  .d-info {
    padding: 14px 16px;
  }

  .d-article {
    padding: 10px 16px 20px;
  }

  .d-hero-cap {
    padding: 8px 16px;
  }

  .d-action {
    padding: 14px 16px 20px;
    flex-direction: column;
    align-items: stretch;
  }
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .photos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section-desc {
    font-size: 0.95rem;
  }

  .container {
    padding: 0 10px;
  }

  .menu-toggle {
    display: flex;
  }

  /* 移动端导航（抽屉）的样式已集中到文件末尾的
     「移动端抽屉菜单（≤768px）」一节 —— 原先是 JS 逐个写内联 !important，
     40 多条内联样式既没法覆盖也没法检查。这里只留定位说明。 */
  .nav {
    display: none; /* 由文件末尾那一节接管 */
  }

  .nav-arrow {
    display: none; /* 抽屉内由 .nav.active .nav-arrow 重新打开 */
  }

  .competition-placeholder {
    min-height: 280px;
  }

  .competition-content {
    padding: 32px 24px;
  }

  .competition-hammer {
    font-size: 3rem;
  }

  .competition-title {
    font-size: 1.1rem;
  }

  .btn-login span {
    display: none;
  }

  .btn-login {
    padding: 8px 12px;
  }

  .hero {
    min-height: calc(100vh - 40px);
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    padding: 0 16px;
  }

  .hero-slider {
    min-height: 220px;
  }

  .hero .btn-primary {
    padding: 12px 30px;
    font-size: 0.95rem;
  }

  .mission-vision {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .value-card {
    padding: 24px 16px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 50px;
    padding-right: 0;
    text-align: left;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 20px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .teachers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .news-card-image {
    height: 160px;
  }

  /* 列表形态收窄：
     - 头条卡由「左图右文」改成「上图下文」，否则 280px 的图会把文字挤成一条
     - 行的缩略图收小、摘要压到 1 行 —— 窄屏上摘要会把行撑得比缩略图还高，
       一屏只能看 3~4 条，就把列表密度的意义抵消了 */
  .news-feature {
    flex-direction: column;
    margin-bottom: 14px;
  }
  .news-feature-media {
    width: 100%;
    height: 132px;
    min-height: 0;
  }
  .news-feature-body {
    padding: 14px 16px 16px;
  }
  .news-feature-title {
    font-size: 1.02rem;
  }
  /* 窄屏上头条卡是"上图下文"，摘要留 2 行会把单条撑到近 300px ——
     一屏看不下 2 条，反而比卡片更难扫。压到 1 行。 */
  .news-feature-summary {
    -webkit-line-clamp: 1;
    font-size: 0.84rem;
  }
  .news-row {
    gap: 12px;
    padding: 12px 14px;
  }
  .news-row-thumb {
    width: 92px;
    height: 64px;
    font-size: 1.4rem;
  }
  .news-row-title {
    font-size: 0.94rem;
    margin-bottom: 4px;
  }
  .news-row-summary {
    -webkit-line-clamp: 1;
    font-size: 0.82rem;
  }
  .news-row-meta {
    margin-top: 6px;
    font-size: 0.74rem;
  }
  .news-more {
    margin-top: 22px;
  }
  .news-detail-body {
    font-size: 0.92rem;
  }
  .news-detail-body h2 { font-size: 1.1rem; }
  .news-detail-body h3 { font-size: 1rem; }
  .news-detail-body pre { font-size: 0.78rem; padding: 12px; }
  .news-detail-body table { font-size: 0.8rem; }
  .news-detail-body th,
  .news-detail-body td { padding: 6px 8px; }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .case-compare {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .course-filters,
  .news-filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .social-links {
    grid-template-columns: 1fr 1fr;
  }

  .modal-body {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .footer-links {
    display: none;
  }
  .footer-icp {
    display: none;
  }

  .footer {
    padding: 24px 0 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    margin-top: 24px;
    padding: 16px 0;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .value-card {
    padding: 20px 12px;
  }

  .value-icon {
    font-size: 2rem;
  }

  .value-card h4 {
    font-size: 0.95rem;
  }

  .value-card p {
    font-size: 0.8rem;
  }

  .social-links {
    grid-template-columns: 1fr;
  }

  .contact-info-card {
    padding: 20px;
  }

  .contact-form-wrapper {
    padding: 24px;
  }

  .form-success {
    padding: 24px 16px;
  }
  .form-success h3 {
    font-size: 1.1rem;
  }
  .success-icon {
    font-size: 2rem;
  }
}

/* ============================================================
   移动端抽屉菜单（≤768px）
   ============================================================
   为什么单独放在文件末尾、而不是写进上面那份媒体查询里：
   等特异性时后写者胜，放在最后可以直接接管 .nav 与 .nav-submenu，
   而不必改动那份已经很长的既有媒体查询。

   背景：这段样式原先完全由 JS 逐个元素写内联 !important（40 多条），
   内联优先级最高，样式表改不动它，也没法被审查。现在状态只用三个 class
   表达：body.nav-open（抽屉打开）、.nav.active（抽屉本体）、
   .li.submenu-open（手风琴展开），样式全部回到这里。

   设计依据（都是实测出来的，不是拍脑袋）：
   · 第一版抽屉宽 = min(内容宽 + 24, 50vw) = 109px，只占 375px 视口的 29%，
     内容挤在顶部、下面约 480px 全是空白。
   · 第二版改成 min(320px, 86vw) 但 top:0 + bottom:0 + height:100% ——
     宽度是够了，可 6 个菜单项仍拉满整屏高，"一竖条"的问题没解决。
     用户明确反馈"想要窄""想多少个菜单就显示多长""尽可能少占用屏幕空间"。
   · 第三版：宽 min(212px, 68vw)（375px 屏占 56%）+
     height:auto（高度=内容高度，约 292px 而非 812px）+ 高度上限兜底。
     一级项 48 → 44px（仍是触摸下限），6 项再省 24px。
   · 现行（第四版）：宽 144px（375px 屏占 38%，212 → 144 收窄 32%）。
     用户第二轮回"还是有点宽了"，于是不再凭感觉收，改用实测标定下界：
       _dev/probe/calibrate-nav-width.js 从 212px 逐档扫到 112px，
       每档量"有没有项真的折行"（矩形垂直重叠聚类数行数），
       得到硬下界 128px = 最宽行 80px（「关于我们 ▾」）+ 左右内边距 48px。
       128px 是零余量，任何字体差异都会挤破，故按 12% 余量取 144px。
       换 PingFang SC / Noto Sans SC / serif 三套字体复测，下界不变
       （CJK 字形步进恒等 1em），说明这个余量不是碰运气。
     抽屉宽度的唯一来源是 .nav 上的 --nav-w，改它一处即可。
   · 原来抽屉把 header 里的汉堡按钮整个盖住，无法再点它关闭
     （实测 elementFromPoint(汉堡中心) 返回 nav）→ 现在抽屉内自带关闭按钮，
     并且遮罩层压在 header(1000) 之上，点任意空白也能关。
   · 原来所有可点项高 25.9~31.7px，低于 44px 触摸下限 → 一级/二级项 44px、
     汉堡 44px、关闭按钮命中区 44px。
   · 原来子菜单 opacity:0/visibility:hidden 只在 :hover 显示，触摸屏上
     「公司简介 / 联系我们」永远看不到也点不到 → 改成手风琴，
     且默认收起（避免一进菜单就被摊开一堆子项）。
   ============================================================ */

/* 桌面端不存在遮罩；只给一个占位，避免 JS 创建的元素在桌面下参与布局 */
.nav-overlay {
  display: none;
}

@media (max-width: 768px) {

  /* ---------- 遮罩：压在 header(1000) 之上、抽屉(1150) 之下 ---------- */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 1140;
    -webkit-tap-highlight-color: transparent;
  }
  body.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
  }
  body.nav-open {
    overflow: hidden;
  }

  /* ---------- 汉堡：命中区提到 44px（原 40px） ---------- */
  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    padding: 11px; /* 内容区 44-22=22px，与原来 22px 线条等宽，视觉不变 */
    flex-shrink: 0;
  }

  /* ---------- 抽屉本体：右上角窄卡片，高度由内容决定 ---------- */
  /* 必须用 transform + visibility 做隐藏，不能用 display:none，否则开合没有动画。

     高度为什么是 auto 而不是 100%：
     原来是 top:0 + bottom:0 + height:100%，6 个菜单项也拉满整屏高 →
     内容只占上面 290px 左右，下面 500 多 px 全是空白，视觉上就是"一竖条"。
     现在只写 top:0、不写 bottom，height:auto ⇒ 高度=内容高度，
     再用 max-height 兜住"菜单项特别多"的极端情况（此时由 .nav-list 自己滚动）。

     宽度为什么是 144px（而不是 320px / 212px / 128px）：
     320px 占屏 85%，几乎盖住整屏；212px 占屏 56%，用户仍回"还是有点宽了"；
     128px 是标定出来的硬下界（最宽一行 80px + 左右内边距 48px），
     但它是零余量、离换行只差一口气，不能直接用。144px = 128 × 1.12，
     占屏 38%：比 212px 窄三分之一，又留住了 12% 抗字体差异的余量。
     详细标定过程见文件末尾「移动端抽屉菜单」段落顶部的设计依据。

     两个 direction 的 transition 分开写，因为要不同时序：
       打开 → transform 滑入 + opacity 延迟 60ms 浮现（先滑、后显，像"抽出来"）
       关闭 → transform 滑出 + opacity 同时淡出，visibility 延迟到动画结束才隐藏
     visibility 的方向性延迟不能省：若两个方向都写 .34s，加 class 的那一瞬间
     计算值仍是 hidden ⇒ focus() 静默失败、焦点停在 BODY。 */
  .nav {
    /* 抽屉宽度的唯一来源：改这一个数即可，不必再翻别处。
       144px 不是拍出来的，是标定出来的：_dev/probe/calibrate-nav-width.js
       逐像素扫过 212→112px，量出"开始换行"的硬下界 = 128px
       （最宽一行是「关于我们 ▾」实测 80px，加左右内边距 48px）。
       再套 12% 安全余量 ⇒ 144px。CJK 字形步进恒等于 1em，四套字体
       （PingFang SC / Noto Sans SC / serif / 默认）下界完全相同，所以余量足够。
       与 52vw 取小值：只在视口窄到约 277px 以下才生效（分屏/小窗浏览器），
       日常 320px 屏上 144px 占 45%，由 144px 这一侧决定。 */
    --nav-w: 144px;
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    width: min(var(--nav-w), 52vw);
    max-width: none;
    height: auto;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px); /* dvh 跟随地址栏收放，不被旧式 100vh 骗到 */
    margin: 0;
    padding: env(safe-area-inset-top, 0px) 0 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-radius: 0 0 0 18px;
    box-shadow: -6px 10px 28px rgba(15, 23, 42, 0.16);
    overflow: hidden; /* 关闭按钮是 absolute 定位，靠它不被滚动带走 */
    transform: translateX(calc(100% + 8px));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.26s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.34s;
    z-index: 1150;
  }
  .nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.26s cubic-bezier(0.4, 0, 0.2, 1) 0.06s,
                visibility 0s linear 0s;
  }

  /* ---------- 关闭按钮（JS 注入到 #nav 首位） ---------- */
  /* 为什么必须有它：header 是 position:fixed + z-index:1000，自成层叠上下文，
     里面的汉堡无论怎么设 z-index 都盖不过 z-index:1150 的抽屉，
     所以"再点汉堡关闭"在物理上做不到，抽屉内部必须自带出口。

     为什么用 absolute 贴右上角、而不是像原来那样独占一行：
     原来是 position:sticky + 独占整行（40px 按钮 + margin ≈ 56px 高），
     而抽屉只有 6 个菜单项，这一行就吃掉整高的 16%，纯属浪费。
     改 absolute 后它脱离文档流、不参与高度计算，视觉上与第一项同行右侧
     （第一项文字止于 x≈88，按钮起于 x≈164，不打架）。
     命中区仍保持 44×44 触摸下限，只是去掉底板色，看着是个轻量的小 ×。

     absolute 的包含块是最近的定位祖先 —— 这里正好是 .nav 自己；
     .nav 上的 overflow:hidden 保证它不会随 .nav-list 一起滚走。 */
  .nav-close {
    position: absolute;
    top: max(4px, env(safe-area-inset-top, 0px));
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;  /* 视觉小、命中区仍是 44px */
    height: 44px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    z-index: 2;
  }
  .nav-close:hover,
  .nav-close:active {
    background: #f1f5f9;
    color: var(--color-blue);
  }
  /* 打开抽屉时会把焦点移进抽屉（无障碍要求），但那会触发浏览器的默认焦点环，
     触摸用户会看到一个突兀的蓝圈。用 :focus-visible 区分：
       · 触摸/鼠标打开 → 不显示焦点环
       · 键盘（Tab / ESC 后）操作 → 显示，键盘用户仍需看得见焦点在哪
     同时 :focus 上的 outline:none 必须配 :focus-visible 的显式样式，
     否则键盘用户会彻底丢失焦点指示（那才是真正的不无障碍）。 */
  .nav-close:focus {
    outline: none;
  }
  .nav-close:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
  }

  /* ---------- 一级菜单项 ---------- */
  /* .nav-list 是唯一的滚动容器（.nav 是 overflow:hidden）。
     高度自适应时它由内容撑开；万一菜单项多到触发 .nav 的 max-height，
     由它自己滚动 —— 所以 min-height:0 不能省，否则 flex item 不会收缩。 */
  .nav.active .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    min-height: 0;
    margin: 0;
    /* 顶部 6px：正好让第一项与右上角的关闭按钮处于同一水平带（按钮 44px、
         项 44px，两者等高对齐）；四周不留大边距，省空间 */
    padding: 6px 10px 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav.active .nav-list > li {
    width: 100%;
  }
  .nav.active .nav-list > li > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    /* 48 → 44：44 是触摸下限，不能再低。6 项省下 24px 高度。
       padding 上下 10px 时文字盒 22.4px，撑不到 44 由 min-height 兜底。 */
    min-height: 44px;
    padding: 10px 14px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: #334155;
    text-align: left;
    white-space: normal;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.18s ease, color 0.18s ease;
  }
  /* 第一项给关闭按钮让位，避免长菜单名换行或被压住（实测文字止于 x≈88，
     按钮起于 x≈164，这段留白是双保险） */
  .nav.active .nav-list > li:first-child > a {
    padding-right: 48px;
  }
  .nav.active .nav-list > li > a:hover,
  .nav.active .nav-list > li > a:active {
    background: #f1f5f9;
  }
  .nav.active .nav-list > li > a.active {
    background: #e8f0fe;
    color: var(--color-blue);
    font-weight: 600;
  }

  /* ---------- 下拉箭头：抽屉里要显示（原全局规则是 display:none） ---------- */
  .nav.active .nav-arrow {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
  }
  .nav.active .nav-dropdown.submenu-open .nav-arrow {
    transform: rotate(180deg);
  }

  /* ---------- 子菜单改手风琴：默认收起，点父项展开 ---------- */
  .nav.active .nav-submenu {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    min-width: 0;
    width: auto;
    /* 这三条是本次修复的关键：原样式 opacity:0 + visibility:hidden
       只在 :hover 时反转，触摸屏没有 hover，子项永远不可见 */
    opacity: 1;
    visibility: visible;
    display: none;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    overflow: visible;
    z-index: auto;
  }
  .nav.active .nav-dropdown.submenu-open .nav-submenu {
    display: block;
    /* display:none → block 时动画仍会启动，所以这里能补一个"淡入+下移"，
       否则展开是硬切、与抽屉本身的滑入手感不一致。
       注意抽屉高度是 auto，展开子菜单会让抽屉整体变高 —— 这是符合预期的，
       总比给子菜单写 max-height 过渡（要猜一个魔法数字）更稳。 */
    animation: navSubmenuIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav.active .nav-submenu li,
  .nav.active .nav-submenu li + li {
    width: 100%;
    border-top: none;
  }
  .nav.active .nav-submenu a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px 10px 30px; /* 左缩进表达层级 */
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    text-align: left;
    white-space: normal;
    text-decoration: none;
    border-radius: 10px;
  }
  .nav.active .nav-submenu a:hover,
  .nav.active .nav-submenu a:active {
    background: #f1f5f9;
    color: var(--color-blue);
  }
}

/* 子菜单展开动画。定义在媒体查询外，避免"关键帧被限制在媒体条件里"这种
   易被忽略的坑（写成 @media 内的 @keyframes 在某些旧实现里不生效）。 */
@keyframes navSubmenuIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   极窄屏（≤360px）：修 header 横向溢出 + 收 logo 图标
   ============================================================
   实测 320px 视口下 .header-actions 右边缘到 328.1px，溢出 8.1px，
   而 .logo 是 flex-shrink:0 不肯让位。构成：左内边距 10 + logo 204.1
   + actions 114 + 右内边距 10 = 338.1 > 320。

   logo 里最宽的不是中文主标（20px 粗体 4 字 = 80px），而是英文副标
   「MINDSPARK INNOVATION」（10.4px 大写 + 0.08em 字距，独占 148.1px）。
   所以在极窄屏隐去英文副标，中文主标与汉堡都不受影响。

   图标这里额外收到 30px：隐去英文副标后文字块只剩一行（24px 高），
   而图标若保持桌面尺寸就会比文字块高出一大截（实测 40px 时比值 1.67），
   是这套 lockup 里最失衡的形态。30px 让图标约为单行中文的 1.25 倍，
   同时 logo 块宽从 130 → 120，更省横向空间。
   实测 320/360/375 三个视口下 header 溢出均为 0、不与汉堡重叠。
   ============================================================ */
@media (max-width: 360px) {
  .logo-text .logo-en {
    display: none;
  }
  :root {
    --logo-mark-size: 30px;
  }
}

