/* ============================================================
   期财汇 - 手机端独立样式 (≤768px)
   设计原则：混合设计 — 保留期财汇品牌 + 借鉴曲合式移动交互
   所有内容横排/紧凑显示，拒绝竖排堆叠
   ============================================================ */

/* ========================================================
   0. 桌面端默认隐藏手机端专用元素
   ======================================================== */
.nav-mobile-btn { display: none; }
.mobile-nav-overlay { display: none; }
.mobile-nav-drawer { display: none; }
.mobile-nav { display: none; }
.mobile-quick-grid { display: none; }

/* ========================================================
   0.5 桌面端导航栏微调（仅 padding/gap，不再覆盖 logo 布局）
   ⚠️ 修复：原此处用 !important 把 .nav-logo 强制改成 row，
   导致 style.css 里的 column 布局永远被覆盖，logo 文字
   放不到图形下面。现已删除该覆盖，让 style.css 的
   .nav-logo { flex-direction: column } 正常生效。
   ======================================================== */
.nav { padding: 0 24px !important; }
.nav-center { gap: 24px !important; }

@media (max-width: 768px) {

  /* ========================================================
     1. 全局重置 & 基础
     ======================================================== */
  * { -webkit-tap-highlight-color: transparent; -webkit-box-sizing: border-box; box-sizing: border-box; }
  html, body { font-size: 14px; overflow-x: hidden !important; max-width: 100vw !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
  body > * { max-width: 100% !important; overflow-x: hidden !important; }
  body * { max-width: 100% !important; }
  :root { --nav-h: 108px; --safe-bottom: env(safe-area-inset-bottom, 0px); }
  img { max-width: 100% !important; height: auto !important; }
  table { max-width: 100% !important; }
  svg { max-width: 100% !important; }

  /* ========================================================
     2. 导航栏 - 横向滚动标签方案
     ======================================================== */
  #desktopNav { display: none !important; }
  .mobile-nav { display: block; }

  /* ⚠️ 修复：手机端 .nav 高度与垂直 logo 样式
     原 mobile.css 在 @media 外用 !important 把 logo 改成 row，
     这里补回 column 布局，并给 .nav 足够高度容纳垂直 logo。 */
  .nav { height: 64px !important; padding: 0 16px !important; }
  .nav-left { height: 100%; }
  .nav-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    height: 100% !important;
    text-decoration: none !important;
  }
  .nav-logo-icon, .nav-logo svg { width: 26px !important; height: 26px !important; }
  .nav-logo-text {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }
  .nav-center { display: none !important; }
  .nav-right { display: none !important; }

  /* 汉堡按钮在手机端显示 */
  .nav-mobile-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px; height: 32px;
    background: none; border: none; cursor: pointer; padding: 0;
    margin-left: auto;
  }
  .nav-mobile-btn span {
    display: block; width: 22px; height: 2px;
    background: #1A1A2E; border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav-mobile-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-mobile-btn.open span:nth-child(2) { opacity: 0; }
  .nav-mobile-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 保留原 mobile-nav / mobile-tabs 设计（兼容已有结构） */
  .mobile-top-bar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; background: #FFFFFF; border-bottom: none; position: sticky; top: 0; z-index: 100; }
  .mobile-logo { display: flex; align-items: center; justify-content: center; gap: 1px; text-decoration: none; flex-direction: column; }
  .mobile-logo-icon { height: 28px; width: auto; flex-shrink: 0; }
  .mobile-logo-text { font-family: 'KaiTi','STKaiti','楷体',cursive; font-weight: 800; font-size: 13px; letter-spacing: 1.5px; background: linear-gradient(180deg, #e8b830 0%, #b8860b 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px 2px rgba(184, 134, 11, 0.4)); line-height: 1; white-space: nowrap; }
  .mobile-top-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .mobile-login-btn { display: flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; background: #C9962F; border-radius: 6px; font-size: 13px; font-weight: 500; color: #FFFFFF; text-decoration: none; }
  .mobile-tabs-wrap { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; white-space: nowrap; scrollbar-width: none; -ms-overflow-style: none; background: #FFFFFF; border-bottom: none; position: sticky; top: 56px; z-index: 99; }
  .mobile-tabs-wrap::-webkit-scrollbar { display: none; }
  .mobile-tabs { display: flex; align-items: stretch; gap: 0; height: 44px; padding: 0 8px; }
  .mobile-tabs a { display: flex; align-items: center; justify-content: center; padding: 0 16px; font-size: 14px; color: #6B7280; text-decoration: none; white-space: nowrap; position: relative; height: 100%; transition: color 0.2s; flex-shrink: 0; }
  .mobile-tabs a.active { color: #C9962F; font-weight: 600; }
  .mobile-tabs a.active::after { content: ''; position: absolute; bottom: 0; left: 12px; right: 12px; height: 3px; background: #C9962F; border-radius: 3px 3px 0 0; }
  body.nav-open { overflow: hidden; }

  /* ========================================================
     2.8 手机端侧滑抽屉（header.js 实际渲染的结构）
     ⚠️ 修复：原 mobile.css 完全没有给 .mobile-nav-drawer 写样式，
     导致汉堡菜单点开后内容竖排错乱。此处补全完整抽屉样式。
     ======================================================== */
  .mobile-nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998; opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .mobile-nav-overlay.active { opacity: 1; pointer-events: auto; }

  .mobile-nav-drawer {
    position: fixed; top: 0; right: 0;
    width: 80%; max-width: 320px; height: 100vh;
    background: #FFFFFF; z-index: 999;
    display: flex !important;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 16px rgba(0,0,0,0.1);
    overflow-y: auto;
  }
  .mobile-nav-drawer.active { transform: translateX(0); }

  .mobile-nav-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #F0F1F3;
    flex-shrink: 0;
  }
  .mobile-nav-header .nav-logo { gap: 2px; }
  .mobile-nav-close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    color: #6B7280; padding: 0;
  }

  .mobile-nav-links {
    display: flex; flex-direction: column;
    padding: 8px 0;
    flex: 1;
  }
  .mobile-nav-links a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    font-size: 15px; color: #1A1A2E;
    text-decoration: none;
    border-bottom: 1px solid #F0F1F3;
    transition: background 0.15s;
  }
  .mobile-nav-links a:active { background: #F7F8FA; }
  .mobile-nav-links a.active { color: #C9962F; font-weight: 600; background: #FDF8EE; }
  .mobile-nav-icon {
    display: flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; color: #9CA3AF; flex-shrink: 0;
  }
  .mobile-nav-links a.active .mobile-nav-icon { color: #C9962F; }

  .mobile-nav-divider {
    height: 1px; background: #F0F1F3; margin: 4px 0; flex-shrink: 0;
  }
  .mobile-nav-actions {
    display: flex; gap: 12px; padding: 16px 20px; flex-shrink: 0;
  }
  .mobile-nav-login {
    flex: 1; display: flex; align-items: center; justify-content: center;
    height: 40px; border: 1px solid #E5E7EB; border-radius: 8px;
    font-size: 14px; color: #1A1A2E; text-decoration: none;
  }
  .mobile-nav-cta {
    flex: 1; display: flex; align-items: center; justify-content: center;
    height: 40px; background: #C9962F; border-radius: 8px;
    font-size: 14px; font-weight: 600; color: #FFFFFF; text-decoration: none;
  }

  /* ========================================================
     2.5 首页 - 2x2 快捷入口
     ======================================================== */
  .mobile-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 16px 8px; }
  .mobile-quick-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: #FFFFFF; border: 1px solid #F0F1F3; border-radius: 12px; text-decoration: none; }
  .mobile-quick-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .mobile-quick-icon svg { width: 20px; height: 20px; }
  .mobile-quick-title { font-size: 13px; font-weight: 600; color: #1A1A2E; }
  .mobile-quick-desc { font-size: 11px; color: #9CA3AF; margin-top: 1px; }
  .mobile-quick-arrow { width: 14px; height: 14px; color: #D1D5DB; flex-shrink: 0; }

  /* ========================================================
     3. 首页 - Hero区 (紧凑版)
     ======================================================== */
  .hero { padding: 12px 16px 8px !important; gap: 10px; }
  .hero-badge, .hero-headline, .hero-subline { display: none !important; }
  .hero-search { width: 100% !important; height: 40px; border-radius: 8px; }
  .hero-search-input span { font-size: 13px; }
  .hero-search-btn { width: 56px; height: 28px; font-size: 12px; }
  .hero-tags { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hero-tags-label { flex-shrink: 0; font-size: 11px; }
  .hero-tag { height: 24px; padding: 0 10px; font-size: 11px; flex-shrink: 0; white-space: nowrap; }
  .hero-stats { display: flex; gap: 12px; margin: 0; padding: 6px 0 4px; }
  .hero-stat-num { font-size: 18px; }
  .hero-stat-label { font-size: 11px; }

  /* ========================================================
     4. 核心功能区 - 手机端删除（由2x2入口替代）
     ======================================================== */
  section.features,.features { display: none !important; }

  /* ========================================================
     5. 首页 - 问答 & 日历 (紧凑版)
     ======================================================== */
  .qa-calendar { flex-direction: column !important; padding: 16px !important; gap: 16px; }
  .qa-left, .cal-right { width: 100% !important; }
  .qa-header, .cal-header { flex-direction: row; align-items: flex-end; margin-bottom: 8px; }
  .qa-item { padding: 10px 0; gap: 3px; border-bottom: 1px solid #F0F1F3; }
  .qa-item:last-child { border-bottom: none; }
  .qa-item-title { font-size: 13px; }
  .cal-item { padding: 8px 0; gap: 8px; border-bottom: 1px solid #F0F1F3; }
  .cal-item:last-child { border-bottom: none; }
  .cal-date { width: 34px; height: 34px; }
  .cal-date-day { font-size: 13px; }
  .cal-event { font-size: 13px; }
  .cal-detail { font-size: 11px; }

  /* ========================================================
     6. CTA (紧凑)
     ======================================================== */
  .cta { padding: 20px 16px !important; gap: 10px; }
  .cta-title { font-size: 18px !important; }
  .cta-sub { font-size: 13px; }
  .cta-btn { height: 40px; padding: 0 28px; font-size: 14px; width: 100%; max-width: 280px; }

  /* ========================================================
     6.5 页脚 (占位)
     ======================================================== */

  /* ========================================================
     7. 问答页面 - 每条紧凑横排
     ======================================================== */
  .qa-page-header { padding: 12px 16px 8px !important; }
  .qa-page-title { font-size: 18px !important; }
  .qa-page-subtitle { font-size: 12px; }
  .qa-page-title-row { flex-direction: column; gap: 8px; align-items: flex-start; }
  .qa-ask-btn { width: 100%; justify-content: center; height: 36px; font-size: 13px; }
  .qa-stats-bar { gap: 6px; flex-wrap: wrap; margin-top: 8px; }
  .qa-stat-item { flex: 1 1 30%; }
  .qa-stat-num { font-size: 15px; }
  .qa-stat-label { font-size: 11px; }
  .qa-stat-divider { display: none; }
  .qa-page-body { flex-direction: column !important; padding: 8px 16px 20px !important; gap: 8px; }
  .qa-sidebar { display: none !important; }
  .qa-search-box { height: 36px; }
  .qa-filter-bar { flex-direction: column; gap: 8px; align-items: flex-start; }

  /* ⚠️ 修复：.qa-tabs 改为横向滚动，禁止竖排堆叠 */
  .qa-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px !important;
    padding-bottom: 2px;
  }
  .qa-tabs::-webkit-scrollbar { display: none; }
  .qa-tab { flex-shrink: 0 !important; white-space: nowrap !important; height: 26px; padding: 0 8px; font-size: 12px; }

  /* ⚠️ 修复：问答标签筛选条（顶部分类）横向滚动，禁止竖排 */
  .qa-tag-filters {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px !important;
    padding: 4px 0 8px !important;
  }
  .qa-tag-filters::-webkit-scrollbar { display: none; }
  .qa-tag-chip { flex-shrink: 0 !important; white-space: nowrap !important; }

  /* Q&A卡片紧凑横排 - 标题一行，标签+时间一行 */
  .q-card { flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid #F0F1F3; }
  .q-card:last-child { border-bottom: none; }
  .q-stats-col { flex-direction: row; gap: 8px; min-width: auto; padding: 0; margin: 0; }
  .q-stat-badge { flex-direction: row; gap: 4px; align-items: center; width: auto; padding: 2px 8px; font-size: 11px; border-radius: 4px; }
  .q-title { font-size: 14px; line-height: 1.4; margin: 0; }
  .q-excerpt { display: none; }
  .qa-pagination { flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 12px; }
  .page-btn { width: 28px; height: 28px; font-size: 12px; }
  .page-btn-more { height: 32px; padding: 0 16px; font-size: 12px; }

  /* ========================================================
     8. 视频页面 - 2列宫格
     ======================================================== */
  .video-page-header { padding: 12px 16px 8px !important; }
  .video-page-title { font-size: 18px !important; }
  .video-page-title-row { flex-direction: column; gap: 8px; align-items: flex-start; }
  .video-upload-btn { width: 100%; justify-content: center; height: 36px; font-size: 13px; }
  .video-stats-bar { gap: 10px; flex-wrap: wrap; margin-top: 8px; }
  .video-stat-num { font-size: 15px; }
  .video-stat-label { font-size: 11px; }
  .video-page-body { flex-direction: column !important; padding: 8px 16px 20px !important; gap: 10px; display: flex !important; }
  .video-page .video-page-body { flex-direction: column !important; }
  .video-main { width: 100% !important; max-width: 100% !important; flex: none !important; }
  .video-sidebar { display: none !important; }
  .video-featured { height: 160px; border-radius: 10px; }
  .video-categories { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .video-cat-chip { white-space: nowrap; flex-shrink: 0; height: 26px; padding: 0 10px; font-size: 12px; }
  .video-filter-bar { flex-direction: column; gap: 8px; align-items: flex-start; }
  .video-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 10px; overflow: visible; }
  .video-thumb { aspect-ratio: 4/3 !important; border-radius: 6px; overflow: hidden; }
  .video-info { padding: 6px 2px 8px; }
  .video-title { font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .video-meta { font-size: 10px; color: #9CA3AF; gap: 4px; }
  .video-pagination { flex-wrap: wrap; justify-content: center; gap: 4px; }

  /* ========================================================
     9. 文章页面 - 紧凑信息流
     ======================================================== */
  .article-page-header { padding: 12px 16px 8px !important; }
  .article-page-title { font-size: 18px !important; }
  .article-header-row { flex-direction: column; gap: 8px; align-items: flex-start; }
  .article-write-btn { width: 100%; justify-content: center; height: 36px; font-size: 13px; }
  .article-stats-bar { gap: 10px; flex-wrap: wrap; margin-top: 8px; }
  .article-stat-num { font-size: 15px; }
  .article-stat-label { font-size: 11px; }
  .article-stat-divider { display: none; }
  .article-page-body { flex-direction: column !important; padding: 8px 16px 20px !important; gap: 8px; }
  .article-sidebar { display: none !important; }
  .article-featured { flex-direction: column !important; }
  .article-featured-cover { width: 100% !important; height: 140px; border-radius: 8px; }
  .article-featured-content { padding: 14px; }
  .article-featured-title { font-size: 16px; }

  /* ⚠️ 修复：文章分类条改为横向滚动，禁止竖排堆叠
     原来是 flex-wrap: wrap，9 个分类会换行成 2-3 行，视觉上像竖排 */
  .article-categories {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px !important;
    padding-bottom: 4px;
  }
  .article-categories::-webkit-scrollbar { display: none; }
  .article-cat-chip { flex-shrink: 0 !important; white-space: nowrap !important; height: 26px; padding: 0 10px; font-size: 12px; }
  .article-cat-count { margin-left: 4px; opacity: 0.6; font-size: 11px; }

  .article-filter-bar { flex-direction: column; gap: 8px; align-items: flex-start; }

  /* ⚠️ 修复：文章排序标签也改为横向滚动 */
  .article-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    gap: 4px !important;
  }
  .article-tabs::-webkit-scrollbar { display: none; }
  .article-tab { flex-shrink: 0 !important; white-space: nowrap !important; }

  /* 文章卡片紧凑 */
  .article-card { flex-direction: row !important; gap: 12px; padding: 12px 0; align-items: flex-start; border-bottom: 1px solid #F0F1F3; }
  .article-card:last-child { border-bottom: none; }
  .article-card-cover { width: 100px !important; height: 70px !important; border-radius: 6px; flex-shrink: 0; }
  .article-card-body { flex: 1; min-width: 0; }
  .article-card-title { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .article-card-excerpt { display: none; }
  .article-card-meta { font-size: 11px; gap: 6px; flex-wrap: wrap; margin-top: 4px; color: #9CA3AF; }
  .article-pagination { flex-wrap: wrap; justify-content: center; gap: 4px; }

  /* ========================================================
     10. 资讯页面 - 信息流紧凑
     ======================================================== */
  .news-page-header { padding: 12px 16px 8px !important; }
  .news-page-title { font-size: 18px !important; }
  .news-header-row { flex-direction: column; gap: 8px; align-items: flex-start; }
  .news-ticker { max-width: 100% !important; }
  .news-ticker-text { font-size: 12px; }
  .news-stats-bar { flex-wrap: wrap; gap: 6px; }
  .news-stat-item { padding-right: 12px; }
  .news-stat-num { font-size: 15px; }
  .news-stat-label { font-size: 11px; }
  .news-stat-divider { margin-right: 12px; height: 18px; }
  .news-layout { padding: 12px !important; gap: 0; }
  .news-sidebar { display: none !important; }
  .news-filters { flex-direction: column; gap: 8px; padding: 8px 0; }

  /* ⚠️ 修复：资讯分类也横向滚动 */
  .news-cat-filters {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    gap: 4px !important;
  }
  .news-cat-filters::-webkit-scrollbar { display: none; }
  .news-cat-chip { flex-shrink: 0 !important; white-space: nowrap !important; padding: 4px 10px; font-size: 12px; }

  /* 资讯项紧凑横排 */
  .news-item { padding: 12px 0; gap: 10px; flex-direction: row; align-items: flex-start; border-bottom: 1px solid #F0F1F3; }
  .news-item:last-child { border-bottom: none; }
  .news-time-col { width: 44px; flex-shrink: 0; text-align: center; }
  .news-time { font-size: 13px; font-weight: 600; color: #C9962F; }
  .news-item-content { flex: 1; min-width: 0; }
  .news-item-title { font-size: 14px; line-height: 1.4; }
  .news-item-summary { display: none; }
  .news-item-footer { gap: 6px; flex-wrap: wrap; margin-top: 4px; }
  .news-item-tag { font-size: 10px; padding: 1px 6px; border-radius: 3px; background: #F3F4F6; color: #6B7280; }
  .news-pagination { flex-wrap: wrap; justify-content: center; gap: 4px; }
  .news-page-btn { min-width: 28px; height: 28px; font-size: 12px; padding: 0 6px; }

  /* ========================================================
     11. 顾问页面 - 2列宫格
     ======================================================== */
  .consultant-page-header { padding: 12px 16px 8px !important; }
  .consultant-page-title { font-size: 18px !important; }
  .consultant-header-row { flex-direction: column; gap: 8px; align-items: flex-start; }
  .consultant-join-btn { width: 100%; justify-content: center; height: 36px; font-size: 13px; }
  .consultant-stats-bar { gap: 10px; flex-wrap: wrap; margin-top: 8px; }
  .consultant-stat-num { font-size: 15px; }
  .consultant-stat-label { font-size: 11px; }
  .consultant-stat-divider { display: none; }
  .consultant-filters { padding: 8px 16px !important; flex-direction: column; gap: 8px; align-items: flex-start; }

  /* ⚠️ 修复：顾问分类横向滚动 */
  .consultant-cat-filters {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    gap: 6px !important;
  }
  .consultant-cat-filters::-webkit-scrollbar { display: none; }
  .consultant-cat-chip { flex-shrink: 0 !important; white-space: nowrap !important; height: 26px; padding: 0 10px; font-size: 12px; }

  .consultant-grid-wrap { padding: 0 16px 20px !important; }

  /* 顾问2列宫格 */
  .consultant-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .consultant-card { padding: 14px; text-align: center; }
  .consultant-avatar { width: 44px; height: 44px; font-size: 16px; margin: 0 auto 8px; }
  .consultant-name { font-size: 14px; margin-bottom: 4px; }
  .consultant-title { font-size: 11px; color: #9CA3AF; }
  .consultant-card-stats { gap: 8px; justify-content: center; margin-top: 6px; }
  .consultant-stat-mini-num { font-size: 13px; font-weight: 600; color: #C9962F; }
  .consultant-stat-mini-label { font-size: 10px; color: #9CA3AF; }

  /* 顾问入驻区紧凑 */
  .consultant-join-section { margin: 0 16px 24px !important; border-radius: 12px; }
  .consultant-join-content { padding: 20px !important; flex-direction: column !important; gap: 14px; text-align: center; }
  .consultant-join-title { font-size: 18px; }
  .consultant-join-benefits { gap: 10px; flex-wrap: wrap; justify-content: center; }
  .consultant-join-cta { width: 100%; max-width: 200px; height: 40px; font-size: 14px; margin: 0 auto; }

  /* ========================================================
     12. 手续费页面
     ======================================================== */
  .fee-page-header { padding: 12px 16px 8px !important; }
  .fee-header-row { flex-direction: column; gap: 8px; align-items: flex-start; }
  .fee-page-title { font-size: 18px !important; }
  .fee-stats-bar { gap: 10px; flex-wrap: wrap; margin-top: 8px; }
  .fee-stat-num { font-size: 15px; }
  .fee-stat-label { font-size: 11px; }
  .fee-stat-divider { display: none; }
  .fee-calc-section { padding: 12px 16px !important; }
  .fee-calc-title-row { flex-direction: column; gap: 4px; align-items: flex-start; margin-bottom: 10px; }
  .fee-calc-title { font-size: 16px; }
  .fee-calc-hint { font-size: 12px; }
  .calc-grid { flex-direction: column !important; gap: 10px; }
  .calc-card { padding: 16px; }
  .calc-fields { grid-template-columns: 1fr !important; gap: 10px; }
  .fee-filter-section { padding: 0 16px !important; }
  .fee-exchange-tabs { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .fee-exchange-tab { flex-shrink: 0; white-space: nowrap; }
  .fee-table-controls { flex-direction: column; gap: 10px; padding: 0 16px; }
  .fee-view-toggle { width: 100%; }
  .fee-view-btn { flex: 1; text-align: center; }
  .fee-search-box { width: 100%; }
  .fee-table-section { padding: 0 16px !important; }
  .fee-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fee-table { min-width: 600px; font-size: 12px; }
  .fee-rules-section { padding: 12px 16px !important; }
  .fee-rule-header { padding: 12px; }
  .fee-rule-title { font-size: 13px; }
  .fee-rule-content { padding: 12px; }
  .fee-disclaimer { margin: 0 16px 16px; padding: 12px; }

  /* ========================================================
     13. 开户页面
     ======================================================== */
  .open-page { padding: 0 !important; }
  .open-hero { padding: 16px 16px !important; flex-direction: column !important; gap: 10px; }
  .open-hero-left { max-width: 100% !important; }
  .open-hero h1 { font-size: 20px !important; line-height: 1.3; }
  .open-hero-desc { font-size: 13px !important; }
  .open-hero-stats { flex-direction: row; gap: 12px; flex-wrap: wrap; }
  .open-hero-stats .hero-stat { flex: 1; min-width: 80px; }
  .open-hero-right { display: none; }
  .open-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px !important; }
  .open-step { width: 100% !important; padding: 14px; text-align: center; }
  .open-step-num { font-size: 20px; }
  .open-step-title { font-size: 13px; }
  .open-step-desc { font-size: 11px; }
  .open-faq { padding: 16px 16px !important; }
  .open-faq-list { max-width: 100% !important; }
  .open-faq-item { padding: 10px 0; font-size: 13px; }

  /* ========================================================
     14. 登录 & 顾问入驻
     ======================================================== */
  .login-page, .login-wrapper, .join-page, .join-hero { padding-left: 16px !important; padding-right: 16px !important; }
  .login-wrapper { flex-direction: column !important; }
  .login-left { display: none !important; }
  .login-right { width: 100% !important; max-width: 100% !important; padding: 30px 20px !important; }
  .login-form-inner { width: 100% !important; max-width: 100% !important; }
  .login-headline { font-size: 22px !important; }
  .login-subheadline { font-size: 13px !important; margin-bottom: 24px !important; }
  .login-deco-circle, .login-bg-circle { display: none !important; }
  .join-hero-title { font-size: 20px !important; }
  .join-hero-desc { font-size: 13px !important; }

  /* ========================================================
     15. 详情页面 (文章/问答/视频详情 - 紧凑)
     ======================================================== */
  .detail-breadcrumb { padding: 12px 16px 0 !important; font-size: 12px; gap: 4px; flex-wrap: wrap; }
  .qa-detail-body, .article-detail-body { flex-direction: column !important; padding: 12px 16px 24px !important; gap: 12px; }
  .qa-detail-sidebar, .article-detail-sidebar { display: none !important; }
  .detail-main-card { padding: 14px !important; }
  .qa-detail-title, .article-detail-title { font-size: 17px !important; line-height: 1.4; margin-bottom: 10px !important; }
  .qa-detail-meta, .article-detail-meta { flex-wrap: wrap; gap: 6px; font-size: 12px; color: #9CA3AF; }
  .qa-detail-body-text, .article-detail-body-text { font-size: 14px !important; line-height: 1.7 !important; }

  /* 回答卡片紧凑 */
  .a-header { padding: 10px 0 !important; }
  .a-avatar { width: 32px; height: 32px; font-size: 13px; }
  .a-name { font-size: 13px; }
  .a-time { font-size: 11px; }
  .a-contact-strip-v2 { margin: 8px 0 !important; padding: 6px 10px !important; display: flex !important; flex-direction: row !important; gap: 8px !important; align-items: center; }
  .a-call-btn-v2 { display: flex !important; align-items: center; justify-content: center; gap: 4px; flex: 1; height: 32px; padding: 0 8px !important; font-size: 12px !important; }
  .a-wechat-btn-v2 { display: flex !important; align-items: center; justify-content: center; gap: 4px; flex: 1; height: 32px; padding: 0 8px !important; font-size: 12px !important; }
  .a-body { padding: 8px 0 !important; font-size: 13px !important; line-height: 1.7 !important; }
  .a-body p { margin-bottom: 6px; }
  .a-stats { padding: 6px 0 !important; font-size: 11px; }
  .a-footer { margin: 8px 0 !important; padding-top: 8px !important; }
  .a-actions { gap: 10px; font-size: 12px; }
  .qa-detail-answers-header { flex-direction: row; gap: 8px; align-items: center; }
  .qa-detail-answers-count { font-size: 15px; }
  .qa-detail-sort { gap: 10px; font-size: 12px; }
  .qa-detail-tags { gap: 4px; margin-bottom: 10px !important; }
  .qa-detail-tag { padding: 3px 8px; font-size: 11px; }
  .detail-related, .article-detail-related { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .geo-summary { padding: 8px 12px; margin-bottom: 10px; }
  .geo-summary p { font-size: 12px; }

  /* 文章作者卡片紧凑 */
  .article-detail-author { padding: 10px 0 !important; }
  .author-card { padding: 12px !important; }

  /* 联系弹窗 */
  .mobile-contact-popup { position: fixed; top:0; left:0; right:0; bottom:0; z-index:9999; display:flex; align-items:center; justify-content:center; }
  .mobile-contact-overlay { position: absolute; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); }
  .mobile-contact-modal { position:relative; width:86%; max-width:300px; background:#FFF; border-radius:16px; padding:24px 20px 20px; z-index:1; }
  .mobile-contact-title { font-size:16px; font-weight:600; text-align:center; color:#1A1A2E; margin-bottom:14px; }
  .mobile-contact-body { display:flex; flex-direction:column; gap:12px; }
  .mobile-contact-item { background:#F7F8FA; border-radius:10px; padding:12px; display:flex; flex-direction:column; align-items:center; gap:4px; }
  .mobile-contact-label { font-size:12px; color:#9CA3AF; }
  .mobile-contact-value { font-size:14px; font-weight:500; color:#1A1A2E; }
  .mobile-contact-qr-placeholder { width:80px; height:80px; background:#FFF; border:1px dashed #D1D5DB; border-radius:8px; display:flex; align-items:center; justify-content:center; margin:6px 0; }
  .mobile-contact-call-btn { display:flex; align-items:center; justify-content:center; height:32px; padding:0 20px; background:#C9962F; border:none; border-radius:6px; font-size:13px; font-weight:500; color:#FFF; cursor:pointer; margin-top:4px; }
  .mobile-contact-close { display:flex; align-items:center; justify-content:center; width:100%; height:36px; background:none; border:1px solid #E5E7EB; border-radius:8px; font-size:13px; color:#6B7280; cursor:pointer; margin-top:10px; }

  /* ========================================================
     16. 页脚 - 双列网格
     ======================================================== */
  .footer { padding: 16px 16px !important; gap: 12px; }
  .footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-brand { grid-column: 1 / -1; gap: 4px; margin-bottom: 4px; }
  .footer-brand-name { font-size: 13px; }
  .footer-links-col { gap: 4px; }
  .footer-links-title { font-size: 12px; }
  .footer-links-item { font-size: 11px; }
  .footer-risk { padding: 8px 0 0; }
  .footer-warning-box { gap: 4px; padding: 4px 0; }
  .footer-warning-icon { font-size: 12px; }
  .footer-warning-title { font-size: 12px; }
  .footer-warning-desc { font-size: 11px; line-height: 1.4; }
  .footer-risk-text { font-size: 10px; }
  .footer-bottom { font-size: 10px; line-height: 1.4; padding-top: 6px; border-top: 1px solid #F0F1F3; }

  /* ========================================================
     17. 通用组件适配
     ======================================================== */
  .preview-badge { top: 116px; right: 12px; font-size: 10px; padding: 3px 8px; }

  /* ========================================================
     18. 终极防溢出
     ======================================================== */
  section, div, main, article, aside, header, footer, nav,
  .page-home, .page-qa, .page-video, .page-article, .page-news,
  .page-consultant, .page-fee, .page-open, .page-login, .page-join,
  .qa-page, .video-page, .article-page, .news-page,
  .consultant-page, .fee-page, .open-page, .login-page, .join-page {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  input, textarea, select { max-width: 100% !important; }

} /* END @media (max-width: 768px) */
