/* ============================================================
 * 奶龙账号 · 移动端样式
 * 尺寸/间距/字号按原站 1:1 校准
 * ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5; overflow-x: hidden;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
a { text-decoration: none; color: inherit; }
svg { display: block; }
input, select, textarea, button { font-family: inherit; }
img { -webkit-user-drag: none; -webkit-touch-callout: none; }

.app-container {
  max-width: 430px; margin: 0 auto; background: #fff;
  min-height: 100vh; position: relative; padding-bottom: 50px;
}

/* ===== 顶部广告条 ===== */
.top-banner { width: 100%; height: 40px; background: #fff5f0; overflow: hidden; position: relative; }

/* ===== 标题栏 ===== */
.header {
  padding: 8px 12px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  transition: padding 0.3s ease, background 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 4px 12px;
}
.header-left { display: flex; align-items: center; gap: 6px; }
.header-left .logo-box {
  height: 22px; width: 22px; flex: 0 0 22px; border-radius: 6px;
  background: linear-gradient(135deg,#e1251b,#ff5a3c);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: height 0.3s ease, width 0.3s ease;
}
.header.scrolled .header-left .logo-box { height: 17px; width: 17px; flex-basis: 17px; }
.header-left .logo-box svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.header-left .brand-name { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.header-right { display: flex; align-items: center; gap: 6px; }
.header-right .hbtn {
  height: 22px; padding: 0 10px; border-radius: 11px;
  border: 1px solid #e1251b; color: #e1251b; font-size: 11px;
  display: flex; align-items: center;
}

/* ===== 搜索框 ===== */
.search-box {
  margin: 0 12px 10px; border: 1.5px solid #333; border-radius: 20px;
  display: flex; align-items: center; padding: 6px 12px; background: #fff;
}
.search-icon { width: 16px; height: 16px; margin-right: 6px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.search-icon svg { width: 100%; height: 100%; stroke: #333; fill: none; stroke-width: 2; stroke-linecap: round; }
.search-input {
  flex: 1; border: none; outline: none; font-size: 13px; color: #333;
  background: transparent; -webkit-user-select: auto; user-select: auto; min-width: 0;
}
.search-input::placeholder { color: #999; }
.search-btn {
  font-size: 13px; color: #333; font-weight: 500; background: none; border: none;
  border-left: 1px solid #eee; padding-left: 10px; cursor: pointer;
}

/* ===== 功能图标 ===== */
.features { display: flex; justify-content: space-around; padding: 0 4px 10px; }
.feature-item { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.feature-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fi1 { background: linear-gradient(135deg,#fff1ef,#ffd9d3); }
.fi1 svg { stroke: #e1251b; }
.fi2 { background: linear-gradient(135deg,#eef5ff,#d6e6ff); }
.fi2 svg { stroke: #1e6fe0; }
.fi3 { background: linear-gradient(135deg,#eefcf3,#d2f5e0); }
.fi3 svg { stroke: #0aa649; }
.fi4 { background: linear-gradient(135deg,#fff9e9,#ffeec0); }
.fi4 svg { stroke: #d99a00; }
.fi5 { background: linear-gradient(135deg,#f6f0ff,#e7d7ff); }
.fi5 svg { stroke: #7a3fe0; }
.feature-text { font-size: 10px; color: #333; white-space: nowrap; }

/* ===== 轮播图 ===== */
.carousel-wrap { margin: 0 12px 8px; position: relative; overflow: hidden; border-radius: 8px; height: 88px; }
.carousel-track { display: flex; height: 100%; width: 100%; transition: transform 0.4s ease; }
.carousel-slide {
  width: 100%; height: 100%; flex: 0 0 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 16px; color: #fff; position: relative; overflow: hidden;
}
.carousel-slide::after {
  content: ''; position: absolute; right: -24px; top: -24px;
  width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.14);
}
.carousel-slide h4 { font-size: 15px; font-weight: 700; margin-bottom: 3px; position: relative; z-index: 1; }
.carousel-slide p { font-size: 11px; opacity: .92; position: relative; z-index: 1; }
.cs1 { background: linear-gradient(135deg,#e1251b,#ff7b54); }
.cs2 { background: linear-gradient(135deg,#1e6fe0,#54a8ff); }
.cs3 { background: linear-gradient(135deg,#0aa649,#4fd98a); }
.carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: all 0.3s; cursor: pointer; }
.carousel-dot.active { width: 14px; border-radius: 3px; background: rgba(255,255,255,0.95); }

/* ===== 游戏网格 ===== */
.games-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 2px; padding: 0 8px 10px; }
.game-item { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.game-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #f0f0f0; position: relative;
}
.game-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.game-icon .badge {
  position: absolute; top: -2px; right: -2px; font-size: 8px; line-height: 1;
  padding: 2px 4px; border-radius: 5px; color: #fff;
}
.game-icon .badge.hot { background: #e1251b; }
.game-icon .badge.new { background: #0aa649; }
.game-name {
  font-size: 9.5px; color: #333; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;
}
.g1 { background: linear-gradient(135deg,#ff8a3d,#ff5e2b); }
.g2 { background: linear-gradient(135deg,#4a6cf7,#7b4dff); }
.g3 { background: linear-gradient(135deg,#2b3452,#4b5a7d); }
.g4 { background: linear-gradient(135deg,#ffb03a,#ff8a00); }
.g5 { background: linear-gradient(135deg,#2b5c3f,#4a8a5c); }
.g6 { background: linear-gradient(135deg,#1a3a5c,#2e6d9e); }
.g7 { background: linear-gradient(135deg,#ff4655,#ff7a5c); }
.g8 { background: linear-gradient(135deg,#5ac8fa,#2f9ee8); }
.g9 { background: linear-gradient(135deg,#7b5cf0,#a98bff); }
.g10 { background: linear-gradient(135deg,#9aa5b1,#c3cbd6); }

/* ===== 新人券包横幅 ===== */
.coupon-banner {
  margin: 0 12px 10px; background: linear-gradient(90deg, #e1251b, #ff3b30);
  border-radius: 12px; padding: 9px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.coupon-left { display: flex; align-items: center; gap: 6px; }
.coupon-icon svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.coupon-text { font-size: 15px; font-weight: 700; color: #fff; }
.coupon-status { font-size: 11px; color: rgba(255,255,255,0.85); }
.coupon-right { display: flex; align-items: center; gap: 8px; }
.coupon-amount { font-size: 20px; font-weight: 700; color: #fff; }
.coupon-btn {
  background: #fff; color: #e1251b; font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 13px;
}

/* ===== 活动区 ===== */
.activity-section { padding: 0 16px; }
.activity-main { display: flex; gap: 8px; margin-bottom: 16px; }
.activity-left-card {
  flex: 1.2; background: #fafafa; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
}
.activity-left-slide { width: 100%; display: flex; flex-direction: column; position: relative; }
.activity-left-tag {
  position: absolute; top: 8px; left: 8px; background: #ffe4e8; color: #ff4d6f;
  font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 500; z-index: 2;
}
.activity-left-top { padding: 32px 12px 4px; }
.activity-left-top h4 { font-size: 15px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; line-height: 1.3; }
.activity-left-top p { font-size: 12px; color: #888; }
.activity-left-img {
  width: 100%; height: 80px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.activity-right-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.activity-mini {
  background: #fafafa; border-radius: 12px; padding: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden; gap: 2px;
}
.activity-mini .mini-icon { display: flex; align-items: center; justify-content: center; }
.activity-mini .mini-icon svg { width: 30px; height: 30px; stroke: #e1251b; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.activity-mini .mini-text { font-size: 9px; color: #666; }
.tag-red {
  background: #ff4d4f; color: white; font-size: 9px; padding: 2px 5px;
  border-radius: 4px; position: absolute; top: 4px; left: 4px; z-index: 2;
}

/* ===== 代言人区 ===== */
.spokesperson { padding: 0 16px 8px; }
.spokesperson-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.spokesperson-title span { color: #ff4d4f; }
.spokesperson-banner {
  width: 100%; border-radius: 12px; overflow: hidden; position: relative;
  background: linear-gradient(135deg,#1a1a1a,#3b3b3b); height: 200px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.spokesperson-banner .sp-inner { text-align: center; position: relative; z-index: 1; }
.spokesperson-banner .sp-inner h4 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.spokesperson-banner .sp-inner p { font-size: 12px; opacity: .75; }
.spokesperson-banner::after {
  content: ''; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px;
  border-radius: 50%; background: rgba(255,255,255,.05);
}
.spokesperson-name { font-size: 14px; color: #333; margin-top: 8px; }

/* ===== 选择理由 ===== */
.reason-section { padding: 0 16px 16px; }
.reason-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.reason-title span { color: #999; font-size: 14px; margin-left: 8px; font-weight: 400; }
.reason-desc { font-size: 14px; color: #666; margin-bottom: 16px; }
.reason-card { background: #fafafa; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.reason-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.reason-card .reason-icon { width: 28px; height: 28px; flex: 0 0 auto; }
.reason-card .reason-icon svg { width: 100%; height: 100%; stroke: #e1251b; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.reason-card p { font-size: 12px; color: #888; padding-left: 36px; }
.reason-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reason-item { display: flex; flex-direction: column; gap: 4px; }
.reason-item .icon { width: 28px; height: 28px; margin-bottom: 4px; }
.reason-item .icon svg { width: 100%; height: 100%; stroke: #e1251b; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.reason-item h5 { font-size: 14px; font-weight: 600; }
.reason-item p { font-size: 12px; color: #888; }

/* ===== 实力保障 ===== */
.stats-row { display: flex; justify-content: space-around; text-align: center; margin-bottom: 16px; }
.stats-row div div:first-child { font-size: 20px; font-weight: 700; color: #1a1a1a; }
.stats-row div div:last-child { font-size: 12px; color: #666; }

/* ===== 品牌动态 ===== */
.brand-news { padding: 0 16px 16px; }
.brand-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.brand-title span { color: #999; font-size: 14px; margin-left: 8px; font-weight: 400; }
.news-card { background: #fafafa; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.news-card .news-img {
  width: 100%; height: 140px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#ff8a3d,#ff5e2b); color: #fff;
}
.news-card .news-img svg { width: 44px; height: 44px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.news-card p { padding: 10px; font-size: 14px; color: #333; }

/* ===== 公益 ===== */
.charity-section { padding: 0 16px 16px; }
.charity-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.charity-title span { color: #999; font-size: 14px; margin-left: 8px; font-weight: 400; }
.charity-desc { font-size: 14px; color: #666; margin-bottom: 16px; }
.charity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.charity-item { border-radius: 12px; overflow: hidden; }
.charity-item .ch-img {
  width: 100%; height: 100px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#5ac8fa,#2f9ee8); color: #fff;
}
.charity-item .ch-img svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.charity-item .date { font-size: 12px; color: #999; padding: 8px 0 4px; }
.charity-item .text { font-size: 13px; color: #333; line-height: 1.4; }
.charity-link { font-size: 13px; color: #333; text-decoration: underline; margin-top: 4px; display: inline-block; }

/* ===== 关于 ===== */
.about-section { padding: 0 16px 16px; }
.about-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.about-title span { color: #999; font-size: 14px; margin-left: 8px; font-weight: 400; }
.about-text { font-size: 14px; color: #333; line-height: 1.6; margin-bottom: 16px; }
.timeline-item { margin-bottom: 16px; padding-left: 20px; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: 6px; top: 6px; width: 8px; height: 8px; background: #333; border-radius: 50%; }
.timeline-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.timeline-item p { font-size: 14px; color: #666; line-height: 1.5; }

/* ===== 底部商标 ===== */
.brand-footer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 16px 100px; background: #fff;
}
.brand-footer .fbox {
  height: 20px; width: 20px; flex: 0 0 20px; border-radius: 6px;
  background: linear-gradient(135deg,#e1251b,#ff5a3c);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.brand-footer .fbox svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-footer span { font-size: 13px; color: #333; font-weight: 500; }

/* ===== 底部导航 ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 50px; background: #fff;
  display: flex; justify-content: space-around; align-items: flex-start;
  padding-top: 4px; z-index: 50; border-top: 0.5px solid #f0f0f0;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-size: 9px; color: #999; text-decoration: none; flex: 1; padding-top: 0;
}
.nav-item.active { color: #333; font-weight: 600; }
.nav-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.nav-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-sell { padding-top: 0; margin-top: -10px; }
.nav-sell-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; overflow: visible; }
.nav-sell-icon .sell-btn {
  width: 44px; height: 44px; border-radius: 50%; background: #E1251B;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(225,37,27,.35);
  animation: sellPulse 2s ease-in-out infinite; position: relative;
}
.nav-sell-icon .sell-btn::before, .nav-sell-icon .sell-btn::after {
  content: ''; position: absolute; background: #fff; border-radius: 2px;
}
.nav-sell-icon .sell-btn::before { width: 18px; height: 3px; }
.nav-sell-icon .sell-btn::after { width: 3px; height: 18px; }
.nav-sell span:last-child { font-size: 9px; color: #333; font-weight: 600; margin-top: 0; }
@keyframes sellPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ===== 注册立减横幅 ===== */
.register-banner {
  position: fixed; bottom: 50px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 24px); max-width: 406px;
  background: linear-gradient(90deg, #2b2b2b, #3b3b3b);
  border-radius: 10px; padding: 8px 14px;
  display: flex; align-items: center; justify-content: space-between; z-index: 49;
}
.register-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.register-icon-img { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.register-icon-img svg { width: 24px; height: 24px; stroke: #ffc247; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.register-text { font-size: 16px; font-weight: 700; color: #fff; white-space: nowrap; }
.register-text .hl { color: #ffc247; }
.register-btn {
  background: #e60012; color: #fff; font-size: 15px; font-weight: 700;
  padding: 8px 16px; border-radius: 8px; white-space: nowrap;
}

/* ===== 在售推荐位 ===== */
.qg-sec { padding: 14px 12px 4px; background: #fff; margin-top: 8px; }
.qg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.qg-head b { font-size: 16px; color: #1a1a1a; font-weight: 600; }
.qg-head span { font-size: 12px; color: #999; }
.qg-row { display: flex; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.qg-row::-webkit-scrollbar { display: none; }
.qg-card { flex: 0 0 132px; width: 132px; text-decoration: none; color: inherit; display: block; }
.qg-imgwrap {
  position: relative; width: 132px; height: 104px; border-radius: 8px;
  overflow: hidden; background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
}
.qg-imgwrap svg { width: 40px; height: 40px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.qg-tag {
  position: absolute; left: 6px; top: 6px; background: rgba(21,159,149,.92);
  color: #fff; font-size: 10px; line-height: 1; padding: 3px 6px; border-radius: 7px;
}
.qg-title {
  font-size: 12px; color: #333; line-height: 1.35; margin-top: 6px; height: 33px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.qg-price { margin-top: 4px; font-size: 14px; color: #E8813A; font-weight: 600; }

/* ============================================================
 * 内页通用组件（列表 / 表单 / 详情）
 * ============================================================ */

.page-back {
  display: flex; align-items: center; gap: 4px; font-size: 13px; color: #333;
  padding: 10px 12px 0;
}
.page-back svg { width: 16px; height: 16px; stroke: #333; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.page-head { padding: 12px 16px 8px; display: flex; align-items: baseline; justify-content: space-between; }
.page-head h2 { font-size: 20px; font-weight: 700; }
.page-head .cnt { font-size: 12px; color: #999; }

.filter-tabs { display: flex; gap: 8px; padding: 8px 16px 12px; overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs a {
  white-space: nowrap; font-size: 12px; color: #666;
  background: #f5f5f5; border-radius: 14px; padding: 5px 12px;
}
.filter-tabs a.on { background: #e1251b; color: #fff; }

/* 商品卡片 */
.goods-list { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.goods-card {
  background: #fff; border-radius: 12px; padding: 10px;
  display: flex; gap: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.goods-thumb {
  flex: 0 0 80px; height: 80px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; position: relative; overflow: hidden;
}
.goods-thumb svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.goods-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.goods-title {
  font-size: 13px; font-weight: 500; line-height: 1.4; color: #1a1a1a;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.goods-meta { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.goods-tag { font-size: 10px; color: #b0574f; background: #fff5f0; border-radius: 3px; padding: 1px 5px; }
.goods-bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 6px; }
.goods-price { font-size: 17px; color: #e1251b; font-weight: 700; font-variant-numeric: tabular-nums; }
.goods-price small { font-size: 11px; font-weight: 500; margin-right: 1px; }
.goods-buy { font-size: 11px; color: #fff; background: #e1251b; border-radius: 12px; padding: 4px 12px; white-space: nowrap; }
.old-price { font-size: 11px; color: #bbb; text-decoration: line-through; margin-left: 5px; }

/* 表单 */
.form-box { background: #fff; padding: 16px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: #333; font-weight: 600; margin-bottom: 7px; }
.form-row label .req { color: #e1251b; margin-left: 2px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; border: 1px solid #e5e5e5; border-radius: 8px;
  padding: 11px 13px; font-size: 14px; outline: none; background: #fff; color: #333;
  -webkit-appearance: none; appearance: none;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: #e1251b; }
.form-row textarea { resize: vertical; min-height: 80px; }
.form-row .hint { font-size: 11px; color: #999; margin-top: 5px; }
.form-submit {
  width: 100%; border: 0; background: #e1251b; color: #fff;
  border-radius: 24px; padding: 13px; font-size: 15px; font-weight: 600;
  margin-top: 8px; box-shadow: 0 4px 14px rgba(225,37,27,.28); cursor: pointer;
}
.form-submit:active { opacity: .9; }

/* 提示 */
.notice { background: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px; padding: 12px; margin: 12px 16px; font-size: 12px; color: #8a6d3b; line-height: 1.6; }
.notice b { color: #b8860b; }

/* 空状态 */
.empty { padding: 60px 20px; text-align: center; color: #999; font-size: 13px; }
.empty svg { width: 52px; height: 52px; margin: 0 auto 14px; stroke: #ddd; fill: none; stroke-width: 1.5; }

/* 消息 */
.msg-list { background: #fff; }
.msg-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f5f5f5; align-items: center; }
.msg-item:last-child { border-bottom: 0; }
.msg-avatar { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; }
.msg-body { flex: 1; min-width: 0; }
.msg-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3px; }
.msg-name { font-size: 14px; font-weight: 500; }
.msg-time { font-size: 11px; color: #bbb; }
.msg-preview { font-size: 12px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-badge { background: #e1251b; color: #fff; font-size: 10px; border-radius: 9px; padding: 1px 6px; margin-left: 6px; }

/* 个人中心 */
.me-header { background: linear-gradient(135deg,#e1251b,#ff5a3c); padding: 24px 16px 30px; color: #fff; display: flex; align-items: center; gap: 14px; }
.me-avatar { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; }
.me-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.me-sub { font-size: 12px; opacity: .85; }
.me-assets { margin: -18px 16px 0; background: #fff; border-radius: 12px; padding: 16px; display: grid; grid-template-columns: repeat(3,1fr); text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.06); position: relative; z-index: 1; }
.me-assets b { display: block; font-size: 17px; color: #e1251b; font-weight: 700; }
.me-assets span { font-size: 11px; color: #999; }
.me-menu { background: #fff; margin-top: 12px; }
.me-menu a { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.me-menu a:last-child { border-bottom: 0; }
.me-menu svg { width: 20px; height: 20px; fill: none; stroke: #666; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.me-menu .arrow { margin-left: auto; color: #ccc; }

/* 文档区 */
.doc-section { background: #fff; padding: 16px; margin-bottom: 8px; }
.doc-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.doc-section p { font-size: 13px; color: #666; line-height: 1.8; margin-bottom: 8px; }
.doc-section ul { padding-left: 18px; }
.doc-section li { font-size: 13px; color: #666; line-height: 1.9; list-style: disc; }

/* ============================================================
 * 追加：按原站截图对齐的组件
 * ============================================================ */

/* ===== 顶部下载条 ===== */
.dl-banner {
  width: 100%; height: 40px; background: linear-gradient(90deg,#fff2f2,#ffe9e6);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}
.dl-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dl-logo {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px;
  background: linear-gradient(135deg,#e1251b,#ff5a3c);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.dl-text { font-size: 13px; color: #333; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-btn {
  flex: 0 0 auto; background: #e1251b; color: #fff; font-size: 12px;
  font-weight: 600; padding: 5px 12px; border-radius: 6px; white-space: nowrap;
}

/* ===== 标题栏 ===== */
.brand-slogan { font-size: 15px; font-weight: 700; color: #1a1a1a; white-space: nowrap; }
.head-icon {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
}

/* ===== 搜索框 ===== */
.search-tagline {
  display: flex; align-items: center; gap: 4px; flex: 0 0 auto;
  padding: 0 10px; border-left: 1px solid #eee; margin-left: 2px;
}
.search-tagline span { font-size: 12px; color: #e1251b; font-weight: 600; white-space: nowrap; }
.search-box .search-input { flex: 1; }

/* ===== 功能图标（彩色渐变 + 白图标）===== */
.fi1 { background: linear-gradient(135deg,#8b5cf6,#6366f1); }
.fi2 { background: linear-gradient(135deg,#fbbf24,#f59e0b); }
.fi3 { background: linear-gradient(135deg,#a78bfa,#8b5cf6); }
.fi4 { background: linear-gradient(135deg,#34d399,#10b981); }
.fi5 { background: linear-gradient(135deg,#fbbf24,#f97316); }
.fi1 svg, .fi2 svg, .fi3 svg, .fi4 svg, .fi5 svg { stroke: #fff; }
.fi-ai {
  font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -.5px;
  font-style: italic;
}

/* ===== 轮播（文字 + 插画）===== */
.carousel-slide { flex-direction: row; align-items: center; justify-content: space-between; padding: 0 16px; }
.cs-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.cs-text h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.cs-text p { font-size: 11px; opacity: .92; }
.cs-art { flex: 0 0 auto; opacity: .85; position: relative; z-index: 1; display: flex; align-items: center; }
.carousel-slide.cs1 { background: linear-gradient(135deg,#34d399,#10b981); }
.carousel-slide.cs2 { background: linear-gradient(135deg,#e1251b,#ff7b54); }
.carousel-slide.cs3 { background: linear-gradient(135deg,#1e6fe0,#54a8ff); }

/* ===== 各游戏配色 ===== */
.gi-heping   { background: linear-gradient(135deg,#4a5568,#2d3748); }
.gi-wangzhe  { background: linear-gradient(135deg,#6b46c1,#4c1d95); }
.gi-diwu     { background: linear-gradient(135deg,#2d3748,#1a202c); }
.gi-taopao   { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.gi-shiming  { background: linear-gradient(135deg,#4a5568,#1a202c); }
.gi-sanjiao  { background: linear-gradient(135deg,#22543d,#1a202c); }
.gi-wuwei    { background: linear-gradient(135deg,#ef4444,#991b1b); }
.gi-guangyu  { background: linear-gradient(135deg,#fbbf24,#f59e0b); }
.gi-chao     { background: linear-gradient(135deg,#1a202c,#2d3748); }
.gi-yuan     { background: linear-gradient(135deg,#8b5cf6,#6d28d9); }
.gi-all      { background: #f5f5f5; }
.gi-all-txt { font-size: 12px; font-weight: 800; color: #999; letter-spacing: -.3px; }

/* ===== 券包（红色横条）===== */
.coupon-banner {
  margin: 0 12px 10px; background: linear-gradient(90deg,#e1251b,#ff3b30);
  border-radius: 12px; padding: 9px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.coupon-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.coupon-txt-wrap { min-width: 0; }
.coupon-text { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; }
.coupon-status { font-size: 11px; color: rgba(255,255,255,.85); line-height: 1.3; margin-top: 1px; }
.coupon-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.coupon-amount { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.coupon-btn {
  background: #fff; color: #e1251b; font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 14px; white-space: nowrap;
}

/* ===== 活动区 ===== */
.activity-left-card { background: #fff2f4; }
.activity-left-tag { background: #ffe0e6; color: #e1251b; }
.activity-left-img svg { display: block; }
.activity-mini { background: #fafafa; }
.mi-sale  { background: linear-gradient(135deg,#ff8a3d,#ff5e2b); width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; position: relative; }
.mi-buy   { background: linear-gradient(135deg,#fbbf24,#f59e0b); width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.mi-pay   { background: linear-gradient(135deg,#fbbf24,#f97316); width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.mi-month { background: linear-gradient(135deg,#60a5fa,#3b82f6); width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.mi-tag {
  position: absolute; top: -5px; right: -6px; background: #e1251b; color: #fff;
  font-size: 8px; line-height: 1; padding: 2px 4px; border-radius: 5px; font-weight: 600;
}
.activity-mini .mini-text { font-size: 10px; color: #333; margin-top: 2px; }

/* ===== 底部导航首页图标 ===== */
.ni-home {
  width: 22px; height: 22px; border-radius: 6px;
  background: #e1251b; display: flex; align-items: center; justify-content: center;
}
.ni-p { font-size: 13px; font-weight: 900; color: #fff; line-height: 1; }
.nav-item.active .ni-home { background: #e1251b; }

/* ===== 在售推荐卡片图 ===== */
.qg-imgwrap { display: flex; align-items: center; justify-content: center; }
.qg-imgwrap.gi-heping, .qg-imgwrap.gi-wangzhe, .qg-imgwrap.gi-yuan { color: #fff; }

/* ============================================================
 * 图片模式（把 SVG 换成原站 img 资源）
 * ============================================================ */

/* 通用：容器内图片 */
.top-banner img { width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; }

.header-left img { height: 22px; width: auto; object-fit: contain; display: block; transition: height .3s ease; }
.header.scrolled .header-left img { height: 17px; }
.header-right img { height: 22px; width: auto; object-fit: contain; display: block; transition: height .3s ease; }
.header.scrolled .header-right img { height: 17px; }

.search-icon img { width: 100%; height: 100%; object-fit: contain; }

.feature-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-icon { background: #f5f5f5; }

.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-slide { padding: 0; }

.game-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-icon { background: #f0f0f0; }

.coupon-icon img { width: 100%; height: 100%; object-fit: contain; }
.coupon-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }

.activity-left-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.activity-mini .mini-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }

.qg-imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.spokesperson-banner img { width: 100%; height: 200px; object-fit: cover; display: block; }
.spokesperson-banner { height: auto; display: block; background: none; }
.spokesperson-banner::after { display: none; }

.reason-card .reason-icon img,
.reason-item .icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.reason-card .reason-icon { width: 28px; height: 28px; flex: 0 0 auto; }
.reason-item .icon { width: 28px; height: 28px; margin-bottom: 4px; }

.news-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.charity-item img { width: 100%; height: 100px; object-fit: cover; display: block; }

.brand-footer img { height: 20px; width: auto; object-fit: contain; display: block; }

.nav-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* 图片缺失时的兜底背景 */
.feature-icon, .game-icon, .qg-imgwrap, .news-card, .charity-item img,
.activity-left-img, .mini-icon, .reason-card .reason-icon, .reason-item .icon {
  background-color: #f5f5f5;
  background-image: linear-gradient(135deg, #f7f7f7 0%, #ececec 100%);
}
