*{box-sizing:border-box}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue",Arial,sans-serif;
  background:linear-gradient(180deg,#091a3c 0%,#11295b 100%);
  color:#fff;
}

a{text-decoration:none;color:inherit}

.page{
  max-width:1440px;
  margin:0 auto;
  padding:24px 16px 44px;
}

.hero{
  text-align:center;
  margin-bottom:22px;
}

.hero h1{
  margin:0 0 10px;
  font-weight:900;
  letter-spacing:.5px;
  line-height:1.12;
}

.hero h1 span{display:block}

.hero h1 span:first-child{
  font-size:28px;
  opacity:.92;
}

.hero h1 span:last-child{
  font-size:42px;
  color:#fff3c0;
}

.hero p{
  margin:0;
  opacity:.9;
  font-size:15px;
}

.top-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin:0 auto 20px;
  max-width:1320px;
}

.ticker-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  padding:10px 16px;
  flex:1;
  min-height:46px;
}

.ticker-label{
  background:linear-gradient(135deg,#ffd76b,#f1bd31);
  color:#3d2b00;
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  flex-shrink:0;
}

.ticker-text{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:14px;
}

.refresh-tip{
  font-size:13px;
  opacity:.8;
  white-space:nowrap;
}

.boards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-bottom:28px;
}

.board h2{
  text-align:center;
  margin:0 0 16px;
  font-size:24px;
  font-weight:900;
}

.list{
  display:grid;
  gap:14px;
}

.card{
  position:relative;
  background:linear-gradient(180deg,#fffdf8,#f8f2e6);
  color:#1c2434;
  border-radius:18px;
  padding:14px;
  display:flex;
  align-items:center;
  gap:14px;
  box-shadow:0 12px 28px rgba(0,0,0,.18);
  border:1px solid rgba(212,175,55,.35);
  overflow:visible;
}

.rank{
  width:36px;
  height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:18px;
  background:#edf1f7;
  color:#243042;
  flex:0 0 36px;
  box-shadow:0 6px 14px rgba(0,0,0,.08);
}

.rank.top1{
  background:#f0c446;
  color:#fff;
}

.rank.top2{
  background:#bfc4cd;
  color:#fff;
}

.rank.top3{
  background:#c88750;
  color:#fff;
}

.avatar-wrap{
  position:relative;
  flex:0 0 76px;
}

.avatar{
  width:76px;
  height:76px;
  border-radius:14px;
  object-fit:cover;
  display:block;
  background:#eef2f8;
  box-shadow:0 8px 18px rgba(0,0,0,.14);
}

.info{
  flex:1;
  min-width:0;
}

.name{
  font-size:18px;
  font-weight:900;
  line-height:1.18;
  word-break:break-word;
}

.meta{
  color:#9e7c1e;
  margin-top:6px;
  font-size:14px;
  line-height:1.35;
  word-break:break-word;
}

.votes{
  margin-top:6px;
  font-weight:900;
  color:#d0a933;
  font-size:16px;
  line-height:1.3;
}

.vote-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  min-width:132px;
  flex-shrink:0;
}

.vote-btn{
  border:none;
  border-radius:12px;
  min-height:40px;
  font-weight:900;
  font-size:16px;
  cursor:pointer;
  padding:0 10px;
}

.vote-99{
  background:linear-gradient(135deg,#ffe08a,#f5c84d);
  color:#2d2303;
}

.vote-50{
  background:linear-gradient(135deg,#e9f1ff,#d8e7ff);
  color:#1e3b61;
}

.vote-10{
  background:linear-gradient(135deg,#f3f6fb,#e8eef6);
  color:#263447;
}

.vote-1{
  background:linear-gradient(135deg,#e2e7ef,#d3dae5);
  color:#4d5868;
}

.top-mark{
  position:absolute;
  top:-8px;
  left:-8px;
  right:auto !important;
  transform:none !important;
  z-index:10;
  padding:4px 10px;
  font-size:12px;
  border-radius:999px;
  font-weight:700;
  line-height:1;
  box-shadow:0 4px 10px rgba(0,0,0,.15);
  white-space:nowrap;
}

.top-mark.champion{
  background:linear-gradient(135deg,#f6d365,#fda085);
  color:#fff;
}

.top-mark.contender{
  background:linear-gradient(135deg,#ffb36b,#ff7b22);
  color:#fff;
}

.top-mark.rising{
  background:linear-gradient(135deg,#f3d37a,#e0b445);
  color:#fff;
}

.rising-box,
.tool-card{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:16px;
}

.rising-box summary{
  list-style:none;
  cursor:pointer;
  font-size:24px;
  font-weight:900;
  color:#ffd76b;
}

.rising-box summary::-webkit-details-marker{display:none}

.rising-desc{
  margin:12px 0 16px;
  line-height:1.6;
  opacity:.92;
}

.tool-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  max-width:1000px;
  margin:0 auto;
}

.tool-card{
  text-align:center;
  padding:24px;
}

.tool-card h3{
  margin:0 0 10px;
  font-size:24px;
}

.tool-card p{
  margin:0 0 18px;
  line-height:1.6;
}

.primary-btn{
  border:none;
  border-radius:12px;
  min-height:46px;
  padding:0 20px;
  font-weight:900;
  background:linear-gradient(135deg,#ffe08a,#f5c84d);
  color:#2d2303;
  cursor:pointer;
}

.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.58);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:999;
  padding:20px;
}

.hidden{display:none !important}

.modal-card{
  width:min(92vw,480px);
  background:#fff;
  color:#1c2434;
  border-radius:18px;
  padding:22px 18px 18px;
  position:relative;
  max-height:88vh;
  overflow:auto;
}

.apply-modal-card{
  width:min(94vw,680px);
}

.ad-modal-card{
  padding-bottom:24px;
}

.modal-tip{
  margin:4px 0 16px;
  line-height:1.6;
  color:#4e5c73;
  background:#f5f7fb;
  border-radius:12px;
  padding:12px 14px;
}

.close-btn{
  position:absolute;
  top:10px;
  right:10px;
  border:none;
  background:#eef1f6;
  width:34px;
  height:34px;
  border-radius:50%;
  font-size:20px;
  cursor:pointer;
}

.pay-summary{
  display:grid;
  gap:10px;
  margin:18px 0;
}

.pay-actions,
.share-actions{
  display:grid;
  gap:10px;
}

.pay-btn{
  border:none;
  border-radius:12px;
  min-height:46px;
  font-weight:900;
  color:#fff;
  cursor:pointer;
}

.alipay{background:#1677ff}
.wechat{background:#07c160}

.form-grid{
  display:grid;
  gap:12px;
}

.form-grid label{
  display:grid;
  gap:6px;
  font-weight:700;
  font-size:14px;
}

.form-grid input,
.form-grid select,
.form-grid textarea{
  width:100%;
  border:1px solid #d7dfea;
  border-radius:12px;
  min-height:42px;
  padding:10px 12px;
  font-size:14px;
  font-family:inherit;
}

.form-grid textarea{
  min-height:96px;
  resize:vertical;
}

.form-section-title{
  font-size:14px;
  font-weight:900;
  color:#846200;
  background:#fff8e0;
  border-radius:12px;
  padding:10px 12px;
  margin-top:4px;
}

.form-note{
  font-size:12px;
  line-height:1.6;
  color:#5b6577;
  background:#f6f8fc;
  border-radius:12px;
  padding:10px 12px;
}

.checkbox{
  font-size:13px;
  line-height:1.6;
  display:flex !important;
  gap:10px;
  align-items:flex-start;
}

.checkbox input{
  width:auto;
  min-height:auto;
  margin-top:3px;
}

.price-box{
  padding:12px 14px;
  background:#fff8e0;
  border-radius:12px;
  font-weight:900;
  color:#6a4a00;
}

.share-box{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #e7ebf2;
}

.share-title{
  font-size:14px;
  font-weight:900;
  margin-bottom:10px;
}

.share-btn{
  border:none;
  border-radius:12px;
  min-height:42px;
  background:#eef2f7;
  font-weight:800;
  cursor:pointer;
}

.schedule-hint{
  margin-top:-4px;
  font-size:13px;
  line-height:1.5;
  color:#64748b;
}

.schedule-ok{color:#0f766e}
.schedule-error{color:#dc2626}

.toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  background:rgba(23,30,45,.92);
  color:#fff;
  padding:12px 16px;
  border-radius:999px;
  font-size:14px;
  z-index:1000;
}

.ad-card{
  display:flex;
  align-items:center;
  gap:14px;
  overflow:hidden;
  background:linear-gradient(135deg,#fff6cf,#ffe3a1);
  border:1px solid rgba(255,215,107,.55);
  color:#2b2206;
  box-shadow:0 10px 24px rgba(0,0,0,.16);
}

.ad-card.half{padding:12px}
.ad-card.full{padding:14px 16px}

.ad-thumb{
  width:108px;
  height:72px;
  border-radius:12px;
  object-fit:cover;
  display:block;
  flex:0 0 108px;
  background:#f6f1df;
}

.ad-content{
  flex:1;
  min-width:0;
}

.ad-kicker{
  font-size:12px;
  font-weight:900;
  letter-spacing:.3px;
  color:#7e5600;
  margin-bottom:4px;
}

.ad-title{
  font-size:18px;
  font-weight:900;
  line-height:1.3;
  color:#2b2206;
  word-break:break-word;
}

.ad-desc{
  margin-top:6px;
  font-size:14px;
  line-height:1.5;
  color:#5a4920;
  word-break:break-word;
}

.ad-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:112px;
  padding:0 14px;
  height:42px;
  border-radius:12px;
  background:#1d315f;
  color:#fff;
  font-weight:900;
  flex:0 0 auto;
}

.ad-placeholder{
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,.06);
  border:1px dashed rgba(255,255,255,.18);
  text-align:center;
  opacity:.78;
}

.ad-detail-page{
  min-height:100vh;
  background:linear-gradient(180deg,#091a3c 0%,#11295b 100%);
  padding:24px 16px 40px;
}

.detail-shell{
  max-width:1120px;
  margin:0 auto;
}

.detail-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}

.back-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  font-weight:800;
}

.detail-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  background:linear-gradient(135deg,#ffd76b,#f1bd31);
  color:#3d2b00;
  font-weight:900;
}

.detail-state{
  max-width:760px;
  margin:70px auto 0;
  text-align:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px;
  padding:32px 20px;
}

.detail-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:22px;
  align-items:start;
}

.detail-main-card,
.detail-side-card{
  background:linear-gradient(180deg,#fffdf8,#f8f2e6);
  color:#1c2434;
  border-radius:22px;
  box-shadow:0 14px 32px rgba(0,0,0,.18);
  border:1px solid rgba(212,175,55,.35);
}

.detail-main-card{overflow:hidden}

.detail-hero-image{
  display:block;
  width:100%;
  height:320px;
  object-fit:cover;
  background:#f7f0dc;
}

.detail-main-body{padding:22px}

.detail-kicker{
  font-size:12px;
  font-weight:900;
  letter-spacing:.4px;
  color:#7e5600;
  margin-bottom:8px;
}

.detail-title{
  margin:0 0 12px;
  font-size:32px;
  line-height:1.15;
  color:#1c2434;
}

.detail-desc{
  margin:0 0 18px;
  font-size:16px;
  line-height:1.75;
  color:#4b5568;
}

.detail-meta-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.detail-meta-item{
  background:#fff7dd;
  border-radius:16px;
  padding:14px 16px;
  display:grid;
  gap:6px;
}

.meta-label{
  font-size:12px;
  color:#7b6840;
  font-weight:800;
}

.detail-meta-item strong{
  font-size:15px;
  color:#1c2434;
}

.detail-side-card{
  padding:22px;
  position:sticky;
  top:18px;
}

.detail-side-card h3{
  margin:0 0 10px;
  font-size:24px;
}

.detail-side-card p{
  margin:0 0 18px;
  line-height:1.7;
  color:#4b5568;
}

.detail-actions{
  display:grid;
  gap:12px;
}

.detail-primary-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  text-decoration:none;
}

.detail-status-ended{color:#b35d00}

.share-panel{
  margin-top:12px;
  padding-top:14px;
  border-top:1px solid #e8ecf2;
}

.share-panel-title{
  font-size:14px;
  font-weight:900;
  margin-bottom:10px;
  color:#1c2434;
}

.share-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.share-grid .share-btn{min-height:44px}

.qr-box{
  margin-top:12px;
  padding:14px;
  border-radius:14px;
  background:#f6f8fc;
  text-align:center;
}

.qr-box canvas,
.qr-box img{
  max-width:100%;
  height:auto;
  display:block;
  margin:0 auto;
}

.qr-note{
  font-size:12px;
  color:#64748b;
  margin-top:8px;
}

.multi-check-group{display:grid;gap:10px}

.check-item{
  display:flex!important;
  gap:10px;
  align-items:flex-start;
  font-size:14px;
  line-height:1.6;
}

.check-item input{
  width:auto;
  min-height:auto;
  margin-top:3px;
}

.static-check{
  padding:12px 14px;
  background:#f6f8fc;
  border-radius:12px;
  color:#1c2434;
}

.wechat{display:none!important}

.agreement-box{
  display:grid;
  gap:10px;
}

.agreement-toggle{
  text-decoration:underline;
  color:#1d4ed8;
  font-weight:700;
  cursor:pointer;
}

.agreement-content{
  background:#f6f8fc;
  border:1px solid #dbe3ee;
  border-radius:12px;
  padding:12px 14px;
  color:#334155;
  font-size:13px;
  line-height:1.7;
}

.agreement-content p{
  margin:0 0 8px;
}

.agreement-content p:last-child{
  margin-bottom:0;
}

/* ===== 平板及以下 ===== */
@media (max-width:900px){
  .boards,
  .tool-grid{
    grid-template-columns:1fr;
  }

  .top-bar{
    flex-direction:column;
    align-items:stretch;
  }

  .refresh-tip{
    text-align:center;
  }

  .hero h1 span:first-child{
    font-size:24px;
  }

  .hero h1 span:last-child{
    font-size:34px;
  }

  .detail-layout{
    grid-template-columns:1fr;
  }

  .detail-side-card{
    position:static;
  }

  .detail-hero-image{
    height:220px;
  }

  .detail-title{
    font-size:28px;
  }
}

/* ===== 手机端核心修复 ===== */
@media (max-width:640px){
  .page{
    padding:16px 10px 34px;
  }

  .hero{
    margin-bottom:16px;
  }

  .hero h1 span:first-child{
    font-size:20px;
  }

  .hero h1 span:last-child{
    font-size:30px;
  }

  .hero p{
    font-size:13px;
  }

  .top-bar{
    gap:10px;
    margin-bottom:16px;
  }

  .ticker-wrap{
    padding:8px 12px;
    min-height:42px;
  }

  .ticker-label{
    font-size:11px;
    padding:5px 9px;
  }

  .ticker-text{
    font-size:13px;
  }

  .refresh-tip{
    font-size:12px;
  }

  .board h2{
    font-size:18px;
    margin-bottom:12px;
  }

  .card{
    padding:12px 10px;
    gap:10px;
    align-items:center;
    border-radius:16px;
  }

  .rank{
    width:30px;
    height:30px;
    flex:0 0 30px;
    font-size:14px;
  }

  .avatar-wrap{
    flex:0 0 54px;
  }

  .avatar{
    width:54px;
    height:54px;
    border-radius:11px;
  }

  .top-mark{
    top:-7px;
    left:-7px;
    font-size:10px;
    padding:4px 8px;
    max-width:64px;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .info{
    flex:1;
    min-width:0;
  }

  .name{
    font-size:15px;
    line-height:1.18;
    font-weight:900;
    word-break:break-word;
  }

  .meta{
    font-size:12px;
    margin-top:4px;
  }

  .votes{
    margin-top:4px;
    font-size:13px;
    line-height:1.2;
  }

  .vote-grid{
    min-width:92px;
    gap:6px;
    grid-template-columns:1fr 1fr;
  }

  .vote-btn{
    min-height:34px;
    border-radius:10px;
    font-size:12px;
    padding:0 6px;
  }

  .ad-card{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .ad-thumb{
    width:100%;
    height:126px;
    flex:0 0 auto;
  }

  .ad-title{
    font-size:16px;
  }

  .ad-desc{
    font-size:13px;
  }

  .ad-cta{
    width:100%;
    min-width:0;
    height:40px;
  }

  .tool-card{
    padding:18px 14px;
  }

  .tool-card h3{
    font-size:20px;
  }

  .tool-card p{
    font-size:13px;
  }

  .modal{
    padding:12px;
  }

  .modal-card{
    width:100%;
    max-width:none;
    border-radius:16px;
    padding:18px 14px 14px;
  }

  .close-btn{
    width:32px;
    height:32px;
    font-size:18px;
  }

  .pay-summary{
    gap:8px;
    margin:14px 0;
  }

  .pay-btn{
    min-height:42px;
    font-size:14px;
  }

  .share-btn{
    min-height:40px;
    font-size:13px;
  }

  .form-grid{
    gap:10px;
  }

  .form-grid label{
    font-size:13px;
  }

  .form-grid input,
  .form-grid select,
  .form-grid textarea{
    font-size:13px;
  }

  .detail-topbar{
    flex-direction:column;
    align-items:flex-start;
  }

  .detail-meta-grid{
    grid-template-columns:1fr;
  }

  .detail-main-body,
  .detail-side-card{
    padding:18px;
  }

  .detail-hero-image{
    height:180px;
  }

  .detail-title{
    font-size:24px;
  }

  .share-grid{
    grid-template-columns:1fr;
  }
}