/**
 * ATXC 全站升级样式 v4.0
 * 零第三方依赖 — 纯 CSS + 原生 JS
 * 覆盖：英雄区、导航、课程卡片、表格、页脚、动画、字体
 */

/* ============================================================
   Header 导航栏
   ============================================================ */
#masthead {
  background: #0a1929;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: background var(--dur-base) ease, box-shadow var(--dur-base) ease;
}

#masthead.scrolled {
  background: rgba(10,25,41,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.atxc-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.atxc-header-logo a,
.atxc-logo-text {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
}

.atxc-header-logo img {
  height: 40px;
  width: auto;
}

/* 导航链接 */
#masthead .site-navigation {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

#masthead nav a,
#masthead .site-navigation a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
  white-space: nowrap;
}

#masthead nav a:hover,
#masthead .site-navigation a:hover,
#masthead nav a.current-menu-item,
#masthead .site-navigation a.current-menu-item {
  color: white;
  background: rgba(255,255,255,0.1);
}

/* 右侧咨询按钮 */
.atxc-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.atxc-header-consult {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #0055cc 0%, #0077ff 100%);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  transition: all var(--dur-base) var(--ease-spring);
  white-space: nowrap;
}

.atxc-header-consult:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,119,255,0.45);
  color: white;
}

/* 课程 meta chip */
.atxc-course-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 14px;
  color: #334155;
}

.atxc-course-meta-chip svg { color: #0077ff; flex-shrink: 0; }

.atxc-course-meta-chip--price {
  border-color: #fde68a;
  background: #fffbeb;
}

.atxc-course-meta-chip--price svg { color: #d4af37; }

/* 热门课程卡片 */
.atxc-hot-course-card {
  display: block;
  padding: 24px;
  border-radius: 16px;
  text-decoration: none;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.atxc-hot-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  color: white;
}

.atxc-hot-course-card--sm { padding: 16px 20px; }

.atxc-hot-course-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.atxc-hot-course-card--sm .atxc-hot-course-name { font-size: 15px; }

.atxc-hot-course-desc {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.5;
}

.atxc-hot-course-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  opacity: 0.6;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.atxc-hot-course-card:hover .atxc-hot-course-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* 报名按钮 */
.signup-btn {
  background: linear-gradient(90deg, #0055cc, #0077ff);
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-spring);
  white-space: nowrap;
}

.signup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,119,255,0.4);
}

/* ============================================================
   字体系统优化
   ============================================================ */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
  /* 动画时长 */
  --dur-fast:   150ms;
  --dur-base:   280ms;
  --dur-slow:   500ms;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body { font-family: var(--font-sans); }

/* ============================================================
   英雄区 v4.0
   ============================================================ */
.atxc-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a1929 0%, #0f2744 40%, #1e3a5f 70%, #2d4a6f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px 60px;
}

/* SVG 动态网格背景 */
.atxc-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: atxc-grid-drift 20s linear infinite;
  pointer-events: none;
}

@keyframes atxc-grid-drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* 右侧装饰图形 */
.atxc-hero-deco {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  opacity: 0.6;
  animation: atxc-deco-spin 40s linear infinite;
  pointer-events: none;
}

@keyframes atxc-deco-spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

/* 内容区 */
.atxc-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 860px;
  width: 100%;
}

/* 顶部 badge */
.atxc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.4);
  color: #e6c84f;
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

/* 主标题 */
.atxc-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.atxc-hero-highlight {
  background: linear-gradient(135deg, #d4af37 0%, #f0d060 50%, #d4af37 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: atxc-shimmer-text 4s linear infinite;
}

@keyframes atxc-shimmer-text {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* 认证标签横排 */
.atxc-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}

.atxc-hero-tags span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(4px);
  transition: all var(--dur-base) ease;
}

.atxc-hero-tags span:hover {
  background: rgba(0,119,255,0.3);
  border-color: rgba(0,119,255,0.5);
  color: white;
}

/* 按钮组 */
.atxc-hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.atxc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #0055cc 0%, #0077ff 50%, #3399ff 100%);
  background-size: 200% auto;
  color: white;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(0,119,255,0.4);
  transition: all var(--dur-base) ease;
  position: relative;
  overflow: hidden;
}

.atxc-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.atxc-btn-primary:hover::before { transform: translateX(100%); }
.atxc-btn-primary:hover {
  background-position: right center;
  box-shadow: 0 6px 28px rgba(0,119,255,0.55);
  transform: translateY(-2px);
}

.atxc-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  color: white;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  transition: all var(--dur-base) ease;
}

.atxc-btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

/* 统计数据 */
.atxc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.atxc-stat {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 20px 12px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all var(--dur-base) ease;
}

.atxc-stat:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(212,175,55,0.3);
  transform: translateY(-4px);
}

.atxc-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(212,175,55,0.12);
  border-radius: 10px;
  margin: 0 auto 10px;
  color: #d4af37;
}

.atxc-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: #e6c84f;
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.atxc-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}

/* 滚动提示 — 鼠标图标 */
.atxc-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.atxc-scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.atxc-scroll-wheel {
  width: 3px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: atxc-scroll-wheel 2s ease-in-out infinite;
}

@keyframes atxc-scroll-wheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(6px); opacity: 0.3; }
}

/* ============================================================
   导航栏升级
   ============================================================ */
#masthead {
  transition: background var(--dur-base) ease, box-shadow var(--dur-base) ease,
              backdrop-filter var(--dur-base) ease;
}

#masthead.scrolled {
  background: rgba(10, 25, 41, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 24px rgba(0,0,0,0.4) !important;
}

/* 导航链接下划线动画 */
#masthead nav a {
  position: relative;
  transition: color var(--dur-fast) ease;
}

#masthead nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0077ff, #d4af37);
  border-radius: 1px;
  transition: width var(--dur-base) ease;
}

#masthead nav a:hover::after,
#masthead nav .current-menu-item > a::after,
#masthead nav .current_page_item > a::after {
  width: 80%;
}

#masthead nav .current-menu-item > a,
#masthead nav .current_page_item > a {
  color: #d4af37 !important;
}

/* ============================================================
   课程卡片升级
   ============================================================ */
.atxc-course-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.atxc-course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

.atxc-course-card-bar {
  height: 4px;
  width: 100%;
}

.atxc-course-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.atxc-course-org {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.atxc-course-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.4;
  flex: 1;
}

.atxc-course-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

.atxc-course-title a:hover { color: #0077ff; }

.atxc-course-excerpt {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.atxc-course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.atxc-course-meta {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.atxc-course-link {
  font-size: 13px;
  color: #0077ff;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--dur-fast) ease;
}

.atxc-course-link:hover { gap: 8px; }

/* hover 时显示"立即咨询"浮层（由 JS 注入真实 div，支持点击） */
.atxc-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #0055cc, #0077ff);
  color: white;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transform: translateY(100%);
  transition: transform var(--dur-base) ease;
  cursor: pointer;
  user-select: none;
}

.atxc-course-card:hover .atxc-card-overlay { transform: translateY(0); }

/* 角标 */
.atxc-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 1;
}

.atxc-badge-hot  { background: #ef4444; color: white; }
.atxc-badge-new  { background: #10b981; color: white; }

/* ============================================================
   开班计划表格升级
   ============================================================ */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.schedule-table thead th {
  background: #0a1929;
  color: rgba(255,255,255,0.85);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.schedule-table thead th:first-child { border-radius: 10px 0 0 0; }
.schedule-table thead th:last-child  { border-radius: 0 10px 0 0; }

.schedule-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background var(--dur-fast) ease;
}

.schedule-table tbody tr:hover { background: #f8fafc; }
.schedule-table tbody tr:last-child { border-bottom: none; }

.schedule-table tbody td {
  padding: 14px 16px;
  color: #334155;
  vertical-align: middle;
}

/* 开课时间列 — 倒计时 badge */
.atxc-date-cell { display: flex; flex-direction: column; gap: 4px; }

.atxc-days-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.atxc-days-soon    { background: #fef3c7; color: #d97706; }
.atxc-days-near    { background: #dbeafe; color: #1d4ed8; }
.atxc-days-future  { background: #f0fdf4; color: #15803d; }
.atxc-days-past    { background: #f1f5f9; color: #94a3b8; }

/* 报名按钮状态 */
.signup-btn {
  padding: 7px 18px !important;
  border-radius: 100px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer;
  transition: all var(--dur-fast) ease !important;
  white-space: nowrap;
}

.signup-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,119,255,0.3); }

/* ============================================================
   Scroll 触发 fadeInUp 动画
   ============================================================ */
.atxc-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) ease, transform var(--dur-slow) ease;
}

.atxc-fade-up.atxc-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 延迟级别 */
.atxc-fade-up:nth-child(2) { transition-delay: 80ms; }
.atxc-fade-up:nth-child(3) { transition-delay: 160ms; }
.atxc-fade-up:nth-child(4) { transition-delay: 240ms; }
.atxc-fade-up:nth-child(5) { transition-delay: 320ms; }

/* ============================================================
   页脚移动端适配
   ============================================================ */
@media (max-width: 768px) {
  #colophon > div > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

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

  .atxc-hero-deco { display: none; }

  .atxc-hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }

  /* 服务模块网格移动端 — 全部单列 */
  .atxc-services-grid {
    grid-template-columns: 1fr !important;
  }
  .atxc-services-grid > *:first-child,
  .atxc-services-grid > *:nth-child(2),
  .atxc-services-grid > *:nth-child(3),
  .atxc-services-grid > *:nth-child(4),
  .atxc-services-grid > *:nth-child(5) {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

@media (max-width: 480px) {
  .atxc-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .atxc-stat-num { font-size: 22px; }
  .atxc-hero-btns { flex-direction: column; align-items: center; }
  .atxc-btn-primary, .atxc-btn-ghost { width: 100%; max-width: 280px; justify-content: center; }
}

/* ============================================================
   内页公共页头
   ============================================================ */
.atxc-page-hero {
  position: relative;
  background: linear-gradient(135deg, #0a1929 0%, #0f2744 50%, #1e3a5f 100%);
  padding: 72px 24px 56px;
  text-align: center;
  overflow: hidden;
}

.atxc-page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.atxc-page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: white;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.atxc-page-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin: 0;
}

/* 面包屑 */
.atxc-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 13px;
}

.atxc-breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

.atxc-breadcrumb a:hover { color: #e6c84f; }

.atxc-breadcrumb span[aria-current] { color: #e6c84f; font-weight: 600; }

.atxc-breadcrumb-sep { color: rgba(255,255,255,0.3); }

/* ============================================================
   服务卡片 — 全站统一
   ============================================================ */
.atxc-service-card {
  background: white;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) ease;
  border-top: 3px solid transparent;
}

.atxc-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
  border-top-color: #0077ff;
}

.atxc-service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #e8f0fe 0%, #dbeafe 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #0055cc;
}

.atxc-service-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.atxc-service-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 18px;
}

.atxc-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.atxc-service-list li {
  font-size: 13px;
  color: #475569;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}

.atxc-service-list li:last-child { border-bottom: none; }

.atxc-service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #0077ff;
  border-radius: 50%;
}

/* 服务网格 */
.atxc-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ============================================================
   优势模块 — 全站统一
   ============================================================ */
.atxc-advantages {
  padding: 72px 0;
  background: white;
}

.atxc-advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.atxc-advantage-item {
  text-align: center;
  padding: 28px 20px;
  border-radius: 16px;
  background: #f8fafc;
  transition: all var(--dur-base) ease;
}

.atxc-advantage-item:hover {
  background: #eff6ff;
  transform: translateY(-4px);
}

.atxc-advantage-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0055cc 0%, #0077ff 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
}

.atxc-advantage-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.atxc-advantage-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

/* ============================================================
   内页 CTA 横幅
   ============================================================ */
.atxc-cta-banner {
  background: linear-gradient(135deg, #0a1929 0%, #1e3a5f 100%);
  padding: 64px 24px;
  text-align: center;
  color: white;
}

.atxc-cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.atxc-cta-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}

/* ============================================================
   移动端补充
   ============================================================ */
@media (max-width: 768px) {
  .atxc-advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .atxc-page-hero { padding: 56px 20px 44px; }
}

@media (max-width: 480px) {
  .atxc-advantages-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .atxc-service-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   汉堡菜单
   ============================================================ */
.atxc-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.atxc-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--dur-base) ease;
}

.atxc-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.atxc-nav-toggle.open span:nth-child(2) { opacity: 0; }
.atxc-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .atxc-nav-toggle { display: flex; }

  #masthead .site-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,25,41,0.97);
    backdrop-filter: blur(20px);
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    gap: 0;
  }

  #masthead .site-navigation.open { display: flex; }

  #masthead .site-navigation ul,
  #masthead nav ul { flex-direction: column; gap: 0; }

  #masthead nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 15px;
  }
}

/* ============================================================
   浮动客服按钮
   ============================================================ */
.atxc-float-contact {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.atxc-float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0055cc 0%, #0077ff 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,119,255,0.45);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-spring);
  text-decoration: none;
  border: none;
  position: relative;
}

.atxc-float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(0,119,255,0.6);
}

.atxc-float-btn .atxc-float-tip {
  position: absolute;
  right: calc(100% + 10px);
  background: #0f172a;
  color: white;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) ease;
}

.atxc-float-btn:hover .atxc-float-tip { opacity: 1; }

@media (max-width: 480px) {
  .atxc-float-contact { right: 16px; bottom: 20px; }
  .atxc-float-btn { width: 46px; height: 46px; }
}

/* ============================================================
   认证培训：grid-column 1, grid-row 1/3（左侧通栏）
   其余4张：grid-column 2/4，各自占一格（2列×2行）
   ============================================================ */
.atxc-services-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

/* 认证培训大卡固定在左列两行 */
.atxc-services-grid > *:first-child {
  grid-column: 1;
  grid-row: 1 / 3;
}

/* 右侧4张小卡各占一格：第2/3列 × 第1/2行 */
.atxc-services-grid > *:nth-child(2) { grid-column: 2; grid-row: 1; }
.atxc-services-grid > *:nth-child(3) { grid-column: 3; grid-row: 1; }
.atxc-services-grid > *:nth-child(4) { grid-column: 2; grid-row: 2; }
.atxc-services-grid > *:nth-child(5) { grid-column: 3; grid-row: 2; }

/* ============================================================
   减少动画（尊重用户偏好）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .atxc-hero-grid,
  .atxc-hero-deco,
  .atxc-scroll-wheel,
  .atxc-shimmer-text,
  .atxc-fade-up {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
