/* ═══════════════════════════════════════════════════════
   创投对对碰 官网样式
   风格：Claude Code 深色终端美学 + 暖珊瑚橙
   ═══════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* 背景层级 */
  --bg-app:        #1F1E1D;
  --bg-sidebar:    #191817;
  --bg-panel:      #262524;
  --bg-elevated:   #2E2C2A;
  --bg-input:      #30302E;
  --bg-hover:      #353331;

  /* 文字 */
  --text-primary:  #E8E6E3;
  --text-secondary:#A8A49E;
  --text-tertiary: #6E6A64;
  --text-inverse:  #1F1E1D;

  /* 品牌强调色 */
  --accent:        #D97757;
  --accent-hover:  #E08B6D;
  --accent-subtle: rgba(217,119,87,.12);
  --accent-muted:  rgba(217,119,87,.25);

  /* 语义色 */
  --success:       #7BAE7F;
  --success-subtle:rgba(123,174,127,.12);
  --warning:       #D9A75B;
  --warning-subtle:rgba(217,167,91,.12);
  --danger:        #C45B5B;
  --danger-subtle: rgba(196,91,91,.12);

  /* 身份色 */
  --role-investor: #6B9BD1;
  --role-founder:  #5BB8A8;
  --role-gov:      #D9A75B;

  /* 边框与分割 */
  --border:        #3A3836;
  --border-subtle: #2C2A28;
  --border-accent: rgba(217,119,87,.40);

  /* 圆角 */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-full:9999px;

  /* 阴影 */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.25);
  --shadow-md:  0 4px 16px rgba(0,0,0,.35);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.45);
  --shadow-glow: 0 0 60px rgba(217,119,87,.15);

  /* 字体 */
  --font-sans: "Inter", "MiSans", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", monospace;

  /* 字号 */
  --text-xs:   12px;
  --text-sm:   13px;
  --text-base: 14px;
  --text-md:   15px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  28px;
  --text-3xl:  36px;
  --text-4xl:  48px;
  --text-5xl:  64px;

  /* 间距 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10:40px;
  --space-12:48px;
  --space-16:64px;
  --space-20:80px;
  --space-24:96px;

  /* 过渡 */
  --transition-fast: 150ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 300ms ease-out;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

/* ─ Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(25, 24, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-logo {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--text-lg);
  white-space: nowrap;
}

.nav-center {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.nav-actions {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
}

.logo-icon {
  color: var(--accent);
  font-size: var(--text-xl);
}

.logo-mark {
  width: 28px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

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

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: var(--space-6);
}

.nav-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

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

.nav-academy {
  color: var(--text-primary) !important;
  position: relative;
}

.nav-academy::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.nav-academy:hover::after,
.nav-academy.is-active::after {
  opacity: 1;
}

.nav-academy.is-active {
  color: var(--accent) !important;
}

.nav-cta {
  padding: var(--space-2) var(--space-5);
  background: var(--accent);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-6);
  background: rgba(25, 24, 23, 0.98);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-menu a {
  padding: var(--space-3) 0;
  color: var(--text-secondary);
  font-size: var(--text-base);
  font-weight: 500;
}

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

.mobile-menu .mobile-cta {
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--accent);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .nav-links {
    gap: var(--space-4);
  }

  .nav-links a {
    font-size: var(--text-xs);
  }
}

/* ═══════════════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(64px + var(--space-20)) var(--space-6) var(--space-20);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-muted) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.hero-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero-platforms {
  display: flex;
  gap: var(--space-3);
}

.platform-tag {
  padding: var(--space-1) var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* ── Buttons ─ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: var(--border-accent);
}

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

.btn-outline:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ── Hero Mockup ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup {
  width: 100%;
  max-width: 560px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #C45B5B; }
.dot-yellow { background: #D9A75B; }
.dot-green { background: #7BAE7F; }

.mockup-title {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-left: var(--space-4);
}

.mockup-body {
  display: grid;
  grid-template-columns: 48px 200px 1fr;
  height: 360px;
}

.mockup-sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.mockup-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
}

.mockup-nav-item {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.mockup-nav-item.active {
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
}

.mockup-list {
  background: var(--bg-app);
  border-right: 1px solid var(--border-subtle);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mockup-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mockup-list-item.active {
  background: var(--bg-elevated);
}

.mockup-list-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-hover);
  flex-shrink: 0;
}

.mockup-list-text {
  flex: 1;
  min-width: 0;
}

.mockup-list-name {
  height: 10px;
  background: var(--text-primary);
  border-radius: 4px;
  margin-bottom: 6px;
  width: 70%;
}

.mockup-list-msg {
  height: 8px;
  background: var(--text-tertiary);
  border-radius: 4px;
  width: 90%;
}

.mockup-main {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mockup-msg {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.mockup-msg-left {
  flex-direction: row;
}

.mockup-msg-right {
  flex-direction: row-reverse;
}

.mockup-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-hover);
  flex-shrink: 0;
}

.mockup-msg-bubble {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  max-width: 70%;
}

.mockup-msg-right .mockup-msg-bubble {
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
}

.mockup-input-bar {
  margin-top: auto;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.mockup-input-placeholder {
  height: 12px;
  background: var(--text-tertiary);
  border-radius: 4px;
  width: 40%;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════
   Section Common
   ═══════════════════════════════════════════════════════ */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-24) var(--space-6);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-label {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════
   Features Section
   ═══════════════════════════════════════════════════════ */
.features {
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  padding: var(--space-8);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  color: var(--icon-color, var(--accent));
}

.feature-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   Preview Section
   ═══════════════════════════════════════════════════════ */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.preview-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.preview-img-wrapper {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-app);
}

.preview-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.preview-card:hover .preview-img-wrapper img {
  transform: scale(1.05);
}

.preview-label {
  display: block;
  padding: var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
}

/* ═══════════════════════════════════════════════════════
   Stats Section
   ══════════════════════════════════════════════════════ */
.stats {
  background: var(--bg-app);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: var(--text-5xl);
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ═══════════════════════════════════════════════════════
   Roles Section
   ═══════════════════════════════════════════════════════ */
.roles {
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-subtle);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.role-card {
  padding: var(--space-10);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--role-color);
}

.role-founder {
  --role-color: var(--role-founder);
}

.role-investor {
  --role-color: var(--role-investor);
}

.role-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--role-color);
  color: var(--text-inverse);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--space-5);
}

.role-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.role-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.role-card li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.role-card li::before {
  content: '✓';
  color: var(--role-color);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   Download Section
   ═══════════════════════════════════════════════════════ */
.download {
  background: var(--bg-app);
}

.download-card {
  position: relative;
  padding: var(--space-16);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
}

.download-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-muted) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.download-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  position: relative;
}

.download-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-10);
  position: relative;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  position: relative;
}

.download-note {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  position: relative;
}

/* ═══════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════ */
.footer,
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-10) var(--space-6);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--text-md);
  text-decoration: none;
  color: inherit;
}

.footer-brand:hover .logo-text {
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

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

.footer-copy {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-mockup {
    max-width: 480px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-platforms {
    justify-content: center;
  }

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

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

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

  .stats-grid {
    flex-direction: column;
    gap: var(--space-10);
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
    justify-content: center;
  }
}
