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

:root {
  --primary: #4A90E2;
  --primary-dark: #357abd;
  --primary-light: #e8f0ff;
  --cta: #FF6B6B;
  --cta-dark: #ee5a5a;
  --text: #1A1A1A;
  --text-light: #888;
  --text-lighter: #999;
  --border: #f0f0f0;
  --bg: #F5F5F5;
  --white: #fff;
  --success: #52c41a;
  --warning: #faad14;
  --error: #ff4d4f;
  /* 会员等级颜色 */
  --member-silver: #C0C0C0;
  --member-silver-light: #f5f5f5;
  --member-gold: #FFD700;
  --member-gold-light: #fffbe6;
  --member-diamond: #B9F2FF;
  --member-diamond-light: #e6f7ff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.header {
  background: var(--white);
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header h1 {
  font-size: 18px;
  color: var(--primary);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
}

.nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav a:hover, .nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Logo */
.logo-section {
  text-align: center;
  padding: 40px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.logo-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.logo-section h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.logo-section p {
  font-size: 16px;
  opacity: 0.9;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.category-item {
  background: var(--primary-light);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.category-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.category-item.selected {
  border-color: var(--primary);
  background: var(--white);
}

.category-item .icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.category-item .name {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

/* Button */
.btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-primary:disabled {
  background: var(--text-lighter);
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

/* Checkbox Group */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.checkbox-item:hover {
  background: var(--primary-light);
}

.checkbox-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.checkbox-item span {
  font-size: 14px;
}

/* Price Calculation */
.price-section {
  background: var(--primary-light);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.price-row.total {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  padding-top: 8px;
  border-top: 1px dashed var(--primary);
  margin-top: 8px;
}

/* Order List */
.order-item {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-id {
  font-size: 14px;
  color: var(--text-light);
}

.order-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.order-status.pending {
  background: #fff7e6;
  color: #fa8c16;
}

.order-status.processing {
  background: #e6f7ff;
  color: var(--primary);
}

.order-status.completed {
  background: #f6ffed;
  color: var(--success);
}

.order-status.cancelled {
  background: #fff1f0;
  color: var(--error);
}

.order-content {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.order-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.order-tag {
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-light);
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.order-time {
  font-size: 12px;
  color: var(--text-lighter);
}

.order-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

/* Time Slot */
.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.time-slot {
  padding: 10px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.time-slot:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.time-slot.selected {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-lighter);
}

.empty-state .icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 14px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-lighter);
  font-size: 12px;
}

/* Toast */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Responsive */
@media (max-width: 375px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .time-slots {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Slogan */
.logo-section .slogan {
  font-size: 18px;
  font-weight: 500;
  margin-top: 4px;
  opacity: 0.95;
}

/* Marketing Highlights */
.marketing-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}

.highlight-item:active {
  transform: scale(0.98);
}

.highlight-primary {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff;
}

.highlight-invite {
  background: linear-gradient(135deg, #52c41a, #3dbd00);
  color: #fff;
}

.highlight-tag {
  background: rgba(255,255,255,0.25);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.highlight-text {
  font-size: 14px;
}

.highlight-text strong {
  font-size: 16px;
}

/* Wardrobe Diagnosis */
.wardrobe-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.wardrobe-section:hover {
  background: var(--primary-light);
}

.wardrobe-icon {
  font-size: 36px;
}

.wardrobe-info {
  flex: 1;
}

.wardrobe-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.wardrobe-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.wardrobe-arrow {
  font-size: 24px;
  color: var(--text-lighter);
}

/* Coupon Section */
.coupon-section {
  padding: 8px 0;
}

.coupon-input-wrap {
  display: flex;
  gap: 8px;
}

.coupon-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.coupon-input:focus {
  outline: none;
  border-color: var(--primary);
}

.coupon-btn {
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.coupon-tips {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-light);
  text-align: right;
}

.discount {
  color: var(--success);
  font-weight: 500;
}

/* Family Share */
.family-section {
  padding: 8px 0;
}

.family-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.family-toggle input {
  display: none;
}

.family-switch {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  position: relative;
  transition: background 0.3s;
}

.family-switch::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.family-toggle input:checked + .family-switch {
  background: var(--primary);
}

.family-toggle input:checked + .family-switch::after {
  transform: translateX(20px);
}

.family-label {
  font-size: 14px;
  color: var(--text);
}

.family-info {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
}

.family-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.family-members {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.family-member {
  font-size: 13px;
  color: var(--text);
  padding: 6px 0;
}

/* Membership Tiers */
.membership-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 20px;
  margin: 16px 0;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.membership-card:active {
  transform: scale(0.98);
}

.membership-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.membership-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.membership-price {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.membership-price span {
  font-size: 14px;
  font-weight: 400;
}

.membership-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.membership-benefits {
  text-align: left;
  background: var(--bg);
  border-radius: 10px;
  padding: 14px;
}

.membership-benefit {
  font-size: 13px;
  color: var(--text);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.membership-benefit::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

/* Silver Card */
.tier-silver .membership-card {
  border: 2px solid var(--member-silver);
}

.tier-silver .membership-name {
  color: var(--member-silver);
}

.tier-silver .membership-price {
  color: var(--member-silver);
}

.tier-silver .membership-btn {
  background: var(--member-silver);
}

/* Gold Card */
.tier-gold .membership-card {
  border: 2px solid var(--member-gold);
}

.tier-gold .membership-name {
  color: #b8860b;
}

.tier-gold .membership-price {
  color: var(--member-gold);
}

.tier-gold .membership-btn {
  background: var(--member-gold);
  color: #5c4000;
}

/* Diamond Card */
.tier-diamond .membership-card {
  border: 2px solid var(--member-diamond);
  background: linear-gradient(180deg, var(--member-diamond-light) 0%, var(--white) 100%);
}

.tier-diamond .membership-name {
  color: #00a0e9;
}

.tier-diamond .membership-price {
  color: #00a0e9;
}

.tier-diamond .membership-btn {
  background: linear-gradient(135deg, var(--member-diamond), #00a0e9);
}

.membership-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  margin-top: 12px;
}

/* Share Page */
.share-hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.share-hero .share-icon {
  font-size: 72px;
  margin-bottom: 16px;
}

.share-hero h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.share-hero p {
  font-size: 15px;
  opacity: 0.9;
}

.share-card {
  margin: -30px 16px 16px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
}

.share-reward {
  text-align: center;
  padding: 20px 0;
}

.reward-amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--error);
}

.reward-amount span {
  font-size: 20px;
}

.reward-label {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
}

.share-steps {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
}

.share-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.share-step:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.step-num {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.step-text {
  font-size: 14px;
  color: var(--text);
}

.poster-preview {
  background: var(--bg);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.poster-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.poster-qr {
  width: 160px;
  height: 160px;
  background: var(--primary-light);
  border-radius: 8px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.poster-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.poster-slogan {
  font-size: 13px;
  color: var(--text-light);
}

.btn-share {
  background: linear-gradient(135deg, var(--error), #d4380d);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
