/* ============================================================
   page-openrouter.css — OpenRouter 专题 · Apple 极简 (oc-*)
   ============================================================ */

html.theme-apple-minimal #home-nav {
  position: sticky;
  top: 0;
}

#page-openrouter p a,
#page-openrouter .oc-section-head a {
  color: #2997ff;
  font-weight: 500;
  text-underline-offset: 3px;
}

#page-openrouter p a:hover,
#page-openrouter .oc-section-head a:hover {
  text-decoration: underline;
}

/* —— Hero —— */
.oc-hero {
  position: relative;
  padding: 4rem 0 0;
  overflow: hidden;
}

.oc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.oc-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.oc-hero__btn--primary {
  color: #fff;
  background: #1d1d1f;
}

.oc-hero__btn--primary:hover {
  background: #000;
  text-decoration: none;
  color: #fff;
}

.oc-hero__btn--secondary {
  color: #1d1d1f;
  background: #fff;
  border: 1px solid #e5e5ea;
}

.oc-hero__btn--secondary:hover {
  border-color: #d2d2d7;
  background: #f5f5f7;
  text-decoration: none;
  color: #1d1d1f;
}

.oc-hero__specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
}

.oc-spec-pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
  background: #fff;
  border: 1px solid #e5e5ea;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* —— 章节导航 —— */
.oc-section-nav {
  position: sticky;
  top: 4rem;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e5ea;
  margin-top: 2.5rem;
}

.oc-section-nav__list {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.oc-section-nav__list::-webkit-scrollbar {
  display: none;
}

.oc-section-nav__link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #515154;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.oc-section-nav__link:hover {
  background: #f5f5f7;
  color: #1d1d1f;
  text-decoration: none;
}

.oc-section-nav__link.is-active {
  background: #1d1d1f;
  color: #fff;
}

/* —— 通用区块 —— */
.oc-section {
  padding: 5rem 0;
  scroll-margin-top: 7rem;
}

.oc-section--alt {
  background: #fff;
  border-top: 1px solid #e5e5ea;
}

.oc-section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.oc-section-head--left {
  text-align: left;
  max-width: 36rem;
}

/* —— 是什么 · Bento —— */
.oc-about-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .oc-about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }

  .oc-practice-card {
    grid-column: 1 / -1;
  }
}

.oc-bento-card {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.oc-bento-card--dark {
  background: #1d1d1f;
  border-color: transparent;
  color: #fff;
}

.oc-bento-card__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: #f5f5f7;
  color: #1d1d1f;
}

.oc-bento-card--dark .oc-bento-card__ico {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.oc-bento-card__ico i {
  width: 22px;
  height: 22px;
}

.oc-bento-card__title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.oc-bento-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #515154;
}

.oc-bento-card--dark .oc-bento-card__text {
  color: rgba(255, 255, 255, 0.7);
}

.oc-practice-card {
  padding: 1.5rem 1.75rem;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  border-radius: 1.25rem;
}

.oc-practice-card__label {
  margin: 0 0 1rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86868b;
}

.oc-practice-card__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.oc-practice-card__list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
}

.oc-practice-card__list i {
  width: 16px;
  height: 16px;
  color: #86868b;
}

.oc-practice-card__note {
  margin: 0;
  font-size: 12px;
  color: #86868b;
  line-height: 1.5;
}

/* —— 四大支柱 —— */
.oc-pillars {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .oc-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .oc-pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.oc-pillar {
  padding: 1.5rem;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  border-radius: 1.25rem;
  transition: box-shadow 0.2s ease;
}

.oc-pillar:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.oc-pillar__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e5ea;
  color: #1d1d1f;
}

.oc-pillar__ico i {
  width: 20px;
  height: 20px;
}

.oc-pillar__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #1d1d1f;
}

.oc-pillar__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #515154;
}

/* —— 常见主题 —— */
.oc-topics-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .oc-topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .oc-topics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.oc-topic-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 1.25rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.oc-topic-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.oc-topic-card__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #f5f5f7;
  color: #1d1d1f;
}

.oc-topic-card__ico i {
  width: 18px;
  height: 18px;
}

.oc-topic-card__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #1d1d1f;
}

.oc-topic-card__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #515154;
}

/* —— 部署路径 —— */
.oc-deploy-split {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .oc-deploy-split {
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start;
  }

  .oc-deploy-split__aside {
    width: 38%;
    position: sticky;
    top: 7rem;
    flex-shrink: 0;
  }

  .oc-journey-list {
    flex: 1;
    min-width: 0;
  }
}

.oc-journey-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.oc-journey-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e5ea;
}

.oc-journey-item:first-child {
  padding-top: 0;
}

.oc-journey-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.oc-journey-item__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #1d1d1f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.oc-journey-item__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d1d1f;
}

.oc-journey-item__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #515154;
}

/* —— 相关入口 —— */
.oc-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .oc-links-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.oc-link-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 1.25rem;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  border-radius: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.oc-link-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
}

.oc-link-tile i {
  width: 20px;
  height: 20px;
  color: #1d1d1f;
}

.oc-link-tile strong {
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
}

.oc-link-tile span {
  font-size: 12px;
  color: #86868b;
  line-height: 1.4;
}

.oc-link-tile--dark {
  background: #1d1d1f;
  border-color: transparent;
}

.oc-link-tile--dark:hover {
  background: #000;
}

.oc-link-tile--dark i,
.oc-link-tile--dark strong {
  color: #fff;
}

.oc-link-tile--dark span {
  color: rgba(255, 255, 255, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .oc-topic-card:hover,
  .oc-link-tile:hover,
  .oc-pillar:hover {
    transform: none;
  }
}
