/* ============================================
   每日穿搭 - 私人定制 · 主样式表
   风格：温暖 · 雅致 · 东方美学
   ============================================ */

/* ======= Variables ======= */
:root {
  --primary: #2c1810;
  --primary-light: #4a3228;
  --primary-lighter: #6b4c3b;
  --accent: #c8a882;
  --accent-light: #e8d5c0;
  --accent-lighter: #f5ede4;
  --bg: #f7f3ef;
  --bg-card: #ffffff;
  --bg-warm: #faf6f1;
  --text: #2c1810;
  --text-secondary: #7a6a5a;
  --text-tertiary: #b0a090;
  --border: #e8ddd0;
  --border-light: #f0e8e0;
  --shadow-sm: 0 1px 3px rgba(44, 24, 16, 0.06);
  --shadow-md: 0 4px 16px rgba(44, 24, 16, 0.08);
  --shadow-lg: 0 8px 32px rgba(44, 24, 16, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* ======= Reset & Base ======= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ======= Welcome Page ======= */
.welcome-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(160deg, #faf6f1 0%, #ede4d8 40%, #e8ddd0 100%);
  position: relative;
  overflow: hidden;
}
.welcome-page::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 168, 130, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.welcome-page::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 168, 130, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.welcome-container {
  text-align: center;
  padding: 48px 40px;
  max-width: 480px;
  width: 90%;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.6);
  position: relative;
  z-index: 1;
}
.welcome-logo {
  font-size: 72px;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(44,24,16,0.1));
}
.welcome-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  letter-spacing: 4px;
}
.welcome-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  letter-spacing: 1px;
}
.welcome-features {
  text-align: left;
  margin-bottom: 32px;
  padding: 0 4px;
}
.feature-item {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.feature-item:hover {
  background: var(--accent-lighter);
}
.feature-icon { font-size: 22px; }
.welcome-login-tip {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-tertiary);
}
.welcome-login-tip a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed var(--accent);
}
.welcome-login-tip a:hover {
  color: var(--primary);
}

/* ======= Buttons ======= */
.btn-primary {
  display: inline-block;
  width: auto;
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(44, 24, 16, 0.3);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.08) 100%);
  pointer-events: none;
}

.btn-secondary {
  display: inline-block;
  padding: 11px 22px;
  background: var(--bg-card);
  color: var(--primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-lighter);
  transform: translateY(-1px);
}

.btn-danger {
  display: inline-block;
  padding: 6px 16px;
  background: #fff;
  color: #c0392b;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-danger:hover {
  background: #fdf2f2;
  border-color: #e74c3c;
}
.btn-danger-sm {
  padding: 4px 14px;
  background: #fff;
  color: #c0392b;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-danger-sm:hover {
  background: #fdf2f2;
  border-color: #e74c3c;
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--accent-lighter);
  color: var(--primary-light);
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
}
.btn-add:hover {
  background: var(--accent-light);
  border-style: solid;
}

/* ======= Top Nav ======= */
.top-nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  margin-right: 36px;
  letter-spacing: 2px;
}
.nav-links {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  padding: 16px 18px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 2.5px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--primary);
  background: rgba(44,24,16,0.04);
}
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ======= Registration ======= */
.reg-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.reg-header {
  text-align: center;
  margin-bottom: 28px;
}
.reg-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.step {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--border-light);
  color: var(--text-tertiary);
  transition: var(--transition);
  position: relative;
}
.step.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(44,24,16,0.25);
}
.step.done {
  background: #5a8f6c;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.step.done:hover {
  background: #4a7a5a;
  transform: scale(1.1);
  box-shadow: 0 2px 12px rgba(90, 143, 108, 0.4);
}
.step-line {
  width: 28px;
  height: 2px;
  background: var(--border-light);
  border-radius: 2px;
  transition: var(--transition);
}
.reg-step-label {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}
.reg-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

/* ======= Forms ======= */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  background: var(--bg-card);
  outline: none;
  transition: var(--transition);
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237a6a5a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44,24,16,0.08);
}
.form-group input::placeholder {
  color: var(--text-tertiary);
}
.form-group input[type="number"] {
  background-image: none;
  padding-right: 14px;
}
.form-tip {
  font-size: 15px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.radio-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-label, .check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.radio-label:hover, .check-label:hover {
  border-color: var(--accent);
  background: var(--accent-lighter);
}
.radio-label:has(input:checked), .check-label:has(input:checked) {
  border-color: var(--primary);
  background: rgba(44,24,16,0.04);
  color: var(--primary);
  font-weight: 500;
}
.radio-label input, .check-label input { accent-color: var(--primary); }

.row { display: flex; gap: 12px; }
.half { flex: 1; min-width: 0; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }

/* ======= Wardrobe Items (in registration) ======= */
.wardrobe-item {
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
  position: relative;
  transition: var(--transition);
}
.wardrobe-item:hover {
  border-color: var(--border);
}
.wardrobe-item .btn-danger {
  margin-top: 8px;
}

/* ======= Report Page ======= */
.report-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.report-loading {
  text-align: center;
  padding: 100px 0;
}
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.report-loading p {
  color: var(--text-secondary);
  font-size: 15px;
}
.report-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.report-card:hover {
  box-shadow: var(--shadow-md);
}
.report-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.report-grid div {
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-secondary);
}
.report-grid div strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.report-actions {
  text-align: center;
  margin-top: 28px;
}

.tag-good {
  display: inline-block;
  padding: 4px 14px;
  background: #eaf6ee;
  color: #2d7a4a;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}
.tag-bad {
  display: inline-block;
  padding: 4px 14px;
  background: #fdf0ee;
  color: #b84a3a;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* ======= Wuxing Bars ======= */
.wx-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.wx-bar-row:last-child { margin-bottom: 0; }
.wx-label {
  width: 80px;
  font-size: 15px;
  font-weight: 500;
  flex-shrink: 0;
  color: var(--text);
}
.wx-bar-bg {
  flex: 1;
  height: 22px;
  background: var(--border-light);
  border-radius: 11px;
  overflow: hidden;
  position: relative;
}
.wx-bar-fill {
  height: 100%;
  border-radius: 11px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.wx-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  border-radius: 11px 11px 0 0;
}
.wx-score {
  width: 44px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
  font-weight: 500;
}

/* ======= Color Swatches ======= */
.color-swatches {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid rgba(0,0,0,0.06);
  transition: var(--transition);
  cursor: pointer;
}
.swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.color-section {
  margin-bottom: 16px;
}
.color-section strong {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ======= Dashboard ======= */
.dash-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.loading {
  text-align: center;
  padding: 80px 0;
  color: var(--text-tertiary);
  font-size: 16px;
}
.loading::before {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
.empty {
  color: var(--text-tertiary);
  text-align: center;
  padding: 48px 0;
  font-size: 15px;
}
.sep {
  color: var(--border);
  margin: 0 10px;
}

.dash-header {
  margin-bottom: 24px;
}
.dash-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}
.meta-info {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 6px;
}
.wx-tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--accent-lighter);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-light);
}

.theme-box {
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-light) 50%, #5a3d2e 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}
.theme-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.theme-box h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
}
.theme-box p {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.6;
  position: relative;
}

.section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.section:hover {
  box-shadow: var(--shadow-md);
}
.section h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--primary);
  letter-spacing: 0.3px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-header h1 { margin: 0; }

/* ======= Wish Buttons ======= */
.wish-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.wish-btn {
  padding: 8px 16px; border-radius: 22px; font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border-light); background: var(--bg-card);
  color: var(--text-secondary); cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.wish-btn:hover {
  border-color: var(--primary-lighter); color: var(--primary);
  background: var(--accent-lighter);
}
.wish-btn.active {
  border-color: var(--primary); background: var(--primary);
  color: #fff; box-shadow: 0 2px 8px rgba(44,24,16,0.2);
}

/* ======= Color Scheme ======= */
.color-scheme {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cs-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  flex-wrap: wrap;
}
.cs-group:nth-child(even) {
  background: var(--bg-warm);
}
.cs-group strong {
  min-width: 52px;
  font-size: 13px;
  color: var(--text);
}
.cs-main {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  min-width: 60px;
}
.cs-colors {
  display: flex;
  gap: 4px;
}
.cs-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), inset 0 0 0 1px rgba(255,255,255,0.25);
  transition: var(--transition);
}
.cs-dot:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(255,255,255,0.25);
}
.cs-pct {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: auto;
  font-weight: 600;
}
.cs-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--border-light);
  color: var(--text-tertiary);
  font-size: 11px;
  cursor: pointer;
  font-weight: 700;
  flex-shrink: 0;
}
.cs-help:hover {
  background: var(--primary);
  color: #fff;
}
.cs-tip {
  padding: 8px 14px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-secondary);
  background: #faf6f1;
  border-radius: 6px;
  border-left: 3px solid var(--primary);
}

/* ======= 用户色系冲突提示条 ======= */
.cs-conflict {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 8px 0;
  background: #fef9e7;
  border: 1px solid #f9d56e;
  border-radius: 8px;
  font-size: 13px;
  color: #8b6914;
  flex-wrap: wrap;
}
.cs-conflict-icon { font-size: 16px; flex-shrink: 0; }
.cs-conflict-msg { flex: 1; min-width: 200px; }
.cs-conflict-btn {
  padding: 4px 14px;
  border-radius: 14px;
  border: 1px solid #c9a84c;
  background: #fff;
  color: #8b6914;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.cs-conflict-btn:hover {
  background: #8b6914;
  color: #fff;
  border-color: #8b6914;
}
.cs-conflict-dismiss {
  padding: 4px 10px;
  border: none;
  background: none;
  color: #aaa;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.cs-conflict-dismiss:hover { color: #666; }

/* ======= Five Colors Guide ======= */
.five-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.fc-card {
  flex: 1; min-width: 100px; max-width: 140px;
  padding: 12px 10px; border-radius: var(--radius-md);
  text-align: center; cursor: default;
  border: 1.5px solid transparent;
  transition: var(--transition);
  position: relative;
}
.fc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.fc-card.active { border-color: var(--primary); box-shadow: var(--shadow-md); }
.fc-card .fc-icon { font-size: 20px; margin-bottom: 2px; }
.fc-card .fc-label { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.fc-card .fc-wx { font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.fc-card .fc-desc { font-size: 10px; color: var(--text-tertiary, #999); margin-bottom: 2px; text-align: center; }
.fc-card .fc-colors { margin-top: 6px; display: flex; gap: 3px; justify-content: center; }
.fc-card .fc-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.fc-card .fc-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--primary); color: #fff;
  font-size: 10px; padding: 2px 6px; border-radius: 10px;
  font-weight: 600;
}
.fc-card.noble { background: #fdf2f0; }
.fc-card.same { background: #f0f7f1; }
.fc-card.talent { background: #f4fdf6; }
.fc-card.wealth { background: #fef9f0; }
.fc-card.pressure { background: #f4f4f8; }

/* ======= Outfit List ======= */
.outfit-list {
  display: flex;
  flex-direction: column;
}
.outfit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}
.outfit-item.matched {
  background: rgba(90, 143, 108, 0.06);
  border-color: rgba(90, 143, 108, 0.12);
}
.outfit-item.unmatched {
  background: var(--bg-warm);
}
.outfit-item + .outfit-item {
  margin-top: 6px;
}
.oi-cat {
  font-size: 11px;
  color: var(--text-tertiary);
  min-width: 36px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.oi-name {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}
.oi-color {
  font-size: 14px;
  min-width: 44px;
  text-align: center;
  font-weight: 500;
}
.oi-tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--border-light);
  color: var(--text-tertiary);
  font-weight: 500;
}
.oi-tag.ok {
  background: #eaf6ee;
  color: #2d7a4a;
}
.oi-tag.no {
  background: #fdf0ee;
  color: #b84a3a;
}

/* ======= 分层穿搭展示 ======= */
.layered-outfit {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.layer-group {
  border-radius: var(--radius-md, 12px);
  padding: 14px;
  border: 1px solid transparent;
}

.layer-core {
  background: linear-gradient(135deg, #fdf8f0, #faf3e8);
  border-color: #e8d5b0;
}

.layer-secondary {
  background: linear-gradient(135deg, #f5f6fa, #eef0f8);
  border-color: #c8cee8;
}

.layer-bottom {
  background: linear-gradient(135deg, #f8f8f6, #f2f2ee);
  border-color: #d8d8d0;
}

.layer-hidden {
  background: #fafafa;
  border-color: #e0e0e0;
  opacity: 0.85;
}

.layer-accent {
  background: linear-gradient(135deg, #fdf6fd, #faf3fa);
  border-color: #e0c8e0;
}

.layer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.layer-swap-btn {
  background: none;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
  color: #666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  line-height: 1.4;
  transition: all 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.layer-swap-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f5f0fa;
}
.layer-swap-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.layer-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  letter-spacing: 0.3px;
}

.layer-badge.tier1 {
  background: #f5e6d0;
  color: #8b6914;
}

.layer-badge.tier2 {
  background: #d8dff5;
  color: #4a5a8a;
}

.layer-badge.tier3 {
  background: #e8e8e0;
  color: #6b6b5a;
}

.layer-badge.tier-hidden {
  background: #eee;
  color: #999;
}

.layer-badge.tier-accent {
  background: #f5e0f5;
  color: #7b5a8a;
}

.layer-vis {
  font-size: 11px;
  color: var(--text-tertiary, #999);
  margin-left: auto;
}

.layer-skipped-badge {
  font-size: 11px;
  color: #b84a3a;
  background: #fdf0ee;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
}

.layer-skipped {
  text-align: center;
  padding: 10px;
  background: #fdf8f6;
  border-radius: 8px;
  font-size: 13px;
  color: #8b6b5a;
  border: 1px dashed #e0d0c0;
}

.layer-skipped .skip-icon {
  font-size: 18px;
}

.layer-reassign {
  text-align: center;
  font-size: 12px;
  color: #6b8a5a;
  margin-top: 4px;
}

.layer-note {
  font-size: 12px;
  color: #999;
  text-align: center;
  padding: 6px;
}

.layer-empty {
  font-size: 13px;
  color: var(--text-tertiary, #bbb);
  text-align: center;
  padding: 8px;
}

/* 分层单品卡片 */
.layer-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.layer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.04);
}

.layer-item.matched {
  background: rgba(255,255,255,0.8);
}

.layer-item.suggested {
  border-style: dashed;
  border-color: #d0c8b8;
}

.layer-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 层间连接器 */
.layer-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 0;
}

.connector-line {
  width: 2px;
  height: 16px;
  background: #d0c8d8;
  border-radius: 1px;
}

.connector-line.dashed {
  background: transparent;
  border-left: 2px dashed #d8d0d8;
  width: 0;
}

.connector-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0e8f5;
  color: #8b7aaa;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 1px solid #e0d5ea;
}

.layer-toggle {
  font-size: 10px;
  color: #aaa;
  margin-left: 4px;
  transition: transform 0.2s;
}

.layer-hidden-detail {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e8e8e8;
}

/* 移动端响应式 */
@media (max-width: 480px) {
  .layer-group {
    padding: 10px;
  }
  .layer-item {
    gap: 8px;
    padding: 6px 8px;
  }
  .layer-connector .connector-line {
    height: 10px;
  }
}

/* ======= Avoid & Solar Tips ======= */
#avoidList {
  padding-left: 0;
  list-style: none;
}
#avoidList li {
  padding: 8px 0 8px 24px;
  font-size: 15px;
  color: var(--text-secondary);
  position: relative;
  line-height: 1.5;
}
#avoidList li::before {
  content: '✕';
  position: absolute;
  left: 2px;
  color: #c0392b;
  font-size: 12px;
  font-weight: 700;
}

.solar-tip {
  padding: 16px;
  background: linear-gradient(135deg, #fffdf0, #fff8e1);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: #8d7200;
  border: 1px solid rgba(200, 168, 130, 0.2);
  line-height: 1.6;
}

/* ======= Wish Adjustment ======= */
.wish-box {
  background: linear-gradient(135deg, #faf0e6, #f5e4d0);
  border: 1px solid rgba(200, 168, 130, 0.3);
}

/* ======= Date Picker ======= */
.date-picker-input {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--bg-card);
  color: var(--text);
  outline: none;
  transition: var(--transition);
  font-family: var(--font);
}
.date-picker-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44,24,16,0.08);
}
.date-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.date-badge.date-today {
  background: #eaf6ee;
  color: #2d7a4a;
}
.date-badge.date-custom {
  background: #e8f0fe;
  color: #3a6fb5;
}

/* ======= Week Grid ======= */
.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.week-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.week-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}
.wc-date {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.wc-weekday {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.wc-column {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 500;
}
.wc-color {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 2px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.wc-theme {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ======= Item Grid (Wardrobe) ======= */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.item-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
}
.item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}
.item-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}
.item-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.item-detail {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
}
.item-card .btn-danger-sm {
  margin-top: 10px;
  opacity: 0;
  transition: var(--transition);
}
.item-card:hover .btn-danger-sm {
  opacity: 1;
}

/* ======= Add Form (Wardrobe) ======= */
.add-form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--accent-light);
}
.add-form .btn-primary { width: 100%; }
.form-actions .btn-primary { width: 100%; }
.form-actions .btn-secondary { flex-shrink: 0; }
.reg-card .btn-primary { width: 100%; }

/* ======= Animation ======= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.dash-container > * {
  animation: fadeInUp 0.4s ease forwards;
}
.dash-container > *:nth-child(2) { animation-delay: 0.05s; }
.dash-container > *:nth-child(3) { animation-delay: 0.1s; }
.dash-container > *:nth-child(4) { animation-delay: 0.15s; }
.dash-container > *:nth-child(5) { animation-delay: 0.2s; }

/* ======= Modal ======= */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44, 24, 16, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-dialog {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-dialog .modal-icon {
  font-size: 52px;
  margin-bottom: 16px;
  display: block;
}
.modal-dialog h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.modal-dialog .modal-msg {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}
.modal-dialog .btn-primary {
  display: inline-block;
  width: auto;
  padding: 13px 40px;
}

/* ======= Responsive ======= */
@media (max-width: 480px) {
  html, body { overflow-x: hidden; }
  .row { flex-direction: column; gap: 0; }
  .half { width: 100%; }
  .report-grid { grid-template-columns: 1fr; }
  .top-nav { padding: 0 8px; height: auto; min-height: 48px; flex-wrap: wrap; }
  .nav-brand { margin-right: auto; font-size: 15px; letter-spacing: 1px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .nav-links a { padding: 10px 8px; font-size: 12px; }
  .welcome-container { padding: 32px 24px; }
  .reg-card { padding: 20px; }
  .week-grid { grid-template-columns: 1fr; }
  .item-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .cs-group { flex-wrap: wrap; gap: 8px; }
  .cs-pct { margin-left: 0; }
  .section { padding: 14px 12px; }
  .dash-container { padding: 16px 10px 40px; }
  .dash-container h1 { font-size: 20px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-header > div { width: 100%; flex-wrap: wrap; }
  .section-header .btn-primary,
  .section-header .btn-secondary { flex: 1 1 auto; min-width: 0; font-size: 12px !important; padding: 8px 10px !important; white-space: nowrap; }
  .top-nav > a[style*="margin-left:auto"] { font-size: 12px; }
  .item-card .btn-danger-sm { opacity: 1; }
  .modal-dialog { width: 92%; padding: 24px 16px; margin: 0 auto; }
  .modal-dialog .btn-primary { width: 100%; box-sizing: border-box; text-align: center; }
  .add-form { padding: 16px; }
  .add-form .btn-primary,
  .form-actions .btn-primary,
  .reg-card .btn-primary { width: 100% !important; box-sizing: border-box; }

/* ============================================================
   心仪色安全穿搭 Modal
   ============================================================ */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  overflow-y: auto; padding: 16px;
}
.modal-container {
  background: var(--bg-card); border-radius: var(--radius-xl, 16px);
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; background: var(--bg-card); z-index: 1;
  border-radius: 16px 16px 0 0;
}
.modal-header h2 { font-size: 18px; margin: 0; }
.modal-close {
  background: none; border: none; font-size: 20px; cursor: pointer;
  color: var(--text-tertiary); padding: 4px 8px; border-radius: 8px;
}
.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.modal-body { padding: 20px; }
.color-safety-modal { max-width: 560px; }

/* 输入行 */
.cs-input-row {
  display: flex; gap: 8px;
}
.cs-input-row input {
  flex: 1; padding: 10px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--border-light); font-size: 15px;
  outline: none; transition: border-color 0.2s;
}
.cs-input-row input:focus { border-color: var(--primary); }
.cs-input-row .btn-primary {
  padding: 10px 20px; white-space: nowrap;
  border-radius: var(--radius-md); font-size: 14px;
}

/* 颜色推荐 chips */
.cs-color-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cs-chip {
  padding: 4px 12px; border-radius: 16px; font-size: 12px;
  background: var(--bg-secondary); color: var(--text-secondary);
  cursor: pointer; border: 1px solid transparent; transition: all 0.15s;
}
.cs-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg, #f0f4ff); }

/* 风险评估卡片 */
.cs-risk-card { margin-bottom: 16px; }
.cs-risk-card-inner {
  border-radius: var(--radius-lg); padding: 16px; border: 1px solid var(--border-light);
}
.cs-risk-card-inner.safe { background: #f1f8e9; border-color: #c5e1a5; }
.cs-risk-card-inner.caution { background: #fff8e1; border-color: #ffe082; }
.cs-risk-card-inner.danger { background: #fce4ec; border-color: #ef9a9a; }
.cs-risk-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.cs-risk-emoji { font-size: 28px; }
.cs-risk-badge {
  display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 10px;
  margin-left: 6px; font-weight: 600;
}
.cs-risk-badge.safe { background: #c8e6c9; color: #2e7d32; }
.cs-risk-badge.caution { background: #fff9c4; color: #f57f17; }
.cs-risk-badge.danger { background: #ffcdd2; color: #c62828; }
.cs-risk-summary { font-size: 14px; color: var(--text-primary); margin: 0 0 6px; line-height: 1.5; }
.cs-risk-detail { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.cs-risk-palette { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.cs-swatch-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08); display: inline-block;
}

/* 方案卡片 */
.cs-plans { display: flex; flex-direction: column; gap: 12px; }
.cs-plan-card {
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 14px; background: var(--bg-card);
}
.cs-plan-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cs-plan-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.cs-plan-tag.recommend { background: #e8f5e9; color: #2e7d32; }
.cs-plan-tag.safe { background: #e3f2fd; color: #1565c0; }
.cs-plan-tag.conservative { background: #f3e5f5; color: #6a1b9a; }
.cs-plan-tag.boost { background: #fff3e0; color: #e65100; }
.cs-plan-tag.flex { background: #e0f7fa; color: #00695c; }
.cs-plan-desc { font-size: 13px; color: var(--text-secondary); margin: 0 0 8px; }
.cs-plan-layer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 8px 0; border-top: 1px dashed var(--border-light); font-size: 13px;
}
.cs-layer-label {
  font-weight: 600; color: var(--text-primary); min-width: 80px;
}
.cs-layer-colors {
  display: flex; align-items: center; gap: 4px; color: var(--text-secondary);
}
.cs-plan-swatch {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.08); display: inline-block;
}
.cs-layer-note {
  width: 100%; font-size: 12px; color: var(--text-tertiary);
  padding-left: 86px;
}
.cs-styling-tip {
  font-size: 12px; color: var(--primary-light); margin: 8px 0 0;
  padding: 8px; background: var(--primary-bg, #f0f4ff);
  border-radius: var(--radius-sm); line-height: 1.5;
}

/* 方案 tabs */
.cs-plan-tabs { display: flex; gap: 6px; margin: 4px 0 10px; flex-wrap: wrap; }
.cs-plan-tab {
  padding: 5px 14px; border-radius: 16px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border-light); background: var(--bg-card);
  color: var(--text-secondary); cursor: pointer; transition: all 0.15s;
}
.cs-plan-tab:hover { border-color: var(--primary); color: var(--primary); }
.cs-plan-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.cs-plan-desc-bar {
  font-size: 13px; color: var(--text-secondary); margin: 0 0 10px;
  padding: 8px 12px; background: var(--bg-secondary); border-radius: var(--radius-sm);
  line-height: 1.5;
}
.cs-plan-desc-bar .cs-plan-tag { margin-right: 4px; }

/* 衣橱单品卡片 */
.cs-outfit-items { display: flex; flex-direction: column; gap: 8px; }
.cs-outfit-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border: 1px solid var(--border-light); border-radius: var(--radius-md);
  background: var(--bg-card);
}
.cs-outfit-img-wrap { width: 64px; height: 80px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--bg-secondary); }
.cs-outfit-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cs-no-img {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--text-tertiary);
}
.cs-outfit-info { flex: 1; min-width: 0; }
.cs-outfit-name { font-size: 14px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-outfit-meta { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.cs-outfit-role { font-size: 11px; color: var(--primary-light); margin-top: 2px; font-weight: 500; }
.cs-empty-outfit {
  text-align: center; padding: 24px; color: var(--text-tertiary);
  background: var(--bg-secondary); border-radius: var(--radius-md);
}

/* 搭配色推荐 */
.cs-color-recs {
  margin-top: 12px; padding: 14px;
  background: var(--bg-secondary); border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.cs-color-recs-list { display: flex; flex-direction: column; gap: 10px; }
.cs-color-rec-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px; background: var(--bg-card); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.cs-rec-swatch {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(0,0,0,0.08); margin-top: 2px;
}
.cs-rec-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cs-rec-label {
  font-size: 11px; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.cs-rec-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.cs-rec-reason { font-size: 11px; color: var(--text-tertiary); line-height: 1.4; }

/* 精确配色标记 */
.outfit-item.exact-match {
  border-color: #66bb6a; background: #f1f8e9;
}
.oi-tag.exact {
  background: #c8e6c9; color: #2e7d32; font-size: 10px;
  padding: 1px 6px; border-radius: 8px; font-weight: 700;
}

/* 日历 */
.cs-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cs-cal-day {
  text-align: center; padding: 8px 4px; border-radius: var(--radius-md);
  border: 1px solid var(--border-light); font-size: 11px;
}
.cs-cal-day .cal-emoji { font-size: 16px; margin-bottom: 2px; }
.cs-cal-day .cal-date { font-weight: 600; font-size: 12px; }
.cs-cal-day .cal-wday { color: var(--text-tertiary); font-size: 10px; }
.cs-cal-day .cal-label { font-size: 10px; margin-top: 2px; font-weight: 600; }
.cs-cal-day.cal-great { background: #e8f5e9; border-color: #a5d6a7; }
.cs-cal-day.cal-ok { background: #f5f5f5; border-color: #e0e0e0; }
.cs-cal-day.cal-warn { background: #fff8e1; border-color: #ffe082; }
.cs-cal-day.cal-avoid { background: #fce4ec; border-color: #ef9a9a; }

/* 会员引导 */
.btn-upgrade {
  background: linear-gradient(135deg, #d4a843, #c9952e); color: #fff;
  border: none; padding: 14px 40px; border-radius: 30px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 12px rgba(180, 130, 30, 0.3); margin-top: 12px;
}

@media (max-width: 600px) {
  .modal-container { max-width: 95vw; max-height: 85vh; }
  .cs-cal-grid { grid-template-columns: repeat(4, 1fr); }
  .cs-input-row { flex-direction: column; }
  .cs-input-row .btn-primary { width: 100%; }
  .modal-header h2 { font-size: 16px; }
}

/* 穿搭日历 */
.oc-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.oc-wday { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-tertiary); padding: 4px 0; }
.oc-wday.weekend { color: #e57373; }
.oc-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.oc-day {
  aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--border-light);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s; position: relative; font-size: 12px;
  background: var(--bg-card);
}
.oc-day:hover { border-color: var(--primary); background: var(--primary-bg, #f0f4ff); }
.oc-day.empty { border: none; background: transparent; cursor: default; }
.oc-day.today { border-color: var(--primary); border-width: 2px; }
.oc-day.has-log { background: #f1f8e9; border-color: #c5e1a5; }
.oc-day-num { font-weight: 600; font-size: 13px; }
.oc-day-colors { display: flex; gap: 2px; margin-top: 2px; }
.oc-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.oc-mood { font-size: 10px; margin-top: 1px; }
.oc-add { font-size: 18px; color: var(--text-tertiary); }
.oc-stats-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding: 8px 12px; background: var(--bg-secondary);
  border-radius: var(--radius-sm); font-size: 12px; color: var(--text-secondary);
}

/* 穿搭日志录入 */
.log-item-label {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border-radius: 6px; cursor: pointer; font-size: 13px;
  border: 1px solid transparent; transition: all 0.1s;
}
.log-item-label:hover { background: var(--bg-secondary); }
.log-item-name { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-item-cat { font-size: 11px; color: var(--text-tertiary); }

/* 穿搭统计 */
.oc-stat-list { display: flex; flex-direction: column; gap: 4px; }
.oc-stat-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  background: var(--bg-card); border-radius: 6px; font-size: 13px;
  border: 1px solid var(--border-light);
}
.oc-stat-item.idle { background: #fff8e1; border-color: #ffe082; }
.oc-stat-count { margin-left: auto; font-weight: 600; font-size: 12px; color: var(--primary); }
.oc-color-bars { display: flex; flex-direction: column; gap: 6px; }
.oc-color-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.oc-cb-label { width: 50px; flex-shrink: 0; color: var(--text-secondary); }
.oc-cb-track { flex: 1; height: 8px; background: var(--bg-secondary); border-radius: 4px; overflow: hidden; }
.oc-cb-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.3s; }
.oc-cb-count { width: 24px; text-align: right; color: var(--text-tertiary); }

/* 重复预警 */
.oc-alert-list { display: flex; flex-direction: column; gap: 6px; }
.oc-alert-item {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 12px;
  border-radius: var(--radius-sm); font-size: 13px;
}
.oc-alert-item.warning { background: #fff8e1; border: 1px solid #ffe082; }
.oc-alert-item.info { background: #e3f2fd; border: 1px solid #90caf9; }

/* 日志详情 */
.oc-detail-item {
  display: flex; align-items: center; gap: 8px; padding: 4px 0;
  border-bottom: 1px solid var(--border-light); font-size: 13px;
}

/* 缺口分析 */
.gap-wuxing-list { display: flex; flex-direction: column; gap: 6px; }
.gap-wuxing-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--bg-card); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light); font-size: 13px;
}
.gap-wuxing-item.critical { border-color: #ef9a9a; background: #fce4ec; }
.gap-wuxing-item.warn { border-color: #ffe082; background: #fff8e1; }
.gap-wx-name { font-weight: 600; min-width: 80px; }
.gap-wx-count { color: var(--text-secondary); }
.gap-wx-suggest { flex: 1; text-align: right; font-size: 11px; color: var(--text-tertiary); }
.gap-cat-item {
  display: flex; flex-direction: column; gap: 2px; padding: 6px 10px;
  background: var(--bg-card); border-radius: 6px; margin-bottom: 4px;
  border: 1px solid var(--border-light);
}
.gap-season-bars { display: flex; flex-direction: column; gap: 6px; }
.gap-season-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.gap-sb-track { flex: 1; height: 12px; background: var(--bg-secondary); border-radius: 6px; overflow: hidden; }

/* 购物清单 */
.shop-list { display: flex; flex-direction: column; gap: 8px; max-height: 400px; overflow-y: auto; }
.shop-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; background: var(--bg-card); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light); transition: all 0.15s;
}
.shop-item.purchased { opacity: 0.6; background: #f1f8e9; }
.shop-item-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.shop-swatch {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(0,0,0,0.06);
}
.shop-item-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.shop-item-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }
.shop-item-reason { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.shop-item-right { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.shop-status { font-size: 16px; }

/* 胶囊衣橱 */
.capsule-controls { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.capsule-controls select, .capsule-controls button { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); font-size: 13px; }
.capsule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.capsule-slot {
  padding: 10px; border-radius: var(--radius-md); border: 1px solid var(--border-light);
  background: var(--bg-card); text-align: center; transition: all 0.15s;
}
.capsule-slot.matched { border-color: #a5d6a7; background: #f1f8e9; }
.capsule-slot.needed { border-style: dashed; border-color: #ef9a9a; background: #fce4ec; }
.capsule-slot-cat { font-size: 11px; font-weight: 600; color: var(--text-tertiary); margin-bottom: 2px; }
.capsule-slot-color { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.capsule-slot-material { font-size: 11px; color: var(--text-tertiary); }
.capsule-slot-name { font-size: 12px; color: var(--primary); margin-top: 4px; }
.capsule-slot-badge {
  display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 8px;
  font-weight: 700; margin-top: 4px;
}
.capsule-slot-badge.match { background: #c8e6c9; color: #2e7d32; }
.capsule-slot-badge.buy { background: #ffcdd2; color: #c62828; }
.capsule-summary {
  display: flex; gap: 16px; padding: 10px 14px; background: var(--bg-secondary);
  border-radius: var(--radius-sm); margin-top: 14px; font-size: 13px;
  justify-content: center;
}
.capsule-summary span strong { color: var(--primary); }

/* 搭配验证 */
.match-verify-upload {
  border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 32px;
  text-align: center; cursor: pointer; transition: all 0.15s;
}
.match-verify-upload:hover { border-color: var(--primary); background: var(--primary-bg, #f0f4ff); }
.match-score-circle {
  width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 28px; font-weight: 700; margin: 0 auto;
}
.match-outfit-card {
  padding: 12px; border: 1px solid var(--border-light); border-radius: var(--radius-md);
  background: var(--bg-card); margin-bottom: 8px;
}
