/* 金研策享阁 · 宽屏适配
 * 所有规则仅在视口 >= 1024px 生效；手机/微信窄屏完全走原 app.css，零影响。
 * 服务端在 HTML head 自动注入本文件，无需逐页改引用。
 */
@media (min-width: 1024px) {
  /* ---- 基础：容器放宽、隐藏底部 tabbar ---- */
  body { background: #eef1f6; }
  .app {
    max-width: 1160px;
    padding-bottom: 24px;
    background: #eef1f6;
    box-shadow: 0 10px 40px rgba(15, 23, 42, .07);
  }
  .app.no-tab { padding-bottom: 24px; }
  .tabbar { display: none !important; }

  /* ---- PC 顶部导航 ---- */
  .pc-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 18px;
    height: 66px;
    padding: 0 26px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
    margin-bottom: 20px;
  }
  .pct-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    color: var(--text);
  }
  .pct-brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-primary); }
  .pct-brand span { display: flex; flex-direction: column; line-height: 1.25; }
  .pct-brand b { font-size: 16px; font-weight: 650; letter-spacing: .2px; }
  .pct-brand small { font-size: 10px; color: var(--text-3); letter-spacing: 1px; margin-top: 2px; }
  .pct-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; height: 100%; }
  .pct-nav a {
    display: flex;
    align-items: center;
    flex: none;
    white-space: nowrap;
    height: 38px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    transition: background .15s, color .15s;
  }
  .pct-nav a:hover { background: var(--primary-weak); color: var(--primary); }
  .pct-nav a.on { background: var(--primary-weak); color: var(--primary); font-weight: 600; }
  .pct-account { display: flex; align-items: center; gap: 12px; flex: none; }
  .pct-bell {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    color: var(--text-2);
    background: #f4f6fa;
  }
  .pct-bell svg { width: 19px; height: 19px; }
  .pct-bell:hover { color: var(--primary); background: var(--primary-weak); }
  .pct-login { font-size: 14px; color: var(--text-2); padding: 8px 4px; }
  .pct-login:hover { color: var(--primary); }
  .pct-reg {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
  }
  .pct-reg:hover { background: var(--primary-dark); }
  .pct-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    padding: 4px 10px 4px 4px;
    border-radius: 20px;
    background: #f4f6fa;
  }
  .pct-user .av { border-radius: 50%; }

  /* ---- 顶部原手机品牌头在宽屏隐藏（PC 顶栏已含品牌）；表单页保留 ---- */
  .app:not(.pc-narrow) > header.brand { display: none; }

  /* ---- 首页 ---- */
  .banner { margin: 0 0 20px; }
  .banner-view { aspect-ratio: 3.4 / 1; border-radius: 14px; }
  /* 站长精选：深色渐变推荐位，左标题、右说明 + 圆形入口，视觉更均衡 */
  .picks-entry {
    margin: 0 0 18px;
    padding: 16px 24px;
    min-height: 66px;
    gap: 14px;
    border-radius: 14px;
    background: linear-gradient(105deg, #1a2140 0%, #2b3560 62%, #394475 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .16);
    transition: transform .18s, box-shadow .18s;
  }
  .picks-entry:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 23, 42, .22); }
  .picks-entry .pe-badge { font-size: 11px; padding: 5px 9px; letter-spacing: 1.5px; border-radius: 6px; }
  .picks-entry .pe-main { font-size: 18px; letter-spacing: .4px; }
  .picks-entry .pe-sub { font-size: 13px; color: rgba(244, 231, 195, .86); }
  .picks-entry .pe-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 19px;
    background: rgba(214, 178, 94, .18);
    color: var(--gold);
  }

  /* 免费 / 会员入口：两卡撑满整行、内容居中，渐变背景更饱满专业 */
  .gates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 0 0 22px;
  }
  .gate {
    min-height: 186px;
    padding: 28px 32px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .10);
    transition: transform .18s, box-shadow .18s;
  }
  .gate.free { background: linear-gradient(135deg, #2f6bff 0%, #1e40af 100%); }
  .gate.member { background: linear-gradient(135deg, #2a3357 0%, #141a2e 100%); }
  .gate:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 23, 42, .16); }
  .gate .g-title { font-size: 21px; justify-content: center; }
  .gate .g-sub { font-size: 12.5px; margin-top: 8px; }
  .gate .g-count { font-size: 38px; margin-top: 14px; }
  .gate .g-mark { font-size: 128px; right: 6px; bottom: -34px; }
  .gate::after { right: 22px; bottom: 22px; }

  .section-title { padding: 8px 2px 16px; }
  .section-title h2 { font-size: 19px; font-weight: 650; }
  .section-title .more { font-size: 13px; color: var(--primary); }
  .home-marquee { margin: 0 0 18px; }

  /* 首页最新上架：五列方格卡，方形封面完整显示（信息在下），一行排齐不留空 */
  #latest { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; background: transparent !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; }
  #latest .ea-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: #fff;
    transition: transform .18s, box-shadow .18s;
  }
  #latest .ea-item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 23, 42, .14); }
  #latest .ea-item:last-child { border-bottom: 1px solid var(--line); }
  #latest .ea-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--line);
  }
  #latest .ea-thumb img { object-fit: cover; }
  #latest .ea-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
  #latest .ea-name { font-size: 13.5px; line-height: 1.5; white-space: normal; min-height: 40px; margin-bottom: 8px; }
  #latest .ea-meta { margin-top: auto; font-size: 10.5px; }
  #latest .ea-price { position: absolute; top: 10px; right: 10px; }
  #latest .ea-price .tag { box-shadow: 0 2px 8px rgba(15, 23, 42, .18); }
  #latest .empty { grid-column: 1 / -1; background: #fff; border-radius: 14px; }

  /* ---- 策略库：搜索/筛选横排，列表三列，网格四列 ---- */
  .search-wrap { padding: 0 0 14px; }
  .search { max-width: 520px; height: 46px; border-radius: 10px; }
  .filters { flex-direction: row; gap: 14px; padding: 0 0 20px; align-items: center; flex-wrap: wrap; }
  .chip-row { overflow: visible; }
  .chip { height: 34px; }
  .grid-wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0; }
  .g-card { padding: 10px; border-radius: 14px; }
  .g-name { font-size: 14px; }
  /* 列表视图（.card.flush#list）改三列卡片 */
  #list.card.flush { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; background: transparent; box-shadow: none; padding: 0; margin: 0; }
  #list.card.flush .ea-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
    background: #fff;
  }
  #list.card.flush .ea-item:last-child { border-bottom: 1px solid var(--line); }
  #list.card.flush .ea-thumb { width: 72px; height: 72px; border-radius: 12px; }
  #list.card.flush .ea-name { font-size: 16px; }

  /* ---- 详情页：单列居中（信息卡→展示图→提示，纵向自然排列）---- */
  /* 宽屏下隐藏各页自带的手机返回栏（PC 顶栏已承担导航） */
  .topbar { display: none !important; }
  .app:has(.detail-head) #content {
    display: block;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 90px;
  }
  .app:has(.detail-head) .detail-head { margin: 12px 0 16px; padding: 26px; border-radius: 16px; }
  .app:has(.detail-head) .detail-name { font-size: 26px; }
  .app:has(.detail-head) .detail-gallery { margin: 0 0 16px; }
  .app:has(.detail-head) .card.member-note { margin: 0 0 16px; }
  .app:has(.detail-head) #content > .legal-note { margin: 0; }
  .shots img { width: 210px; height: 132px; }
  /* 底部操作条居中、限宽 */
  .action-bar { max-width: 1160px; left: 0; right: 0; margin: 0 auto; border-radius: 14px 14px 0 0; }
  .action-bar #btn-slot .btn { max-width: 360px; margin: 0 auto; }

  /* ---- 我的页：PC 上单列居中（设置类页面专业做法，彻底避免分栏空白）----
   * DOM 顺序为 头像卡→会员卡→功能列表→退出块，强行分栏会把左栏撑出大片空白；
   * 改为限宽单列自然纵向排列，手机端不受影响。 */
  .app:has(> #content > .me-head) #content,
  .app:not(:has(> #content > .me-head)):has(> #content > .rows) #content {
    display: block !important;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 12px !important;
  }
  .me-mail { font-size: 19px; }
  .row { padding: 16px 20px; font-size: 15px; }

  /* ---- 推广中心：统计卡四列、内容限宽居中，卡片纵向自然排列 ---- */
  .app:has(.promo-id) #content { max-width: 1160px; margin-left: auto; margin-right: auto; }
  .app:has(.promo-id) .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 16px 0; }
  .app:has(.promo-id) .stat-v { font-size: 22px; }
  .app:has(.promo-id) #content > .promo-id { margin: 12px 0 0; }
  .app:has(.promo-id) #content > .card { margin: 0 0 16px; }

  /* ---- 登录 / 注册 / 资料表单：外壳保持 PC 宽度与完整导航，表单内容窄栏居中 ---- */
  .app.pc-narrow { max-width: 1160px; }
  .app.pc-narrow .pc-topbar { margin-bottom: 18px; }
  .app.pc-narrow .pct-nav { display: flex; }
  .app.pc-narrow > .brand,
  .app.pc-narrow > .form,
  .app.pc-narrow > .legal-note,
  .app.pc-narrow > #content,
  .app.pc-narrow > div:not(.pc-topbar):not(.topbar):not(#content) {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }
  .app.pc-narrow > .brand { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px 4px 18px; }
  .app.pc-narrow > .brand > img.logo { display: none; }
  .app.pc-narrow > .brand .brand-txt strong { font-size: 22px; }
  .app.pc-narrow > .brand .brand-txt span { font-size: 12px; letter-spacing: .4px; }
  .app.pc-narrow > .form {
    padding: 24px !important;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .06);
    margin-top: 0;
    margin-bottom: 16px;
  }
  .app.pc-narrow > .form .field { box-shadow: none; border: 1px solid var(--line); }
  .app.pc-narrow > .form .btn { height: 44px; font-size: 15px; }
  .app.pc-narrow > .legal-note { text-align: center; margin-top: 4px; }

  /* ---- 站内页统一宽度：与首页/策略库一致，避免点各栏目时宽窄跳变 ---- */
  .app.no-tab:not(.pc-narrow) { max-width: 1160px; }
  /* 长文档正文内部限宽居中，行宽舒适（外壳仍 1160，视觉留白统一） */
  .app:has(.doc) .doc { max-width: 860px; margin: 0 auto; padding: 4px 24px 24px; }
  /* 公告列表页正文限宽 */
  .app:has(#notice-list) #content > .card { max-width: 860px; margin-left: auto; margin-right: auto; }
}
