* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", sans-serif;
  background: #f7f4ed;
  color: #2d2d2d;
  line-height: 1.7;
  min-height: 100vh;
}

.app-container { max-width: 720px; margin: 0 auto; padding: 40px 20px 80px; }
.app-header { text-align: center; margin-bottom: 32px; }

.logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; }

.logo-icon {
  font-size: 22px; font-weight: 700;
  background: linear-gradient(135deg, #7c5cbf, #a78bfa);
  color: white; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; letter-spacing: 1px;
}

.logo-text { font-size: 22px; font-weight: 700; color: #2d2d2d; letter-spacing: 1px; }
.logo-text span { color: #7c5cbf; }
.subtitle { font-size: 13px; color: #8c8c8c; }

/* ===== 输入卡 ===== */
.input-card {
  background: white; border-radius: 20px; padding: 28px;
  box-shadow: 0 2px 12px rgba(124,92,191,0.06);
}

.input-row { display: flex; gap: 14px; margin-bottom: 10px; }
.input-group { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.input-group.full-width { margin-top: 0; }

.input-group label { font-size: 13px; font-weight: 600; color: #5c5c5c; }

.input-group select,
.input-group input[type="text"],
.input-group input[type="email"] {
  padding: 12px 14px; border: 1.5px solid #eee; border-radius: 14px;
  font-size: 14px; background: #faf9f7; color: #2d2d2d;
  transition: all 0.2s; outline: none;
}

.input-group select:focus,
.input-group input[type="text"]:focus,
.input-group input[type="email"]:focus {
  border-color: #7c5cbf; background: white;
  box-shadow: 0 0 0 3px rgba(124,92,191,0.08);
}

.input-group textarea {
  padding: 12px 14px; border: 1.5px solid #eee; border-radius: 14px;
  font-size: 14px; background: #faf9f7; color: #2d2d2d;
  transition: all 0.2s; resize: vertical;
  min-height: 72px; max-height: 140px;
  font-family: inherit; line-height: 1.6; outline: none;
}

.input-group textarea:focus {
  border-color: #7c5cbf; background: white;
  box-shadow: 0 0 0 3px rgba(124,92,191,0.08);
}

.input-group textarea::placeholder { color: #bbb; }
#customIndustry { margin-top: 8px; }

/* ===== 统计卡片 ===== */
.stats-section { margin-bottom: 16px; }

.stats-card {
  display: flex; background: white; border-radius: 20px; padding: 16px;
  box-shadow: 0 2px 12px rgba(124,92,191,0.06);
}

.stat-item {
  flex: 1; text-align: center; padding: 4px 0;
  border-right: 1px solid #f0ede8;
}

.stat-item:last-child { border-right: none; }

.stat-num {
  display: block; font-size: 24px; font-weight: 700; color: #7c5cbf;
  line-height: 1.3;
}

.stat-label {
  display: block; font-size: 12px; color: #8c8c8c; margin-top: 2px;
}

/* ===== 价格信息 ===== */
.price-info {
  text-align: center; font-size: 14px; color: #5c5c5c;
  margin: 14px 0 16px; padding: 8px; background: #f8f6ff;
  border-radius: 12px; border: 1px solid #e8e4f0;
}

#priceAmount {
  font-weight: 700; color: #7c5cbf; font-size: 18px;
}

.input-hint {
  font-size: 12px; color: #8c8c8c; margin: 14px 0 20px;
  padding: 8px 14px; background: #f5f3ef; border-radius: 12px;
}

.btn-generate {
  width: 100%; padding: 14px;
  background: #7c5cbf; color: white; border: none; border-radius: 14px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.25s; letter-spacing: 1px;
}

.btn-generate:hover {
  background: #6a4dab; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,92,191,0.25);
}

.btn-generate:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== 受理成功 ===== */
.success-section { margin-top: 24px; }

.success-card {
  background: white; border-radius: 20px; padding: 40px 32px;
  box-shadow: 0 2px 12px rgba(124,92,191,0.06);
  text-align: center;
}

.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white; font-size: 30px; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; box-shadow: 0 4px 16px rgba(34,197,94,0.25);
}

.success-title { font-size: 20px; font-weight: 700; color: #2d2d2d; margin-bottom: 6px; }
.success-desc { font-size: 14px; color: #8c8c8c; margin-bottom: 24px; }

.success-info {
  background: #f8f6ff; border-radius: 14px; padding: 20px;
  margin-bottom: 20px; border: 1px solid #e8e4f0;
}

.info-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  border-bottom: 1px solid #f0ede8;
}

.info-row:last-child { border-bottom: none; }

.info-label { font-size: 13px; color: #8c8c8c; }
.info-value { font-size: 14px; color: #2d2d2d; font-weight: 600; }

.success-footer {
  font-size: 13px; color: #7c5cbf; margin-bottom: 20px;
}

.btn-secondary {
  padding: 12px 32px; background: white; color: #5c5c5c;
  border: 1.5px solid #eee; border-radius: 14px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}

.btn-secondary:hover { border-color: #7c5cbf; color: #7c5cbf; }

/* ===== 错误 ===== */
.error-section { margin-top: 24px; }

.error-card {
  background: white; border-radius: 20px; padding: 36px;
  text-align: center; box-shadow: 0 2px 12px rgba(124,92,191,0.04);
  border: 1px solid #f0ede8;
}

.error-icon {
  font-size: 40px; margin-bottom: 12px; color: #ef4444;
}

.error-text { font-size: 14px; color: #ef4444; margin-bottom: 16px; }

/* ===== Toast ===== */
.toast {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: #2d2d2d; color: white;
  padding: 12px 24px; border-radius: 14px;
  font-size: 13px; font-weight: 500; z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 600px) {
  .app-container { padding: 24px 16px; }
  .input-row { flex-direction: column; gap: 12px; }
  .input-card { padding: 20px; }
  .success-card { padding: 28px 20px; }
}

.hidden { display: none; }

/* ===== 管理中心 ===== */
.admin-bar { text-align: center; margin-top: 24px; }
.admin-trigger { font-size: 12px; color: #bbb; cursor: pointer; padding: 4px 12px; border-radius: 6px; transition: color 0.2s; }
.admin-trigger:hover { color: #7c5cbf; }

.recharge-section { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.recharge-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); }
.recharge-card { position: relative; background: white; border-radius: 20px; padding: 32px; width: 500px; max-width: 90vw; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.recharge-title { font-size: 18px; font-weight: 700; color: #2d2d2d; margin-bottom: 20px; text-align: center; }
.recharge-form { display: flex; flex-direction: column; gap: 14px; }
.recharge-packages { display: flex; gap: 8px; margin-bottom: 8px; }
.pkg-btn { flex: 1; padding: 10px; border: 1.5px solid #e2dce8; border-radius: 12px; background: white; color: #5c5c5c; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.pkg-btn:hover { border-color: #7c5cbf; color: #7c5cbf; background: #f8f6ff; }
.pkg-btn.active { border-color: #7c5cbf; background: #7c5cbf; color: white; }

.recharge-section.hidden { display: none !important; }

.price-tiers { background: #f8f6ff; border-radius: 12px; padding: 12px 14px; border: 1px solid #e8e4f0; }
.tier-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: #5c5c5c; border-bottom: 1px solid #f0ede8; }
.tier-row:last-child { border-bottom: none; }
.tier-price { font-weight: 700; color: #7c5cbf; }
.used-info { font-size: 13px; color: #8c8c8c; text-align: center; padding: 4px 0; }
.used-info span { font-weight: 700; color: #7c5cbf; }
.total-price { text-align: center; font-size: 16px; font-weight: 700; color: #2d2d2d; padding: 8px; background: #f0ede8; border-radius: 10px; }
.total-price span { color: #7c5cbf; font-size: 20px; }
