* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f6f8; color: #222; }
.screen { min-height: 100vh; display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* 开屏 */
#splash { align-items: center; justify-content: center; background: linear-gradient(135deg, #4e8cff, #6f5bff); }
.circles { display: flex; gap: 40px; }
.big-circle {
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: #4e6bff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18); cursor: pointer; transition: transform .15s;
}
.big-circle:active { transform: scale(0.95); }
.c-title { font-size: 40px; font-weight: 700; }
.c-sub { font-size: 13px; margin-top: 4px; color: #555; }

/* 功能页 */
.topbar { height: 48px; display: flex; align-items: center; padding: 0 12px; background: #4e6bff; color: #fff; }
.topbar .back { background: none; border: none; color: #fff; font-size: 15px; cursor: pointer; }
.topbar .title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; margin-right: 36px; }
.content { flex: 1; overflow-y: auto; padding: 12px; padding-bottom: 80px; }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; height: 56px; display: flex; background: #fff; border-top: 1px solid #eee; }
.tab { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #888; cursor: pointer; }
.tab.active { color: #4e6bff; font-weight: 600; }

.card { background: #fff; border-radius: 10px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.card p { font-size: 13px; color: #666; margin-bottom: 10px; line-height: 1.5; }

.step-head { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: #333; }
.step-bar { position: sticky; bottom: 68px; display: flex; gap: 10px; margin-top: 14px; }
.step-bar button { flex: 1; padding: 11px; border: none; border-radius: 8px; background: #eee; font-size: 15px; cursor: pointer; }
.step-bar button.primary { background: #4e6bff; color: #fff; }

button.action { background: #4e6bff; color: #fff; border: none; padding: 10px 14px; border-radius: 8px; cursor: pointer; font-size: 14px; }
button.ghost { background: #fff; border: 1px solid #ccc; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; }
input[type=file] { width: 100%; margin: 8px 0; font-size: 13px; }
input, select { padding: 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.radio { font-size: 14px; }

table { width: 100%; border-collapse: collapse; font-size: 12px; background: #fff; }
th, td { border: 1px solid #eee; padding: 6px 8px; text-align: left; }
th { background: #f0f3ff; font-weight: 600; }
.diff-pos { color: #e23b3b; }
.diff-neg { color: #1aab5b; }
.i-btn { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #4e6bff; color: #4e6bff; background: #fff; cursor: pointer; font-style: italic; font-size: 12px; }

.small { font-size: 12px; color: #888; }
.edit-bar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal-box { background: #fff; border-radius: 12px; padding: 16px; width: 88%; max-width: 420px; max-height: 80vh; overflow-y: auto; }
.detail-card { border: 1px solid #eee; border-radius: 8px; padding: 10px; margin-bottom: 10px; }
.detail-card h4 { font-size: 14px; margin-bottom: 6px; color: #4e6bff; }
.kv { display: flex; justify-content: space-between; font-size: 12px; padding: 2px 0; border-bottom: 1px dashed #f0f0f0; }

.loading { position: fixed; inset: 0; background: rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; gap: 10px; z-index: 99; font-size: 14px; color: #4e6bff; }
.spinner { width: 22px; height: 22px; border: 3px solid #cdd6ff; border-top-color: #4e6bff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 上传进度条（不确定动画） */
.pbar { height: 6px; background: #e6e9f5; border-radius: 4px; overflow: hidden; margin-top: 10px; }
.pbar.hidden { display: none; }
.pbar-fill { height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, #4e6bff, #8aa0ff); animation: pbar 1.1s ease-in-out infinite; }
@keyframes pbar { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

.stats-cards { display: flex; gap: 10px; margin-bottom: 14px; }
.stats-card { flex: 1; background: #fff; border-radius: 10px; padding: 14px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.stats-card .v { font-size: 20px; font-weight: 700; margin-top: 6px; }
.stats-card .v.c { color: #4e6bff; }
.stats-card .v.k { color: #1aab5b; }
.stats-card .v.d { color: #e23b3b; }
