* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
}

/* 解锁页 */
.card {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  margin-top: 40px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.cover {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 50px 30px;
  text-align: center;
}

.cover-emoji { font-size: 64px; line-height: 1; }
.book-title { font-size: 26px; margin-top: 16px; font-weight: 600; }
.book-subtitle { font-size: 14px; opacity: 0.9; margin-top: 6px; }

.form { padding: 32px 28px; }
.form label { display: block; font-size: 14px; color: #666; margin-bottom: 12px; }

.form input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form input:focus { border-color: #667eea; }

.form button {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.form button:active { opacity: 0.85; transform: scale(0.98); }

.hint { font-size: 12px; color: #999; margin-top: 14px; line-height: 1.6; }
.error { font-size: 13px; color: #f5576c; margin-top: 12px; font-weight: 500; }

.foot { color: rgba(255, 255, 255, 0.7); font-size: 12px; margin-top: 30px; text-align: center; }

/* 视频列表页 */
.list {
  width: 100%;
  max-width: 720px;
  background: white;
  border-radius: 20px;
  margin-top: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.list-header { text-align: center; padding-bottom: 22px; border-bottom: 1px solid #f0f0f0; }
.list-header h1 { font-size: 22px; color: #222; }
.list-header .meta { font-size: 13px; color: #888; margin-top: 6px; }

.videos { margin-top: 18px; display: flex; flex-direction: column; gap: 18px; }

.video-card {
  background: #fafafa;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.video-title {
  padding: 12px 14px;
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.foot-small { text-align: center; font-size: 11px; color: #bbb; margin-top: 22px; }
