/* 开通申请页面样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f7f5;
  color: #333;
  line-height: 1.6;
}
.page { max-width: 780px; margin: 0 auto; padding: 20px 16px 60px; }

/* 顶部 */
.header {
  text-align: center;
  padding: 24px 0 16px;
  position: relative;
}
.back-link {
  position: absolute;
  left: 0;
  top: 28px;
  color: #4CAF50;
  text-decoration: none;
  font-size: 14px;
}
.back-link:hover { text-decoration: underline; }
.header h1 { font-size: 24px; color: #1a5e1f; }
.header-desc { color: #888; font-size: 14px; margin-top: 6px; }

/* 区块 */
.section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.section-icon { font-size: 24px; margin-bottom: 4px; }
.section-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a5e1f;
  margin-bottom: 16px;
}
.section-desc { color: #888; font-size: 13px; margin: -12px 0 16px; }
.required { color: #e53935; }
.optional { color: #999; font-size: 12px; font-weight: 400; }

/* 字段 */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}
.field input:focus, .field textarea:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 2px rgba(76,175,80,0.15);
}
.field textarea { resize: vertical; }
.field-row {
  display: flex;
  gap: 12px;
}
.field-row .field { flex: 1; }

/* 颜色选择器 */
.color-picker {
  display: flex;
  align-items: center;
  gap: 12px;
}
.color-picker input[type="color"] {
  width: 44px;
  height: 44px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
}
.color-value {
  font-family: monospace;
  font-size: 14px;
  color: #666;
}
.color-presets {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}
.preset {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s;
}
.preset:hover { transform: scale(1.2); }
.preset.active { border-color: #333; }

.upload-hint {
  color: #999;
  font-size: 13px;
  padding: 8px 0;
}

/* 套餐卡片 */
.package-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 600px) {
  .package-cards { grid-template-columns: 1fr; }
}
.package-card {
  position: relative;
  background: #fafafa;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px 16px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.package-card input { display: none; }
.package-card:hover { border-color: #aaa; }
.package-card.selected {
  border-color: #4CAF50;
  background: #f1f8e9;
  box-shadow: 0 2px 8px rgba(76,175,80,0.15);
}
.package-card.recommended {
  border-color: #4CAF50;
}
.package-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #4CAF50;
  color: #fff;
  font-size: 11px;
  padding: 2px 12px;
  border-radius: 10px;
  font-weight: 600;
}
.package-emoji { font-size: 28px; margin-bottom: 6px; }
.package-name { font-size: 16px; font-weight: 600; }
.package-price {
  font-size: 20px;
  font-weight: 700;
  color: #e53935;
  margin: 6px 0;
}
.package-tag {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 8px;
}
.package-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 6px;
}
.package-annual {
  font-size: 11px;
  color: #aaa;
}

/* 功能选择 */
.feature-group { margin-bottom: 16px; }
.feature-group-title {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
}
.badge-standard {
  font-size: 11px;
  background: #fff3e0;
  color: #e65100;
  padding: 1px 8px;
  border-radius: 8px;
  font-weight: 400;
}
.badge-flagship {
  font-size: 11px;
  background: #fce4ec;
  color: #c62828;
  padding: 1px 8px;
  border-radius: 8px;
  font-weight: 400;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fafafa;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.feature-item:hover { background: #f0f0f0; }
.feature-item input[type="checkbox"] {
  accent-color: #4CAF50;
  width: 16px;
  height: 16px;
}

/* 提交 */
.submit-area {
  text-align: center;
  margin-top: 24px;
}
.submit-btn {
  background: linear-gradient(135deg, #4CAF50, #2e7d32);
  color: #fff;
  border: none;
  padding: 14px 48px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.submit-note {
  font-size: 13px;
  color: #999;
  margin-top: 10px;
}

/* 成功弹窗 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}
.modal-icon { font-size: 48px; margin-bottom: 16px; }
.modal-content h2 {
  font-size: 20px;
  color: #1a5e1f;
  margin-bottom: 12px;
}
.modal-content p {
  color: #666;
  margin-bottom: 8px;
  font-size: 14px;
}
.modal-btn {
  margin-top: 16px;
  background: #4CAF50;
  color: #fff;
  border: none;
  padding: 10px 32px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}
.modal-btn:hover { background: #2e7d32; }

@media (max-width: 480px) {
  .field-row { flex-direction: column; gap: 0; }
  .page { padding: 12px 10px 40px; }
  .section { padding: 16px; }
  .header h1 { font-size: 20px; }
}
