/* PostSingle01 测试模板样式 — 配合 /html/postsingle01_en.html + postsingle01.init.js */

[data-postsingle-section].postsingle01-section {
  --postsingle01-accent: #6366f1;
  --postsingle01-accent-soft: color-mix(in srgb, var(--postsingle01-accent) 14%, transparent);
  --postsingle01-surface: color-mix(in srgb, var(--postsingle01-accent) 6%, #fff);
}

[data-postsingle-section].postsingle01-section .postsingle01-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--postsingle01-accent);
}

[data-postsingle-section].postsingle01-section .postsingle01-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--postsingle01-accent) 18%, transparent);
}

[data-postsingle-section].postsingle01-section .postsingle01-gallery-shell {
  box-shadow:
    0 24px 48px -24px color-mix(in srgb, var(--postsingle01-accent) 35%, transparent),
    0 0 0 1px color-mix(in srgb, var(--postsingle01-accent) 12%, transparent);
  border-radius: 1rem;
  background: var(--postsingle01-surface);
  padding: 0.75rem;
}

[data-postsingle-section].postsingle01-section .postsingle01-gallery-main {
  border-radius: 0.75rem;
  background: #0f172a;
}

[data-postsingle-section].postsingle01-section .postsingle01-gallery-img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

[data-postsingle-section].postsingle01-section .postsingle01-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

[data-postsingle-section].postsingle01-section .postsingle01-gallery-nav:hover {
  transform: translateY(-50%) scale(1.05);
  background: #fff;
}

[data-postsingle-section].postsingle01-section .postsingle01-gallery-nav--prev {
  left: 1rem;
}

[data-postsingle-section].postsingle01-section .postsingle01-gallery-nav--next {
  right: 1rem;
}

[data-postsingle-section].postsingle01-section .postsingle01-gallery-counter {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

[data-postsingle-section].postsingle01-section .postsingle01-gallery-thumbs .postsingle01-thumb-slide {
  overflow: hidden;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

[data-postsingle-section].postsingle01-section .postsingle01-gallery-thumbs .postsingle01-thumb-slide img {
  display: block;
  width: 100%;
  height: 4.5rem;
  object-fit: cover;
}

[data-postsingle-section].postsingle01-section
  .postsingle01-gallery-thumbs
  .swiper-slide-thumb-active.postsingle01-thumb-slide {
  border-color: var(--postsingle01-accent);
  opacity: 1;
}

[data-postsingle-section].postsingle01-section .postsingle01-article {
  background: linear-gradient(180deg, var(--postsingle01-surface) 0%, #fff 120px);
}

[data-postsingle-section].postsingle01-section .postsingle01-metadata-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
}

[data-postsingle-section].postsingle01-section .postsingle01-tab {
  border: 1px solid color-mix(in srgb, var(--postsingle01-accent) 22%, transparent);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.25rem;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

[data-postsingle-section].postsingle01-section .postsingle01-tab.post-single-tab--active {
  border-color: var(--postsingle01-accent);
  background: var(--postsingle01-accent-soft);
  color: var(--postsingle01-accent);
  font-weight: 600;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--postsingle01-accent) 18%, transparent);
}

[data-postsingle-section].postsingle01-section .postsingle01-tab-panel-inner {
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--postsingle01-accent) 14%, #e2e8f0);
}

[data-postsingle-section].postsingle01-section .postsingle01-chip {
  display: inline-block;
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

[data-postsingle-section].postsingle01-section .postsingle01-chip:hover {
  transform: translateY(-1px);
}

[data-postsingle-section].postsingle01-section .postsingle01-chip--tag {
  background: var(--postsingle01-accent-soft);
  color: var(--postsingle01-accent);
}

[data-postsingle-section].postsingle01-section .postsingle01-chip--category {
  border: 1px solid color-mix(in srgb, var(--postsingle01-accent) 24%, transparent);
  color: #334155;
}

[data-postsingle-section].postsingle01-section .page-markdown-content__body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}
