/* 未来的信 - 样式 */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  padding: 40px;
  width: 100%;
  max-width: 520px;
}

header {
  text-align: center;
  margin-bottom: 32px;
}

h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 8px;
}

.subtitle {
  color: #888;
  font-size: 14px;
}

/* 表单 */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.required {
  color: #e74c3c;
}

.optional {
  font-weight: 400;
  color: #999;
  font-size: 12px;
}

.hint {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}

input[type="email"],
input[type="text"],
input[type="datetime-local"],
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #667eea;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.char-count {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}

/* 按钮 */
button[type="submit"] {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  font-family: inherit;
}

button[type="submit"]:hover {
  opacity: 0.92;
}

button[type="submit"]:active {
  transform: scale(0.98);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 错误提示 */
.error-msg {
  margin-top: 12px;
  padding: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 14px;
  text-align: center;
}

/* 成功页 */
.success-page {
  text-align: center;
}

.success-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.success-info {
  margin: 20px 0;
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

.success-info strong {
  color: #667eea;
}

.success-note {
  color: #888;
  font-size: 14px;
  margin-bottom: 24px;
}

.back-link {
  display: inline-block;
  padding: 10px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.92;
}

/* 响应式 */
@media (max-width: 480px) {
  .container {
    padding: 24px 20px;
    border-radius: 12px;
  }

  h1 {
    font-size: 24px;
  }
}
