/* 特工17中文攻略网 (www.tegong17yx.com) 样式表 - 浅薰衣草白 × 靛紫 × 珊瑚红 明亮浅色主题 */
:root {
  --bg-page: #f8f7fc;
  --bg-surface: #ffffff;
  --bg-soft: #f2effa;
  --bg-header: rgba(255, 255, 255, 0.92);

  --brand-primary: #6d28d9;
  --brand-primary-hover: #5b21b6;
  --brand-primary-soft: #f5f3ff;
  --brand-primary-border: #ddd6fe;
  --brand-accent: #e11d48;
  --brand-accent-soft: #fff1f2;
  --brand-accent-border: #fecdd3;

  --text-main: #18181b;
  --text-secondary: #3f3f46;
  --text-muted: #71717a;

  --border-subtle: #e4e4ec;
  --border-strong: #d4d1e2;
  --shadow-sm: 0 4px 16px rgba(109, 40, 217, 0.05);
  --shadow-md: 0 12px 30px rgba(109, 40, 217, 0.09);
  --shadow-lg: 0 18px 42px rgba(109, 40, 217, 0.13);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition-fast: 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(ellipse 70% 40% at 15% 0%, rgba(109, 40, 217, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 35% at 88% 12%, rgba(225, 29, 72, 0.05), transparent 60%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 22px;
}

/* 阅读进度条 */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  z-index: 1100;
  transition: width 0.1s linear;
}

/* 顶部通告条 */
.top-announce {
  background: linear-gradient(90deg, #f5f3ff 0%, #fff1f2 100%);
  border-bottom: 1px solid var(--brand-primary-border);
  padding: 8px 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-align: center;
}

.top-announce strong {
  color: var(--brand-primary);
}

.top-announce a {
  color: var(--brand-accent);
  font-weight: 600;
  margin-left: 8px;
  text-decoration: underline;
}

/* 顶部导航 - 胶囊高亮风 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(24, 24, 27, 0.07);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 18px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  height: 40px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--brand-primary-border);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-size: 1.26rem;
  font-weight: 800;
  color: var(--text-main);
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--brand-primary);
  letter-spacing: 1.8px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 999px;
}

.nav-link:hover {
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.nav-link.active {
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
  box-shadow: inset 0 0 0 1px var(--brand-primary-border);
}

.nav-cta {
  margin-left: 6px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.25);
}

.nav-cta:hover,
.nav-cta.active {
  background: linear-gradient(135deg, var(--brand-primary-hover) 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.34);
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--brand-primary-border);
  border-radius: 10px;
  cursor: pointer;
  padding: 9px 10px;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  flex: 1 0 auto;
}

/* 面包屑 */
.breadcrumb-bar {
  padding: 16px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li + li::before {
  content: "›";
  color: #a1a1aa;
}

.breadcrumb-list a:hover {
  color: var(--brand-primary);
}

.breadcrumb-list .current {
  color: var(--text-main);
  font-weight: 600;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-primary-hover) 0%, #7c3aed 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, var(--brand-accent) 0%, #f43f5e 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.22);
}

.btn-accent:hover {
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.32);
}

.btn-outline {
  background: #ffffff;
  color: var(--brand-primary);
  border-color: var(--brand-primary-border);
}

.btn-outline:hover {
  background: var(--brand-primary-soft);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 15px 38px;
  font-size: 1.06rem;
}

/* 居中聚焦式 Hero 首屏（全新布局） */
.hero-centered {
  position: relative;
  padding: 58px 0 44px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-centered::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(248, 247, 252, 0.92) 0%, rgba(245, 243, 255, 0.9) 55%, rgba(248, 247, 252, 0.97) 100%),
    url("../images/hero_banner.jpg") center/cover no-repeat;
  z-index: -1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--brand-primary-border);
  color: var(--brand-primary);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-accent);
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.24;
  color: var(--text-main);
  margin: 0 auto 16px;
  max-width: 820px;
}

.hero-title span {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 28px;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto 22px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
}

.metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-primary);
  display: block;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: block;
}

.hero-strip {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--brand-primary-border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.hero-strip-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-strip-info code {
  font-family: "Consolas", "Monaco", monospace;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid var(--brand-primary-border);
}

/* 通用区块 */
.section-block {
  padding: 52px 0;
}

.section-block-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.page-hero {
  padding: 40px 0 30px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 34px;
}

.page-title {
  font-size: clamp(1.6rem, 2.7vw, 2.15rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.page-desc {
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 760px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  border-color: var(--brand-primary-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 首页新布局：主内容 + 右侧礼包码边栏 */
.hub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 26px;
  align-items: start;
}

/* 横向攻略卡片列表（区别于前两站3列竖卡） */
.guide-list-horizontal {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.guide-hcard {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.guide-hcard:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary-border);
  box-shadow: var(--shadow-md);
}

.guide-hcard-media {
  height: 100%;
  min-height: 175px;
  overflow: hidden;
  background: var(--bg-soft);
}

.guide-hcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.guide-hcard:hover .guide-hcard-media img {
  transform: scale(1.05);
}

.guide-hcard-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}

.tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.badge-purple {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
  border: 1px solid var(--brand-primary-border);
  padding: 2px 10px;
  border-radius: 999px;
}

.badge-rose {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--brand-accent);
  background: var(--brand-accent-soft);
  border: 1px solid var(--brand-accent-border);
  padding: 2px 10px;
  border-radius: 999px;
}

.guide-hcard-title {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
}

.guide-hcard-desc {
  font-size: 0.89rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex: 1;
}

/* 边栏快捷礼包码 */
.sidebar-codes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.code-mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
}

.code-mini-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.code-mini-item code {
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-primary);
}

/* 特性网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.feature-img-wrapper {
  height: 205px;
  overflow: hidden;
  background: var(--bg-soft);
}

.feature-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.feature-card:hover .feature-img-wrapper img {
  transform: scale(1.06);
}

.feature-content {
  padding: 20px 22px 22px;
}

.feature-title {
  font-size: 1.15rem;
  color: var(--text-main);
  margin: 10px 0 8px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.68;
}

/* 轮播画廊 */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  box-shadow: var(--shadow-md);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
  touch-action: pan-y;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 150px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid #ffffff;
  box-shadow: 0 8px 24px rgba(24, 24, 27, 0.12);
}

.carousel-caption h3 {
  font-size: 1.18rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.carousel-caption p {
  font-size: 0.89rem;
  color: var(--text-secondary);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-subtle);
  color: var(--brand-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.12);
  z-index: 10;
  transition: all var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 22px;
  right: 22px;
  display: flex;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  z-index: 10;
}

.carousel-dot {
  width: 16px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: #d4d1e2;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  width: 30px;
  background: var(--brand-primary);
}

/* 更新 + FAQ 双栏并排 */
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.update-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}

.update-featured {
  grid-column: 1 / -1;
  border-color: var(--brand-primary-border);
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}

.update-list {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.update-list li {
  margin-bottom: 6px;
}

.update-subhead {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 12px 0 6px;
}

/* FAQ 折叠 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item.open {
  border-color: var(--brand-primary-border);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 20px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-question:hover {
  color: var(--brand-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--brand-primary);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 12px 20px 18px;
  font-size: 0.91rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--bg-soft);
}

/* 下载页左右双栏布局 */
.download-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: stretch;
  margin-bottom: 34px;
}

.download-main-card {
  background: linear-gradient(145deg, #ffffff 0%, #f5f3ff 62%, #fff1f2 100%);
  border: 1px solid var(--brand-primary-border);
  border-radius: var(--radius-lg);
  padding: 42px 34px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.download-title {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.download-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.75;
}

.download-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.download-meta-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.download-meta-box strong {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

.download-meta-box span {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
}

/* 礼包码筛选与表格 */
.hot-codes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 28px;
}

.hot-code-card {
  background: #ffffff;
  border: 1px solid var(--brand-primary-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.hot-code-card code {
  font-family: "Consolas", "Monaco", monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0 18px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 0.87rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.code-search {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--text-main);
  font-size: 0.9rem;
  min-width: 240px;
}

.code-section-title {
  font-size: 1.24rem;
  color: var(--text-main);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--brand-primary);
}

.code-table-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.code-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.code-table th {
  background: var(--bg-soft);
  color: var(--text-main);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.89rem;
  white-space: nowrap;
}

.code-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f2effa;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.code-badge {
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
  border: 1px solid var(--brand-primary-border);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
}

.btn-copy {
  background: var(--brand-primary-soft);
  border: 1px solid var(--brand-primary-border);
  color: var(--brand-primary);
  padding: 6px 14px;
  font-size: 0.83rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-copy:hover,
.btn-copy.copied {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

/* 文章页与目录 */
.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding-top: 24px;
  margin-bottom: 50px;
}

.article-layout.single-col {
  grid-template-columns: minmax(0, 1fr);
}

.article-toc {
  position: sticky;
  top: 92px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.article-toc-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.article-toc a {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  padding: 5px 10px;
  border-radius: 6px;
}

.article-toc a:hover {
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.article-body {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 34px 38px;
  box-shadow: var(--shadow-sm);
}

.article-header {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-title {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 12px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--brand-primary);
  font-weight: 500;
}

.article-body h2 {
  font-size: 1.34rem;
  color: var(--text-main);
  margin: 30px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--brand-primary);
  scroll-margin-top: 92px;
}

.article-body h3 {
  font-size: 1.12rem;
  color: var(--brand-primary-hover);
  margin: 22px 0 10px;
  scroll-margin-top: 92px;
}

.article-body p,
.article-body li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.notice-box {
  background: var(--brand-primary-soft);
  border: 1px solid var(--brand-primary-border);
  border-left: 4px solid var(--brand-primary);
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  margin: 18px 0;
  color: #3b0764;
  font-size: 0.93rem;
}

.article-body code,
.notice-box code,
.faq-answer-inner code,
.card code {
  font-family: "Consolas", "Monaco", monospace;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 600;
}

.related-links {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.related-card {
  display: block;
  padding: 13px 15px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.89rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.related-card:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

/* 三列紧凑浅色页脚（无任何联系方式） */
.site-footer {
  background: #f1eef9;
  border-top: 1px solid var(--border-subtle);
  padding: 44px 0 32px;
  margin-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 26px;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.footer-links-col {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

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

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* 返回顶部 & Toast */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--brand-primary-border);
  color: var(--brand-primary);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-fast);
  z-index: 950;
  box-shadow: var(--shadow-sm);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

.toast-notice {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(20px);
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--brand-primary-border);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s ease;
  z-index: 1200;
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 响应式 */
@media (max-width: 1024px) {
  .hub-layout,
  .split-grid,
  .download-split,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
  }

  .features-grid,
  .hot-codes-grid,
  .update-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 22px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    gap: 8px;
  }

  .nav-list.show {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-metrics-grid,
  .features-grid,
  .hot-codes-grid,
  .update-cards-grid,
  .guide-hcard {
    grid-template-columns: 1fr;
  }

  .guide-hcard-media {
    height: 190px;
  }

  .carousel-slide img {
    height: 290px;
  }

  .carousel-caption {
    left: 14px;
    right: 14px;
    bottom: 50px;
    padding: 12px 14px;
  }

  .article-body {
    padding: 22px 18px;
  }
}
