/* --------- 
 * 懂虾帝 (dongxiadi.com) - 核心样式表 v2，融合 101 内容
 * --------- */

:root {
  /* 龙虾红主题 (Lobster Orange Accent) */
  --lobster-primary: #ff5a1f; 
  --lobster-light: #ff8552;
  --lobster-dark: #cc3900;
  --lobster-glow: rgba(255, 90, 31, 0.4);
  
  /* 深邃背景 (Deep Dark Theme) */
  --bg-dark: #0F1219;
  --bg-darker: #090B10;
  --bg-card: rgba(26, 29, 36, 0.7);
  --bg-card-hover: rgba(35, 39, 48, 0.9);

  /* 边框与毛玻璃 */
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-light: rgba(255, 255, 255, 0.12);
  --glass-border-highlight: rgba(255, 90, 31, 0.3);
  
  /* 字体颜色 */
  --text-main: #f8f9fa;
  --text-muted: #8b949e;
  --text-accent: #ffb8b8;

  /* 终端配色 */
  --term-green: #3fb950;
  --term-red: #ff7b72;
  --term-yellow: #d2a8ff;
  --term-bg: #161b22;

  /* 间距与尺寸 */
  --max-width: 1400px;
  --nav-height: 70px;

  /* 动画时长 */
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 全局重置与基础 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  background-color: var(--bg-dark);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 10%, rgba(255, 90, 31, 0.05) 0%, transparent 50%);
  background-size: 50px 50px, 50px 50px, 100% 100%;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

/* 渐变文本与辅助色 */
.text-gradient {
  background: linear-gradient(135deg, var(--lobster-light), var(--lobster-primary), #ff9900);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.border-bottom { border-bottom: 1px solid var(--glass-border); }
.border-top { border-top: 1px solid var(--glass-border); }
.margin-t-1 { margin-top: 1rem; }

/* 标记 (Badge) */
.badge {
  background-color: var(--lobster-primary);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: bold;
  vertical-align: top;
  margin-left: 0.3rem;
}

.badge-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 77, 77, 0.15);
  color: var(--lobster-light);
  border: 1px solid rgba(255, 77, 77, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--lobster-primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--lobster-glow);
}

.btn-primary:hover {
  background-color: var(--lobster-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--lobster-glow);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--glass-border-light);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.github-btn {
  font-family: monospace;
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* --- 工具类: Glasscard --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--glass-border-highlight);
  background: var(--bg-card-hover);
}

/* --- Navbar 导航栏 --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition-normal);
  padding: 0 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.05); /* very subtle default line */
}

.navbar.scrolled {
  background: rgba(15, 18, 25, 0.85); /* use bg-dark with opacity */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  transition: var(--transition-normal);
}
.logo:hover {
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  margin-left: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.nav-links a:hover { color: #fff; }

.nav-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-left: auto;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: var(--transition-normal);
}

.search-box:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.search-icon {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-right: 0.6rem;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  width: 150px;
  transition: width 0.3s ease;
}

.search-box input:focus {
  width: 200px;
}
.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* 按钮样式微调 */
.btn-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  font-weight: 500;
}
.btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* --- Hero Section 首屏 --- */
.hero {
  min-height: calc(100vh - var(--nav-height));
  padding-top: calc(var(--nav-height) + 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 2rem;
  position: relative;
  gap: 3rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.hero-content {
  flex: 1.1;
  z-index: 2;
}

.community-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1.2rem;
  background: rgba(255, 90, 31, 0.1);
  color: var(--lobster-light);
  border: 1px solid rgba(255, 90, 31, 0.2);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero-subtitle-bold {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 550px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
}

/* --- Terminal UI --- */
.hero-terminal-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.os-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  background: rgba(15, 18, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  animation: float 6s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.os-tags-row {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.os-tags-row .os-tag {
  position: relative;
  animation: none;
  width: 110px;
  justify-content: center;
}

.tag-mac { animation-delay: 0s; }
.tag-win { animation-delay: 1.5s; background: rgba(25, 25, 30, 0.9); }
.tag-linux { animation-delay: 3s; }

.terminal-window {
  width: 100%;
  max-width: 600px;
  background: var(--term-bg);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  overflow: hidden;
  z-index: 5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terminal-window:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.9);
}

.terminal-header {
  background: rgba(255,255,255,0.02);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
}

.traffic-lights {
  display: flex;
  gap: 0.5rem;
}

.light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.light.close { background: #ff5f56; }
.light.min { background: #ffbd2e; }
.light.max { background: #27c93f; }

.terminal-title {
  position: absolute;
  width: 100%;
  text-align: center;
  left: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  pointer-events: none;
}

.terminal-body {
  padding: 2rem 1.5rem;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.95rem;
  line-height: 1.7;
}

.term-line {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.term-line.indent {
  padding-left: 1.5rem;
}

.term-line.mt-2 {
  margin-top: 1.5rem;
}

.term-prompt { color: var(--lobster-primary); font-weight: bold; }
.term-cmd { color: #f0f6fc; }
.term-check { color: var(--term-green); font-weight: bold; margin-right: 0.4rem; }

.term-list-item {
  color: #f0f6fc;
  justify-content: space-between;
  width: 85%;
}

.term-badge {
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
}
.term-badge.success { background: rgba(63, 185, 80, 0.15); color: var(--term-green); border: 1px solid rgba(63, 185, 80, 0.3); }

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #f0f6fc;
  animation: blink 1s step-end infinite;
  margin-top: 0.5rem;
  vertical-align: middle;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}
.mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--lobster-light);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* --- Sections 通用 --- */
.section { padding: 4rem 2rem; }
.section-darker { background-color: var(--bg-darker); }
.section-container { max-width: var(--max-width); margin: 0 auto; }

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 3rem;
  max-width: 650px;
  margin-left: auto; margin-right: auto;
}

/* 带有右侧按钮的标题栏 */
.header-with-action {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1.5rem;
}
.header-with-action .section-title,
.header-with-action .section-desc {
  text-align: left;
  margin: 0;
}
.header-with-action .section-title { margin-bottom: 0.5rem; }

/* --- Features 特性介绍 --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.feature-card {
  text-align: left;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  background: rgba(18, 20, 26, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(30, 33, 40, 0.8);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.05);
  border-color: rgba(255,255,255,0.15);
}

.feature-card h3 { 
  font-size: 1.3rem; 
  margin-bottom: 1rem; 
  font-weight: 700;
  letter-spacing: 0.5px;
}

.feature-card p { 
  color: var(--text-muted); 
  font-size: 0.95rem; 
  line-height: 1.8; 
  flex-grow: 1; /* Pushes the divider down if text is shorter */
}

.feature-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 1.5rem 0;
}

.feature-target {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Featured Content 精选内容 --- */
.featured-header {
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 3rem;
}
.featured-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.featured-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; }
}

.fc-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.fc-column-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.fc-column-title svg {
  color: var(--lobster-primary);
}
.fc-view-all {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-normal);
}
.fc-view-all:hover {
  color: #fff;
}

.fc-column {
  display: flex;
  flex-direction: column;
}

.fc-card {
  background: rgba(18, 20, 26, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  flex: 1; /* Make cards stretch to fill remaining space equally if needed */
  min-height: 140px; /* Provide a comfortable minimum height */
}
.fc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
}

.fc-card-tags {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.fc-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}
.fc-tag.primary { background: rgba(43, 108, 115, 0.2); color: #5eead4; }
.fc-tag.success { background: rgba(63, 185, 80, 0.15); color: #3fb950; }
.fc-tag.warning { background: rgba(255, 171, 0, 0.15); color: #ffab00; }
.fc-tag.hot { background: rgba(255, 90, 31, 0.2); color: var(--lobster-primary); }
.fc-tag.new { background: rgba(63, 185, 80, 0.2); color: var(--term-green); }
.fc-tag.recommend { background: rgba(255, 171, 0, 0.2); color: #eab308; }

.fc-card-longtag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  background: rgba(43, 108, 115, 0.2);
  color: #5eead4;
  margin-bottom: 1rem;
}

.fc-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.fc-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.fc-card-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
  align-items: center;
}
.fc-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.fc-card-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--lobster-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: auto; /* Push link to the bottom */
  padding-top: 1rem;
}

/* --- 学习路线 (Learning Path) --- */
.path-stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 400px));
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.path-stage-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: rgba(18, 20, 26, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.path-stage-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stage-header {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 1rem;
}

.stage-num {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 0.8;
  opacity: 0.3;
  transition: var(--transition-normal);
}

.path-stage-card:hover .stage-num {
  opacity: 0.8;
}

.stage-title h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.stage-badge {
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 4px;
}
.stage-badge.alert {
  background: rgba(255, 90, 31, 0.2);
  color: var(--lobster-light);
}

.stage-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  min-height: 45px;
}

.stage-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.stage-checklist li {
  color: #d1d5db;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}

.check-icon {
  color: var(--term-green);
  font-weight: bold;
}

.stage-outcome {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.outcome-label {
  font-weight: bold;
  color: #fff;
}

.highlight-outcome {
  color: var(--lobster-light);
}
.highlight-outcome .outcome-label {
  color: var(--lobster-primary);
}

/* 实战营 */
.camp-item { margin-top: 1.5rem; text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; }
.camp-card { margin-bottom: 0px; border: 1px solid rgba(255,90,31,0.3); background: rgba(255,90,31,0.03); padding: 2rem 2rem; border-radius: 16px; transition: var(--transition-normal); }
.camp-card:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(255,90,31,0.1); border-color: var(--lobster-primary); }
.camp-card .card-tag { display: inline-block; padding: 0.4rem 1rem; background: var(--lobster-primary); color: white; font-size: 0.85rem; border-radius: 20px; margin-bottom: 1.5rem; font-weight: bold; letter-spacing: 1px; }
.camp-card h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.camp-card p { color: var(--text-muted); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- 精选技能 (Skills Categories) --- */
.skills-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-category { 
  padding: 1.5rem; 
  display: flex; 
  flex-direction: column; 
  border-radius: 12px;
}
.skill-category:hover { transform: translateY(-5px); }

.cat-header {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.5rem; 
}
.cat-icon { font-size: 1.5rem; }
.cat-header h4 { font-size: 1.2rem; flex: 1; margin: 0; }
.skill-count {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.skill-list { display: flex; flex-direction: column; gap: 0.5rem; }
.skill-list a {
  display: flex; justify-content: space-between; align-items: center;
  font-family: monospace; font-size: 0.95rem; font-weight: 500; color: #fff;
  padding: 0.6rem 0.8rem; background: rgba(255,255,255,0.04);
  border-radius: 6px; border: 1px solid transparent;
  transition: var(--transition-normal);
}
.skill-list a span { font-family: 'Inter', 'Noto Sans SC', sans-serif; font-size: 0.8rem; color: var(--text-muted); font-weight: 400; text-align: right;}
.skill-list a:hover {
  background: var(--bg-card-hover);
  border-color: var(--lobster-glow);
  transform: translateX(3px);
}

/* --- 全网资源 (Resource Masonry) --- */
.resource-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  display: block;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
}

.resource-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.3); }
.resource-card.border-accent:hover { border-color: var(--lobster-primary); }

.r-badge {
  display: inline-block; font-size: 0.75rem; font-weight: bold;
  padding: 0.3rem 0.6rem; border-radius: 4px; margin-bottom: 1rem;
  text-transform: uppercase;
}
.bg-primary { background: var(--lobster-primary); color: #fff; }
.bg-secondary { background: rgba(255,255,255,0.15); color: #fff; }
.bg-warning { background: #d97706; color: #fff; }
.bg-danger { background: #dc2626; color: #fff; }

.resource-card h4 { font-size: 1.3rem; margin-bottom: 0.8rem; line-height: 1.4; }
.resource-card p { font-size: 0.95rem; color: var(--text-muted); }

/* --- Footer --- */
.footer {
  background-color: var(--bg-darker);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 3rem 2rem 2rem;
}
.footer-content {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; margin-bottom: 3rem;
}
.footer-brand { flex: 1; min-width: 300px; }
.footer-name { font-size: 1.5rem; font-weight: 800; }
.footer-brand p { color: var(--text-muted); margin-top: 1.2rem; max-width: 350px; }

.footer-links { display: flex; gap: 4rem; }
.link-col { display: flex; flex-direction: column; gap: 1rem; }
.link-col strong { color: #fff; font-size: 1.1rem; margin-bottom: 0.5rem; }
.link-col a { color: var(--text-muted); transition: var(--transition-normal); }
.link-col a:hover { color: var(--lobster-primary); text-decoration: underline; }

.footer-bottom {
  text-align: center; color: #555; font-size: 0.9rem;
  max-width: var(--max-width); margin: 0 auto;
  padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- 动画 --- */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-up.visible, .fade-in-right.visible { opacity: 1; transform: translate(0); }
.stagger-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.stagger-in.visible { opacity: 1; transform: translateY(0); }

/* --- 响应式 --- */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .header-with-action { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .nav-links { gap: 1.2rem; }
}

@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding-top: 8rem; gap: 3rem; }
  .hero-content { padding-right: 0; display: flex; flex-direction: column; align-items: center; }
  .hero-title { font-size: 2.8rem; }
  .hero-actions { justify-content: center; }
  
  .nav-links, .hide-mobile { display: none; /* 移动端精简菜单 */ }
  .timeline::before { left: 20px; }
  .timeline-marker { width: 30px; height: 30px; font-size: 0.8rem; }
  .timeline-item { gap: 1rem; }
  
  .footer-links { flex-direction: column; gap: 2rem; }
}
