/* =========================================================
   member-profile.html 手機版樣式 — 會員中心 / 會員資料
   ========================================================= */

/* ── 桌機版隱藏底部導航 ── */
@media (min-width: 769px) {
  .mobile-bottom-nav { display: none !important; }
}

@media (max-width: 768px) {

  /* ── 手機版字體 ── */
  html, body {
    font-family: 'Noto Sans TC', "Microsoft JhengHei", sans-serif !important;
  }

  /* ── 清掉 site-header 的星星裝飾（手機版擠且易看到黑邊）── */
  .site-header::before,
  .site-header::after,
  .main-header::after {
    display: none !important;
  }

  /* ── main-content 去掉內框虛線和 heavy shadow ── */
  .main-content::before {
    display: none !important;
  }
  .main-content {
    background: var(--bg-secondary, #0a0a12) !important;
    border: none !important;
    box-shadow: none !important;
    padding-bottom: 100px !important;  /* 留空間給 bottom nav */
  }

  /* ── 麵包屑簡化（手機版資訊太多反而擠）── */
  .breadcrumb {
    background: transparent !important;
    border-bottom: 1px dashed rgba(205,127,50,.15) !important;
  }

  /* ── section-title 去掉星星 clip-path 裝飾 ── */
  .section-title::before {
    display: none !important;
  }
  .section-title {
    gap: 0 !important;
  }

  /* ── referral-box 去掉自帶的星星 ── */
  .referral-code::before {
    display: none !important;
  }

  /* ── btn-primary (購買艾楓幣) 去掉內框虛線 ── */
  .btn-primary::before {
    display: none !important;
  }

  /* ── footer 多留底部空間（bottom nav 高度 + safe area）── */
  .site-footer {
    margin-top: 40px !important;
  }
  .footer-inner {
    padding: 28px 16px !important;
  }
  .site-footer::before,
  .site-footer::after {
    display: none !important;
  }

  /* ── 底部導航（統一 5 按鈕版本）─────────────────────── */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(15, 15, 24, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--line, #1a1a28);
    display: flex;
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-bottom-nav .nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 8px;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s;
    text-decoration: none;
    position: relative;
  }
  .mobile-bottom-nav .nav-tab .tab-icon {
    font-size: 22px;
    line-height: 1;
    opacity: 0.4;
    transition: opacity 0.2s;
    color: var(--ink, #f0f0f5);
  }
  .mobile-bottom-nav .nav-tab .tab-icon svg {
    display: block;
  }
  .mobile-bottom-nav .nav-tab.active .tab-icon {
    opacity: 1;
    color: var(--copper-light, #e8a54b);
  }
  .mobile-bottom-nav .nav-tab .tab-label {
    font-size: 10px;
    font-weight: 600;
    margin-top: 3px;
    color: var(--muted, #6a6a7a);
    font-family: 'Noto Sans TC', sans-serif;
    transition: color 0.2s;
  }
  .mobile-bottom-nav .nav-tab.active .tab-label {
    color: var(--copper-light, #e8a54b);
  }
  .mobile-bottom-nav .nav-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--copper, #cd7f32), var(--orange, #ff8c42));
  }
  .mobile-bottom-nav .nav-tab.special {
    padding-top: 2px;
  }
  .mobile-bottom-nav .nav-tab.special .tab-icon {
    width: 32px;
    height: 32px;
    opacity: 1;
  }
  .mobile-bottom-nav .nav-tab.special .tab-label {
    color: var(--copper-light, #e8a54b);
  }

  /* ── sidebar sticky 位置微調（避免跟 header 太黏）─── */
  .sidebar {
    top: 0 !important;
  }

  /* ── 表格在手機版更緊湊一點 ── */
  .data-table {
    margin-bottom: 20px !important;
  }

  /* ── 頁尾 footer-space 已經在其他頁使用，這邊補上 ── */
  .footer-space {
    height: 80px !important;
  }

}