/**
 * 应用详情展示与购买页
 * 布局：蓝底+装饰 → 左信息区（标题/价格/按钮/规格） + 右预览区（浏览器框+截图）
 */

 .page-app-detail .content-two-col-right {
    display: none !important;
  }
  
  /* ---------- 主视觉区：米色粉米色渐变背景 + 装饰 ---------- */
  .app-detail-hero {
    position: relative;
    min-height: 52vh;
    padding: 3.5rem 0 4rem;
    background-image: linear-gradient(to right, #EECDA3 0%, #EF629F 51%, #EECDA3 100%);
    background-size: 200% auto;
    overflow: hidden;
  }
  
  .app-detail-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  
  .app-detail-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
  }
  
  .app-detail-shape--circle {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -60px;
  }
  
  .app-detail-shape--circle.app-detail-shape--2 {
    width: 160px;
    height: 160px;
    bottom: 20%;
    left: -40px;
  }
  
  .app-detail-shape--star {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    top: 15%;
    right: 25%;
  }
  
  .app-detail-inner {
    position: relative;
    z-index: 1;
    padding: 2rem 12px 2rem;
  }
  
  .app-detail-two-col {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 3.5rem;
    align-items: flex-start;
  }
  
  /* ---------- 右侧：产品信息（与左侧轮播间距加大） ---------- */
  .app-detail-info {
    flex: 0 1 45%;
    min-width: 0;
    padding-left: 3rem;
    color: #fff;
  }
  
  .app-detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    letter-spacing: 0.02em;
  }
  
  .app-detail-desc {
    font-size: 0.9375rem;
    opacity: 0.95;
    margin: 0 0 1rem;
    line-height: 1.5;
  }
  
  .app-detail-price-wrap {
    margin-bottom: 1rem;
  }
  
  .app-detail-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: #dc2626;
    color: #fff;
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }
  
  .app-detail-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 1rem;
    margin: 0;
    font-size: 0.9375rem;
  }
  
  .app-detail-price-label {
    margin-right: 0.2rem;
    opacity: 0.9;
  }
  
  .app-detail-price {
    font-size: 1.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
  }
  
  .app-detail-original {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
  }
  
  .app-detail-original s {
    margin-left: 0.25rem;
  }
  
  .app-detail-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .app-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
  }
  
  .app-detail-btn:hover {
    opacity: 0.92;
    color: inherit;
  }
  
  .app-detail-btn--primary {
    color: #fff;
    border: none;
  }
  
  /* 立即购买：渐变按钮（小号） */
  .app-detail-btn.btn-grad {
    background-image: linear-gradient(to right, #ee0979 0%, #ff6a00 51%, #ee0979 100%);
    background-size: 200% auto;
    padding: 8px 28px;
    margin: 4px 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.5s;
    border-radius: 10px;
    outline: none;
    border: none;
  }
  
  .app-detail-btn.btn-grad:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
    opacity: 1;
  }
  
  /* 查看演示：蓝青渐变按钮（与立即购买同款样式） */
  .app-detail-btn.btn-grad-demo {
    background-image: linear-gradient(to right, #56CCF2 0%, #2F80ED 51%, #56CCF2 100%);
    background-size: 200% auto;
    padding: 8px 28px;
    margin: 4px 0;
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
    transition: 0.5s;
    border-radius: 10px;
    outline: none;
    border: none;
  }
  
  .app-detail-btn.btn-grad-demo:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
    opacity: 1;
  }
  
  .app-detail-btn--demo {
    border: none;
  }
  
  .app-detail-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .app-detail-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
  }
  
  .app-detail-link:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
  }
  
  .app-detail-specs {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .app-detail-spec {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .app-detail-spec:last-child {
    border-bottom: none;
  }
  
  .app-detail-spec-label {
    flex: 0 0 5.5em;
    opacity: 0.9;
  }
  
  .app-detail-spec-value {
    flex: 1;
    min-width: 0;
  }
  
  .app-detail-spec-icon {
    color: #fbbf24;
    margin-right: 0.35rem;
  }
  
  .app-detail-specs .app-detail-spec-value.app-detail-spec-value--tip,
  .app-detail-specs .app-detail-spec-value.app-detail-spec-value--tip * {
    cursor: help;
  }
  
  /* JS 悬停提示框：气泡对话框 + 上方箭头 */
  .app-detail-tooltip {
    position: fixed;
    z-index: 9999;
    max-width: 220px;
    padding: 10px 14px;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #fff;
    background: rgba(0, 0, 0, 0.88);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  
  .app-detail-tooltip::before {
    content: '';
    position: absolute;
    left: var(--arrow-x, 50%);
    top: 0;
    transform: translate(-50%, -100%);
    border: 8px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.88);
  }
  
  .app-detail-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .app-detail-tooltip.is-visible::before {
    transform: translate(-50%, -100%);
  }
  
  .app-detail-spec-link {
    color: #fde047;
    text-decoration: none;
    margin-left: 0.35rem;
  }
  
  .app-detail-spec-link:hover {
    text-decoration: underline;
    color: #fde047;
  }
  
  /* ---------- 右侧：产品预览 ---------- */
  .app-detail-preview {
    flex: 0 1 48%;
    min-width: 0;
    max-width: 800px;
  }
  
  /* 轮播容器：固定 800×360，无边框，圆角 */
  .app-detail-carousel-wrap {
    width: 800px;
    max-width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: 12px;
  }
  
  .app-detail-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
  }
  
  .app-detail-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
  }
  
  .app-detail-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-width: 0;
  }
  
  .app-detail-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
  }
  
  .app-detail-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
    z-index: 2;
    opacity: 0;
  }
  
  .app-detail-carousel-wrap:hover .app-detail-carousel-btn,
  .app-detail-carousel-btn:focus,
  .app-detail-carousel-btn:hover {
    opacity: 1;
  }
  
  .app-detail-carousel-btn:hover {
    background: #fff;
    color: #1e293b;
  }
  
  .app-detail-carousel-prev {
    left: 0.5rem;
  }
  
  .app-detail-carousel-next {
    right: 0.5rem;
  }
  
  .app-detail-thumbs {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    justify-content: center;
  }
  
  .app-detail-thumb {
    flex: 0 0 auto;
    width: 100px;
    height: 75px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s, opacity 0.2s;
  }
  
  .app-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .app-detail-thumb:hover {
    opacity: 0.9;
  }
  
  .app-detail-thumb.is-active {
    border-color: #EF629F;
    box-shadow: 0 0 0 1px rgba(239, 98, 159, 0.3);
  }
  
  .app-detail-thumb:focus-visible {
    outline: 2px solid #EF629F;
    outline-offset: 2px;
  }
  
  /* ---------- 移动端 ---------- */
  @media (max-width: 991px) {
    .app-detail-hero {
      min-height: auto;
      padding: 2.5rem 0 3rem;
    }
  
    .app-detail-two-col {
      flex-direction: column;
      gap: 1.5rem;
    }
  
    .app-detail-info {
      flex: none;
      width: 100%;
      padding-left: 0;
    }
  
    .app-detail-preview {
      flex: none;
      width: 100%;
    }
  
    .app-detail-title {
      font-size: 1.5rem;
    }
  
    .app-detail-actions {
      flex-wrap: wrap;
    }
  
    .app-detail-btn {
      flex: 1;
      min-width: 140px;
    }
  
    .app-detail-carousel-wrap {
      height: 340px;
    }
  }
  
  @media (max-width: 576px) {
    .app-detail-hero {
      padding: 2rem 0 2.5rem;
    }
  
    .app-detail-inner {
      padding: 1.5rem 12px 1.5rem;
    }
  
    .app-detail-title {
      font-size: 1.25rem;
    }
  
    .app-detail-price {
      font-size: 1.5rem;
    }
  
    .app-detail-actions {
      flex-direction: column;
    }
  
    .app-detail-btn {
      width: 100%;
    }
  
    .app-detail-secondary {
      gap: 0.4rem;
    }
  
    .app-detail-link {
      font-size: 0.75rem;
      padding: 0.35rem 0.6rem;
    }
  
    .app-detail-spec {
      font-size: 0.8125rem;
    }
  
    .app-detail-spec-label {
      flex-basis: 100%;
    }
  
    .app-detail-preview {
      max-width: 100%;
    }
  
    .app-detail-carousel-wrap {
      height: 220px;
    }
  
    .app-detail-thumb {
      width: 72px;
      height: 54px;
    }
  
    .app-detail-carousel-btn {
      width: 24px;
      height: 24px;
      font-size: 0.625rem;
    }
  }
  
  /* ---------- 深色模式 ---------- */
  html[data-theme="dark"] .app-detail-hero {
    background-image: linear-gradient(to right, #b4536a 0%, #d4a574 51%, #b4536a 100%);
    background-size: 200% auto;
  }
  
  /* 应用详情顶部卡片在深色模式下不叠加黑色背景，保持与浅色一致 */
  html[data-theme="dark"] .app-detail-hero .content-two-col.app-detail-inner {
    background: transparent;
  }
  
  html[data-theme="dark"] .app-detail-slide-img {
    opacity: 0.95;
  }
  
  html[data-theme="dark"] .app-detail-thumb.is-active {
    border-color: #f472b6;
    box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.3);
  }
  
  html[data-theme="dark"] .app-detail-carousel-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
  }
  
  html[data-theme="dark"] .app-detail-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }
  
  /* ---------- Tab 导航：主题介绍 / 特色功能 / 更多功能 / 附赠服务 / 更新记录 / 常见问题 ---------- */
  /* 后台「前台详情」Tab 注入的富文本 */
  .app-detail-tab-html {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-primary, #334155);
  }

  .app-detail-tab-html img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .app-detail-tab-features-root .app-detail-feature-cards,
  .app-detail-tab-more-root .app-detail-more-cols {
    margin-top: 0.5rem;
  }

  .app-detail-tab-empty {
    padding: 0.5rem 0 1rem;
    color: #64748b;
    font-size: 0.9375rem;
  }

  .app-detail-tab-empty strong {
    color: #475569;
  }

  .app-detail-tabs-section {
    background: #fff;
    padding: 2rem 0 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  
  .app-detail-tabs-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 12px;
  }
  
  .app-detail-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
  
  .app-detail-tab-nav {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted, #6c757d);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
  }
  
  .app-detail-tab-nav:hover {
    color: var(--text, #1a1a1a);
    background: #f5f5f5;
  }
  
  .app-detail-tab-nav.active {
    color: var(--nav-link-active, #5b9bd5);
    background: rgba(91, 155, 213, 0.1);
    border-color: var(--nav-link-active, #5b9bd5);
  }
  
  .app-detail-tabs-panels {
    min-height: 120px;
  }
  
  .app-detail-tab-panel.hidden {
    display: none !important;
  }
  
  .app-detail-tab-panel-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--text, #1a1a1a);
  }
  
  .app-detail-tab-panel-body {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text, #1a1a1a);
  }
  
  .app-detail-tab-panel-body p {
    margin: 0 0 0.75rem;
  }
  
  .app-detail-tab-panel-body p:last-child {
    margin-bottom: 0;
  }
  
  .app-detail-tab-list {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
  }
  
  .app-detail-tab-list li {
    margin-bottom: 0.35rem;
  }
  
  .app-detail-tab-intro-img-wrap {
    margin-top: 1.25rem;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
  }
  
  .app-detail-tab-intro-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    vertical-align: middle;
  }
  
  /* 更多功能：双栏介绍 + NEW 标签 */
  .app-detail-more-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 0.5rem;
    padding: 1.25rem;
    background: #f5f5f5;
    border-radius: 8px;
  }
  
  .app-detail-more-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }
  
  .app-detail-more-item {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #333;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
  }
  
  .app-detail-more-new {
    flex-shrink: 0;
    display: inline-block;
    padding: 0.15rem 0.4rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: #fff;
    background: #eab308;
    border-radius: 3px;
    letter-spacing: 0.02em;
  }
  
  @media (max-width: 768px) {
    .app-detail-more-cols {
      grid-template-columns: 1fr;
      gap: 1rem;
      padding: 1rem;
    }
  }
  
  /* 附赠服务：浅色底 + 服务卡片（与整页 Tab 风格一致） */
  .app-detail-gift-wrap {
    margin-top: 0.5rem;
    padding: 2rem 1.5rem;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    text-align: center;
  }
  
  .app-detail-gift-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
  }
  
  .app-detail-gift-subtitle {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0 0 1.75rem;
    line-height: 1.5;
  }
  
  .app-detail-gift-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .app-detail-gift-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .app-detail-gift-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #7eb8e6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
  }
  
  .app-detail-gift-card-icon i {
    font-size: 1.25rem;
  }
  
  .app-detail-gift-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.4rem;
    line-height: 1.3;
  }
  
  .app-detail-gift-card-desc {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
  }
  
  .app-detail-gift-btn {
    display: inline-block;
    padding: 0.6rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: #5b9bd5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
  }
  
  .app-detail-gift-btn:hover {
    opacity: 0.9;
    color: #fff;
  }
  
  @media (max-width: 1200px) {
    .app-detail-gift-cards {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .app-detail-gift-wrap {
      padding: 1.5rem 1rem;
    }
  
    .app-detail-gift-title {
      font-size: 1.25rem;
    }
  
    .app-detail-gift-subtitle {
      font-size: 0.8125rem;
      margin-bottom: 1.25rem;
    }
  
    .app-detail-gift-cards {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.85rem;
      margin-bottom: 1.25rem;
    }
  
    .app-detail-gift-card {
      padding: 1rem 0.85rem;
    }
  
    .app-detail-gift-card-icon {
      width: 42px;
      height: 42px;
      margin-bottom: 0.5rem;
    }
  
    .app-detail-gift-card-icon i {
      font-size: 1.1rem;
    }
  
    .app-detail-gift-card-title {
      font-size: 0.875rem;
    }
  
    .app-detail-gift-card-desc {
      font-size: 0.6875rem;
    }
  }
  
  @media (max-width: 480px) {
    .app-detail-gift-cards {
      grid-template-columns: 1fr;
    }
  }
  
  /* 常见问题：左标题块 + 右内容区（运行环境 / 使用声明） */
  .app-detail-faq-wrap {
    margin-top: 0.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }
  
  .app-detail-faq-block {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .app-detail-faq-block:last-child {
    border-bottom: none;
  }
  
  .app-detail-faq-head {
    flex: 0 0 20%;
    max-width: 160px;
    padding: 1rem 1.25rem;
    background: #e0f2fe;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
  }
  
  .app-detail-faq-body {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.25rem;
    background: #fff;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #1a1a1a;
  }
  
  .app-detail-faq-body p {
    margin: 0 0 0.5rem;
  }
  
  .app-detail-faq-body p:last-child {
    margin-bottom: 0;
  }
  
  .app-detail-faq-link {
    color: var(--nav-link-active, #5b9bd5);
    text-decoration: none;
  }
  
  .app-detail-faq-link:hover {
    text-decoration: underline;
    color: var(--nav-link-active, #5b9bd5);
  }
  
  .app-detail-faq-warn {
    color: #dc2626 !important;
  }
  
  @media (max-width: 768px) {
    .app-detail-faq-block {
      flex-direction: column;
    }
  
    .app-detail-faq-head {
      flex: none;
      max-width: none;
      padding: 0.75rem 1rem;
    }
  
    .app-detail-faq-body {
      padding: 0.85rem 1rem;
      font-size: 0.875rem;
    }
  }
  
  /* 特色功能：一行 5 个功能卡片 */
  .app-detail-feature-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-top: 0.5rem;
  }
  
  .app-detail-feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .app-detail-feature-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
  }
  
  .app-detail-feature-card-icon i {
    font-size: 1.5rem;
    color: #fff;
  }
  
  .app-detail-feature-card-icon--blue {
    background: #5b9bd5;
  }
  
  .app-detail-feature-card-icon--green {
    background: #22c55e;
  }
  
  .app-detail-feature-card-icon--orange {
    background: #f97316;
  }
  
  .app-detail-feature-card-icon--red {
    background: #ff5252;
  }
  
  .app-detail-feature-card-icon--purple {
    background: #8b5cf6;
  }
  
  .app-detail-feature-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem;
    line-height: 1.3;
  }
  
  .app-detail-feature-card-desc {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #666;
    line-height: 1.55;
    margin: 0;
    max-width: 100%;
  }
  
  @media (max-width: 1200px) {
    .app-detail-feature-cards {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .app-detail-feature-cards {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }
  
    .app-detail-feature-card {
      padding: 1.25rem 0.85rem;
    }
  
    .app-detail-feature-card-icon {
      width: 48px;
      height: 48px;
      margin-bottom: 0.75rem;
    }
  
    .app-detail-feature-card-icon i {
      font-size: 1.25rem;
    }
  
    .app-detail-feature-card-title {
      font-size: 0.9375rem;
    }
  
    .app-detail-feature-card-desc {
      font-size: 0.75rem;
    }
  }
  
  @media (max-width: 480px) {
    .app-detail-feature-cards {
      grid-template-columns: 1fr;
    }
  }
  
  /* 深色模式：Tab 区域 */
  html[data-theme="dark"] .app-detail-tabs-section {
    background: var(--main-bg-color);
    border-top-color: var(--muted-4-color);
  }
  
  html[data-theme="dark"] .app-detail-tabs-nav {
    border-bottom-color: var(--muted-4-color);
  }
  
  html[data-theme="dark"] .app-detail-tab-nav {
    color: var(--muted-color);
  }
  
  html[data-theme="dark"] .app-detail-tab-nav:hover {
    color: var(--main-color);
    background: var(--muted-4-color);
  }
  
  html[data-theme="dark"] .app-detail-tab-nav.active {
    color: var(--nav-link-active);
    background: rgba(91, 155, 213, 0.15);
    border-color: var(--nav-link-active);
  }
  
  html[data-theme="dark"] .app-detail-tab-panel-title {
    color: var(--main-color);
  }
  
  html[data-theme="dark"] .app-detail-tab-panel-body {
    color: var(--main-color);
  }
  
  html[data-theme="dark"] .app-detail-more-cols {
    background: var(--body-bg-color);
  }
  
  html[data-theme="dark"] .app-detail-more-item {
    color: var(--main-color);
  }
  
  html[data-theme="dark"] .app-detail-gift-wrap {
    background: var(--body-bg-color);
    border-color: var(--muted-4-color, rgba(255, 255, 255, 0.08));
  }
  
  html[data-theme="dark"] .app-detail-gift-title {
    color: var(--main-color);
  }
  
  html[data-theme="dark"] .app-detail-gift-subtitle {
    color: var(--muted-color);
  }
  
  html[data-theme="dark"] .app-detail-gift-card {
    background: var(--body-bg-color);
    border: 1px solid var(--muted-4-color, rgba(255, 255, 255, 0.08));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  html[data-theme="dark"] .app-detail-gift-card-title {
    color: var(--main-color);
  }
  
  html[data-theme="dark"] .app-detail-gift-card-desc {
    color: var(--muted-color);
  }
  
  html[data-theme="dark"] .app-detail-faq-block {
    border-bottom-color: var(--muted-4-color);
  }
  
  html[data-theme="dark"] .app-detail-faq-head {
    background: rgba(91, 155, 213, 0.2);
    color: var(--main-color);
  }
  
  html[data-theme="dark"] .app-detail-faq-body {
    background: var(--body-bg-color);
    color: var(--main-color);
  }
  
  html[data-theme="dark"] .app-detail-faq-link {
    color: var(--nav-link-active);
  }
  
  html[data-theme="dark"] .app-detail-faq-warn {
    color: #f87171 !important;
  }
  
  html[data-theme="dark"] .app-detail-feature-card {
    background: var(--body-bg-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  html[data-theme="dark"] .app-detail-feature-card-title {
    color: var(--main-color);
  }
  
  html[data-theme="dark"] .app-detail-feature-card-desc {
    color: var(--muted-color);
  }
  
  /* ---------- 购买/支付弹窗（紧凑小窗） ---------- */
  .purchase-modal-dialog {
    max-width: 340px;
  }
  
  .purchase-modal-content {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    background: #fff;
  }
  
  .purchase-modal-header {
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    position: relative;
  }
  
  .purchase-modal-header .modal-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text, #1a1a1a);
    margin: 0;
  }
  
  .purchase-modal-header .btn-close {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0.35rem;
    font-size: 0.75rem;
  }
  
  .purchase-modal-body {
    padding: 0.85rem 1rem 0.75rem;
    background: #fff;
  }
  
  .purchase-modal-summary {
    margin: 0 0 0.6rem;
    font-size: 0.8125rem;
    color: var(--text-muted, #6c757d);
  }
  
  .purchase-modal-summary .purchase-modal-price {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #c45a11;
  }
  
  .purchase-modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .purchase-tab {
    flex: 1;
    padding: 0.45rem 0.6rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted, #6c757d);
    background: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  
  .purchase-tab:hover {
    background: #eee;
    color: var(--text, #1a1a1a);
  }
  
  .purchase-tab.active {
    background: var(--nav-link-active, #5b9bd5);
    color: #fff;
    border-color: transparent;
  }
  
  .purchase-panels {
    min-height: 150px;
    position: relative;
    background: #fafafa;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .purchase-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    gap: 0.6rem;
  }
  
  .purchase-loading.hidden {
    display: none !important;
  }
  
  .purchase-loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #e5e5e5;
    border-top-color: var(--nav-link-active, #5b9bd5);
    border-radius: 50%;
    animation: purchase-spin 0.8s linear infinite;
  }
  
  .purchase-loading-text {
    font-size: 0.8125rem;
    color: var(--text-muted, #6c757d);
  }
  
  @keyframes purchase-spin {
    to { transform: rotate(360deg); }
  }
  
  .purchase-panel {
    animation: purchase-fade-in 0.2s ease;
  }
  
  @keyframes purchase-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .purchase-panel.hidden {
    display: none !important;
  }
  
  .purchase-panel-hint {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted, #6c757d);
  }
  
  .purchase-qr-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .purchase-qr-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
  }

  .purchase-qr-box {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
  }

  .purchase-qr-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .purchase-qr-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted, #6c757d);
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
  }

  .purchase-qr-footnote {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted, #6c757d);
    text-align: center;
  }

  .purchase-qr-link-wrap {
    margin: 0;
    text-align: center;
  }

  /* 与 pc-alipay-pay.js 内 class 一致，应用页独立补样式 */
  .page-app-detail .pc-member-pay-qr-link {
    font-size: 0.8125rem;
    color: var(--nav-link-active, #1677ff);
    text-decoration: none;
    font-weight: 500;
  }

  .page-app-detail .pc-member-pay-qr-link:hover {
    text-decoration: underline;
  }

  .page-app-detail .pc-member-pay-qr-link--primary {
    font-weight: 600;
  }
  
  .purchase-qr-text {
    font-size: 0.75rem;
    color: var(--text-muted, #6c757d);
  }
  
  .purchase-panel-balance .purchase-balance-row {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    color: var(--text, #1a1a1a);
  }
  
  .purchase-balance-amount {
    color: var(--nav-link-active, #5b9bd5);
    font-size: 1.0625rem;
    font-weight: 600;
  }
  
  .purchase-modal-price-inline {
    color: #c45a11;
    font-weight: 600;
  }
  
  .purchase-balance-btn {
    margin-top: 0.75rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.8125rem;
    background: var(--nav-link-active, #5b9bd5);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: none;
  }
  
  .purchase-balance-btn:hover,
  .purchase-balance-btn:focus {
    background: var(--nav-link-active, #5b9bd5);
    color: #fff;
    border: none;
    box-shadow: none;
  }
  
  .purchase-modal-footer {
    padding: 0.5rem 1rem 0.65rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
  }
  
  .purchase-modal-footer .btn-secondary {
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 6px;
    font-weight: 500;
  }
  
  /* 页面内购买成功提示（非顶部 alert） */
  .purchase-success-toast {
    position: fixed;
    left: 50%;
    bottom: 30%;
    transform: translate(-50%, 12px);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.82);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }
  
  .purchase-success-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  
  /* 深色模式 */
  html[data-theme="dark"] .purchase-modal-content {
    background: var(--main-bg-color);
    border-color: var(--muted-4-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
  
  html[data-theme="dark"] .purchase-modal-header,
  html[data-theme="dark"] .purchase-modal-footer {
    background: var(--main-bg-color);
    border-color: var(--muted-4-color);
  }
  
  html[data-theme="dark"] .purchase-modal-header .modal-title {
    color: var(--main-color);
  }
  
  html[data-theme="dark"] .purchase-modal-body {
    background: var(--main-bg-color);
  }
  
  html[data-theme="dark"] .purchase-modal-summary {
    color: var(--muted-color);
  }
  
  html[data-theme="dark"] .purchase-modal-price,
  html[data-theme="dark"] .purchase-modal-price-inline {
    color: #e8a85c;
  }
  
  html[data-theme="dark"] .purchase-tab {
    background: var(--body-bg-color);
    color: var(--muted-color);
  }
  
  html[data-theme="dark"] .purchase-tab:hover {
    background: var(--muted-4-color);
    color: var(--main-color);
  }
  
  html[data-theme="dark"] .purchase-tab.active {
    background: var(--nav-link-active);
    color: #fff;
  }
  
  html[data-theme="dark"] .purchase-panels {
    background: var(--body-bg-color);
    border-color: var(--muted-4-color);
  }

  html[data-theme="dark"] .purchase-qr-box {
    background: var(--muted-4-color, #252532);
    border-color: rgba(255, 255, 255, 0.08);
  }

  html[data-theme="dark"] .purchase-qr-placeholder {
    background: rgba(30, 30, 40, 0.92);
    color: var(--muted-1-color, #94a3b8);
  }

  html[data-theme="dark"] .purchase-qr-footnote {
    color: var(--muted-1-color, #94a3b8);
  }
  
  html[data-theme="dark"] .purchase-loading-spinner {
    border-color: var(--muted-4-color);
    border-top-color: var(--nav-link-active);
  }
  
  html[data-theme="dark"] .purchase-loading-text,
  html[data-theme="dark"] .purchase-panel-hint,
  html[data-theme="dark"] .purchase-qr-text {
    color: var(--muted-color);
  }
  
  html[data-theme="dark"] .purchase-qr-placeholder {
    background: var(--muted-4-color);
    border-color: var(--muted-4-color);
  }
  
  html[data-theme="dark"] .purchase-panel-balance .purchase-balance-row {
    color: var(--main-color);
  }
  
  html[data-theme="dark"] .purchase-balance-amount {
    color: var(--nav-link-active);
  }
  
  html[data-theme="dark"] .purchase-modal-footer .btn-secondary {
    background: var(--body-bg-color);
    border-color: var(--muted-4-color);
    color: var(--main-color);
  }
  
  html[data-theme="dark"] .purchase-modal-footer .btn-secondary:hover {
    background: var(--muted-4-color);
    color: var(--nav-link-active);
  }
  