/* 特工17游戏站 (www.agent17yx.com) 样式表 - 象牙白 × 翡翠绿 × 暖琥珀 明亮浅色主题 */
:root {
  --bg-dark: #faf8f5;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-subtle: #f3efe8;
  --bg-header: rgba(255, 255, 255, 0.9);
  --bg-header-scrolled: rgba(255, 255, 255, 0.98);

  --color-nude: #1c1917;
  --color-nude-light: #292524;
  --color-nude-dark: #44403c;
  --color-gold: #059669;
  --color-gold-hover: #047857;
  --color-gold-dim: rgba(5, 150, 105, 0.1);
  --color-gold-glow: rgba(5, 150, 105, 0.25);
  --color-accent-emerald: #ea580c;
  --color-warm-amber: #d97706;

  --text-main: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #78716c;

  --border-subtle: #e7e2da;
  --border-strong: #d6cfc4;
  --shadow-card: 0 6px 22px rgba(28, 25, 23, 0.05);
  --shadow-hover: 0 14px 34px rgba(5, 150, 105, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition-fast: 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: 0.42s 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-dark);
  background-image:
    radial-gradient(ellipse 75% 45% at 50% -10%, rgba(5, 150, 105, 0.08), transparent 60%),
    radial-gradient(ellipse 55% 35% at 96% 22%, rgba(234, 88, 12, 0.06), transparent 60%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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(--color-gold);
  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;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* 顶部导航 */
.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: background var(--transition-fast), box-shadow var(--transition-fast);
}

.site-header.scrolled {
  background: var(--bg-header-scrolled);
  box-shadow: 0 6px 24px rgba(28, 25, 23, 0.07);
}

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

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

.brand-logo {
  height: 42px;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.06);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.brand-link:hover .brand-logo {
  transform: scale(1.03);
  border-color: var(--color-gold);
}

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

.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.8px;
}

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

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 2px;
  letter-spacing: 0.3px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-accent-emerald));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 9px 20px;
  font-size: 0.88rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.26);
}

.nav-cta:hover,
.nav-cta.active {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.36);
}

.nav-cta::after {
  display: none;
}

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

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  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: #d6cfc4;
}

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

.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.96rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.26);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.35);
}

.btn-outline {
  background: #ffffff;
  color: var(--color-gold-hover);
  border-color: #a7f3d0;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.04);
}

.btn-outline:hover {
  background: #ecfdf5;
  color: #065f46;
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 15px 38px;
  font-size: 1.08rem;
  border-radius: 10px;
}

/* 首页 Hero 视觉区 - 象牙暖白通透风 */
.hero-banner {
  position: relative;
  padding: 62px 0 48px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(250, 248, 245, 0.96) 0%, rgba(245, 242, 235, 0.9) 55%, rgba(236, 253, 245, 0.92) 100%),
    url("../images/hero_banner.jpg") center/cover no-repeat;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 38px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.4px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-emerald);
  box-shadow: 0 0 8px rgba(234, 88, 12, 0.45);
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.05rem);
  font-weight: 800;
  line-height: 1.24;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.hero-title span {
  background: linear-gradient(90deg, #059669, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.03rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 28px;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

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

.hero-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-gold);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-info-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 14px 36px rgba(28, 25, 23, 0.08);
}

.hero-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-info-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
}

.version-pill {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  font-weight: 600;
}

.hero-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-info-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-bottom: 10px;
  border-bottom: 1px dashed #e7e2da;
}

.hero-info-list li span:first-child {
  color: var(--text-muted);
}

.hero-info-list li strong {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

.quick-code-box {
  background: #f8faf8;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quick-code-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.quick-code-meta code {
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-gold-hover);
  margin-top: 2px;
}

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

.section-block-alt {
  background: linear-gradient(180deg, #f3efe8 0%, #faf8f5 100%);
  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: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.page-hero {
  padding: 44px 0 32px;
  background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 36px;
}

.page-title {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  line-height: 1.3;
}

.page-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-accent-emerald));
  margin-top: 10px;
  border-radius: 2px;
}

.page-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 780px;
  line-height: 1.72;
}

/* 通用卡片 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: #6ee7b7;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* 轮播图组件 */
.carousel-section {
  padding: 46px 0 24px;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: #e7e2da;
  box-shadow: 0 14px 36px rgba(28, 25, 23, 0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.65s 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: 500px;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 18px;
  left: 22px;
  right: 160px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.12);
}

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

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

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.12);
  transition: all var(--transition-fast);
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--color-gold);
  color: #ffffff;
  border-color: var(--color-gold);
  transform: translateY(-50%) scale(1.06);
}

.carousel-btn.prev {
  left: 18px;
}

.carousel-btn.next {
  right: 18px;
}

.carousel-dots {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  z-index: 10;
}

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

.carousel-dot.active {
  width: 32px;
  background: var(--color-gold);
}

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

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

.feature-card:hover {
  border-color: #6ee7b7;
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-img-wrapper {
  height: 215px;
  overflow: hidden;
  background: #e7e2da;
  position: relative;
}

.feature-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.feature-content {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feature-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.feature-title {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.38;
}

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

/* 首页更新动态 + 礼包速览双栏 */
.dual-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
}

.mini-update-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mini-update-item {
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  background: #faf8f5;
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.mini-update-item:hover {
  border-color: #6ee7b7;
  background: #ffffff;
}

.mini-update-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.mini-update-ver {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.98rem;
}

.mini-update-tag {
  font-size: 0.74rem;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
}

.mini-update-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.62;
}

.quick-codes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #faf8f5;
  border: 1px solid var(--border-subtle);
}

.quick-code-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-code-name {
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.quick-code-val {
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.98rem;
  color: var(--color-gold-hover);
  font-weight: 700;
}

/* 攻略专栏网格与列表 */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

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

.guide-card:hover {
  transform: translateY(-5px);
  border-color: #6ee7b7;
  box-shadow: var(--shadow-hover);
}

.guide-thumb {
  height: 196px;
  overflow: hidden;
  background: #e7e2da;
}

.guide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.guide-card:hover .guide-thumb img {
  transform: scale(1.06);
}

.guide-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.guide-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--color-gold-hover);
  font-weight: 600;
  margin-bottom: 10px;
}

.guide-name {
  font-size: 1.12rem;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.42;
}

.guide-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex: 1;
  line-height: 1.65;
}

/* FAQ 折叠问答组件 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(28, 25, 23, 0.03);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item.open {
  border-color: #6ee7b7;
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.08);
}

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

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

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

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

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

.faq-answer-inner {
  padding: 14px 22px 20px;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.75;
  border-top: 1px solid #f3efe8;
}

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

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

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

.article-toc-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.article-toc a:hover,
.article-toc a.active {
  color: var(--color-gold-hover);
  background: #ecfdf5;
  border-left-color: var(--color-gold);
}

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

.article-title {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--color-gold-hover);
  font-weight: 500;
}

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

.article-body h2 {
  font-size: 1.38rem;
  color: var(--text-main);
  margin: 34px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--color-gold);
  scroll-margin-top: 96px;
}

.article-body h3 {
  font-size: 1.14rem;
  color: #065f46;
  margin: 24px 0 12px;
  scroll-margin-top: 96px;
}

.article-body p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.82;
}

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

.article-body li {
  margin-bottom: 9px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.article-body code,
.notice-box code,
.faq-answer-inner code,
.card code {
  font-family: "Consolas", "Monaco", monospace;
  background: #ecfdf5;
  color: #047857;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 600;
}

.notice-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-left: 4px solid var(--color-gold);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  color: #064e3b;
  font-size: 0.94rem;
  line-height: 1.72;
}

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

.related-links h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.08rem;
  color: var(--text-main);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.related-card {
  display: block;
  padding: 14px 16px;
  background: #faf8f5;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.related-card:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-hover);
  background: #ecfdf5;
}

/* 礼包码筛选与表格模块 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 0 22px;
}

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

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

.filter-tab:hover,
.filter-tab.active {
  background: var(--color-gold);
  color: #ffffff;
  border-color: var(--color-gold);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.24);
}

.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-search::placeholder {
  color: var(--text-muted);
}

.code-section-title {
  font-size: 1.3rem;
  color: var(--text-main);
  margin: 30px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--color-gold);
}

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

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

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

.code-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #f3efe8;
  color: var(--text-secondary);
  font-size: 0.91rem;
  vertical-align: middle;
}

.code-table tbody tr:hover {
  background: #faf8f5;
}

.code-badge {
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.98rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
  display: inline-block;
  white-space: nowrap;
}

.btn-copy {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

/* 下载专区模块 */
.download-hero {
  text-align: center;
  padding: 58px 28px;
  background: linear-gradient(145deg, #ffffff 0%, #ecfdf5 55%, #fff7ed 100%);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
  box-shadow: 0 14px 36px rgba(5, 150, 105, 0.08);
}

.download-title {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.download-desc {
  font-size: 1.04rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 34px;
  line-height: 1.75;
}

.download-meta-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 860px;
  margin: 36px auto 0;
  padding-top: 26px;
  border-top: 1px solid #d1fae5;
}

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

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

.download-meta-item span {
  color: var(--text-main);
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  margin-top: 5px;
}

/* 更新日志时间轴 */
.timeline {
  position: relative;
  margin: 24px 0 60px;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-gold), #d6cfc4);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.16);
}

.timeline-content {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f3efe8;
  padding-bottom: 12px;
}

.timeline-version {
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-date {
  font-size: 0.8rem;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 11px;
  border-radius: 999px;
  font-weight: 600;
}

.timeline-subhead {
  color: #047857;
  font-size: 0.94rem;
  font-weight: 700;
  margin: 14px 0 8px;
}

.timeline-list {
  padding-left: 20px;
}

.timeline-list li {
  margin-bottom: 7px;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* 特色交替布局 */
.feature-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: center;
  margin-bottom: 32px;
}

.feature-showcase.reverse .feature-showcase-media {
  order: -1;
}

.feature-showcase-media img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* 底部专区 - 明亮浅暖灰，无任何联系方式 */
.site-footer {
  background: #f3efe8;
  border-top: 1px solid var(--border-subtle);
  padding: 44px 0 34px;
  margin-top: 56px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
  list-style: none;
}

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

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.72;
  max-width: 720px;
}

/* 悬浮返回顶部按钮 & Toast 提示 */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  color: var(--color-gold);
  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: 0 6px 20px rgba(28, 25, 23, 0.12);
}

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

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

.toast-notice {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid #6ee7b7;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.14);
  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(18px);
  transition: opacity 0.55s ease, transform 0.55s 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) {
  .hero-grid,
  .dual-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
    order: -1;
  }

  .features-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 22px 24px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 14px 30px rgba(28, 25, 23, 0.1);
    gap: 12px;
  }

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

  .nav-link {
    padding: 10px 4px;
  }

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

  .hero-stats,
  .download-meta-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-grid,
  .guide-grid,
  .feature-showcase {
    grid-template-columns: 1fr;
  }

  .feature-showcase.reverse .feature-showcase-media {
    order: 0;
  }

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

  .carousel-caption {
    left: 14px;
    right: 14px;
    bottom: 52px;
    padding: 14px 16px;
  }

  .carousel-dots {
    right: 14px;
    bottom: 12px;
  }

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