/* style.css — V3取名引擎 全局样式（小红书统一风格） */
:root {
  --red: #ff2442;
  --red-light: #ff6b81;
  --red-bg: #fff0ee;
  --gold: #d4a853;
  --gold-light: #f5e6c8;
  --text: #333;
  --text-sub: #666;
  --text-light: #999;
  --bg: #fafafa;
  --card-bg: #fff;
  --radius: 16px;
  --radius-sm: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  background: var(--card-bg);
  min-height: 100vh;
}

/* ===== 头部 — 小红书Hero风格 ===== */
.header {
  background: linear-gradient(135deg, #ff2442 0%, #ff6b81 50%, #ff9a76 100%);
  padding: 56px 24px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.header-glow {
  position: absolute;
  top: -60%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.18) 0%, transparent 55%);
  pointer-events: none;
}
.header-content {
  position: relative;
  z-index: 1;
}
.header-brand {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 8px;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.header-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 4px;
  font-weight: 400;
}

/* ===== 表单区 — 卡片式圆角风格 ===== */
.form-section {
  padding: 28px 24px 20px;
  margin: -20px 16px 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  position: relative;
  z-index: 2;
}

.form-group {
  margin-bottom: 20px;
}

/* 标签：小红书标注风格 */
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
}

/* 输入框：简洁圆角 */
.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #eee;
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text);
  background: #fafafa;
  transition: all 0.25s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--red);
  background: var(--card-bg);
  box-shadow: 0 0 0 3px rgba(255,36,66,0.08);
}

/* 性别切换 — 胶囊按钮 */
.gender-switch {
  display: flex;
  gap: 12px;
}
.gender-btn {
  flex: 1;
  padding: 14px 12px;
  border: 1.5px solid #eee;
  border-radius: var(--radius-sm);
  background: #fafafa;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}
.gender-btn .gender-icon {
  font-size: 20px;
}
.gender-btn.active {
  border-color: var(--red);
  background: var(--red-bg);
  color: var(--red);
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(255,36,66,0.08);
}
.gender-btn:active {
  transform: scale(0.97);
}

/* 开始取名 — 渐变大按钮 */
.start-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #ff2442 0%, #ff6b81 50%, #ff9a76 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 3px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(255,36,66,0.3);
  -webkit-tap-highlight-color: transparent;
}
.start-btn .start-sparkle {
  font-size: 16px;
}
.start-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(255,36,66,0.3);
}
.start-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== 加载 ===== */
.loading-section {
  padding: 60px 20px;
  text-align: center;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #ffe0e6;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 12px;
}
.loading-progress {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== 结果 ===== */
.result-section {
  padding: 0 20px 40px;
}
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-top: 24px;
}
.result-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .5px;
}
.retry-btn {
  padding: 8px 18px;
  border: 1.5px solid var(--red);
  border-radius: 20px;
  background: transparent;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all .15s;
}
.retry-btn:active { background: var(--red-bg); transform: scale(.96); }

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 0 10px;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  border: 1.5px solid #eee;
  border-radius: 10px;
  background: #fafafa;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  -webkit-tap-highlight-color: transparent;
}
.page-btn:active { transform: scale(0.95); }
.page-btn.active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,36,66,0.3);
}
.page-prev, .page-next {
  font-size: 18px;
  padding: 0 12px;
}
.page-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: var(--text-sub);
  font-size: 14px;
  letter-spacing: 2px;
}
