/* ===== opc.so 品牌色系 ===== */
:root {
  --bg-deepest: #070B16;
  --bg-deep: #0B1020;
  --bg-card: #121830;
  --bg-card-hover: #18203F;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(79,119,255,0.3);
  --text: #F0F2F8;
  --text-dim: #8A94B0;
  --text-faint: #5A6480;
  --brand: #4D7BFF;
  --brand-light: #6B9BFF;
  --brand-glow: rgba(77,123,255,0.4);
  --cyan: #00E0FF;
  --gold: #FFB840;
  --green: #00E68A;
  --purple: #9D5CFF;
  --pink: #FF5C8A;
}

/* ===== 全局 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-deepest);
  color: var(--text);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== 字体大小 ===== */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.text-5xl { font-size: 48px; }
.text-6xl { font-size: 64px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* ===== 渐变文字 ===== */
.gradient-text {
  background: linear-gradient(135deg, #4D7BFF 0%, #00E0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-gold {
  background: linear-gradient(135deg, #FFB840 0%, #FF6A40 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 动画背景 ===== */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(300px); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== 导航栏 ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: all 0.3s ease;
  padding: 16px 0;
}
.nav.scrolled {
  background: rgba(7,11,22,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #4D7BFF, #00E0FF);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: white;
}
.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  font-size: 14px; color: var(--text-dim); font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, #4D7BFF, #6B9BFF);
  color: white; padding: 10px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: all 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--brand-glow); }
.nav-mobile { display: none; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}
.hero-glow-1 {
  position: absolute; top: 10%; left: 20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(77,123,255,0.15) 0%, transparent 70%);
  animation: pulse-glow 6s ease-in-out infinite;
}
.hero-glow-2 {
  position: absolute; bottom: 10%; right: 20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,224,255,0.12) 0%, transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite 2s;
}
.hero-glow-3 {
  position: absolute; top: 40%; right: 35%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(157,92,255,0.1) 0%, transparent 70%);
  animation: pulse-glow 10s ease-in-out infinite 1s;
}
.hero-grid {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 800px; padding: 0 24px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(77,123,255,0.1);
  border: 1px solid rgba(77,123,255,0.3);
  padding: 6px 16px; border-radius: 100px;
  font-size: 13px; color: var(--brand-light); font-weight: 500;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: blink 2s infinite;
}
.hero h1 {
  font-size: 56px; font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px; color: var(--text-dim); line-height: 1.7;
  max-width: 620px; margin: 0 auto 36px;
}
.hero-search {
  max-width: 600px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 8px;
  display: flex; gap: 8px; align-items: center;
  transition: border-color 0.3s;
}
.hero-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.hero-search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 15px; padding: 12px 16px;
}
.hero-search input::placeholder { color: var(--text-faint); }
.hero-search button {
  background: linear-gradient(135deg, #4D7BFF, #6B9BFF);
  color: white; border: none; border-radius: 10px;
  padding: 12px 28px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.hero-search button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px var(--brand-glow); }

/* ===== 统计条 ===== */
.stats-bar {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 42px; font-weight: 800;
  background: linear-gradient(135deg, #4D7BFF, #00E0FF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-num.gold {
  background: linear-gradient(135deg, #FFB840, #FF6A40);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 14px; color: var(--text-dim); margin-top: 6px; }

/* ===== 通用 Section ===== */
.section {
  max-width: 1200px; margin: 0 auto; padding: 100px 24px;
}
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(77,123,255,0.1);
  border: 1px solid rgba(77,123,255,0.2);
  padding: 5px 14px; border-radius: 100px;
  font-size: 13px; color: var(--brand-light); font-weight: 500;
  margin-bottom: 16px;
}
.section-title {
  font-size: 40px; font-weight: 800; line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-desc {
  font-size: 17px; color: var(--text-dim); line-height: 1.6;
  max-width: 600px;
}

/* ===== 政策雷达 ===== */
.radar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.radar-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(77,123,255,0.05);
}
.radar-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); position: relative;
}
.radar-dot::after {
  content: ''; position: absolute; top: -3px; left: -3px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(0,230,138,0.3);
}
.radar-body {
  display: grid; grid-template-columns: 320px 1fr; min-height: 480px;
}
.radar-filters {
  padding: 24px; border-right: 1px solid var(--border);
}
.filter-group { margin-bottom: 24px; }
.filter-label {
  font-size: 12px; font-weight: 600; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-dim);
  font-size: 13px; cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--brand); color: var(--text); }
.chip.active {
  background: var(--brand); border-color: var(--brand);
  color: white; font-weight: 600;
}
.radar-results {
  padding: 24px; overflow-y: auto; max-height: 480px;
}
.radar-results::-webkit-scrollbar { width: 6px; }
.radar-results::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.result-count {
  font-size: 13px; color: var(--text-dim); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.policy-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 18px;
  margin-bottom: 12px;
  transition: all 0.2s;
  cursor: pointer;
}
.policy-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.policy-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.policy-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
}
.policy-tag.money { background: rgba(255,184,64,0.12); color: var(--gold); }
.policy-tag.compute { background: rgba(0,224,255,0.12); color: var(--cyan); }
.policy-tag.space { background: rgba(0,230,138,0.12); color: var(--green); }
.policy-tag.talent { background: rgba(157,92,255,0.12); color: var(--purple); }
.policy-tag.loan { background: rgba(255,92,138,0.12); color: var(--pink); }
.policy-card-title {
  font-size: 15px; font-weight: 600; margin-bottom: 4px;
}
.policy-card-region {
  font-size: 12px; color: var(--text-faint);
}
.policy-card-amount {
  font-size: 20px; font-weight: 700;
  color: var(--gold); margin: 8px 0 4px;
}
.policy-card-desc {
  font-size: 13px; color: var(--text-dim); line-height: 1.5;
}

/* ===== 产品卡片 ===== */
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.product-card:hover::before { opacity: 1; }
.product-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.product-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.product-card .tagline { font-size: 13px; color: var(--brand-light); margin-bottom: 12px; font-weight: 500; }
.product-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 16px; }
.product-features { display: flex; flex-direction: column; gap: 8px; }
.product-feature {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim);
}
.product-feature::before {
  content: '✓'; color: var(--green); font-weight: 700;
}

/* ===== 特性列表 ===== */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.feature-list { display: flex; flex-direction: column; gap: 24px; }
.feature-item {
  display: flex; gap: 16px; align-items: flex-start;
}
.feature-num {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(77,123,255,0.1);
  border: 1px solid rgba(77,123,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--brand-light);
}
.feature-text h4 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.feature-text p { font-size: 14px; color: var(--text-dim); line-height: 1.5; }

/* ===== WorkBuddy 区块 ===== */
.wb-section {
  background: linear-gradient(180deg, transparent, rgba(77,123,255,0.03), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.wb-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(77,123,255,0.1);
  border: 1px solid rgba(77,123,255,0.3);
  padding: 6px 16px; border-radius: 100px;
  font-size: 13px; color: var(--brand-light); font-weight: 500;
  margin-bottom: 16px;
}
.wb-flow {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.wb-step {
  flex: 1; min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; text-align: center;
}
.wb-step-icon { font-size: 28px; margin-bottom: 8px; }
.wb-step h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.wb-step p { font-size: 13px; color: var(--text-dim); }
.wb-arrow { font-size: 24px; color: var(--brand); }

/* ===== 社群区块 ===== */
.community-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; text-align: center;
  transition: all 0.3s;
}
.community-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.community-icon { font-size: 32px; margin-bottom: 12px; }
.community-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.community-card p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* ===== CTA ===== */
.cta-section {
  max-width: 1100px; margin: 0 auto; padding: 80px 24px;
}
.cta-box {
  background: linear-gradient(135deg, rgba(77,123,255,0.12), rgba(0,224,255,0.08));
  border: 1px solid rgba(77,123,255,0.25);
  border-radius: 24px;
  padding: 60px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-box h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.cta-box p { font-size: 16px; color: var(--text-dim); margin-bottom: 28px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; }
.btn-primary {
  background: linear-gradient(135deg, #4D7BFF, #6B9BFF);
  color: white; padding: 14px 32px; border-radius: 10px;
  font-size: 15px; font-weight: 600; border: none; cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px var(--brand-glow); }
.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text); padding: 14px 32px; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--brand); }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px 30px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand p { font-size: 13px; color: var(--text-dim); margin-top: 12px; line-height: 1.6; }
.footer-col h5 { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-faint);
}

/* ===== 滚动动画 ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 响应式 ===== */
/* hamburger 按钮：桌面隐藏，移动端显示 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  /* 默认收起；.open 时展开为下拉菜单 */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 8px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .nav-cta { margin-top: 8px; text-align: center; }

  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 15px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .section { padding: 60px 20px; }
  .section-title { font-size: 28px; }
  .product-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .radar-body { grid-template-columns: 1fr; }
  .radar-results { max-height: none; }   /* 移动端取消内嵌滚动区高度限制 */
  .radar-filters { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .wb-flow { flex-direction: column; }
  .wb-arrow { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
