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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.notice-banner {
  background: #eef6ff;
  border: 1.5px solid #6aa1ff;
  border-radius: 18px;
  padding: 18px 24px;
  margin-bottom: 16px;
  color: #14284a;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
  word-break: break-word;
}

h1 { text-align: center; color: #333; margin-bottom: 8px; }
.subtitle { text-align: center; color: #888; margin-bottom: 24px; }

.form-group {
  display: flex;
  gap: 10px;
}

.form-group input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color .2s;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

button, .btn-sm {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: transform .1s, opacity .2s;
  white-space: nowrap;
}

button:hover { opacity: .9; }
button:active { transform: scale(.97); }
button:disabled { opacity: .5; cursor: not-allowed; }

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  background: #e0e0e0;
  color: #666;
}

.error { color: #e74c3c; text-align: center; margin-top: 12px; font-size: 14px; }

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

.header-bar h2 { font-size: 20px; color: #333; }

.card-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 700;
}

.section {
  margin-bottom: 20px;
}

.section label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
}

select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 10px;
  background: #fff;
}

select:focus { outline: none; border-color: #667eea; }

.country-picker {
  margin-bottom: 12px;
}

.country-picker label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.country-picker select {
  margin-bottom: 0;
}

#start-btn {
  width: 100%;
  padding: 14px;
  font-size: 18px;
  font-weight: 600;
}

.task-card {
  background: #f8f9ff;
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  text-align: center;
  position: relative;
}

.task-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.task-status {
  font-size: 14px;
  color: #667eea;
  font-weight: 500;
  text-align: left;
}

.task-status.success { color: #27ae60; }
.task-status.failed { color: #e74c3c; }
.task-status.polling { color: #f39c12; }

.task-country {
  font-size: 12px;
  color: #666;
  text-align: left;
  margin-bottom: 6px;
}

.task-number {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  font-family: monospace;
  word-break: break-all;
  flex: 1;
  text-align: left;
}

.number-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.copy-number-btn {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  background: #fff;
  color: #667eea;
  border: 1px solid #cfd6ff;
}

.task-countdown {
  font-size: 12px;
  color: #f39c12;
  background: #fff3e0;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 500;
  white-space: nowrap;
}

.release-btn {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  margin-top: 8px;
  padding: 8px 20px;
}

.task-sms {
  background: #e8f5e9;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  font-size: 14px;
  color: #2e7d32;
  display: none;
  word-break: break-all;
}

.task-sms.show { display: block; }

.task-actions {
  margin-top: 12px;
}

.task-actions button { margin: 4px; }

.copy-btn {
  background: #27ae60;
  padding: 8px 16px;
  font-size: 13px;
}

h3 { font-size: 16px; color: #333; margin-bottom: 10px; }

.history-list { max-height: 300px; overflow-y: auto; }

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.history-item:last-child { border-bottom: none; }

.history-item .number { font-family: monospace; color: #333; }
.history-item .status-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.status-tag.success { background: #e8f5e9; color: #27ae60; }
.status-tag.failed { background: #ffebee; color: #e74c3c; }
.status-tag.polling { background: #fff3e0; color: #f39c12; }
.status-tag.pending { background: #e3f2fd; color: #1976d2; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.pulsing { animation: pulse 1.5s infinite; }

/* 响应式 */
@media (max-width: 480px) {
  body { padding: 10px; }
  .card { padding: 20px; }
  .form-group { flex-direction: column; }
  .number-row { flex-direction: column; align-items: stretch; }
  .task-number { text-align: center; }
}
