* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: linear-gradient(180deg, #fff7f7 0%, #ffffff 40%, #fff0f0 100%); background-attachment: fixed; color: #333; }
.container { max-width: 1100px; margin: 0 auto; padding: 16px; }

/* 料列表：桌面三列网格（≥1024 三列，平板两列，窄屏自动单列） */
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1024px) { .tips-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tips-grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid #f0d6d6; border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(180, 20, 20, .06); overflow-wrap: anywhere; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; font-size: 15px; }
.btn-red { background: linear-gradient(135deg, #E60012, #C4000E 70%); color: #fff; font-weight: 600; }
.btn-red:hover { filter: brightness(1.08); }
.btn-dark { background: #f5f5f5; color: #555; border: 1px solid #e0e0e0; }
.btn-dark:hover { background: #ececec; }
/* 禁用态：半透明 + 禁用手势，明确"点了也没用" */
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; box-shadow: none; }
.btn-red:disabled { background: #ccc; background: linear-gradient(135deg, #ddd, #ccc 70%); }
.btn-outline { background: transparent; border: 1px solid #E60012; color: #C4000E; }
.btn-outline:hover { background: #fff0f0; }
.price { color: #C4000E; font-weight: 700; }
.tag { display: inline-block; background: #fff0f0; color: #C4000E; border: 1px solid #f5d0d0; border-radius: 4px; padding: 2px 8px; font-size: 12px; margin-right: 6px; }
a { color: #C4000E; text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
.footer { text-align: center; color: #5A5A5A; font-size: 12px; padding: 20px 0 calc(40px + env(safe-area-inset-bottom)); line-height: 1.8; }
/* 页脚链接弱化：非核心操作不抢视觉焦点；加大点击热区（手机端 ≥44px 触控目标） */
.footer a { color: #5A5A5A; text-decoration: none; display: inline-block; padding: 8px 10px; margin: 2px; }
.footer a:hover { color: #C4000E; text-decoration: underline; }
input, textarea, select { width: 100%; background: #fff; border: 1px solid #e5c8c8; color: #333; border-radius: 8px; padding: 10px; font-size: 15px; margin: 6px 0; }
input::placeholder, textarea::placeholder { color: #5A5A5A; } /* 无障碍：placeholder 对比度 ≥4.5:1（原 #bbb 仅 ~2.2:1） */
input:focus, textarea:focus, select:focus { outline: none; border-color: #C4000E; box-shadow: 0 0 0 2px rgba(230, 0, 18, .1); }
label { font-size: 13px; color: #666; display: block; margin-top: 10px; } /* 无障碍：label 对比度 ≥4.5:1（原 #888 仅 ~3.1:1） */
h1 { font-size: 22px; margin: 8px 0; color: #c4000e; }
.muted { color: #5A5A5A; font-size: 13px; }

/* ===== 导航栏 ===== */
.navbar { background: #fff; border-bottom: 1px solid #f0d6d6; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 6px rgba(180, 20, 20, .05); }
.navbar-inner { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; row-gap: 4px; }
/* iPhone 刘海/灵动岛安全区：导航不被遮挡 */
.navbar-inner { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.navbar .brand { font-size: 18px; font-weight: 700; color: #C4000E; text-decoration: none; white-space: nowrap; }
.navbar .brand:hover { text-decoration: none; }
.navbar .nav-links { display: flex; gap: 14px; font-size: 14px; }
.navbar .nav-links a { color: #666; }
.navbar .nav-links a:hover { color: #C4000E; text-decoration: none; }
/* 导航登录徽章：红底白字，醒目 */
.navbar .nav-links a.nav-login { background: #E60012; color: #fff; padding: 4px 14px; border-radius: 16px; font-weight: 600; }
.navbar .nav-links a.nav-login:hover { background: #E60012; color: #fff; }

/* ===== 首页横幅 ===== */
.hero { background: linear-gradient(135deg, #E60012, #C4000E 60%, #a3000c); border-radius: 16px; padding: 28px 20px; text-align: center; margin-bottom: 16px; position: relative; overflow: hidden; box-shadow: 0 4px 20px rgba(180, 20, 20, .2); }
.hero::before { content: ''; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.1); }
.hero::after { content: ''; position: absolute; bottom: -60px; left: -30px; width: 160px; height: 160px; border-radius: 50%; background: rgba(0,0,0,.08); }
.hero h1 { font-size: 26px; color: #fff; margin-bottom: 6px; text-shadow: 0 1px 3px rgba(0,0,0,.2); }
.hero p { color: rgba(255,255,255,.95); font-size: 14px; margin-bottom: 16px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.hero .btn { font-size: 15px; padding: 12px 28px; display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }
.hero .btn-gold { padding: 12px 26px; } /* 覆盖 .hero .btn 的 padding，金色按钮专属 */
.hero .btn-white { background: #fff; color: #C4000E; font-weight: 700; }
.hero .btn-ghost { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.5); }
/* 金色登录按钮：红底上最鲜艳醒目的入口（纯文字，flex 居中无偏移） */
.btn-gold { display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; background: linear-gradient(135deg, #FFD700, #FFA500 70%); color: #4a1100; font-weight: 800; font-size: 15px; letter-spacing: 2px; border: 2px solid #fff; box-shadow: 0 3px 12px rgba(255, 165, 0, .5); padding: 12px 24px; -webkit-font-smoothing: antialiased; }
.btn-gold .gold-text { display: inline-block; line-height: 1; }
.btn-gold:hover { background: linear-gradient(135deg, #FFE44D, #FFB52E 70%); box-shadow: 0 4px 16px rgba(255, 180, 0, .6); color: #3a0d00; }

/* ===== 联赛筛选 ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.filter-bar .filter-label { font-size: 13px; color: #6B6B6B; margin-right: 4px; }
.filter-chip { padding: 5px 12px; border-radius: 16px; border: 1px solid #e5c8c8; background: #fff; color: #666; font-size: 13px; cursor: pointer; }
.filter-chip:hover { border-color: #C4000E; color: #C4000E; }
.filter-chip.active { background: #E60012; color: #fff; border-color: transparent; font-weight: 600; }

/* ===== 区块标题 ===== */
.section-title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; margin: 20px 0 12px; color: #c4000e; }
.section-title::before { content: ''; width: 4px; height: 18px; background: #E60012; border-radius: 2px; }

/* ===== 最近动态滚动条 ===== */
.activity-bar { background: #fff8f8; border: 1px solid #f0d6d6; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; overflow: hidden; }
.activity-bar .activity-text { font-size: 13px; color: #6B6B6B; white-space: nowrap; }
.activity-bar .activity-text b { color: #C4000E; }

/* ===== 专家榜 ===== */
.expert-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border: 1px solid #f0d6d6; border-radius: 12px; margin-bottom: 8px; box-shadow: 0 1px 4px rgba(180, 20, 20, .06); }
.expert-rank { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.expert-rank.r1 { background: linear-gradient(135deg, #FFD700, #FF8C00); color: #fff; }
.expert-rank.r2 { background: linear-gradient(135deg, #d9d9d9, #bfbfbf); color: #555; }
.expert-rank.r3 { background: linear-gradient(135deg, #f5c6a5, #e8a06a); color: #fff; }
.expert-rank.other { background: #fff0f0; color: #C4000E; }
.expert-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #E60012, #C4000E); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.expert-info { flex: 1; min-width: 0; }
.expert-info .name { font-size: 15px; font-weight: 600; color: #333; }
.expert-info .sub { font-size: 12px; color: #6B6B6B; margin-top: 2px; }
.expert-stats { text-align: right; font-size: 12px; color: #6B6B6B; flex-shrink: 0; }
.expert-stats .num { color: #C4000E; font-weight: 700; font-size: 14px; }

/* ===== 料卡片升级 ===== */
.tip-card { display: block; background: #fff; border: 1px solid #f0d6d6; border-radius: 12px; padding: 14px; margin-bottom: 0; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tip-card:hover { border-color: #C4000E; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(180, 20, 20, .1); }
.tip-card .tip-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tip-card .tip-title { font-size: 16px; font-weight: 600; margin: 8px 0 6px; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.tip-card .tip-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6B6B6B; flex-wrap: wrap; }
.tip-card .tip-preview { font-size: 13px; color: #5F5F5F; line-height: 1.6; margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tip-card .tip-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; gap: 6px; }
.tip-card .expert-mini { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #666; min-width: 0; }
.expert-mini .mini-avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #E60012, #C4000E); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.sold-badge { background: #fff0f0; border: 1px solid #f5d0d0; color: #C4000E; border-radius: 10px; padding: 2px 8px; font-size: 11px; font-weight: 600; }

/* ===== 料详情 meta 行：桌面用 ｜ 分隔（移动端改纵向，见下方媒体查询）===== */
.tip-head-meta span + span::before { content: ' ｜ '; color: #ccc; }

/* 战绩行：对阵占剩余宽度（移动端折行，见媒体查询） */
.record-match { flex: 1; min-width: 0; }

/* ===== 移动端响应式（≤480px，覆盖 iPhone SE/12 mini 档 375px）===== */
@media (max-width: 480px) {
  .container { padding: 12px; }

  /* 导航：缩字号/间距 + 移动端隐藏「服务商入口」，flex-wrap 兜底防溢出 */
  .navbar-inner { gap: 10px; padding: 8px 12px; }
  .navbar .brand { font-size: 16px; }
  .navbar .nav-links { gap: 10px; font-size: 13px; }
  .navbar .nav-links a[href="admin.html"] { display: none; }

  /* 手机端导航：品牌独占一行居中 + 链接第二行居中，不再挤在一行 */
  .navbar-inner { flex-direction: column; align-items: center; gap: 6px; }
  .navbar .nav-links { justify-content: center; width: 100%; gap: 16px; }

  /* 触控目标：所有按钮最小 44px 高（iOS 标准）；iOS 输入框 16px 防聚焦缩放 */
  .btn { min-height: 44px; }
  input, textarea, select { font-size: 16px; }
  .btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }

  /* 付费解锁按钮：手机端全宽（≤340px 居中），48px 高，易点击 */
  #buy { width: 100%; max-width: 340px; height: 48px; font-size: 17px; border-radius: 12px; margin: 0 auto; }

  /* 免责声明：加大字号与辨识度 */
  .footer { font-size: 13px; }

  /* 卡片/标题手机端留白与字号 */
  .card { padding: 14px; }
  h1 { font-size: 20px; }
  .section-title { font-size: 16px; }

  /* 首页横幅：按钮 2×2 压缩，减少首屏占用 */
  .hero { padding: 22px 14px; margin-bottom: 12px; }
  .hero h1 { font-size: 22px; }
  .hero .btn { font-size: 14px; padding: 11px 16px; }
  .hero .btn-gold { padding: 11px 14px; letter-spacing: 1px; font-size: 14px; }

  /* 联赛筛选：单行横向滚动，不再折行 3-4 行 */
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-chip { flex-shrink: 0; }

  /* 料详情：meta 纵向排列 */
  .tip-head-meta { display: flex; flex-direction: column; gap: 2px; }
  .tip-head-meta span + span::before { content: none; }
  .tip-content { font-size: 16px; }

  /* 战绩行：对阵独占一行，比分/时间折到第二行 */
  .record-row { flex-wrap: wrap; row-gap: 2px; }
  .record-match { flex: 1 1 100%; min-width: 0; }

  /* 订阅套餐卡：窄屏通栏 */
  .plan-card { max-width: 100% !important; width: 100%; }

  /* mine 顶部操作按钮：2×2 网格 */
  .action-row .btn { flex: 1 1 45%; min-width: 110px; }

  /* 列表行（购买记录/订单明细/我的料）：标题独占一行，其余信息折第二行 */
  .order-line > span:first-child { flex: 1 1 100%; min-width: 0; }
  .my-tip-row > span:first-child { flex: 1 1 100%; min-width: 0; }
  .my-tip-row .btn { flex: 1; }

  /* 提现区：纵向排列，金额输入通栏 */
  .wd-row { flex-direction: column; align-items: stretch; }
  .wd-row input { width: 100% !important; }

  /* 串关勾选：标题省略号防撑破 */
  .pt-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ===== 专家入驻页（register）：PC 双栏 ===== */
.reg-wrap { max-width: 960px; margin: 48px auto; display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: start; }
.reg-title { font-size: 30px; font-weight: 800; color: #c4000e; margin: 0 0 12px; letter-spacing: .5px; }
.reg-sub { font-size: 15px; color: #555; line-height: 1.8; margin: 0 0 28px; max-width: 44em; }
.reg-points { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.reg-point { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: #fff; border: 1px solid #f0d6d6; border-radius: 12px; box-shadow: 0 1px 4px rgba(180, 20, 20, .06); }
.reg-point-num { font-size: 26px; font-weight: 800; color: #C4000E; white-space: nowrap; line-height: 1.25; min-width: 100px; }
.reg-point-body b { font-size: 15px; color: #333; display: block; margin-bottom: 4px; }
.reg-point-body p { font-size: 13.5px; color: #5A5A5A; line-height: 1.7; margin: 0; }
.reg-flow-title { font-size: 16px; font-weight: 700; color: #c4000e; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.reg-flow-title::before { content: ''; width: 4px; height: 16px; background: #E60012; border-radius: 2px; }
.reg-flow-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.reg-flow-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #444; }
.reg-flow-list li span { width: 24px; height: 24px; border-radius: 50%; background: #E60012; color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.reg-form-title { font-size: 22px; font-weight: 800; color: #c4000e; text-align: center; margin: 0 0 14px; }
@media (max-width: 860px) {
  .reg-wrap { grid-template-columns: 1fr; gap: 32px; margin-top: 24px; }
  .reg-form { order: -1; }
  .reg-title { font-size: 24px; }
}
