/* 知月陪跑工具 v0.1 · 手机优先，柔和女性向 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f6f2ee;
  color: #3a3335;
  line-height: 1.65;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 16px 14px 60px; }

/* 顶部 */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 8px;
}
.topbar h2 { font-size: 17px; }
.topbar .links a { font-size: 13px; color: #a4536b; text-decoration: none; margin-left: 12px; }

.hero {
  background: linear-gradient(135deg, #b0486e 0%, #7c5cb8 100%);
  color: #fff; border-radius: 16px; padding: 26px 20px; margin-bottom: 14px;
}
.hero h1 { font-size: 21px; margin-bottom: 6px; }
.hero p { font-size: 13px; opacity: .92; }

/* 卡片 */
.card {
  background: #fff; border-radius: 16px; padding: 18px 16px; margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(90, 60, 80, .06);
}
.card h3 { font-size: 16px; margin-bottom: 10px; }
.card h4 { font-size: 14px; margin: 10px 0 4px; }
.now-card .big { font-size: 15px; font-weight: 600; margin: 4px 0; }
.now-card h3 { font-size: 17px; }
.muted { color: #9b8f94; font-size: 12.5px; }
.warn { color: #b0543d; }

ul.info { list-style: none; }
ul.info li { padding: 3px 0 3px 16px; position: relative; font-size: 14px; }
ul.info li::before { content: "·"; position: absolute; left: 4px; font-weight: 700; color: #a4536b; }

/* 表格 */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { border: 1px solid #eee2e6; padding: 8px 10px; text-align: left; vertical-align: top; }
thead th { background: #7c5cb8; color: #fff; font-weight: 500; border-color: #7c5cb8; }
tbody tr:nth-child(even) { background: #faf7f5; }
.day-cell { white-space: nowrap; font-weight: 600; color: #7c5cb8; }

.meal { padding: 4px 0; border-bottom: 1px dashed #f0e4e8; }
.meal:last-child { border-bottom: none; }
.meal b { display: inline-block; margin-right: 8px; color: #a4536b; }
.meal .muted { display: block; }
.tag { display: inline-block; font-style: normal; font-size: 11.5px; background: #f5e9ef; color: #a4536b; border-radius: 6px; padding: 1px 7px; margin-top: 3px; }

.stage-line { padding: 6px 10px; margin-bottom: 10px; background: #faf7f5; border-radius: 8px; font-size: 13.5px; }

/* 阶段营养重点条（补剂货架位） */
.nutri-strip { background: #f7f3fb; border: 1px solid #e4d9f2; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.nutri-strip > b { display: block; font-size: 14px; color: #6b4fa0; margin-bottom: 8px; }
.nu-item { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 4px 0; border-bottom: 1px dashed #e8def2; align-items: baseline; }
.nu-item:last-of-type { border-bottom: none; }
.nu-key { font-style: normal; font-weight: 700; font-size: 13px; color: #7c5cb8; min-width: 118px; }
.nu-src { font-size: 13px; color: #4a4046; flex: 1; min-width: 160px; }
.nu-why { font-size: 12px; color: #9b8f94; width: 100%; padding-left: 128px; box-sizing: border-box; }
.nu-note { font-size: 12.5px; color: #8a6fae; background: #efe8f8; border-radius: 8px; padding: 6px 10px; margin-top: 8px; }
.tab .now-tag { font-style: normal; font-size: 10.5px; background: #b0486e; color: #fff; border-radius: 6px; padding: 0 5px; margin-left: 4px; vertical-align: 1px; }
.tab.on .now-tag { background: #fff; color: #7c5cb8; }
.meal.day-total { font-size: 12.5px; color: #6b5b62; background: #faf5f9; border-radius: 8px; padding: 3px 8px; margin-top: 5px; }

/* 阶段 tabs */
.tabs { display: flex; gap: 8px; margin: 8px 0 12px; flex-wrap: wrap; }
.tab {
  border: 1.5px solid #e8dbe1; background: #fff; color: #6b5b62;
  border-radius: 20px; padding: 6px 14px; font-size: 13.5px; cursor: pointer;
}
.tab.on { background: #7c5cb8; border-color: #7c5cb8; color: #fff; }

/* 运动日块 */
.day-block { border: 1px solid #f0e4e8; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.day-block.rest { opacity: .75; }
.day-block p { font-size: 13.5px; }
.wlink { color: #7c5cb8; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* 内嵌视频卡片（B站官方播放器） */
.vcard { border: 1px solid #e4d9f2; background: #faf8fd; border-radius: 12px; padding: 10px 12px; margin: 6px 0; }
.vplay { display: block; width: 100%; text-align: left; background: #fff; border: 1.5px solid #7c5cb8; color: #4a4046; font-size: 14px; font-weight: 600; border-radius: 10px; padding: 10px 12px; cursor: pointer; font-family: inherit; }
.vplay:active { opacity: .8; }
.vplay .vmeta { display: block; font-size: 12px; color: #9b8f94; font-weight: 400; margin-top: 3px; }
.vframe { margin-top: 8px; }
.vframe iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; display: block; background: #000; }
.vlink { font-size: 12px; margin-top: 6px; }
.vlink a { color: #7c5cb8; }

/* 全屏清屏播放器：点卡片全屏播，关闭回计划 */
#videoOverlay { position: fixed; inset: 0; background: #000; z-index: 9999; display: none; flex-direction: column; align-items: center; justify-content: center; }
#videoOverlay.show { display: flex; }
#videoOverlay .vclose { position: absolute; top: 15px; right: 16px; z-index: 2; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 20px; padding: 8px 18px; font-size: 14px; cursor: pointer; font-family: inherit; }
#videoOverlay .vrot { position: absolute; top: 15px; left: 16px; z-index: 2; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 20px; padding: 8px 16px; font-size: 14px; cursor: pointer; font-family: inherit; }
#videoOverlay .vtip { position: absolute; bottom: 16px; left: 12px; right: 12px; text-align: center; color: #7d7d7d; font-size: 12px; margin: 0; }
#videoOverlay .vq { position: absolute; top: 66px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: rgba(15,15,15,.6); border-radius: 16px; padding: 6px 16px; font-size: 12.5px; color: #aaa; margin: 0; z-index: 2; }
#videoOverlay .vqb { color: #ddd; cursor: pointer; margin: 0 7px; }
#videoOverlay .vqb.on { color: #fff; font-weight: 700; border-bottom: 2px solid #a78bda; padding-bottom: 1px; }
.cast-tip { font-size: 12.5px; color: #8a7d94; background: #f7f3fb; border-radius: 8px; padding: 6px 10px; margin: 0 0 10px; }
#videoOverlay.rot .vfull { position: absolute; top: 50%; left: 50%; width: 100vh; height: 100vw; transform: translate(-50%, -50%) rotate(90deg); }
#videoOverlay.rot iframe { width: 100%; height: 100%; }
#videoOverlay iframe { width: 100vw; height: 100vh; border: 0; display: block; background: #000; }

/* 喝水轻提醒 */
.water-line { font-size: 14.5px; background: #eef6fb; border: 1px solid #cfe3f2; color: #2d6a8f; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.pill { font-size: 11.5px; border-radius: 6px; padding: 1px 8px; background: #f0e4e8; color: #6b5b62; }
.pill.go { background: #3f9d6f; color: #fff; }

/* 表单 */
.form-card label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 4px; }
.form-card label .req { color: #d5486e; }
.form-card input[type=text], .form-card input[type=tel], .form-card input[type=number], .form-card input[type=date], .form-card select, .form-card textarea {
  width: 100%; border: 1.5px solid #e8dbe1; border-radius: 10px; padding: 10px 12px;
  font-size: 15px; background: #fff; font-family: inherit;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: #7c5cb8; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 12.5px; color: #9b8f94; margin-top: 3px; }
.checkline { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin: 6px 0; }
.checkline input { margin-top: 4px; }

.btn {
  display: inline-block; width: 100%; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #b0486e, #7c5cb8); color: #fff;
  font-size: 16px; font-weight: 600; padding: 13px; cursor: pointer; margin-top: 18px;
}
.btn:active { opacity: .85; }
.btn.ghost { background: #fff; color: #7c5cb8; border: 1.5px solid #7c5cb8; }
.btn.small { width: auto; padding: 8px 16px; font-size: 13.5px; margin-top: 8px; }

.notice { background: #fdf3e7; border: 1px solid #f3ddc0; border-radius: 12px; padding: 10px 14px; font-size: 13px; color: #8a6a3d; margin: 12px 0; }
.ok-box { background: #eef7f0; border: 1px solid #cfe8d8; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: #2f6d4f; margin-top: 12px; }

/* 查询页 */
.query-box { text-align: center; padding: 34px 20px; }
.query-box h1 { font-size: 22px; color: #7c5cb8; margin-bottom: 4px; }
.query-box .sub { font-size: 13.5px; color: #9b8f94; margin-bottom: 22px; }
.query-box input {
  width: 100%; border: 1.5px solid #e8dbe1; border-radius: 12px; padding: 13px 14px;
  font-size: 17px; text-align: center; letter-spacing: 1px;
}
.err { color: #d5486e; font-size: 13.5px; margin-top: 10px; min-height: 20px; }

footer { text-align: center; font-size: 12px; color: #b3a7ad; margin-top: 24px; }
footer a { color: #a4536b; }

@media (min-width: 640px) { .hero h1 { font-size: 24px; } }

.checkin-hint { text-align: center; font-size: 13px; color: #a4536b; background: #fdf1f5; border: 1px dashed #eec6d4; border-radius: 10px; padding: 8px 12px; margin-top: 10px; }
