/*
  星灵元境·工作通 (istarwork.com) 官网样式
  品牌色：晨曦橙 #EA6A1E / 琥珀金 #D97706 / 向阳黄 #FBB130 / 霜白 #FFFBF5 / 炭灰 #1C1917
*/

:root {
  --color-primary: #EA6A1E;
  --color-primary-dark: #D97706;
  --color-accent: #FBB130;
  --color-bg: #FFFBF5;
  --color-surface: #FFFFFF;
  --color-text: #1C1917;
  --color-muted: #6B7280;
  --color-border: rgba(28, 25, 23, 0.08);
  --color-group: #0B1437;
  --color-opc: #1B4FD8;
  --color-study: #6D28D9;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 4px 12px rgba(234, 106, 30, 0.08);
  --shadow-lg: 0 12px 40px rgba(234, 106, 30, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #0B1437;
  --color-surface: rgba(255, 255, 255, 0.05);
  --color-text: #F8FAFC;
  --color-muted: #94A3B8;
  --color-border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* 站点头部：顶部条 + 主导航绑定在一起 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 主导航 */
.main-nav {
  position: relative;
  top: auto;
  z-index: 99;
  background: rgba(255, 251, 245, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease;
}

[data-theme='dark'] .main-nav {
  background: rgba(11, 20, 55, 0.85);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  position: relative;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo span {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(234, 106, 30, 0.3);
}

.btn-primary:hover {
  background: #F97316;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234, 106, 30, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-muted);
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--color-primary);
  background: rgba(234, 106, 30, 0.06);
}

/* Hero */
.hero {
  position: relative;
  padding: 100px 24px 140px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg) 0%, #FFF7ED 50%, var(--color-bg) 100%);
}

[data-theme='dark'] .hero {
  background: linear-gradient(135deg, #0B1437 0%, #1E1B4B 50%, #0B1437 100%);
}

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

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 12s ease-in-out infinite;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: #EA6A1E;
  top: -120px;
  right: -80px;
  animation-delay: 0s;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: #FBB130;
  bottom: -100px;
  left: -60px;
  animation-delay: -4s;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: #D97706;
  top: 40%;
  left: 30%;
  animation-delay: -8s;
  opacity: 0.2;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(234, 106, 30, 0.1);
  border: 1px solid rgba(234, 106, 30, 0.2);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.hero-badge:hover {
  background: rgba(234, 106, 30, 0.18);
  transform: translateX(4px);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
}

.hero h1 .highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 12px;
  background: rgba(234, 106, 30, 0.2);
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-search {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin-bottom: 48px;
  background: var(--color-surface);
  padding: 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.hero-search:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(234, 106, 30, 0.12);
}

.hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--color-text);
  outline: none;
  font-family: var(--font-body);
}

.hero-search input::placeholder {
  color: var(--color-muted);
}

.hero-search .btn-primary {
  border-radius: var(--radius-full);
  padding: 12px 28px;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat .number {
  font-family: 'Geist Mono', 'SF Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
}

.hero-stat .label {
  font-size: 13px;
  color: var(--color-muted);
}

.hero-visual {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 420px;
}

.hero-card {
  position: absolute;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.hero-card-1 {
  width: 280px;
  top: 0;
  right: 0;
  transform: rotate(6deg);
  z-index: 3;
}

.hero-card-2 {
  width: 300px;
  top: 80px;
  left: 0;
  transform: rotate(-3deg);
  z-index: 2;
}

.hero-card-3 {
  width: 260px;
  bottom: 0;
  right: 40px;
  transform: rotate(2deg);
  z-index: 1;
}

.hero-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  z-index: 10;
}

.card-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card-tag.orange {
  background: rgba(234, 106, 30, 0.1);
  color: var(--color-primary);
}

.card-tag.blue {
  background: rgba(27, 79, 216, 0.1);
  color: var(--color-opc);
}

.card-tag.purple {
  background: rgba(109, 40, 217, 0.1);
  color: var(--color-study);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.card-desc {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.card-price {
  font-family: 'Geist Mono', monospace;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 18px;
}

/* Section 通用 */
.section {
  padding: 100px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-muted);
  line-height: 1.7;
}

/* 双轨模式 */
.dual-track {
  background: linear-gradient(180deg, var(--color-bg) 0%, #FFF7ED 100%);
}

[data-theme='dark'] .dual-track {
  background: linear-gradient(180deg, #0B1437 0%, #1E1B4B 100%);
}

.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.track-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

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

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

.track-card.active::before {
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}

.track-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(234, 106, 30, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-primary);
}

.track-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 12px;
}

.track-card p {
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0 0 24px;
}

.track-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.track-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text);
}

.track-features li svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* 服务模块 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(180deg, transparent, rgba(234, 106, 30, 0.06));
  transition: height 0.3s;
}

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

.service-card:hover::after {
  height: 100%;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(234, 106, 30, 0.12), rgba(251, 177, 48, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--color-primary);
  transition: transform 0.3s;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* 机会信息流 */
.opportunities {
  background: var(--color-bg);
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.opportunity-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.opportunity-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.opportunity-card:hover::before {
  opacity: 1;
}

.opp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.opp-company {
  display: flex;
  align-items: center;
  gap: 10px;
}

.opp-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 14px;
}

.opp-company-info {
  display: flex;
  flex-direction: column;
}

.opp-company-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
}

.opp-location {
  font-size: 12px;
  color: var(--color-muted);
}

.opp-price {
  font-family: 'Geist Mono', monospace;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 18px;
}

.opp-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.opp-desc {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.opp-tag {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: rgba(234, 106, 30, 0.08);
  color: var(--color-primary);
}

.opp-tag.matched {
  background: var(--color-primary);
  color: white;
}

.opp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.opp-meta {
  font-size: 12px;
  color: var(--color-muted);
}

.opp-response {
  padding: 8px 16px;
  font-size: 13px;
}

/* AI 匹配 */
.ai-match {
  background: linear-gradient(135deg, var(--color-primary) 0%, #F97316 50%, var(--color-primary-dark) 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 64px;
  position: relative;
  overflow: hidden;
}

.ai-match-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(circle at 20% 50%, white 1px, transparent 1px),
                    radial-gradient(circle at 80% 50%, white 1px, transparent 1px);
  background-size: 40px 40px;
  animation: moveDots 20s linear infinite;
}

@keyframes moveDots {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 40px 40px, -40px 40px; }
}

.ai-match-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ai-match h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.15;
}

.ai-match p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 32px;
}

.skill-input {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-input input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 15px;
  outline: none;
  backdrop-filter: blur(10px);
}

.skill-input input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.skill-input input:focus {
  border-color: white;
  background: rgba(255, 255, 255, 0.22);
}

.skill-input .btn {
  background: white;
  color: var(--color-primary);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  font-weight: 700;
}

.skill-input .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.skill-tag:hover,
.skill-tag.active {
  background: white;
  color: var(--color-primary);
}

.ai-result-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.ai-result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ai-pulse {
  width: 8px;
  height: 8px;
  background: #FBB130;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.ai-result-title {
  font-weight: 700;
  font-size: 16px;
}

.ai-match-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-match-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  font-size: 14px;
}

.ai-match-score {
  font-family: 'Geist Mono', monospace;
  font-weight: 700;
  color: #FBB130;
}

/* 生态协同 */
.ecosystem-flow {
  background: linear-gradient(180deg, var(--color-bg) 0%, #FFF7ED 100%);
}

[data-theme='dark'] .ecosystem-flow {
  background: linear-gradient(180deg, #0B1437 0%, #1E1B4B 100%);
}

.flow-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 80px;
  right: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-study), var(--color-opc), var(--color-primary));
  opacity: 0.3;
}

.flow-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.flow-step-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.flow-step:hover .flow-step-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.flow-step h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.flow-step p {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0;
}

/* CTA */
.cta-section {
  padding: 80px 24px;
  text-align: center;
}

.cta-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(234, 106, 30, 0.08) 0%, transparent 60%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 16px;
}

.cta-card p {
  font-size: 17px;
  color: var(--color-muted);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 生态地图弹窗 */
.ecosystem-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 55, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.ecosystem-modal.open {
  opacity: 1;
  visibility: visible;
}

.ecosystem-modal-content {
  background: #0F2354;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 960px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s;
}

.ecosystem-modal.open .ecosystem-modal-content {
  transform: scale(1);
}

.ecosystem-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecosystem-modal h2 {
  color: white;
  font-size: 32px;
  margin-bottom: 16px;
}

.ecosystem-modal > p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

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

.ecosystem-map-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  color: white;
}

.ecosystem-map-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
}

.ecosystem-map-card.group {
  border-color: #3B82F6;
}

.ecosystem-map-card.opc {
  border-color: #1B4FD8;
}

.ecosystem-map-card.study {
  border-color: #6D28D9;
}

.ecosystem-map-card.work {
  border-color: var(--color-primary);
}

.ecosystem-map-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.ecosystem-map-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.ecosystem-map-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* 动画类 */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 响应式 */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    order: -1;
    height: 380px;
  }
  .hero-card-stack {
    transform: scale(0.85);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .opportunities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ai-match-content {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .flow-steps::before {
    display: none;
  }
  .flow-steps {
    flex-wrap: wrap;
  }
  .flow-step {
    flex: 0 0 calc(50% - 16px);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero {
    padding: 60px 20px 80px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-search {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }
  .hero-search .btn-primary {
    width: 100%;
  }
  .hero-stats {
    gap: 24px;
  }
  .hero-card-stack {
    transform: scale(0.75);
  }
  .section {
    padding: 60px 20px;
  }
  .track-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .opportunities-grid {
    grid-template-columns: 1fr;
  }
  .ai-match {
    padding: 40px 24px;
  }
  .skill-input {
    flex-direction: column;
  }
  .cta-card {
    padding: 40px 24px;
  }
  .cta-card h2 {
    font-size: 26px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .ecosystem-map {
    grid-template-columns: 1fr;
  }
  .flow-step {
    flex: 0 0 100%;
  }
  .ecosystem-bar {
    font-size: 12px;
  }
  .ecosystem-links {
    gap: 8px;
  }
  .ecosystem-links a {
    font-size: 12px;
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }
  .footer-bottom > div:first-child,
  .footer-icp,
  .footer-bottom > div:last-child {
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .hero-card-stack {
    transform: scale(0.65);
  }
  .hero-visual {
    height: 320px;
  }
  .nav-container {
    padding: 0 16px;
    height: 64px;
  }
  .logo {
    font-size: 16px;
  }
  .logo-mark {
    width: 28px;
    height: 28px;
  }
}

/* 移动菜单 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--color-surface);
  z-index: 200;
  padding: 80px 24px 24px;
  transition: right 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  border-left: 1px solid var(--color-border);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  color: var(--color-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu a:hover {
  color: var(--color-primary);
}
