/**
 * 活字格学习中心 - 专属主题样式
 * 品牌色: 葡萄城紫 #6366f1 + MIC绿 #10B981
 * 版本: 2.0
 */

:root {
  --gc-primary: #6366f1;
  --gc-primary-dark: #4f46e5;
  --gc-primary-light: #818cf8;
  --gc-accent: #10B981;
  --gc-accent-dark: #059669;
  --gc-dark: #0a0e27;
  --gc-dark-secondary: #1a1f3a;
  --gc-text: #1f2937;
  --gc-text-light: #6b7280;
  --gc-border: rgba(99, 102, 241, 0.15);
  --gc-radius: 12px;
}

/* ===== 角色卡片 ===== */
.role-card {
  background: linear-gradient(135deg, #fff 0%, #f5f3ff 100%);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius);
  padding: 1.5rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.role-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gc-primary), var(--gc-accent));
  opacity: 0;
  transition: opacity 0.3s;
}
.role-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.3);
}
.role-card:hover::before { opacity: 1; }

.role-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s;
}
.role-card:hover .role-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* ===== 资源链接卡片 ===== */
.resource-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--gc-radius);
  padding: 1.25rem;
  transition: all 0.3s ease;
}
.resource-card:hover {
  border-color: var(--gc-primary);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
  transform: translateY(-3px);
}
.resource-official {
  border-left: 3px solid var(--gc-primary);
}
.resource-thirdparty {
  border-left: 3px solid var(--gc-accent);
}

/* ===== 能力卡片 ===== */
.capability-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(99,102,241,0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--gc-radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}
.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}
.capability-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--gc-primary), var(--gc-primary-light));
  color: #fff;
}

/* ===== 行业场景卡片 ===== */
.industry-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--gc-radius);
  padding: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.industry-card:hover {
  border-color: var(--gc-accent);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.12);
}
.industry-card .industry-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--gc-accent);
}

/* ===== ROI 对比表 ===== */
.roi-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--gc-radius);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.roi-table thead th {
  background: linear-gradient(135deg, var(--gc-primary), var(--gc-primary-dark));
  color: #fff;
  padding: 0.875rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: left;
}
.roi-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
  color: var(--gc-text);
}
.roi-table tbody tr:nth-child(even) { background: #f9fafb; }
.roi-table tbody tr:hover { background: #f0f0ff; }
.roi-table .roi-before { color: #ef4444; }
.roi-table .roi-after { color: var(--gc-accent); font-weight: 600; }

/* ===== 二级导航 ===== */
.gc-subnav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  position: sticky;
  top: 90px;
  z-index: 30;
}
.gc-subnav a {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gc-text-light);
  border-bottom: 2px solid transparent;
  transition: all 0.25s;
  white-space: nowrap;
}
.gc-subnav a:hover,
.gc-subnav a.active {
  color: var(--gc-primary);
  border-bottom-color: var(--gc-primary);
}

/* ===== 学习路径步骤 ===== */
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gc-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== 链接按钮 ===== */
.gc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  background: var(--gc-primary);
  color: #fff;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
}
.gc-btn-primary:hover {
  background: var(--gc-primary-dark);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}
.gc-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: var(--gc-primary);
  border: 1.5px solid var(--gc-primary);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
}
.gc-btn-outline:hover {
  background: rgba(99, 102, 241, 0.08);
}
.gc-link-official {
  color: var(--gc-primary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.gc-link-official:hover { color: var(--gc-primary-dark); text-decoration: underline; }
.gc-link-third {
  color: var(--gc-accent);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.gc-link-third:hover { color: var(--gc-accent-dark); text-decoration: underline; }

/* ===== 商业决策卡片 ===== */
.biz-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--gc-radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.biz-card:hover {
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12);
  border-color: var(--gc-primary);
  transform: translateY(-4px);
}
.biz-card .biz-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gc-primary), var(--gc-accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== 手风琴 ===== */
.gc-accordion-header {
  cursor: pointer;
  padding: 0.875rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gc-text);
  transition: all 0.25s;
}
.gc-accordion-header:hover { background: #f0f0ff; border-color: var(--gc-primary); }
.gc-accordion-header.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(16,185,129,0.06));
  border-color: var(--gc-primary);
  color: var(--gc-primary);
}
.gc-accordion-header .gc-chevron {
  transition: transform 0.3s;
}
.gc-accordion-header.active .gc-chevron {
  transform: rotate(180deg);
}
.gc-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.gc-accordion-body.open {
  max-height: 2000px;
}

/* ===== 徽章 ===== */
.gc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.gc-badge-purple { background: rgba(99,102,241,0.12); color: var(--gc-primary); }
.gc-badge-green { background: rgba(16,185,129,0.12); color: var(--gc-accent); }
.gc-badge-orange { background: rgba(251,146,60,0.12); color: #f97316; }
.gc-badge-blue { background: rgba(59,130,246,0.12); color: #3b82f6; }

/* ===== 移动端适配 ===== */
@media (max-width: 767px) {
  .role-card { padding: 0.75rem; }
  .role-icon { width: 36px; height: 36px; font-size: 1rem; border-radius: 10px; }
  .resource-card { padding: 0.75rem; }
  .capability-card { padding: 0.75rem; }
  .capability-icon { width: 36px; height: 36px; font-size: 1rem; margin-bottom: 0.5rem; }
  .industry-card { padding: 0.75rem; }
  .biz-card { padding: 0.75rem; }
  .gc-subnav { top: 87px; }
  .gc-subnav a { padding: 0.4rem 0.625rem; font-size: 0.7rem; }
  .gc-btn-primary, .gc-btn-outline { padding: 0.375rem 0.875rem; font-size: 0.75rem; }
  .roi-table thead th { padding: 0.5rem; font-size: 0.7rem; }
  .roi-table tbody td { padding: 0.5rem; font-size: 0.7rem; }
  .gc-accordion-header { padding: 0.625rem 0.75rem; font-size: 0.8125rem; }
  .step-num { width: 26px; height: 26px; font-size: 0.7rem; }
  .biz-card .biz-num { width: 28px; height: 28px; font-size: 0.75rem; }
}
