/* =========================================================
   青山依旧 · 健康长青页面手机版
   File: /assets/css/mobile/page-health-mobile.css

   原则：
   1. 完全沿用首页手机版结构
   2. 不重新设计复杂页面
   3. 只调整健康页内容、品牌卡、信息流、底部留白
   4. 适合熟龄用户：字号大、间距舒展、点击清晰
   ========================================================= */


@media (max-width: 768px){

  /* ===============================
     01. 基础保护
     =============================== */

  body{
    background:#f7f6f0 !important;
  }

  .desktop-page,
  .desktop-home{
    display:none !important;
  }

  .mobile-page,
  .mobile-home{
    display:block !important;
  }

  .mobile-page{
    background:#f7f6f0 !important;
    min-height:100vh !important;
    padding-bottom:150px !important;
    overflow-x:hidden !important;
  }

  .mobile-page *{
    box-sizing:border-box !important;
  }

  .mobile-page a{
    text-decoration:none !important;
    -webkit-tap-highlight-color:transparent !important;
  }

  .mobile-page img{
    max-width:100% !important;
    display:block !important;
  }


  /* ===============================
     02. 顶部区域
     如果 mobile-topbar 已由 mobile-home.css 控制，
     这里只做健康页保护，不重写大结构
     =============================== */

  .mobile-page .mobile-topbar{
    background:#006b4b !important;
  }

  .mobile-page .mobile-topbar input,
  .mobile-page .mobile-search input{
    font-size:16px !important;
  }


  /* ===============================
     03. 横向频道导航
     与首页一致：推荐 / 健康 / 快乐 / 价值 / 尊严 / 连接 / 传承
     =============================== */

  .mobile-page .mobile-channel-nav{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    gap:26px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    white-space:nowrap !important;
    padding:0 22px !important;
    background:#ffffff !important;
    border-bottom:1px solid rgba(0,0,0,0.06) !important;
    -webkit-overflow-scrolling:touch !important;
  }

  .mobile-page .mobile-channel-nav::-webkit-scrollbar{
    display:none !important;
  }

  .mobile-page .mobile-channel-nav a{
    position:relative !important;
    flex:0 0 auto !important;
    height:64px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    color:#101820 !important;
    font-size:22px !important;
    font-weight:900 !important;
    letter-spacing:0.02em !important;
  }

  .mobile-page .mobile-channel-nav a.active,
  .mobile-page .mobile-channel-nav .active{
    color:#007a4d !important;
  }

  .mobile-page .mobile-channel-nav a.active::after,
  .mobile-page .mobile-channel-nav .active::after{
    content:"" !important;
    position:absolute !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    height:5px !important;
    border-radius:999px !important;
    background:#007a4d !important;
  }


  /* ===============================
     04. 主信息流页面
     对应 home-mobile.php 的 mobile-feed-page
     =============================== */

  .mobile-page .mobile-feed-page{
    width:100% !important;
    min-height:100vh !important;
    background:#f7f6f0 !important;
    padding:14px 12px 150px !important;
    overflow-x:hidden !important;
  }


  /* ===============================
     05. 健康页品牌卡
     对应 mobile-brand-card
     =============================== */

  .mobile-page .mobile-brand-card{
    position:relative !important;
    width:100% !important;
    margin:0 0 16px !important;
    padding:26px 24px 28px !important;
    border-radius:26px !important;
    overflow:hidden !important;
    background:
      linear-gradient(135deg,rgba(0,106,75,0.96),rgba(0,122,77,0.88)),
      radial-gradient(circle at 90% 10%,rgba(255,255,255,0.22),transparent 35%) !important;
    color:#ffffff !important;
    box-shadow:0 12px 30px rgba(20,45,38,0.14) !important;
  }

  .mobile-page .mobile-brand-card::after{
    content:"" !important;
    position:absolute !important;
    right:-36px !important;
    bottom:-48px !important;
    width:180px !important;
    height:180px !important;
    border-radius:50% !important;
    background:rgba(255,255,255,0.10) !important;
  }

  .mobile-page .mobile-brand-card h1{
    position:relative !important;
    z-index:2 !important;
    margin:0 0 12px !important;
    color:#ffffff !important;
    font-size:36px !important;
    line-height:1.12 !important;
    font-weight:900 !important;
    letter-spacing:0.02em !important;
  }

  .mobile-page .mobile-brand-card p{
    position:relative !important;
    z-index:2 !important;
    max-width:92% !important;
    margin:0 !important;
    color:rgba(255,255,255,0.92) !important;
    font-size:18px !important;
    line-height:1.75 !important;
    font-weight:600 !important;
  }

  .mobile-page .brand-card-close{
    position:absolute !important;
    top:14px !important;
    right:14px !important;
    z-index:5 !important;
    width:34px !important;
    height:34px !important;
    border:none !important;
    border-radius:50% !important;
    background:rgba(255,255,255,0.18) !important;
    color:#ffffff !important;
    font-size:24px !important;
    line-height:1 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }


  /* ===============================
     06. 信息流卡片
     对应 mobile-feed-card
     首页手机版核心视觉
     =============================== */

  .mobile-page .mobile-feed-card{
    position:relative !important;
    width:100% !important;
    margin:0 0 16px !important;
    background:#ffffff !important;
    border-radius:22px !important;
    overflow:hidden !important;
    box-shadow:0 8px 22px rgba(20,45,38,0.08) !important;
    border:1px solid rgba(0,0,0,0.025) !important;
  }

  .mobile-page .mobile-feed-card > a{
    position:relative !important;
    display:grid !important;
    grid-template-columns:38% 1fr !important;
    gap:15px !important;
    align-items:center !important;
    min-height:138px !important;
    padding:13px 48px 13px 13px !important;
    color:inherit !important;
  }

  .mobile-page .mobile-feed-thumb{
    width:100% !important;
    height:112px !important;
    border-radius:16px !important;
    overflow:hidden !important;
    background:#edf4ef !important;
  }

  .mobile-page .mobile-feed-thumb img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center !important;
  }

  .mobile-page .mobile-thumb-placeholder{
    width:100% !important;
    height:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:
      linear-gradient(135deg,#e8f4ee,#d8eadf),
      radial-gradient(circle at 80% 20%,rgba(0,122,77,0.12),transparent 32%) !important;
    color:#007a4d !important;
    font-size:18px !important;
    font-weight:900 !important;
    letter-spacing:0.04em !important;
  }

  .mobile-page .mobile-feed-body{
    min-width:0 !important;
  }

  .mobile-page .mobile-feed-body h3{
    margin:0 0 8px !important;
    color:#101820 !important;
    font-size:21px !important;
    line-height:1.25 !important;
    font-weight:900 !important;
    letter-spacing:-0.02em !important;

    display:-webkit-box !important;
    -webkit-line-clamp:2 !important;
    -webkit-box-orient:vertical !important;
    overflow:hidden !important;
  }

  .mobile-page .mobile-feed-body p{
    margin:0 0 10px !important;
    color:#6b7470 !important;
    font-size:16px !important;
    line-height:1.45 !important;

    display:-webkit-box !important;
    -webkit-line-clamp:1 !important;
    -webkit-box-orient:vertical !important;
    overflow:hidden !important;
  }

  .mobile-page .mobile-feed-meta{
    display:flex !important;
    align-items:center !important;
    gap:11px !important;
    flex-wrap:wrap !important;
  }

  .mobile-page .mobile-feed-meta span{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    height:30px !important;
    padding:0 11px !important;
    border-radius:8px !important;
    background:#e7f5ed !important;
    color:#00875a !important;
    font-size:15px !important;
    font-weight:900 !important;
  }

  .mobile-page .mobile-feed-meta time,
  .mobile-page .mobile-feed-meta em{
    color:#8b938f !important;
    font-size:15px !important;
    font-style:normal !important;
    font-weight:600 !important;
  }

  .mobile-page .mobile-feed-like{
    position:absolute !important;
    right:17px !important;
    bottom:18px !important;
    color:#6f7773 !important;
    font-size:28px !important;
    line-height:1 !important;
  }


  /* ===============================
     07. 如果 feed-card 内部仍然使用首页 recommend-card 结构
     做兼容处理
     =============================== */

  .mobile-page .recommend-card{
    width:100% !important;
    margin:0 0 16px !important;
    background:#ffffff !important;
    border-radius:22px !important;
    overflow:hidden !important;
    box-shadow:0 8px 22px rgba(20,45,38,0.08) !important;
  }

  .mobile-page .recommend-card > a{
    display:grid !important;
    grid-template-columns:38% 1fr !important;
    gap:15px !important;
    align-items:center !important;
    min-height:138px !important;
    padding:13px !important;
    color:inherit !important;
  }

  .mobile-page .recommend-card .thumb{
    width:100% !important;
    height:112px !important;
    border-radius:16px !important;
    overflow:hidden !important;
    background:#edf4ef !important;
    position:relative !important;
  }

  .mobile-page .recommend-card .thumb img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
  }

  .mobile-page .recommend-card .badge{
    position:absolute !important;
    left:8px !important;
    top:8px !important;
    height:26px !important;
    padding:0 9px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:999px !important;
    background:rgba(0,122,77,0.92) !important;
    color:#ffffff !important;
    font-size:12px !important;
    font-weight:900 !important;
  }

  .mobile-page .recommend-card .card-body{
    padding:0 !important;
    min-width:0 !important;
  }

  .mobile-page .recommend-card h3{
    margin:0 0 10px !important;
    color:#101820 !important;
    font-size:21px !important;
    line-height:1.28 !important;
    font-weight:900 !important;

    display:-webkit-box !important;
    -webkit-line-clamp:2 !important;
    -webkit-box-orient:vertical !important;
    overflow:hidden !important;
  }

  .mobile-page .recommend-card .card-meta{
    display:flex !important;
    align-items:center !important;
    gap:9px !important;
    flex-wrap:wrap !important;
    color:#8b938f !important;
    font-size:14px !important;
    font-weight:600 !important;
  }


  /* ===============================
     08. 空内容提示
     =============================== */

  .mobile-page .mobile-empty{
    margin:18px 0 !important;
    padding:28px 22px !important;
    border-radius:22px !important;
    background:#ffffff !important;
    color:#5c6d66 !important;
    font-size:17px !important;
    line-height:1.8 !important;
    text-align:center !important;
    box-shadow:0 8px 22px rgba(20,45,38,0.07) !important;
  }

  .mobile-page .mobile-load-more{
    margin:8px 0 26px !important;
    padding:18px 0 !important;
    text-align:center !important;
    color:#8a948f !important;
    font-size:15px !important;
    line-height:1.6 !important;
  }


  /* ===============================
     09. 底部导航避让
     =============================== */

  .mobile-page::after{
    content:"" !important;
    display:block !important;
    height:90px !important;
  }

}


/* =========================================================
   小屏手机优化
   ========================================================= */

@media (max-width:390px){

  .mobile-page .mobile-channel-nav{
    gap:23px !important;
    padding:0 18px !important;
  }

  .mobile-page .mobile-channel-nav a{
    height:62px !important;
    font-size:21px !important;
  }

  .mobile-page .mobile-feed-page{
    padding-left:10px !important;
    padding-right:10px !important;
  }

  .mobile-page .mobile-brand-card{
    padding:24px 22px 26px !important;
    border-radius:24px !important;
  }

  .mobile-page .mobile-brand-card h1{
    font-size:32px !important;
  }

  .mobile-page .mobile-brand-card p{
    font-size:16.5px !important;
    line-height:1.7 !important;
  }

  .mobile-page .mobile-feed-card > a,
  .mobile-page .recommend-card > a{
    grid-template-columns:36% 1fr !important;
    gap:13px !important;
    padding-right:42px !important;
  }

  .mobile-page .mobile-feed-thumb,
  .mobile-page .recommend-card .thumb{
    height:106px !important;
  }

  .mobile-page .mobile-feed-body h3,
  .mobile-page .recommend-card h3{
    font-size:19px !important;
    line-height:1.28 !important;
  }

  .mobile-page .mobile-feed-body p{
    font-size:15px !important;
  }

  .mobile-page .mobile-feed-meta span{
    height:28px !important;
    font-size:14px !important;
  }

  .mobile-page .mobile-feed-like{
    right:15px !important;
    bottom:17px !important;
    font-size:26px !important;
  }

}