/* public/mobile/style.css */
/* 设计规范：Taste-Skill DESIGN_VARIANCE=5, MOTION_INTENSITY=2, VISUAL_DENSITY=6 */
/* 配色：中国传统色系 —— 群青 + 豆黄 */

:root {
  /* 中国传统色系 - 群青与豆黄 */
  --color-primary: #153472; /* 群青 - 信任、沉稳 */
  --color-accent: #FFDF70;  /* 豆黄 - 温暖、提示 */
  --color-bg: #F2ECDE;      /* 纸白 - 背景 */
  --color-text: #161823;    /* 墨色 - 主文字 */
  --color-text-secondary: #65676B; /* 次级文字 */
  --color-success: #2EA36B; /* 合格绿 */
  --color-warning: #E6A23C; /* 存疑黄 */
  --color-danger: #D54941;  /* 不合格红 */
  --radius-lg: 16px;
  --radius-md: 12px;
  --spacing-unit: 8px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* 去除移动端点击高亮 */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: var(--spacing-unit);
  line-height: 1.6;
  max-width: 420px; /* 模拟手机宽度 */
  margin-left: auto;
  margin-right: auto;
}

/* 微交互：按钮按压反馈 */
.btn {
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
  border-radius: var(--radius-md);
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease-out, background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:active {
  transform: scale(0.97); /* 按压缩放感 */
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-text);
}

.btn-block {
  width: 100%;
}

/* 时间轴样式 */
.timeline {
  position: relative;
  padding-left: 20px;
  margin-top: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ddd;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  background: white;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  /* 宪章微交互要求：节点插入用 spring-in 弹簧动画（克制：0.5s 轻微过冲） */
  animation: spring-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

@keyframes spring-in {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.01);
  }
  80% {
    transform: translateY(2px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 18px;
  width: 10px;
  height: 10px;
  background-color: var(--color-primary);
  border-radius: 50%;
  border: 2px solid white;
}

/* Toast 提示 */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  bottom: 50px;
}
