/* BedtimeSpeak 网页移动端 —— iOS 风格、浅色主题（对应「展示逻辑类网页默认浅色」偏好） */

:root {
  --accent: #007AFF;
  --accent-press: #0063CC;
  --danger: #FF3B30;
  --warning: #FF9500;
  --success: #34C759;
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --text: #1C1C1E;
  --text-2: #8E8E93;
  --text-3: #C7C7CC;
  --separator: rgba(60, 60, 67, 0.12);
  --fill: rgba(118, 118, 128, 0.12);
  --radius: 12px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

#app { min-height: 100vh; }

/* 居中容器：手机屏宽、桌面也窄栏居中 */
.screen {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
}

/* 顶部标题栏 */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 16px;
}
.navbar .title { font-size: 17px; font-weight: 600; }
.navbar .icon-btn {
  border: none; background: transparent; font-size: 22px;
  padding: 6px; cursor: pointer; color: var(--accent); line-height: 1;
}

/* 文本 */
h1.title1 { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
h2.title2 { font-size: 20px; font-weight: 700; margin: 0; }
.headline { font-size: 17px; font-weight: 600; margin: 0; }
.sub { font-size: 15px; color: var(--text-2); }
.footnote { font-size: 13px; color: var(--text-2); }
.caption { font-size: 12px; color: var(--text-2); }
.big-english { font-size: 24px; font-weight: 700; }
.english-blue { color: var(--accent); }

.center { text-align: center; }
.spacer { flex: 1; }

/* 图标大图 */
.hero-icon { font-size: 52px; line-height: 1; }
.hero-icon.green { color: var(--success); }

/* 按钮 */
.btn {
  display: block; width: 100%;
  border: none; border-radius: var(--radius);
  padding: 14px 16px; font-size: 17px; font-weight: 600;
  cursor: pointer; text-align: center; line-height: 1.2;
  transition: opacity .12s ease;
}
.btn:active { opacity: .7; }
.btn:disabled { opacity: .4; cursor: default; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-bordered { background: var(--card); color: var(--accent); border: 1px solid var(--accent); }
.btn-plain { background: transparent; color: var(--text-2); font-weight: 400; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }

.btn-row { display: flex; gap: 12px; }
.btn-row .btn { flex: 1; }

/* 输入框 */
.textarea {
  width: 100%; border: 1px solid var(--separator); border-radius: var(--radius);
  background: var(--card); padding: 14px; font-size: 18px; font-family: inherit;
  color: var(--text); resize: vertical; min-height: 88px; line-height: 1.4;
}
.textarea:focus { outline: none; border-color: var(--accent); }

/* 卡片 */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px;
}

/* 情境标签选择 */
.tag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tag-btn {
  border: none; border-radius: 10px; padding: 14px 12px; font-size: 16px;
  cursor: pointer; background: var(--fill); color: var(--text);
}
.tag-btn.active { background: var(--accent); color: #fff; }

/* 标签胶囊 */
.chip {
  display: inline-block; font-size: 12px; color: var(--text-2);
  background: var(--fill); border-radius: 999px; padding: 4px 10px;
}

/* 置信度徽标 */
.badge {
  display: flex; gap: 8px; align-items: flex-start;
  background: rgba(255, 149, 0, 0.12); border-radius: 8px; padding: 10px;
  margin-top: 8px;
}
.badge .badge-title { font-size: 13px; font-weight: 600; }
.badge .badge-reason { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* 披露文案 */
.disclosure { display: flex; flex-direction: column; gap: 6px; }
.disclosure .disc-head { font-size: 17px; font-weight: 600; margin-top: 10px; }
.disclosure p, .disclosure .disc-item { font-size: 15px; color: var(--text-2); margin: 0; line-height: 1.5; }

/* 倒计时环 */
.ring { position: relative; width: 72px; height: 72px; margin: 0 auto; }
.ring svg { width: 72px; height: 72px; transform: rotate(-90deg); }
.ring .ring-track { fill: none; stroke: rgba(60,60,67,0.15); stroke-width: 6; }
.ring .ring-progress { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring .ring-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700;
}

/* 复习队列 */
.review-count { font-size: 12px; color: var(--text-2); }
.divider { height: 1px; background: var(--separator); margin: 12px 0; }

/* 小结行 */
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row .k { color: var(--text-2); }
.sum-row .v { font-weight: 600; }

/* 设置表单 */
.form-section { font-size: 13px; color: var(--text-2); text-transform: none; padding: 8px 4px 4px; }
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); padding: 14px 16px; border-radius: var(--radius); margin-bottom: 12px;
}
.setting-row .label { font-size: 16px; }
.setting-row .value { font-size: 15px; color: var(--text-2); }

input[type="time"] {
  font-size: 17px; border: none; background: transparent; color: var(--text);
  font-family: inherit;
}

/* 提示条 */
.notice {
  font-size: 13px; color: var(--danger); margin-top: 8px;
}
.hint { font-size: 13px; color: var(--text-2); margin-top: 10px; text-align: center; }
