.starter-theme {
  color: #18212f;
  background: #f7f9fc;
  min-height: 100vh;
}

/* ===== 页头 ===== */
.starter-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px);
  min-height: 64px;
}

/* 品牌区 */
.starter-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  display: block;
  color: #2563eb;
}

.brand-text {
  white-space: nowrap;
}

/* 导航与操作区容器 */
.header-nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* 导航 */
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  color: #475569;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* 操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* 搜索表单 */
.header-search {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.header-search:focus-within {
  border-color: #2563eb;
}

.search-input {
  width: 140px;
  padding: 7px 12px;
  border: none;
  background: transparent;
  color: #0f172a;
  font-size: 14px;
  outline: none;
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s;
}

.search-btn:hover {
  color: #2563eb;
}

/* CTA 按钮 */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.header-cta:hover {
  background: #1d4ed8;
}

.header-cta:active {
  transform: scale(0.97);
}

/* 汉堡菜单按钮（桌面隐藏） */
.header-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.header-toggle:hover {
  background: #f1f5f9;
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* 汉堡菜单打开动画 */
.header-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}

.header-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== 页脚 ===== */
.starter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  color: #64748b;
}

/* ===== 主内容区 ===== */
.starter-main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0;
}

.starter-hero {
  padding: 48px 0;
}

.starter-hero.compact {
  padding: 24px 0;
}

.starter-kicker {
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.starter-hero h1,
.starter-article h1 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
}

/* ===== 网格与卡片 ===== */
.starter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.starter-card,
.starter-article {
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.starter-card a {
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.starter-card p,
.starter-summary {
  color: #64748b;
}

.starter-empty {
  color: #64748b;
}

/* ===== 移动端适配 ===== */
@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /* 汉堡按钮显示 */
  .header-toggle {
    display: flex;
  }

  /* 导航包装器：默认隐藏，点击展开 */
  .header-nav-wrap {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 16px;
    padding: 16px 0 8px;
    border-top: 1px solid #e5e7eb;
    margin-top: 10px;
  }

  .header-nav-wrap.is-open {
    display: flex;
  }

  .header-nav {
    flex-direction: column;
    gap: 2px;
  }

  .nav-link {
    padding: 10px 14px;
    font-size: 16px;
  }

  .header-actions {
    flex-direction: column;
    gap: 10px;
  }

  .header-search {
    width: 100%;
  }

  .search-input {
    width: 100%;
    flex: 1;
  }

  .header-cta {
    justify-content: center;
  }

  .starter-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
