/* 裕固语语音采集系统 - 全局样式（移动优先） */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(160deg, #0f3d3a 0%, #14594f 55%, #1e7a6a 100%);
  min-height: 100vh;
  color: #22303a;
}

.hidden { display: none !important; }
.tip { color: #6b7b84; font-size: 0.8rem; line-height: 1.6; margin-top: 0.6rem; }

/* ---------------- 注册页 ---------------- */
.auth-page { display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card {
  background: #fff; border-radius: 20px; padding: 28px 24px;
  width: 100%; max-width: 400px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.brand { text-align: center; margin-bottom: 20px; }
.brand-logo {
  width: 56px; height: 56px; margin: 0 auto 10px;
  background: linear-gradient(135deg, #1e7a6a, #2fa88f);
  color: #fff; font-size: 26px; font-weight: 700;
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
}
.brand h1 { font-size: 1.25rem; color: #173f38; }
.subtitle { color: #7a8b92; font-size: .82rem; margin-top: 4px; }

.tab-bar { display: flex; background: #eef4f2; border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.tab-btn { flex: 1; border: 0; background: transparent; padding: 10px 0; font-size: .92rem; border-radius: 9px; color: #5c6b72; }
.tab-btn.active { background: #fff; color: #1e7a6a; font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,.08); }

.auth-card label { display: block; font-size: .85rem; color: #55666e; margin: 14px 0 6px; }
.auth-card input[type=text], .auth-card input[type=tel], .auth-card input[type=password] {
  width: 100%; padding: 12px 14px; font-size: 1rem;
  border: 1.5px solid #d8e2df; border-radius: 10px; outline: none; background: #fafcfb;
}
.auth-card input:focus { border-color: #2fa88f; background: #fff; }

.dialect-group { display: flex; gap: 12px; }
.dialect-option {
  flex: 1; display: flex; align-items: center; gap: 8px;
  border: 1.5px solid #d8e2df; border-radius: 10px; padding: 12px; cursor: pointer;
}
.dialect-option input { accent-color: #1e7a6a; }
.dialect-option:has(input:checked) { border-color: #2fa88f; background: #f0faf7; }

.birth-group { display: flex; align-items: center; gap: 8px; }
.birth-group select {
  flex: 1; padding: 12px; border: 1.5px solid #d8e2df; border-radius: 10px;
  background: #fff; font-size: 1rem; color: #173f38;
}
.birth-sep { color: #55666e; font-size: .95rem; }

.btn {
  border: 0; cursor: pointer; font-size: 1rem; border-radius: 12px;
  padding: 14px 0; font-weight: 600; transition: transform .05s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(135deg, #1e7a6a, #2fa88f); color: #fff; width: 100%; margin-top: 20px; }
.btn-block { display: block; width: 100%; }

.msg { margin-top: 14px; text-align: center; font-size: .88rem; min-height: 1.2em; }
.msg.ok { color: #1e7a6a; }
.msg.err { color: #d64545; }

.admin-entry { text-align: center; margin-top: 18px; font-size: .8rem; }
.admin-entry a { color: #a3b3ba; text-decoration: none; }
.admin-entry a:hover { color: #1e7a6a; }

/* ---------------- 录音页 ---------------- */
.record-page { background: #f2f6f5; padding-bottom: 40px; }
.topbar {
  background: linear-gradient(135deg, #0f3d3a, #1e7a6a);
  color: #fff; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
}
.user-chip { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.user-name { font-weight: 600; }
.user-dialect { background: rgba(255,255,255,.18); padding: 3px 10px; border-radius: 20px; font-size: .75rem; }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff; padding: 6px 14px; border-radius: 20px; font-size: .8rem; }

.record-main { max-width: 560px; margin: 0 auto; padding: 16px; }
.progress-card { background: #fff; border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.progress-text { font-size: .85rem; color: #55666e; margin-bottom: 8px; }
.progress-bar { height: 8px; background: #e4ecea; border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #2fa88f, #1e7a6a); border-radius: 10px; transition: width .4s; }

.prompt-panel {
  background: #fff; border-radius: 16px; padding: 28px 20px; text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.07); min-height: 150px;
  display: flex; flex-direction: column; justify-content: center;
}
.prompt-no { color: #8aa0a9; font-size: .8rem; margin-bottom: 12px; letter-spacing: 1px; }
.prompt-text { font-size: 1.3rem; font-weight: 600; color: #173f38; line-height: 1.8; word-break: break-all; }
.finished-icon {
  width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%;
  background: #2fa88f; color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center;
}

.status { text-align: center; min-height: 2.2em; padding: 12px 8px 4px; font-size: .92rem; color: #55666e; }
.status.ok { color: #1e7a6a; }
.status.err { color: #d64545; }

.rec-controls { text-align: center; margin: 6px 0 14px; }
.btn-record {
  width: 150px; height: 150px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #e05b4d, #d64545); color: #fff;
  font-size: 1.2rem; font-weight: 700; box-shadow: 0 8px 24px rgba(214,69,69,.35);
  transition: transform .08s; position: relative;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.btn-record:active { transform: scale(.96); }
.btn-record.recording { background: linear-gradient(135deg, #b93232, #8f2525); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(214,69,69,.4);} 50% { box-shadow: 0 0 0 22px rgba(214,69,69,0);} }

.timer { text-align: center; font-size: 1.1rem; color: #d64545; font-weight: 600; margin-top: 10px; font-variant-numeric: tabular-nums; }

.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.btn-action {
  padding: 13px 0; border: 1.5px solid #cfe0dc; background: #fff; border-radius: 12px;
  font-size: .95rem; font-weight: 600; color: #173f38; cursor: pointer;
}
.btn-action:disabled { opacity: .4; cursor: not-allowed; }
.btn-action-primary { background: linear-gradient(135deg, #1e7a6a, #2fa88f); border: 0; color: #fff; }
#quality-tip { text-align: center; }
/* （注：内容由AI生成） */
