/* ==========================================================================
   北斗榜 · 申请入驻页（喜气氛围 · 红金）
   —— 与全站皮肤解耦：本页固定走「中国红 + 鎏金」的节庆视觉，
      令牌全部以 .fest 前缀局部覆盖，不污染前台其它页面。
   依赖：tokens.css（尺度）→ theme.css（组件）→ skins.css（皮肤）→ 本文件
   ========================================================================== */

.fest {
  --f-red: #c8102e;
  --f-red-2: #9d0c23;
  --f-red-3: #e0453b;
  --f-gold: #e8b04b;
  --f-gold-2: #d29a2e;
  --f-cream: #fff8ef;
  --f-cream-2: #fdf0dc;
  --f-ink: #2b1b16;
  --f-ink-2: #5c4034;
  --f-ink-3: #8a6a58;
  --f-line: #f0dcc9;
  --f-hero: linear-gradient(135deg, #9d0c23 0%, #c8102e 46%, #e0453b 78%, #e8b04b 160%);
  --f-radius: 10px;
}

/* ============================ 首屏 ============================ */
.fest-hero {
  position: relative; overflow: hidden;
  background: var(--f-hero);
  color: #fff;
  padding: 56px 0 50px;
}
.fest-hero::before,
.fest-hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.fest-hero::before {
  width: 420px; height: 420px; right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 66%);
}
.fest-hero::after {
  width: 320px; height: 320px; left: -110px; bottom: -140px;
  background: radial-gradient(circle, rgba(232, 176, 75, .34), transparent 68%);
}
.fest-deco { position: absolute; inset: 0; pointer-events: none; opacity: .55; }
.fest-hero > .wrap { position: relative; z-index: 1; }

.fest-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .04em;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .34);
  padding: 5px 16px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.fest-hero h1 {
  font-size: 40px; line-height: 1.24; margin: 18px 0 14px;
  color: #fff; letter-spacing: .01em;
  text-shadow: 0 2px 18px rgba(90, 0, 12, .34);
}
.fest-hero h1 em { font-style: normal; color: var(--f-gold); }
.fest-hero .lead {
  max-width: 760px; font-size: 16px; line-height: 1.9;
  color: rgba(255, 255, 255, .88);
}
.fest-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.fest-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 28px; border-radius: var(--f-radius);
  font-size: 15px; font-weight: 700; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.fest-btn-gold { background: var(--f-gold); color: #45270a; box-shadow: 0 10px 26px rgba(120, 60, 0, .28); }
.fest-btn-gold:hover { background: #f2c05f; transform: translateY(-2px); color: #45270a; }
.fest-btn-line { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .08); }
.fest-btn-line:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.fest-btn .ic { width: 16px; height: 16px; }

/* 首屏数据条 */
.fest-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin-top: 34px; border-radius: var(--f-radius); overflow: hidden;
  background: rgba(255, 255, 255, .22);
}
.fest-stat {
  background: rgba(70, 4, 14, .34); padding: 16px 18px;
  backdrop-filter: blur(3px);
}
.fest-stat b { display: block; font-size: 24px; font-family: var(--font-num); color: var(--f-gold); }
.fest-stat span { font-size: 12px; color: rgba(255, 255, 255, .8); }

/* ============================ 内容区 ============================ */
.fest-body {
  background: var(--f-cream);
  background-image:
    radial-gradient(circle at 12% 8%, #fff 0, transparent 26%),
    radial-gradient(circle at 88% 92%, #fff 0, transparent 22%);
  padding: 0 0 64px;
}

/* 权益卡 */
.fest-perks {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.fest-perk {
  position: relative;
  background: #fff; border: 1px solid var(--f-line);
  border-radius: var(--f-radius); padding: 22px 20px;
  box-shadow: 0 6px 20px rgba(120, 60, 20, .06);
}
.fest-perk::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: var(--f-radius) var(--f-radius) 0 0;
  background: linear-gradient(90deg, var(--f-red), var(--f-gold));
}
.fest-perk h3 { font-size: 16px; color: var(--f-ink); margin: 12px 0 8px; }
.fest-perk p { font-size: 13.5px; color: var(--f-ink-2); line-height: 1.8; margin: 0; }
.fest-ic {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #fdeaea, #fdf1e0);
  color: var(--f-red); border: 1px solid #f6d8d8;
}
.fest-ic .ic { width: 20px; height: 20px; }

/* 表单主体 */
.fest-form {
  background: #fff; border: 1px solid var(--f-line);
  border-radius: 14px; padding: 0; overflow: hidden;
  box-shadow: 0 18px 48px rgba(120, 60, 20, .1);
}
.fest-form-head {
  background: linear-gradient(120deg, #fff 0%, #fff8ef 100%);
  border-bottom: 1px solid var(--f-line);
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.fest-form-head h2 { font-size: 20px; color: var(--f-ink); margin: 0 0 4px; }
.fest-form-head p { font-size: 13px; color: var(--f-ink-3); margin: 0; }
.fest-step-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--f-red);
  background: #fdeaea; border: 1px solid #f6d2d2;
  padding: 4px 12px; border-radius: 999px;
}

.fest-block { padding: 26px 28px; border-bottom: 1px solid var(--f-line); }
.fest-block:last-of-type { border-bottom: 0; }
.fest-block-h {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.fest-no {
  width: 26px; height: 26px; flex: none; border-radius: 6px;
  background: var(--f-red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; font-family: var(--font-num);
}
.fest-block-h h3 { font-size: 16px; color: var(--f-ink); margin: 0; }
.fest-block-h span { font-size: 12.5px; color: var(--f-ink-3); }

/* 表单栅格 */
.fest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.fest-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.fest-col-2 { grid-column: span 2; }

.fest-field { min-width: 0; }
.fest-field label {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--f-ink); margin-bottom: 6px;
}
.fest-field label i { font-style: normal; font-size: 11px; color: var(--f-ink-3); font-weight: 400; }
.fest-field label em { font-style: normal; color: var(--f-red); font-weight: 700; }
.fest-field input[type="text"],
.fest-field input[type="tel"],
.fest-field input[type="email"],
.fest-field input[type="url"],
.fest-field input[type="number"],
.fest-field select,
.fest-field textarea {
  width: 100%; padding: 10px 13px; font-size: 14px;
  border: 1px solid #e9d5bf; border-radius: 8px;
  background: #fffdf9; color: var(--f-ink);
  outline: 0; transition: border-color .16s, box-shadow .16s, background .16s;
}
.fest-field input:focus, .fest-field select:focus, .fest-field textarea:focus {
  border-color: var(--f-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, .1);
  background: #fff;
}
.fest-field textarea { min-height: 92px; resize: vertical; line-height: 1.75; }
.fest-field.is-err input, .fest-field.is-err select, .fest-field.is-err textarea {
  border-color: #d93526; background: #fff6f5;
}
.fest-err { font-size: 12px; color: #c0281c; margin-top: 5px; display: flex; gap: 4px; }
.fest-hint { font-size: 12px; color: var(--f-ink-3); margin-top: 5px; line-height: 1.6; }

/* 上传块 */
.fest-upload {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px; border: 1px dashed #e6c9a8; border-radius: 10px;
  background: #fffaf2;
}
.fest-upload.is-err { border-color: #d93526; background: #fff6f5; }
.fest-drop {
  width: 112px; height: 112px; flex: none; border-radius: 10px;
  background: #fff; border: 1px solid #efdcc4;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.fest-drop img { width: 100%; height: 100%; object-fit: contain; }
.fest-drop .ph { text-align: center; color: var(--f-ink-3); font-size: 12px; line-height: 1.5; padding: 8px; }
.fest-drop .ph .ic { width: 22px; height: 22px; color: var(--f-gold-2); display: block; margin: 0 auto 6px; }
.fest-drop.wide { width: 168px; height: 112px; }
.fest-up-txt { flex: 1; min-width: 180px; }
.fest-up-txt b { display: block; font-size: 13.5px; color: var(--f-ink); margin-bottom: 4px; }
.fest-up-txt p { font-size: 12px; color: var(--f-ink-3); line-height: 1.7; margin: 0 0 8px; }
.fest-file-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--f-red); color: #fff; cursor: pointer;
  border: 1px solid var(--f-red);
}
.fest-file-btn:hover { background: var(--f-red-2); }
.fest-file-btn input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.fest-file-name { font-size: 12px; color: var(--f-ink-3); margin-left: 10px; }

/* 合作意愿 */
.fest-coop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fest-coop label {
  position: relative; display: block; cursor: pointer;
  border: 1.5px solid #ecd8bf; border-radius: 12px;
  background: #fffdf9; padding: 20px 20px 18px;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.fest-coop label:hover { border-color: #dcae74; }
.fest-coop input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.fest-coop label.on {
  border-color: var(--f-red); background: #fff7f2;
  box-shadow: 0 8px 26px rgba(200, 16, 46, .12);
}
.fest-coop .tagline {
  position: absolute; top: -1px; right: -1px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: #fff; background: var(--f-red);
  padding: 3px 12px; border-radius: 0 11px 0 10px;
}
.fest-coop .tagline.gold { background: linear-gradient(120deg, var(--f-gold), #d29a2e); color: #43260a; }
.fest-coop h4 { font-size: 16px; color: var(--f-ink); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.fest-coop h4 .ic { width: 17px; height: 17px; color: var(--f-red); }
.fest-coop p { font-size: 13px; color: var(--f-ink-2); line-height: 1.75; margin: 0 0 10px; }
.fest-coop ul { display: flex; flex-direction: column; gap: 6px; }
.fest-coop li { font-size: 12.5px; color: var(--f-ink-2); display: flex; gap: 6px; align-items: flex-start; }
.fest-coop li .ic { width: 13px; height: 13px; color: var(--f-gold-2); flex: none; margin-top: 3px; }

/* 付费服务多选 */
.fest-svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.fest-svc {
  display: flex; gap: 9px; align-items: flex-start;
  border: 1px solid #eddac2; border-radius: 9px; padding: 11px 13px;
  background: #fffdf9; cursor: pointer; transition: border-color .16s, background .16s;
}
.fest-svc:hover { border-color: #dcae74; }
.fest-svc input[type="checkbox"] { margin: 2px 0 0; accent-color: var(--f-red); flex: none; }
.fest-svc b { font-size: 13px; color: var(--f-ink); display: block; }
.fest-svc span { font-size: 11.5px; color: var(--f-ink-3); line-height: 1.6; display: block; margin-top: 2px; }
.fest-svc.on { border-color: var(--f-red); background: #fff7f2; }

/* 合规声明 */
.fest-statement {
  background: linear-gradient(120deg, #fff8ef, #fdf2e2);
  border: 1px solid #f0d9b8; border-radius: 10px;
  padding: 16px 18px; margin-top: 18px;
}
.fest-statement h4 { font-size: 13.5px; color: var(--f-red); margin: 0 0 8px; display: flex; align-items: center; gap: 7px; }
.fest-statement h4 .ic { width: 15px; height: 15px; }
.fest-statement p { font-size: 12.5px; color: var(--f-ink-2); line-height: 1.85; margin: 0 0 10px; }
.fest-check {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 13px; color: var(--f-ink); line-height: 1.7;
  padding: 10px 12px; background: #fff; border: 1px solid #f0dcc9; border-radius: 8px;
}
.fest-check input[type="checkbox"] { margin-top: 3px; accent-color: var(--f-red); flex: none; }
.fest-check.is-err { border-color: #d93526; background: #fff6f5; }

/* 提交区 */
.fest-submit {
  padding: 24px 28px 28px; background: linear-gradient(180deg, #fff, #fffaf3);
  border-top: 1px solid var(--f-line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.fest-submit .meta { font-size: 12px; color: var(--f-ink-3); line-height: 1.7; max-width: 620px; }
.fest-submit .meta b { color: var(--f-red); }
.fest-btn-submit {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 40px; border-radius: 999px; border: 0;
  font-size: 16px; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(120deg, #c8102e, #e0453b 70%, #e8b04b 165%);
  box-shadow: 0 12px 30px rgba(160, 20, 30, .28);
  transition: transform .18s var(--ease), box-shadow .18s;
}
.fest-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(160, 20, 30, .34); }
.fest-btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.fest-btn-submit .ic { width: 17px; height: 17px; }

/* 流程条 */
.fest-flow {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-bottom: 26px;
}
.fest-flow-step {
  position: relative; background: #fff; border: 1px solid var(--f-line);
  border-radius: var(--f-radius); padding: 18px 16px;
}
.fest-flow-step b { display: block; font-family: var(--font-num); font-size: 24px;
  color: var(--f-red); line-height: 1; margin-bottom: 8px; }
.fest-flow-step h4 { font-size: 14px; color: var(--f-ink); margin: 0 0 5px; }
.fest-flow-step p { font-size: 12.5px; color: var(--f-ink-3); line-height: 1.7; margin: 0; }

/* 已入驻 / 专页示例 */
.fest-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.fest-wall-item {
  background: #fff; border: 1px solid var(--f-line); border-radius: var(--f-radius);
  padding: 14px; text-align: center; transition: border-color .16s, transform .16s;
}
.fest-wall-item:hover { border-color: var(--f-red); transform: translateY(-3px); }
.fest-wall-item .bm { margin: 0 auto 8px; }
.fest-wall-item b { display: block; font-size: 13px; color: var(--f-ink); }
.fest-wall-item span { font-size: 11.5px; color: var(--f-ink-3); }

.fest-sites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fest-site-card {
  display: block; background: #fff; border: 1px solid var(--f-line);
  border-radius: var(--f-radius); padding: 16px; transition: .16s;
}
.fest-site-card:hover { border-color: var(--f-red); box-shadow: 0 10px 28px rgba(120, 60, 20, .1); }
.fest-site-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fest-site-head b { font-size: 14px; color: var(--f-ink); }
.fest-site-head span { font-size: 11.5px; color: var(--f-ink-3); display: block; }
.fest-site-top { display: flex; flex-direction: column; gap: 4px; }
.fest-site-top li { display: flex; gap: 8px; font-size: 12px; color: var(--f-ink-2); }
.fest-rank-no { font-family: var(--font-num); color: var(--f-red); font-weight: 700; width: 16px; flex: none; }

/* 侧栏小卡：LOGO 规格 */
.fest-spec dl { margin: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); }
.fest-spec dt { padding: 8px 0; font-size: 12.5px; color: var(--f-ink-3); border-bottom: 1px dashed #f0dcc9; }
.fest-spec dd { padding: 8px 0; margin: 0; font-size: 12.5px; color: var(--f-ink-2); border-bottom: 1px dashed #f0dcc9; }

/* 响应式 */
@media (max-width: 1024px) {
  .fest-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fest-perks { grid-template-columns: 1fr; }
  .fest-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fest-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fest-sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .fest-hero { padding: 40px 0 36px; }
  .fest-hero h1 { font-size: 28px; }
  .fest-hero .lead { font-size: 14.5px; }
  .fest-grid, .fest-grid-3, .fest-coop, .fest-svcs { grid-template-columns: 1fr; }
  .fest-col-2 { grid-column: span 1; }
  .fest-block, .fest-form-head, .fest-submit { padding-left: 18px; padding-right: 18px; }
  .fest-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fest-sites { grid-template-columns: 1fr; }
  .fest-btn-submit { width: 100%; justify-content: center; }
}
@media (max-width: 520px) {
  .fest-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fest-upload { flex-direction: column; align-items: flex-start; }
}
