﻿* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: linear-gradient(160deg, #f4f8ff, #f6fffb);
  color: #1f2937;
}

.container {
  width: min(1100px, 94vw);
  margin: 24px auto 40px;
}

.hero {
  background: #0f4c81;
  color: #fff;
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 26px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.08);
}

.section {
  border: 1px solid #dbe7ff;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.section > h3 {
  margin: 0 0 10px;
  color: #0f4c81;
}

.question {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e5e7eb;
}

.question:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.required {
  color: #d92d20;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.options label {
  font-weight: 400;
}

input[type="text"],
input[type="number"],
input[type="month"],
input[type="password"],
select,
textarea {
  width: min(100%, 620px);
  padding: 8px 10px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  font-size: 14px;
  min-height: 38px;
  background: #fff;
}

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

input[type="month"] {
  width: min(100%, 260px);
}

.inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.file-list {
  margin-top: 6px;
  font-size: 13px;
  color: #374151;
}

.actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

button,
.btn-link {
  background: #0f766e;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 9px 15px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}

button:hover,
.btn-link:hover {
  opacity: 0.9;
}

.msg {
  color: #0f766e;
}

.admin h2 {
  margin-top: 0;
}

.admin-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.stats {
  background: #0b1220;
  color: #d1f7ff;
  border-radius: 8px;
  padding: 12px;
  overflow: auto;
  min-height: 120px;
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: 21px;
  }

  .card {
    padding: 14px;
  }

  input[type="text"],
  input[type="number"],
  input[type="month"],
  input[type="password"],
  select,
  textarea {
    width: 100%;
  }
}
