/* 好客滇峰·提档焕新 前台样式 */
:root {
  --bg: #f7ecdb;
  --bg2: #fdf6ea;
  --card: #fffdf8;
  --line: #f0dfc6;
  --red: #c9331e;
  --red2: #e2512d;
  --deep: #a02114;
  --gold: #eda63c;
  --gold2: #f5c26b;
  --green: #3e7d4f;
  --green2: #5da26f;
  --ink: #4a2e17;
  --sub: #8a6b4d;
  --faint: #b49a7e;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #efe3cf;
  color: var(--ink);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 96px;
  position: relative;
  overflow-x: hidden;
}

/* 评委登录条 */
.judgebar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 16px;
  background: linear-gradient(90deg, #5a3213, #7c4a1e);
  color: #ffe9c4; font-size: 13px;
}
.judgebar a { color: #ffd894; text-decoration: underline; }

/* ===== 首页顶部整图模式 ===== */
.topimg img { width: 100%; display: block; }
.stage-pill {
  margin: 10px auto 0; width: max-content;
  font-size: 12px; color: #a4691f; font-weight: 700;
  background: #fff8ea; border: 1px solid #f3d9a6;
  padding: 4px 14px; border-radius: 999px;
}

/* ===== 头部 Hero ===== */
.hero {
  position: relative;
  padding: 22px 18px 26px;
  background:
    radial-gradient(120% 90% at 85% 0%, #fbd9a1 0%, transparent 55%),
    radial-gradient(100% 80% at 10% 100%, #f6cf9d 0%, transparent 50%),
    linear-gradient(165deg, #fdeecd 0%, #f7ddb0 55%, #f5e6c8 100%);
  overflow: hidden;
}
.hero .brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: #8a4a17;
}
.hero .brand .dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: conic-gradient(#e2512d 0 33%, #eda63c 33% 66%, #c9331e 66% 100%);
  box-shadow: 0 2px 6px rgba(190, 90, 20, .35);
}
.hero-img { border-radius: 0; }
.hero h1 {
  margin-top: 16px;
  text-align: center;
  font-size: 33px; font-weight: 900; letter-spacing: 3px;
  background: linear-gradient(180deg, #e2512d 10%, #a02114 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #a02114;
  text-shadow: 0 3px 10px rgba(226, 81, 45, .18);
}
.hero .ribbon {
  margin: 12px auto 0; width: max-content; max-width: 100%;
  background: linear-gradient(90deg, var(--red2), var(--red));
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 7px 16px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(201, 51, 30, .3);
}
.hero .stage-tip {
  margin: 10px auto 0; width: max-content;
  font-size: 12px; color: #a4691f;
  background: rgba(255, 255, 255, .55);
  border: 1px solid #f3d9a6;
  padding: 3px 12px; border-radius: 999px;
}

/* ===== 倒计时条 ===== */
.countdown {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 12px 14px 0; padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(120deg, #fff6e8, #ffedd6);
  border: 1px solid #f3d9a6;
}
.cd-label { font-size: 13.5px; font-weight: 800; color: #a4691f; flex: none; }
.cd-timer {
  font-size: 15px; font-weight: 900; color: var(--red);
  font-variant-numeric: tabular-nums; letter-spacing: .5px;
}

/* ===== 作品页顶部整图模式 ===== */
.pagehead-img { position: relative; }
.pagehead-img img { width: 100%; display: block; }
.pagehead-img .back-float {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .75); color: var(--deep);
  font-size: 18px; font-weight: 700; border: 1px solid rgba(240, 216, 171, .8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

/* ===== 页面小头部（内页） ===== */
.pagehead {
  position: relative;
  padding: 14px 16px 18px;
  background: linear-gradient(165deg, #fdeecd 0%, #f7ddb0 70%, #f5e6c8 100%);
}
.pagehead .row { display: flex; align-items: center; gap: 10px; }
.pagehead .back {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .7); color: var(--deep);
  font-size: 18px; font-weight: 700; border: 1px solid #f0d8ab;
}
.pagehead h2 {
  flex: 1; text-align: center; font-size: 21px; font-weight: 900;
  color: var(--deep); letter-spacing: 2px; margin-right: 42px;
}
.pagehead .sub { text-align: center; font-size: 12px; color: #a4691f; margin-top: 4px; }

/* ===== 通用卡片/区块 ===== */
.wrap { padding: 0 14px; }
.card {
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  margin: 14px 14px 0;
  box-shadow: 0 4px 16px rgba(160, 90, 25, .08);
  border: 1px solid rgba(240, 216, 171, .6);
}
.sec-title {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--red); font-weight: 900; font-size: 19px;
  margin: 22px 0 4px;
}
.sec-title::before, .sec-title::after {
  content: ""; width: 30px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.sec-title::after { background: linear-gradient(90deg, var(--gold), transparent); }
.card h3 { font-size: 17px; color: var(--red); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.card h3 .ico {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: linear-gradient(160deg, var(--gold2), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
}
.card p { font-size: 14px; color: var(--sub); }

/* ===== 首页双赛入口 ===== */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 14px 0; }
.duo a {
  border-radius: 18px; padding: 18px 14px 16px; color: #fff;
  position: relative; overflow: hidden; display: block;
}
.duo .t { font-size: 19px; font-weight: 900; letter-spacing: 1px; }
.duo .s { font-size: 12px; opacity: .92; margin: 4px 0 14px; }
.duo .go {
  display: inline-block; background: #fff; border-radius: 999px;
  font-size: 13px; font-weight: 700; padding: 6px 14px;
}
.duo .card-d { background: linear-gradient(155deg, #e4502f, #b02414); box-shadow: 0 6px 16px rgba(196, 60, 30, .35); }
.duo .card-d .go { color: var(--red); }
.duo .card-p { background: linear-gradient(155deg, #57975f, #2f6b3e); box-shadow: 0 6px 16px rgba(60, 120, 70, .35); }
.duo .card-p .go { color: var(--green); }
.duo .wm {
  position: absolute; right: -12px; bottom: -18px;
  font-size: 64px; font-weight: 900; opacity: .12; letter-spacing: 0;
}
/* 入口卡片图片模式（后台上传替换） */
.duo .imgcard {
  padding: 0; background: none; border-radius: 18px;
  box-shadow: 0 6px 16px rgba(160, 80, 20, .25);
}
.duo .imgcard img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; display: block; }
.duo .imgcard:active { transform: scale(.98); }

/* ===== 活动流程 ===== */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 12px 14px 0; }
.flow .step { text-align: center; position: relative; }
.flow .num {
  width: 44px; height: 44px; margin: 0 auto; border-radius: 50%;
  background: linear-gradient(160deg, #fff6e6, #ffe9c2);
  border: 2px solid var(--gold2);
  display: flex; align-items: center; justify-content: center;
  color: var(--red); font-weight: 900; font-size: 18px;
  box-shadow: 0 4px 10px rgba(237, 166, 60, .25);
}
.flow .step:not(:last-child) .num::after {
  content: "→"; position: absolute; right: -8px; top: 12px;
  color: var(--gold); font-size: 14px;
}
.flow .t { font-size: 13px; font-weight: 800; color: var(--ink); margin-top: 8px; }
.flow .s { font-size: 10.5px; color: var(--faint); line-height: 1.4; margin-top: 2px; }

/* ===== 统计条 ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 14px 0; }
.stats .st {
  background: var(--card); border-radius: 14px; padding: 12px 4px;
  text-align: center; border: 1px solid rgba(240, 216, 171, .6);
}
.stats .v { font-size: 19px; font-weight: 900; color: var(--red); }
.stats .v small { font-size: 12px; font-weight: 700; }
.stats .k { font-size: 11px; color: var(--sub); margin-top: 2px; }

/* ===== 底部操作栏 ===== */
.actionbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; z-index: 50;
  display: flex; gap: 12px;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(247, 236, 219, 0), var(--bg) 45%);
}
.btn {
  flex: 1; height: 48px; border: 0; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 16px; font-weight: 800;
}
.btn-primary {
  background: linear-gradient(90deg, #e4502f, #b02414); color: #fff;
  box-shadow: 0 6px 16px rgba(200, 51, 30, .35);
}
.btn-outline { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; }

/* ===== 作品列表 ===== */
.tabs {
  display: flex; margin: 14px 14px 0;
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
}
.tabs a { flex: 1; text-align: center; padding: 13px 0; font-size: 16px; font-weight: 800; color: var(--sub); }
.tabs a.on { background: linear-gradient(90deg, var(--red2), var(--red)); color: #fff; }
.countbar {
  display: flex; justify-content: space-around; align-items: center;
  margin: 12px 14px 0; padding: 12px;
  background: var(--card); border-radius: 14px; border: 1px solid var(--line);
  font-size: 14px; color: var(--sub);
}
.countbar b { color: var(--red); font-size: 18px; margin-left: 4px; }
.countbar .sep { width: 1px; height: 20px; background: var(--line); }

.works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 14px 0; }
.wcard {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(160, 90, 25, .1);
  display: flex; flex-direction: column;
}
.wcard .cover { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #f4e3c8; }
.wcard .cover-ph {
  width: 100%; aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #fbe9c9, #f3d8a8); font-size: 44px;
}
.wcard .body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.wcard .branch { font-size: 12px; color: var(--faint); }
.wcard .title {
  font-size: 15px; font-weight: 800; margin: 2px 0 6px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.wcard .meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.wcard .likes { font-size: 12px; color: var(--red2); font-weight: 700; }
.wcard .more {
  font-size: 12px; font-weight: 700; color: var(--red);
  border: 1px solid var(--red); border-radius: 999px; padding: 4px 10px;
}
.badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 2px 9px; width: max-content;
}
.badge-final { background: #e8f4ea; color: var(--green); border: 1px solid #bcdcc3; }
.badge-live { background: #fdeedd; color: #d97a1b; border: 1px solid #f5d4a5; }
.badge-win { background: linear-gradient(90deg, #f7d98a, #eda63c); color: #7c4a04; border: 1px solid #eab84d; }
.badge-gray { background: #f0ece5; color: #a39683; border: 1px solid #e0d8ca; }
.badge-scored { background: #e8f0fb; color: #3465a4; border: 1px solid #c4d7f0; }

/* ===== 作品详情 ===== */
.media { position: relative; background: #000; }
.media-strip {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.media-strip::-webkit-scrollbar { display: none; }
.media-strip > img, .media-strip > video {
  flex: 0 0 100%; width: 100%; aspect-ratio: 4/3;
  object-fit: contain; scroll-snap-align: center; background: #1a120a;
}
.media .counter {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 12px; border-radius: 999px; padding: 2px 10px;
}
.media .flag {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: linear-gradient(90deg, #f7d98a, #eda63c);
  color: #7c4a04; font-size: 12px; font-weight: 800;
  border-radius: 999px; padding: 4px 12px;
}
.info-row { display: flex; gap: 10px; padding: 7px 0; font-size: 14.5px; align-items: baseline; }
.info-row .k { color: var(--faint); flex: none; width: 78px; }
.info-row .v { color: var(--ink); font-weight: 600; }
.info-row .v.hot { color: var(--red2); }
.desc { font-size: 14px; color: var(--sub); white-space: pre-wrap; margin-top: 6px; }

.crit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.crit-grid .c {
  background: #fdf4e3; border: 1px solid #f3ddb4; border-radius: 12px;
  text-align: center; padding: 10px 2px;
}
.crit-grid .n { font-size: 12px; color: var(--ink); font-weight: 700; }
.crit-grid .m { font-size: 16px; color: var(--red); font-weight: 900; margin-top: 2px; }

/* 打分表单 */
.range-row { display: grid; grid-template-columns: 92px 1fr 62px; gap: 10px; align-items: center; padding: 7px 0; }
.range-row .lb { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.range-row input[type="range"] { width: 100%; accent-color: var(--red2); height: 24px; }
.range-row input[type="number"] {
  width: 100%; height: 34px; text-align: center;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-weight: 800; color: var(--red); background: #fff;
}
.score-total {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1.5px dashed var(--line); margin-top: 8px; padding-top: 10px;
}
.score-total .t { font-weight: 800; }
.score-total .v { font-size: 26px; font-weight: 900; color: var(--red); }
.score-total .v small { font-size: 13px; }

/* 点赞 */
.like-box { text-align: center; }
.like-btn {
  width: 100%; height: 52px; border: 0; border-radius: 16px;
  background: linear-gradient(90deg, #f0633c, #c9331e);
  color: #fff; font-size: 18px; font-weight: 900; letter-spacing: 2px;
  box-shadow: 0 6px 16px rgba(201, 51, 30, .35);
}
.like-btn:active { transform: scale(.97); }
.like-btn[disabled] { background: #d8c5ac; box-shadow: none; }
.like-tip { font-size: 12px; color: var(--faint); margin-top: 8px; }
.hotline { display: grid; grid-template-columns: 1fr 1fr; margin-top: 6px; }
.hotline .h { text-align: center; padding: 8px 0; }
.hotline .h + .h { border-left: 1px solid var(--line); }
.hotline .v { font-size: 24px; font-weight: 900; }
.hotline .v.red { color: var(--red2); }
.hotline .v.green { color: var(--green); }
.hotline .k { font-size: 12px; color: var(--faint); }

/* ===== 榜单 ===== */
.overview { display: flex; align-items: center; justify-content: space-around; padding: 6px 0; }
.overview .o { text-align: center; }
.overview .v { font-size: 30px; font-weight: 900; color: var(--red); }
.overview .v small { font-size: 13px; font-weight: 700; }
.overview .k { font-size: 12px; color: var(--sub); }
.overview .arr { color: var(--gold); font-size: 18px; }

.rank-row {
  display: grid; grid-template-columns: 40px 52px 1fr 64px; gap: 10px;
  align-items: center; padding: 10px 0;
  border-bottom: 1px solid #f5ead4;
}
.rank-row:last-child { border-bottom: 0; }
.rank-row .no {
  width: 30px; height: 30px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; background: #f3ead9; color: var(--sub);
}
.rank-row.top1 .no { background: linear-gradient(160deg, #ffd76b, #eda11c); color: #7c4a04; }
.rank-row.top2 .no { background: linear-gradient(160deg, #e8e8ee, #b9becd); color: #4c5266; }
.rank-row.top3 .no { background: linear-gradient(160deg, #f0c3a0, #cd8452); color: #6e3a10; }
.rank-row .thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #f4e3c8; }
.rank-row .thumb-ph {
  width: 52px; height: 52px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #fbe9c9, #f3d8a8); font-size: 24px;
}
.rank-row .bn { font-size: 12px; color: var(--faint); }
.rank-row .tt { font-size: 14.5px; font-weight: 800; }
.rank-row .hot { text-align: right; font-weight: 900; color: var(--red2); font-size: 15px; }
.rank-row .hot small { display: block; font-weight: 400; color: var(--faint); font-size: 10.5px; }

/* ===== 提示/杂项 ===== */
.notice {
  margin: 14px; padding: 14px 16px; border-radius: 14px;
  background: #fdf3df; border: 1px dashed var(--gold);
  color: #9a6514; font-size: 13.5px;
}
.flash {
  margin: 14px; padding: 12px 16px; border-radius: 12px;
  background: #e8f4ea; border: 1px solid #bcdcc3; color: var(--green);
  font-size: 14px; font-weight: 700;
}
.empty { text-align: center; color: var(--faint); padding: 50px 0; font-size: 14px; }
.empty .big { font-size: 46px; margin-bottom: 8px; }
.footer-note {
  text-align: center; font-size: 11.5px; color: #c2ad92;
  padding: 26px 0 10px; line-height: 1.8;
}
.rule-img { border-radius: 14px; overflow: hidden; margin: 14px 14px 0; box-shadow: 0 4px 14px rgba(160, 90, 25, .12); }
.rule-img img { width: 100%; }

/* 报名入口横幅 */
.submit-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 12px 14px 0; padding: 14px 16px;
  border-radius: 16px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #f2a93b 0%, #e4502f 55%, #c9331e 100%);
  box-shadow: 0 6px 16px rgba(206, 84, 35, .35);
}
.submit-cta::before {
  content: ""; position: absolute; right: -26px; top: -44px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}
.submit-cta::after {
  content: ""; position: absolute; right: 66px; bottom: -56px;
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.submit-cta:active { transform: scale(.98); }
.sc-info { display: flex; flex-direction: column; position: relative; z-index: 1; }
.sc-badge {
  width: max-content; font-size: 10.5px; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .45);
  padding: 1px 9px; border-radius: 999px;
}
.sc-title { color: #fff; font-size: 18px; font-weight: 900; letter-spacing: 1px; margin-top: 4px; }
.sc-sub { color: rgba(255, 244, 224, .92); font-size: 11px; margin-top: 1px; }
.sc-go {
  flex: none; position: relative; z-index: 1;
  background: #fff; color: #c9331e;
  font-size: 14px; font-weight: 800;
  padding: 9px 15px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

/* 前台表单（报名） */
.fcard .f { margin-bottom: 14px; }
.fcard label { display: block; font-size: 13px; color: var(--sub); font-weight: 700; margin-bottom: 6px; }
.fcard input[type="text"], .fcard select, .fcard textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 14px; font-size: 15px; background: #fff; color: var(--ink);
}
.fcard textarea { min-height: 110px; resize: vertical; }
.fcard input[type="file"] { font-size: 13px; width: 100%; }
.fcard .hint { font-size: 11.5px; color: var(--faint); margin-top: 4px; line-height: 1.5; }

/* 登录页 */
.login-card { margin-top: 40px; }
.login-card .f { margin-bottom: 14px; }
.login-card label { font-size: 13px; color: var(--sub); font-weight: 700; display: block; margin-bottom: 6px; }
.login-card input {
  width: 100%; height: 46px; border: 1.5px solid var(--line);
  border-radius: 12px; padding: 0 14px; font-size: 16px; background: #fff;
}
.err { color: #c0392b; font-size: 13.5px; margin: 10px 14px 0; text-align: center; font-weight: 700; }
