/* ========================================
   page-home 专属样式
   移动端优先 + 框景首屏 + 数据看板 + 三步骤 + 版本公告
   ======================================== */
.page-home {
  --home-glow-intensity: drop-shadow(0 0 6px rgba(139, 92, 246, 0.45));
  --home-card-glow: 0 0 12px rgba(139, 92, 246, 0.15);
  --home-clip-offset: 1.2deg;
  --home-frame-border-color: rgba(139, 92, 246, 0.35);
  --home-accent-glow: #f97316;
  position: relative;
  background-color: var(--color-bg-primary, #0a0a0f);
  color: var(--color-text-primary, #e2e8f0);
  font-family: var(--font-body, 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif);
  overflow-x: hidden;
}

/* --- 阅读进度条 --- */
.page-home .scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
}
.page-home .scroll-progress::after {
  content: '';
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-brand-start, #8b5cf6), var(--color-brand-end, #06b6d4));
  transition: width 0.1s linear;
}

/* --- 左侧章节指示器 --- */
.page-home .section-indicator {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 500;
  padding: 8px 4px;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  border: 1px solid var(--color-border, rgba(139, 92, 246, 0.3));
}
.page-home .section-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--color-text-secondary, #94a3b8);
  font-size: 0.7rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  letter-spacing: 0.5px;
  writing-mode: vertical-rl;
  padding: 6px 2px;
  border-radius: 12px;
  transition: color var(--transition-fast, 0.2s), background var(--transition-fast, 0.2s);
  position: relative;
}
.page-home .section-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  transition: opacity var(--transition-fast, 0.2s), box-shadow var(--transition-fast, 0.2s);
  flex-shrink: 0;
}
.page-home .section-dot:hover,
.page-home .section-dot:focus-visible {
  color: var(--color-brand-start, #8b5cf6);
}
.page-home .section-dot:hover::before,
.page-home .section-dot:focus-visible::before {
  opacity: 1;
  box-shadow: 0 0 8px var(--color-glow, rgba(139, 92, 246, 0.5));
}
.page-home .section-dot span {
  font-size: 0.6rem;
  line-height: 1.2;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* --- 通用面板 --- */
.page-home .panel {
  position: relative;
  padding: 2.5rem 1.25rem;
  max-width: var(--content-max-width, 1200px);
  margin: 0 auto;
  scroll-margin-top: 70px;
}
.page-home .panel + .panel {
  margin-top: 1rem;
}
.page-home .panel-header {
  margin-bottom: 2rem;
}
.page-home .panel-header--inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-home .panel-title {
  font-family: var(--font-heading, 'Orbitron', 'Arial Black', sans-serif);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  filter: var(--home-glow-intensity);
}
.page-home .panel-desc {
  font-size: 0.9rem;
  margin: 0;
}
.page-home .panel .text-gradient {
  background: linear-gradient(135deg, var(--color-brand-start, #8b5cf6), var(--color-brand-end, #06b6d4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 框景首屏 ===== */
.page-home .panel-query {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.page-home .frame-box {
  position: relative;
  border: 1px solid var(--home-frame-border-color);
  border-radius: 0;
  background: var(--color-bg-secondary, #1a1a2e);
  padding: 1.5rem 1rem;
  overflow: hidden;
  transition: box-shadow var(--transition-smooth, 0.4s);
}
.page-home .frame-box.glow-border {
  box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.06), 0 0 20px rgba(139, 92, 246, 0.04);
}
.page-home .frame-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}
.page-home .frame-text {
  flex: 1;
}
.page-home .frame-context {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.page-home .frame-title {
  font-family: var(--font-heading, 'Orbitron', 'Arial Black', sans-serif);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 3px;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  filter: var(--home-glow-intensity);
}
.page-home .frame-sub {
  font-size: 0.9rem;
  margin: 0 0 1.2rem;
}

/* --- 查询面板 --- */
.page-home .query-panel {
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--color-border, rgba(139, 92, 246, 0.25));
  padding: 1.2rem;
}
.page-home .platform-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border, rgba(139, 92, 246, 0.2));
  padding-bottom: 0.6rem;
}
.page-home .platform-tab {
  background: transparent;
  border: none;
  color: var(--color-text-secondary, #94a3b8);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 0.4rem 1rem;
  cursor: default;
  position: relative;
  transition: color var(--transition-fast, 0.2s);
}
.page-home .platform-tab.active {
  color: var(--color-brand-start, #8b5cf6);
  text-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}
.page-home .platform-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--color-brand-start, #8b5cf6), var(--color-brand-end, #06b6d4));
}
.page-home .query-display {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.page-home .query-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.page-home .query-label {
  font-size: 0.75rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  letter-spacing: 0.5px;
  min-width: 5.5em;
}
.page-home .query-value {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  filter: var(--home-glow-intensity);
}
.page-home .query-value.text-accent {
  color: var(--color-accent, #f97316);
  -webkit-text-fill-color: var(--color-accent, #f97316);
}
.page-home .query-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  padding: 0.15rem 0.5rem;
  border: 1px solid currentColor;
  letter-spacing: 0.5px;
}
.page-home .query-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.page-home .query-actions .btn {
  font-family: var(--font-heading, 'Orbitron', 'Arial Black', sans-serif);
  font-size: 0.8rem;
  letter-spacing: 2px;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--color-border, rgba(139, 92, 246, 0.3));
  background: transparent;
  color: var(--color-text-primary, #e2e8f0);
  text-decoration: none;
  transition: all var(--transition-fast, 0.2s);
}
.page-home .query-actions .btn-primary {
  background: linear-gradient(135deg, var(--color-brand-start, #8b5cf6), var(--color-brand-end, #06b6d4));
  border-color: transparent;
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}
.page-home .query-actions .btn-primary:hover,
.page-home .query-actions .btn-primary:focus-visible {
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.6));
  transform: scale(1.02);
}
.page-home .query-actions .btn:hover,
.page-home .query-actions .btn:focus-visible {
  border-color: var(--color-brand-start, #8b5cf6);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

/* --- 首屏图片 --- */
.page-home .frame-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.page-home .frame-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--color-border, rgba(139, 92, 246, 0.2));
  filter: grayscale(0.3) contrast(1.2);
}

/* --- 刻度装饰 --- */
.page-home .scale-marks {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0;
  z-index: 1;
  pointer-events: none;
}
.page-home .scale-marks--left {
  left: -8px;
}
.page-home .scale-marks--right {
  right: -8px;
}
.page-home .scale-marks span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-border, rgba(139, 92, 246, 0.25));
}
.page-home .scale-marks--left span:nth-child(odd) {
  width: 6px;
  margin-left: auto;
}
.page-home .scale-marks--right span:nth-child(even) {
  width: 6px;
  margin-right: auto;
}

/* ===== 数据看板 ===== */
.page-home .panel-dashboard {
  position: relative;
}
.page-home .dashboard-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-brand-start, #8b5cf6) transparent;
}
.page-home .dashboard-scroll::-webkit-scrollbar {
  height: 4px;
}
.page-home .dashboard-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.page-home .dashboard-scroll::-webkit-scrollbar-thumb {
  background: var(--color-brand-start, #8b5cf6);
  border-radius: 4px;
}
.page-home .dashboard-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background: var(--color-bg-secondary, #1a1a2e);
  border: 1px solid var(--color-border, rgba(139, 92, 246, 0.2));
  padding: 1.2rem;
  position: relative;
  transition: box-shadow var(--transition-fast, 0.2s);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.page-home .dashboard-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--color-brand-start, #8b5cf6), var(--color-accent, #f97316));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.6;
}
.page-home .dashboard-card:hover {
  box-shadow: var(--home-card-glow);
}
.page-home .card-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.page-home .card-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.3));
}
.page-home .card-platform {
  font-family: var(--font-heading, 'Orbitron', 'Arial Black', sans-serif);
  font-size: 1rem;
  letter-spacing: 2px;
  margin: 0;
}
.page-home .card-price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 0.6rem;
  filter: var(--home-glow-intensity);
}
.page-home .card-trend {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  margin-bottom: 0.5rem;
}
.page-home .trend-bar {
  flex: 1;
  background: linear-gradient(to top, var(--color-brand-start, #8b5cf6), var(--color-brand-end, #06b6d4));
  border-radius: 1px 1px 0 0;
  opacity: 0.6;
  height: calc(40% + 8% * var(--i, 0));
}
.page-home .dashboard-card:nth-child(1) .trend-bar:nth-child(1) { --i: 0; height: 45%; }
.page-home .dashboard-card:nth-child(1) .trend-bar:nth-child(2) { --i: 1; height: 52%; }
.page-home .dashboard-card:nth-child(1) .trend-bar:nth-child(3) { --i: 2; height: 48%; }
.page-home .dashboard-card:nth-child(1) .trend-bar:nth-child(4) { --i: 3; height: 55%; }
.page-home .dashboard-card:nth-child(1) .trend-bar:nth-child(5) { --i: 4; height: 50%; }
.page-home .dashboard-card:nth-child(1) .trend-bar:nth-child(6) { --i: 5; height: 58%; }
.page-home .dashboard-card:nth-child(1) .trend-bar:nth-child(7) { --i: 6; height: 53%; }

.page-home .dashboard-card:nth-child(2) .trend-bar:nth-child(1) { --i: 0; height: 40%; }
.page-home .dashboard-card:nth-child(2) .trend-bar:nth-child(2) { --i: 1; height: 48%; }
.page-home .dashboard-card:nth-child(2) .trend-bar:nth-child(3) { --i: 2; height: 56%; }
.page-home .dashboard-card:nth-child(2) .trend-bar:nth-child(4) { --i: 3; height: 62%; }
.page-home .dashboard-card:nth-child(2) .trend-bar:nth-child(5) { --i: 4; height: 58%; }
.page-home .dashboard-card:nth-child(2) .trend-bar:nth-child(6) { --i: 5; height: 68%; }
.page-home .dashboard-card:nth-child(2) .trend-bar:nth-child(7) { --i: 6; height: 60%; }

.page-home .dashboard-card:nth-child(3) .trend-bar:nth-child(1) { --i: 0; height: 60%; }
.page-home .dashboard-card:nth-child(3) .trend-bar:nth-child(2) { --i: 1; height: 52%; }
.page-home .dashboard-card:nth-child(3) .trend-bar:nth-child(3) { --i: 2; height: 45%; }
.page-home .dashboard-card:nth-child(3) .trend-bar:nth-child(4) { --i: 3; height: 38%; }
.page-home .dashboard-card:nth-child(3) .trend-bar:nth-child(5) { --i: 4; height: 42%; }
.page-home .dashboard-card:nth-child(3) .trend-bar:nth-child(6) { --i: 5; height: 35%; }
.page-home .dashboard-card:nth-child(3) .trend-bar:nth-child(7) { --i: 6; height: 40%; }

.page-home .card-update {
  font-size: 0.7rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  letter-spacing: 0.5px;
}

/* --- 看板装饰图 --- */
.page-home .dashboard-decoration {
  display: none;
  position: absolute;
  right: -60px;
  bottom: -20px;
  width: 300px;
  height: 300px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.page-home .dashboard-decoration .deco-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ===== 三步引导 ===== */
.page-home .panel-steps {
  position: relative;
}
.page-home .steps-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.page-home .step-card {
  background: var(--color-bg-secondary, #1a1a2e);
  border: 1px solid var(--color-border, rgba(139, 92, 246, 0.2));
  padding: 1.5rem 1rem;
  text-align: center;
  width: 100%;
  max-width: 320px;
  position: relative;
  transition: transform var(--transition-smooth, 0.4s), box-shadow var(--transition-smooth, 0.4s);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.page-home .step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-card-glow);
}
.page-home .step-number {
  font-family: var(--font-heading, 'Orbitron', 'Arial Black', sans-serif);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 4px;
  opacity: 0.15;
  position: absolute;
  top: 0.3rem;
  right: 0.6rem;
  line-height: 1;
}
.page-home .step-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.3));
}
.page-home .step-title {
  font-family: var(--font-heading, 'Orbitron', 'Arial Black', sans-serif);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin: 0 0 0.3rem;
}
.page-home .step-desc {
  font-size: 0.8rem;
  margin: 0;
}
.page-home .step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.2rem 0;
}
.page-home .connector-line {
  width: 40px;
  height: 1px;
  background: var(--color-border, rgba(139, 92, 246, 0.3));
}
.page-home .connector-arrow {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  color: var(--color-brand-start, #8b5cf6);
  font-size: 1.2rem;
}

/* ===== 版本公告 ===== */
.page-home .panel-updates {
  position: relative;
}
.page-home .updates-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.page-home .update-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--color-bg-secondary, #1a1a2e);
  border: 1px solid var(--color-border, rgba(139, 92, 246, 0.15));
  padding: 0.8rem 1rem;
  transition: border-color var(--transition-fast, 0.2s), box-shadow var(--transition-fast, 0.2s);
}
.page-home .update-item:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--home-card-glow);
}
.page-home .update-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px rgba(139, 92, 246, 0.2));
}
.page-home .update-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.page-home .update-version {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.page-home .update-week {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}
.page-home .update-tag {
  font-size: 0.65rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  padding: 0.15rem 0.5rem;
  border: 1px solid currentColor;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.page-home .update-tag--stable {
  border-color: var(--color-success, #10b981);
  color: var(--color-success, #10b981);
}
.page-home .update-tag--preview {
  border-color: var(--color-accent, #f97316);
  color: var(--color-accent, #f97316);
}
.page-home .updates-footer {
  text-align: center;
}
.page-home .updates-footer .btn {
  font-family: var(--font-heading, 'Orbitron', 'Arial Black', sans-serif);
  font-size: 0.8rem;
  letter-spacing: 2px;
  padding: 0.6rem 1.6rem;
  border: 1px solid var(--color-border, rgba(139, 92, 246, 0.3));
  background: transparent;
  color: var(--color-text-primary, #e2e8f0);
  text-decoration: none;
  transition: all var(--transition-fast, 0.2s);
  display: inline-block;
}
.page-home .updates-footer .btn:hover,
.page-home .updates-footer .btn:focus-visible {
  border-color: var(--color-brand-start, #8b5cf6);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

/* ===== 模态框 ===== */
.page-home .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth, 0.4s);
}
.page-home .modal-overlay:target {
  opacity: 1;
  pointer-events: auto;
}
.page-home .modal-box {
  background: var(--color-bg-primary, #0a0a0f);
  border: 1px solid var(--color-border, rgba(139, 92, 246, 0.3));
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-smooth, 0.4s);
}
.page-home .modal-overlay:target .modal-box {
  transform: scale(1);
}
.page-home .modal-box.glow-border {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.1), inset 0 0 20px rgba(139, 92, 246, 0.03);
}
.page-home .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-border, rgba(139, 92, 246, 0.2));
}
.page-home .modal-title {
  font-family: var(--font-heading, 'Orbitron', 'Arial Black', sans-serif);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin: 0;
}
.page-home .modal-close {
  font-size: 1.5rem;
  color: var(--color-text-secondary, #94a3b8);
  text-decoration: none;
  line-height: 1;
  transition: color var(--transition-fast, 0.2s);
}
.page-home .modal-close:hover,
.page-home .modal-close:focus-visible {
  color: var(--color-accent, #f97316);
}
.page-home .modal-body {
  margin-bottom: 1.2rem;
}
.page-home .config-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.page-home .config-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  background: var(--color-bg-secondary, #1a1a2e);
  border: 1px solid var(--color-border, rgba(139, 92, 246, 0.1));
}
.page-home .config-version {
  font-weight: 600;
  letter-spacing: 1px;
  min-width: 5em;
}
.page-home .config-week {
  font-size: 0.8rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  flex: 1;
}
.page-home .config-status {
  font-size: 0.7rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  letter-spacing: 0.5px;
}
.page-home .config-note {
  font-size: 0.75rem;
  margin: 0.8rem 0 0;
  text-align: center;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}
.page-home .modal-footer {
  text-align: center;
  padding-top: 0.6rem;
  border-top: 1px solid var(--color-border, rgba(139, 92, 246, 0.1));
}
.page-home .modal-footer .btn {
  font-family: var(--font-heading, 'Orbitron', 'Arial Black', sans-serif);
  font-size: 0.75rem;
  letter-spacing: 2px;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--color-border, rgba(139, 92, 246, 0.3));
  background: transparent;
  color: var(--color-text-primary, #e2e8f0);
  text-decoration: none;
  transition: all var(--transition-fast, 0.2s);
  display: inline-block;
}
.page-home .modal-footer .btn:hover,
.page-home .modal-footer .btn:focus-visible {
  border-color: var(--color-brand-start, #8b5cf6);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

/* ========================================
   桌面端增强
   ======================================== */
@media (min-width: 768px) {
  .page-home .panel {
    padding: 4rem 2rem;
  }
  .page-home .panel-title {
    font-size: 2rem;
  }

  /* 框景首屏 - 桌面左右布局 */
  .page-home .frame-content {
    flex-direction: row;
    align-items: center;
  }
  .page-home .frame-title {
    font-size: 2.5rem;
  }
  .page-home .frame-image-wrapper {
    max-width: 420px;
    flex-shrink: 0;
  }
  .page-home .query-display {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 刻度装饰 - 桌面可见 */
  .page-home .scale-marks {
    width: 18px;
  }
  .page-home .scale-marks--left {
    left: -14px;
  }
  .page-home .scale-marks--right {
    right: -14px;
  }

  /* 数据看板 - 桌面三列 */
  .page-home .dashboard-card {
    flex: 0 0 calc(33.333% - 0.75rem);
  }
  .page-home .dashboard-decoration {
    display: block;
  }

  /* 三步引导 - 桌面水平排列 */
  .page-home .steps-container {
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
  }
  .page-home .step-card {
    flex: 1;
    max-width: 280px;
  }
  .page-home .step-connector {
    flex-direction: column;
    padding: 0 0.3rem;
  }
  .page-home .connector-line {
    width: 1px;
    height: 40px;
  }

  /* 版本公告 - 桌面列表强化 */
  .page-home .update-item {
    padding: 1rem 1.2rem;
  }
  .page-home .update-icon {
    width: 50px;
    height: 50px;
  }
  .page-home .update-version {
    font-size: 1.1rem;
  }

  /* 模态框 - 桌面居中 */
  .page-home .modal-box {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .page-home .panel {
    padding: 5rem 2rem;
  }
  .page-home .panel-title {
    font-size: 2.4rem;
  }
  .page-home .frame-title {
    font-size: 3rem;
  }
  .page-home .frame-image-wrapper {
    max-width: 500px;
  }
  .page-home .query-value {
    font-size: 1.8rem;
  }
  .page-home .dashboard-card {
    flex: 0 0 calc(33.333% - 0.75rem);
    padding: 1.5rem;
  }
  .page-home .card-price {
    font-size: 2.4rem;
  }
  .page-home .step-card {
    max-width: 320px;
    padding: 2rem 1.5rem;
  }
}

/* 超大屏内容宽度锁定 */
@media (min-width: 1280px) {
  .page-home .panel {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ========================================
   工具类复用（限定在page-home内）
   ======================================== */
.page-home .text-secondary {
  color: var(--color-text-secondary, #94a3b8);
}
.page-home .text-mono {
  font-family: var(--font-mono, 'JetBrains Mono', 'Courier New', monospace);
}
.page-home .text-success {
  color: var(--color-success, #10b981);
}
.page-home .text-accent {
  color: var(--color-accent, #f97316);
}
.page-home .text-gradient {
  background: linear-gradient(135deg, var(--color-brand-start, #8b5cf6), var(--color-brand-end, #06b6d4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-home .btn {
  font-family: var(--font-heading, 'Orbitron', 'Arial Black', sans-serif);
  font-size: 0.8rem;
  letter-spacing: 2px;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--color-border, rgba(139, 92, 246, 0.3));
  background: transparent;
  color: var(--color-text-primary, #e2e8f0);
  text-decoration: none;
  transition: all var(--transition-fast, 0.2s);
  display: inline-block;
  cursor: default;
}
.page-home .btn-primary {
  background: linear-gradient(135deg, var(--color-brand-start, #8b5cf6), var(--color-brand-end, #06b6d4));
  border-color: transparent;
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}
.page-home .btn:hover,
.page-home .btn:focus-visible {
  border-color: var(--color-brand-start, #8b5cf6);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}
.page-home .btn-primary:hover,
.page-home .btn-primary:focus-visible {
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.6));
  transform: scale(1.02);
}
/* 为不支持backdrop-filter的浏览器降级 */
@supports not (backdrop-filter: blur(4px)) {
  .page-home .section-indicator {
    background: rgba(10, 10, 15, 0.95);
  }
  .page-home .modal-overlay {
    background: rgba(0, 0, 0, 0.85);
  }
}
/* 确保打印时阅读进度条隐藏 */
@media print {
  .page-home .scroll-progress,
  .page-home .section-indicator,
  .page-home .modal-overlay {
    display: none !important;
  }
  .page-home .panel {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  .page-home .frame-box {
    border: 1px solid #ccc;
  }
}
