/* ============================================================
   小程序首页视觉（从 wechat_miniapp/pages/index 原样移植，rpx→px 按 2:1）
   类名尽量与小程序一致
   ============================================================ */
body { background: #F7F4EE; }
.mp-page { min-height: 100vh; background: #F7F4EE; padding-bottom: 20px; }

/* 首屏 */
.mp-hero {
  position: relative; overflow: hidden; padding: 19px 0 38px;
  background: linear-gradient(165deg,#0B1120 0%,#131C31 48%,#1E2740 100%);
}
.mp-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(201,166,107,0), #C9A66B, rgba(201,166,107,0));
}
.hero-glow {
  position: absolute; top: -90px; right: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,166,107,.26) 0%, rgba(201,166,107,0) 70%);
}
.hero-ring {
  position: absolute; bottom: -85px; left: -75px; width: 200px; height: 200px; border-radius: 50%;
  border: 1px solid rgba(201,166,107,.18);
}
.hero-inner { position: relative; padding: 0 22px; }

.brand-row { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; }
.brand-mark { width: 7px; height: 7px; margin-right: 7px; background: linear-gradient(135deg,#EFDCB6,#B38644); transform: rotate(45deg); }
.brand-text { font-size: 11px; color: rgba(255,255,255,.70); letter-spacing: 1px; }
.brand-year { font-size: 10px; color: rgba(201,166,107,.72); font-family: Georgia,"Times New Roman",serif; letter-spacing: 1.5px; }

.eyebrow { display: flex; align-items: center; justify-content: center; margin-top: 28px; }
.eyebrow-line { width: 27px; height: 1px; background: rgba(201,166,107,.42); }
.eyebrow-text { margin: 0 8px; font-size: 9px; color: #C9A66B; letter-spacing: 2px; }

.mp-hero .hero-title {
  margin-top: 12px; text-align: center; font-size: 27px; line-height: 1.28;
  font-weight: 700; color: #fff; letter-spacing: 2.5px;
}
.mp-hero .hero-desc { margin-top: 8px; text-align: center; font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: 1.5px; }

.hero-stats {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 21px; padding: 12px 3px;
  border-top: 1px solid rgba(201,166,107,.22); border-bottom: 1px solid rgba(201,166,107,.22);
}
.stat { flex: 1; text-align: center; }
.stat-num { font-size: 19px; font-weight: 700; color: #F3E6CB; font-family: Georgia,"Times New Roman",serif; letter-spacing: .5px; }
.stat-unit { margin-left: 2px; font-size: 10px; color: #C9A66B; }
.stat-label { margin-top: 4px; font-size: 9.5px; color: rgba(255,255,255,.46); letter-spacing: .5px; }
.stat-sep { width: 1px; height: 22px; background: rgba(201,166,107,.24); }

/* 内容区（底部留出固定导航的高度，避免遮挡最后一张卡片/提示） */
.mp-container { padding: 0 12px 96px; }
.search-bar { position: relative; z-index: 3; margin-top: -20px; }
.search-box {
  display: flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 12px;
  background: #fff; border: 1px solid rgba(201,166,107,.35);
  box-shadow: 0 8px 24px rgba(11,17,32,.16);
}
.search-input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 13px; color: #141A26; }
.search-input::placeholder { color: #A2A9B4; }
.search-clear { color: #A2A9B4; font-size: 13px; padding-left: 8px; cursor: pointer; }

.list-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 20px 0 14px; }
.list-head-main { flex: 1; }
.list-eyebrow { font-size: 10px; color: #B38644; letter-spacing: 2px; }
.list-title { margin-top: 5px; font-size: 17px; font-weight: 700; letter-spacing: .5px; color: #141A26; }
.list-count {
  padding: 2px 8px; font-size: 9.5px; letter-spacing: .5px; color: #8A6A33;
  border: 1px solid rgba(201,166,107,.45); border-radius: 999px; white-space: nowrap;
}

.mp-tabs { white-space: nowrap; margin-bottom: 12px; overflow-x: auto; }
.mp-tab {
  display: inline-block; padding: 6px 14px; margin-right: 7px;
  font-size: 12px; letter-spacing: .5px; color: #7A8391; background: #fff;
  border: 0; border-radius: 999px; cursor: pointer;
}
.mp-tab.active {
  color: #F2E0BA; font-weight: 700;
  background: linear-gradient(135deg,#1B2438,#0B1120);
  box-shadow: 0 4px 10px rgba(11,17,32,.20);
}

.mp-grid { display: flex; flex-wrap: wrap; justify-content: space-between; }
.mp-card {
  width: 48.6%; padding: 13px 12px 11px; margin-bottom: 10px; box-sizing: border-box;
  background: #fff; border: 1px solid rgba(201,166,107,.20); border-radius: 8px;
  box-shadow: 0 7px 17px rgba(11,17,32,.18); cursor: pointer;
}
.item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.item-cat { padding: 2px 7px; font-size: 9.5px; letter-spacing: .5px; color: #0B1120; background: #f0ece8; border-radius: 5px; }
.item-q { font-size: 9.5px; color: #A2A9B4; }
.item-name { min-height: 42px; font-size: 14.5px; font-weight: 700; line-height: 1.45; color: #141A26; }
.item-intro {
  margin-top: 5px; height: 38px; overflow: hidden; font-size: 11px; line-height: 1.72; color: #5B6472;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.item-foot { display: flex; justify-content: flex-end; margin-top: 9px; padding-top: 8px; border-top: 1px solid #F2EEE6; }
.buy-btn {
  padding: 5px 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; color: #2A1F0E;
  background: linear-gradient(135deg,#F2E0BA 0%,#C9A66B 55%,#A9793A 100%);
  border-radius: 999px; box-shadow: 0 4px 9px rgba(201,166,107,.28);
}
/* 空态 / 加载 / 底部提示 */
.mp-empty {
  margin-bottom: 10px; padding: 40px 12px; text-align: center; color: #8A93A0;
  font-size: 12.5px; line-height: 1.9; background: #fff;
  border: 1px solid rgba(201,166,107,.22); border-radius: 6px; box-shadow: 0 6px 15px rgba(11,17,32,.10);
}
.loadmore { padding: 13px 0 4px; text-align: center; color: #A2A9B4; font-size: 11px; letter-spacing: .5px; }
.loadmore .link { color: #B38644; cursor: pointer; }
.foot-tip {
  margin-top: 15px; padding: 12px 13px; background: #EFEAE0; border: 1px solid rgba(201,166,107,.18);
  border-radius: 5px; text-align: center; font-size: 10.5px; line-height: 1.8; color: #7C8492;
}

/* 底部导航（首页 / 个人中心） */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; height: 56px; padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.96); border-top: 1px solid rgba(201,166,107,.22);
  -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
}
/* 底部浮动导航：首页 / 子栏目 / 我的 / 答题 / 支付 / 报告 全部显示 */
.bottom-nav { display: flex; }
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10.5px; color: #8A93A0; cursor: pointer;
}
.bottom-nav-item.active { color: #B38644; font-weight: 700; }
.bn-icon { width: 18px; height: 18px; border: 1.5px solid currentColor; opacity: .9; }
.bn-home { border-radius: 4px 4px 8px 8px; }
.bn-user { border-radius: 50%; }

/* 我的：底部同样留出导航高度 */
#view-mine { padding-bottom: 76px; }
/* 文档子栏目：底部留出浮动导航高度，避免最后一行被压 */
#view-doc  { padding-bottom: 80px; }
#view-home { padding-bottom: 0; }

/* 页脚（版权 + 备案号）：底部留出浮动导航高度，避免被压住 */
.site-foot { padding-bottom: 84px; }

/* 电脑端：居中 + 三列 */
@media (min-width: 760px) {
  .mp-hero { padding: 34px 0 54px; }
  .hero-inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
  .mp-container { max-width: 1080px; margin: 0 auto; padding: 0 24px 110px; }
  .mp-hero .hero-title { font-size: 34px; }
  .mp-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11,17,32,.22); }
}
@media (min-width: 1040px) {
  .mp-card { width: 32%; }
  .bottom-nav { max-width: 1080px; margin: 0 auto; border-radius: 16px 16px 0 0; }
}

/* 顶部站点栏与小程序同色系 */
.site-head { background: rgba(11,17,32,.94); border-bottom: 1px solid rgba(201,166,107,.22); }
.brand-name { color: #F3E6CB; }
.brand-sub { color: rgba(255,255,255,.55); }
.brand-logo { background: linear-gradient(135deg,#EFDCB6,#B38644); color: #2A1F0E; }
.burger { background: rgba(255,255,255,.10); border-color: rgba(201,166,107,.35); }
.burger span, .burger span::before, .burger span::after { background: #F3E6CB; }
.head-nav a { color: rgba(255,255,255,.72); }
.head-nav a:hover { color: #F3E6CB; }
