/* 匹刻 PickNow — 运动风设计系统 */
:root {
  --navy: #0a1b33;
  --navy-2: #12294a;
  --lime: #b7f236;
  --lime-dark: #8fd410;
  --orange: #ff6b2c;
  --bg: #f4f7fa;
  --card: #ffffff;
  --text: #1c2b3a;
  --muted: #6b7c8d;
  --line: #e4eaf0;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(10, 27, 51, .07);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== 顶部导航 ===== */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 16px rgba(0,0,0,.25); }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 0 20px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.logo .ball { width: 30px; height: 30px; }
.logo em { color: var(--lime); font-style: normal; }
.logo small { font-size: 11px; color: #9fb3c8; font-weight: 400; display: block; line-height: 1.1; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a { color: #c9d6e4; padding: 8px 16px; border-radius: 8px; font-size: 15px; transition: .2s; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a.active { color: var(--navy); background: var(--lime); font-weight: 700; }
.header-user { display: flex; align-items: center; gap: 10px; }
.btn-login { color: var(--lime); border: 1px solid var(--lime); padding: 6px 16px; border-radius: 20px; font-size: 14px; transition: .2s; }
.btn-login:hover { background: var(--lime); color: var(--navy); }
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #0e2a52 55%, #14406e 100%); color: #fff; padding: 64px 20px 80px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(183,242,54,.22), transparent 65%); }
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.hero-tag { display: inline-block; background: rgba(183,242,54,.15); color: var(--lime); border: 1px solid rgba(183,242,54,.4); padding: 5px 14px; border-radius: 20px; font-size: 13px; margin-bottom: 18px; }
.hero h1 { font-size: 42px; line-height: 1.25; margin-bottom: 14px; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero p { color: #b8c9dd; font-size: 17px; max-width: 640px; margin-bottom: 28px; }
.hero-stats { display: flex; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.hero-stat b { font-size: 30px; color: var(--lime); font-weight: 800; }
.hero-stat span { display: block; color: #9fb3c8; font-size: 13px; margin-top: 2px; }
.btn-primary { display: inline-block; background: var(--lime); color: var(--navy); font-weight: 700; padding: 12px 28px; border-radius: 10px; transition: .2s; border: none; cursor: pointer; font-size: 15px; }
.btn-primary:hover { background: var(--lime-dark); transform: translateY(-1px); }
.btn-ghost { display: inline-block; color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 12px 28px; border-radius: 10px; margin-left: 12px; transition: .2s; }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* ===== 布局 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.section-head h2 { font-size: 26px; color: var(--navy); position: relative; padding-left: 14px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 3px; background: linear-gradient(var(--lime), var(--orange)); }
.section-head .more { color: var(--orange); font-size: 14px; font-weight: 600; }

/* ===== 卡片网格 ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(10,27,51,.13); }
.card-img { height: 180px; background: var(--navy-2); position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img .placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(255,255,255,.75); font-size: 13px; background: linear-gradient(135deg, var(--navy), #1b3f6e); }
.card-badge { position: absolute; top: 12px; left: 12px; background: var(--lime); color: var(--navy); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.card-badge.orange { background: var(--orange); color: #fff; }
.card-badge.blue { background: #3b82f6; color: #fff; }
.card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 16.5px; line-height: 1.45; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body p { color: var(--muted); font-size: 13.5px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 12.5px; color: #93a5b6; }
.card-meta .src { color: var(--orange); font-weight: 600; }

/* ===== 页头（子页面） ===== */
.page-hero { background: linear-gradient(120deg, var(--navy), #143a68); color: #fff; padding: 44px 0; }
.page-hero h1 { font-size: 32px; margin-bottom: 8px; }
.page-hero h1 em { color: var(--lime); font-style: normal; }
.page-hero p { color: #b8c9dd; font-size: 15px; }

/* ===== 筛选条 ===== */
.filter-bar { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; margin: -28px auto 30px; position: relative; z-index: 5; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.filter-bar select, .filter-bar input[type=text], .filter-bar input[type=search] {
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 14px; font-size: 14px; font-family: var(--font); background: #fff; color: var(--text); outline: none; min-width: 130px;
}
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--lime-dark); box-shadow: 0 0 0 3px rgba(183,242,54,.25); }
.filter-bar .search-input { flex: 1; min-width: 180px; }
.btn-filter { background: var(--navy); color: #fff; border: none; padding: 9px 22px; border-radius: 9px; font-size: 14px; cursor: pointer; font-weight: 600; }
.btn-filter:hover { background: var(--navy-2); }

/* ===== 列表行（赛事/场馆表格感） ===== */
.list-row { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; margin-bottom: 14px; display: flex; gap: 18px; align-items: center; transition: .2s; }
.list-row:hover { box-shadow: 0 8px 22px rgba(10,27,51,.12); }
.date-block { flex-shrink: 0; width: 74px; text-align: center; background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 0; }
.date-block b { font-size: 22px; display: block; color: var(--lime); }
.date-block span { font-size: 12px; color: #b8c9dd; }
.row-main { flex: 1; min-width: 0; }
.row-main h3 { font-size: 17px; margin-bottom: 4px; }
.row-main .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.tag { font-size: 12px; background: #eef4d6; color: #5c7a08; padding: 2px 9px; border-radius: 5px; font-weight: 600; }
.tag.blue { background: #e3edfb; color: #2b62b3; }
.tag.orange { background: #fdeadd; color: #c74e10; }
.tag.gray { background: #edf1f5; color: #6b7c8d; }
.row-main p { color: var(--muted); font-size: 13.5px; }
.row-side { flex-shrink: 0; text-align: right; font-size: 13px; color: var(--muted); }
.row-side .status { font-weight: 700; font-size: 14px; }
.status.upcoming { color: var(--lime-dark); }
.status.ongoing { color: var(--orange); }
.status.finished { color: var(--muted); }

/* ===== 场馆卡 ===== */
.venue-info { font-size: 13.5px; color: var(--muted); display: grid; gap: 4px; margin-top: 6px; }
.venue-info i { font-style: normal; margin-right: 6px; }
.verified { color: var(--lime-dark); font-weight: 700; font-size: 12.5px; }
.unverified { color: var(--orange); font-size: 12.5px; }

/* ===== 文章详情 ===== */
.article-wrap { max-width: 780px; margin: 0 auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 46px; }
.article-wrap > h1 { font-size: 28px; line-height: 1.4; margin-bottom: 14px; color: var(--navy); }
.article-meta { color: var(--muted); font-size: 13.5px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-cover { border-radius: 12px; margin-bottom: 26px; max-height: 420px; object-fit: cover; width: 100%; }
/* 摘要导语块 */
.article-lead { margin: 0 0 26px; padding: 16px 20px; background: linear-gradient(120deg, #f6fae9, #fdf3ec); border-left: 4px solid var(--lime-dark); border-radius: 0 12px 12px 0; color: #44566a; font-size: 15px; line-height: 1.9; }

/* 正文排版：遵循"中文长文阅读"规范 —— 大字号、宽行距、段落分明、层级清晰 */
.article-content { font-size: 17px; line-height: 2; color: #2b3a49; letter-spacing: .015em; }
.article-content p { margin: 0 0 1.25em; text-align: justify; }
.article-content strong, .article-content b { color: var(--navy); font-weight: 700; }
.article-content h2 {
  font-size: 22px; line-height: 1.45; color: var(--navy);
  margin: 1.7em 0 .9em; padding-left: 13px; position: relative;
}
.article-content h2::before { content: ""; position: absolute; left: 0; top: .28em; bottom: .28em; width: 5px; border-radius: 3px; background: linear-gradient(var(--lime), var(--orange)); }
.article-content h3 { font-size: 18.5px; line-height: 1.5; color: var(--navy); margin: 1.5em 0 .7em; }
.article-content h3::before { content: "▎"; color: var(--orange); margin-right: 4px; }
.article-content h4 { font-size: 17px; color: var(--navy); margin: 1.3em 0 .6em; }
.article-content ul, .article-content ol { margin: 0 0 1.25em; padding-left: 1.5em; }
.article-content li { margin-bottom: .55em; }
.article-content li::marker { color: var(--lime-dark); font-weight: 700; }
.article-content blockquote {
  margin: 1.4em 0; padding: 14px 20px; background: var(--bg);
  border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0;
  color: var(--muted); font-size: 15.5px;
}
.article-content blockquote p { margin-bottom: .5em; }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content hr { border: none; border-top: 1px dashed #cfd9e2; margin: 2em 0 1.4em; }
.article-content img { border-radius: 12px; margin: 22px auto; box-shadow: 0 3px 14px rgba(10,27,51,.1); }
.article-content figure { margin: 22px 0; text-align: center; }
.article-content figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.article-content a { color: var(--orange); font-weight: 600; border-bottom: 1px dashed rgba(255,107,44,.4); }
.article-content a:hover { border-bottom-style: solid; }
.article-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.25em; font-size: 14.5px; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.article-content th { background: var(--bg); color: var(--navy); }
/* 文末来源标注卡片 */
.article-src { margin-top: 32px; padding: 16px 20px; background: var(--bg); border-radius: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.9; }
.article-src a { color: var(--orange); font-weight: 600; word-break: break-all; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.tag-chip { padding: 4px 12px; background: var(--bg); border: 1px solid #e2e8d5; border-radius: 999px; font-size: 12.5px; color: var(--green); font-weight: 600; text-decoration: none; transition: all .2s; }
.tag-chip:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ===== 登录弹窗 ===== */
.modal-mask { position: fixed; inset: 0; background: rgba(10,27,51,.55); display: none; align-items: center; justify-content: center; z-index: 200; backdrop-filter: blur(3px); }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 16px; width: 380px; max-width: 92vw; padding: 32px; max-height: 90vh; overflow-y: auto; }
.modal h3 { font-size: 20px; margin-bottom: 16px; color: var(--navy); }
.modal input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 14px; font-size: 14px; margin-bottom: 12px; outline: none; font-family: var(--font); }
.modal input:focus { border-color: var(--lime-dark); }
.modal .btn-primary { width: 100%; }
.modal .switch { text-align: center; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.modal .switch a { color: var(--orange); cursor: pointer; font-weight: 600; }
.modal .err { color: #d33; font-size: 13px; margin-bottom: 10px; min-height: 18px; }
.auth-tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 18px; }
.auth-tabs a { flex: 1; text-align: center; padding: 8px 0; border-radius: 8px; font-size: 14px; color: var(--muted); cursor: pointer; transition: .2s; }
.auth-tabs a.active { background: #fff; color: var(--navy); font-weight: 700; box-shadow: 0 1px 6px rgba(10,27,51,.1); }
.sms-row { display: flex; gap: 10px; }
.sms-row input { flex: 1; }
.btn-sms { flex-shrink: 0; width: 118px; border: 1px solid var(--lime-dark); color: var(--lime-dark); background: #fff; border-radius: 9px; font-size: 13px; cursor: pointer; margin-bottom: 12px; transition: .2s; }
.btn-sms:hover:not(:disabled) { background: var(--lime); color: var(--navy); border-color: var(--lime); }
.btn-sms:disabled { color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: #aab8c6; font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-wechat { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: #07c160; color: #fff; border: none; border-radius: 9px; padding: 11px 0; font-size: 15px; font-weight: 600; cursor: pointer; transition: .2s; }
.btn-wechat:hover { background: #06ad56; }
.wx-soon { text-align: center; color: var(--muted); font-size: 13px; }
.wx-loading { display: block; text-align: center; color: #aab8c6; font-size: 12.5px; margin-top: 16px; }

/* ===== 空状态 / 加载 ===== */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .icon { font-size: 44px; margin-bottom: 10px; }
.loading { text-align: center; padding: 40px; color: var(--muted); }

/* ===== 页脚 ===== */
.site-footer { background: var(--navy); color: #8fa5bc; margin-top: 64px; padding: 44px 0 28px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer a { display: block; font-size: 13.5px; padding: 3px 0; }
.site-footer a:hover { color: var(--lime); }
.footer-desc { font-size: 13px; line-height: 1.8; }
.copyright { text-align: center; font-size: 12.5px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); color: #5f7389; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 640px) {
  /* 全局防横向溢出 */
  html, body { overflow-x: hidden; }
  /* 头部：压缩 logo 与按钮，保证单行不挤压 */
  .header-inner { gap: 10px; padding: 0 14px; height: 58px; }
  .logo { font-size: 19px; gap: 8px; }
  .logo .ball { width: 26px; height: 26px; }
  .logo small { display: none; }
  .header-user { margin-left: auto; }
  .btn-login { padding: 5px 12px; font-size: 13px; white-space: nowrap; }
  .main-nav { display: none; position: absolute; top: 58px; left: 0; right: 0; background: var(--navy-2); flex-direction: column; padding: 10px 14px 14px; gap: 2px; box-shadow: 0 12px 24px rgba(0,0,0,.3); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 15.5px; }  /* 触控热区 ≥44px */
  .hamburger { display: block; padding: 6px 8px; }
  /* 页面头 */
  .page-hero { padding: 32px 0; }
  .page-hero h1 { font-size: 26px; }
  .page-hero p { font-size: 14px; }
  .grid, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 44px 20px 60px; }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 15.5px; }
  .hero-stats { gap: 24px; }
  .hero-stat b { font-size: 24px; }
  .btn-primary, .btn-ghost { padding: 12px 22px; }
  .list-row { flex-direction: column; align-items: flex-start; }
  .date-block { width: auto; padding: 6px 14px; display: flex; gap: 8px; align-items: baseline; }
  .row-side { text-align: left; }
  /* 文章页 */
  .article-wrap { padding: 26px 20px; }
  .article-wrap > h1 { font-size: 23px; }
  .article-meta { gap: 10px 14px; font-size: 13px; }
  .article-content { font-size: 16.5px; }
  .article-content h2 { font-size: 19.5px; }
  .article-content h3 { font-size: 17px; }
  .filter-bar { margin-top: -20px; padding: 14px 16px; gap: 10px; }
  .filter-bar select, .filter-bar input[type=text], .filter-bar input[type=search] { min-width: 0; flex: 1; }
  .btn-filter { flex: 1; padding: 10px 0; }
  .section-head h2 { font-size: 21px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
}
