:root {
  --ink: #0f1f33;
  --muted: #5d6b7a;
  --accent: #1f4e79;
  --accent-deep: #163a5a;
  --accent-cool: #1f6a5c;
  --accent-warm: #c1352b;
  --bg: #f4f6f9;
  --card: #ffffff;
  --stroke: rgba(15, 31, 51, 0.12);
  --shadow: 0 18px 40px rgba(15, 31, 51, 0.12);
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(circle at top left, #e8eef6 0%, transparent 45%),
    radial-gradient(circle at 85% 10%, #e6f1ef 0%, transparent 40%),
    linear-gradient(180deg, #f5f7fb 0%, #f1f4f8 50%, #eef2f6 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.background-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(0.5px);
  opacity: 0.35;
  z-index: -2;
  animation: float 24s ease-in-out infinite;
}

.orb-one {
  width: 320px;
  height: 320px;
  top: -140px;
  left: -140px;
  background: radial-gradient(circle, #dbe6f4, transparent 60%);
}

.orb-two {
  width: 380px;
  height: 380px;
  bottom: -180px;
  right: -160px;
  animation-delay: 2s;
  background: radial-gradient(circle, #d6ebe6, transparent 60%);
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      rgba(25, 35, 60, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(25, 35, 60, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.25;
  z-index: -3;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(90deg, #365ac7 0%, #4c73e6 55%, #5a8be8 100%);
  border-bottom: 0;
  border-top: 0;
  box-shadow: 0 14px 30px rgba(20, 40, 110, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

.nav-link.nav-link-primary {
  background: #f06b64;
  border-color: #f06b64;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(240, 107, 100, 0.35);
}

.nav-link.nav-link-primary:hover {
  background: #e75852;
  border-color: #e75852;
}

.nav-link.nav-link-ghost {
  border-color: rgba(255, 255, 255, 0.3);
}

.site-header .btn.ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.site-header .btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
}
}

.site-main {
  padding: 48px 0 80px;
}

.hero {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  margin-bottom: 48px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  margin: 12px 0 18px;
}

.hero-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
}

.eyebrow {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(31, 78, 121, 0.25);
}

.btn.primary:hover {
  background: var(--accent-deep);
}

.btn.ghost {
  border-color: rgba(31, 78, 121, 0.35);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.8);
}

.btn.ghost.btn-danger {
  border-color: rgba(171, 46, 52, 0.4);
  color: #ab2e34;
  background: rgba(255, 255, 255, 0.9);
}

.btn.ghost.btn-danger:hover {
  border-color: #ab2e34;
}

.btn.ghost:hover {
  border-color: var(--accent);
}

.btn.tiny {
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(31, 106, 92, 0.12);
  border-color: rgba(31, 106, 92, 0.35);
  color: var(--accent-cool);
}

.hero-badges {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(31, 106, 92, 0.12);
  color: var(--accent-cool);
  font-size: 12px;
  font-weight: 600;
}

.hero-card {
  background: var(--card);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 31, 51, 0.08);
}

.card-title {
  font-weight: 700;
  margin-bottom: 16px;
}

.stat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.stat {
  padding: 12px;
  border-radius: 8px;
  background: rgba(31, 106, 92, 0.08);
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
}

.card-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.info-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 48px;
}

.info-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 22px;
  border: 1px solid rgba(15, 31, 51, 0.08);
  box-shadow: 0 16px 30px rgba(15, 31, 51, 0.08);
  animation: fadeUp 0.6s ease both;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-card h3 {
  margin-top: 0;
  font-size: 20px;
}

.info-card ol {
  padding-left: 18px;
  margin-bottom: 0;
  color: var(--muted);
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #e8eef6, #e6f1ef);
  padding: 28px;
  border-radius: 12px;
  border: 1px solid rgba(15, 31, 51, 0.08);
  flex-wrap: wrap;
}

.callout h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
}

.form-page {
  max-width: 860px;
}

.page-apply .form-page {
  max-width: 1120px;
}

.apply-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 28px;
  align-items: start;
}

.apply-aside {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 18px;
  align-self: start;
}

.apply-panel {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(15, 31, 51, 0.08);
  box-shadow: var(--shadow);
}

.apply-panel h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
}

.stepper {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(31, 78, 121, 0.15);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step-active .step-number {
  background: var(--accent);
  color: #fff;
}

.step-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 12px;
  color: var(--muted);
}

.apply-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}

.apply-list li {
  padding-left: 18px;
  position: relative;
  color: var(--muted);
  font-size: 13px;
}

.apply-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent-cool);
}

.apply-support {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px dashed rgba(15, 31, 51, 0.12);
  padding-top: 12px;
}

.apply-support-meta {
  margin-top: 6px;
  font-weight: 600;
  color: var(--accent);
}

.form-header h1 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.form-card {
  background: var(--card);
  padding: 28px;
  border-radius: 12px;
  border: 1px solid rgba(15, 31, 51, 0.08);
  box-shadow: var(--shadow);
}

.apply-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}

.form-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(31, 78, 121, 0.12);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-cool));
  transition: width 0.3s ease;
}

.form-warning {
  display: none;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(171, 46, 52, 0.12);
  color: #ab2e34;
  font-weight: 600;
}

.form-warning.show {
  display: block;
}

.form-section {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
}

.form-section legend {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 15px;
}

.section-tip {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 8px;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-grid.three-col {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-grid.four-col {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.form-grid.education-row {
  grid-template-columns: minmax(170px, 1.1fr) minmax(180px, 1.1fr) minmax(120px, 0.8fr) minmax(140px, 0.9fr);
}

.form-grid.family-row {
  grid-template-columns: minmax(120px, 0.8fr) minmax(130px, 0.9fr) minmax(200px, 1.4fr) minmax(140px, 1fr);
}

@media (max-width: 960px) {
  .form-grid.education-row,
  .form-grid.family-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.basic-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
  align-items: start;
}

.basic-info-main {
  display: grid;
  gap: 18px;
}

.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.photo-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.photo-preview {
  margin-top: 8px;
  width: 110px;
  aspect-ratio: 5 / 7;
  border: 1px dashed rgba(15, 31, 51, 0.2);
  border-radius: 8px;
  background: #f7f9fc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  font-size: 12px;
  color: var(--muted);
}

.admin-photo-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.admin-photo-preview {
  width: 110px;
}

label span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.required {
  color: var(--accent-warm);
  font-style: normal;
  font-size: 12px;
  margin-left: 4px;
}

.optional {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  margin-left: 4px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--stroke);
  font-family: var(--font-body);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="file"] {
  padding: 9px 10px;
  background: #fff;
}

input.is-valid,
textarea.is-valid,
select.is-valid {
  border-color: rgba(31, 106, 92, 0.45);
  box-shadow: 0 0 0 3px rgba(31, 106, 92, 0.12);
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: rgba(171, 46, 52, 0.4);
  box-shadow: 0 0 0 3px rgba(171, 46, 52, 0.08);
}

textarea {
  resize: vertical;
}

.full-width {
  grid-column: 1 / -1;
}

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

.form-tip {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.form-errors {
  background: rgba(31, 78, 121, 0.08);
  border: 1px solid rgba(31, 78, 121, 0.2);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.form-errors-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.sms-row {
  display: flex;
  gap: 10px;
}

.sms-row input {
  flex: 1;
}

.sms-feedback {
  margin-top: 6px;
  font-size: 12px;
  color: var(--accent-cool);
  min-height: 16px;
}

.sms-feedback.error {
  color: #b3361b;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.field-feedback {
  margin-top: 6px;
  font-size: 12px;
  min-height: 16px;
  color: var(--muted);
}

.field-feedback.ok {
  color: var(--accent-cool);
}

.field-feedback.error {
  color: #b3361b;
}

.success-page {
  display: flex;
  justify-content: center;
}

.success-card {
  background: var(--card);
  padding: 36px;
  border-radius: 12px;
  border: 1px solid rgba(15, 31, 51, 0.08);
  box-shadow: var(--shadow);
  max-width: 600px;
  text-align: center;
}

.success-mark {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 6px;
  background: rgba(31, 106, 92, 0.18);
  color: var(--accent-cool);
  font-weight: 700;
  margin-bottom: 18px;
}

.success-steps {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.success-steps div {
  background: rgba(31, 106, 92, 0.08);
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
}

.success-steps span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  background: var(--accent-cool);
  color: #fff;
  margin-right: 6px;
  font-size: 12px;
}

.status-card {
  margin-top: 30px;
  background: var(--card);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(15, 31, 51, 0.08);
  box-shadow: var(--shadow);
}

.status-header h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
}

.status-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.status-notifications ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.status-notifications li {
  padding: 12px;
  border-radius: 8px;
  background: rgba(31, 78, 121, 0.06);
  margin-bottom: 12px;
}

.notice-time {
  font-size: 12px;
  color: var(--muted);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-logout {
  margin: 0;
}

.admin-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px auto 8px;
}

.stat-chip {
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(31, 106, 92, 0.12);
  font-size: 13px;
}

.admin-filters {
  margin: 18px auto 10px;
}

.filter-form {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.admin-table {
  margin-top: 10px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid rgba(15, 31, 51, 0.08);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  font-size: 14px;
}

th {
  background: rgba(31, 106, 92, 0.08);
}

.status-pill {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(31, 106, 92, 0.12);
  color: var(--accent-cool);
}

.status-pending {
  background: rgba(31, 78, 121, 0.12);
  color: var(--accent);
}

.status-reject {
  background: rgba(171, 46, 52, 0.12);
  color: #ab2e34;
}

.detail-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 20px;
}

.detail-card {
  background: var(--card);
  padding: 22px;
  border-radius: 12px;
  border: 1px solid rgba(15, 31, 51, 0.08);
  box-shadow: var(--shadow);
}

.detail-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-card-header h2 {
  margin: 0;
}

.detail-card dl {
  margin: 0;
}

.admin-detail-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.detail-card dt {
  font-size: 12px;
  color: var(--muted);
}

.detail-card dd {
  margin: 0 0 12px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.inline {
  display: inline;
}

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-list li {
  background: rgba(31, 106, 92, 0.1);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.announcement-lead {
  color: var(--muted);
  max-width: 560px;
}

.announcement-board {
  margin: 40px auto 48px;
}

.announcement-board-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.announcement-board-header h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
}

.announcement-board-header p {
  margin: 0;
  color: var(--muted);
}

.announcement-board-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.announcement-board-list li {
  background: rgba(31, 78, 121, 0.06);
  padding: 14px 18px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.announcement-board-title a {
  font-weight: 600;
}

.announcement-board-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.announcement-list {
  display: grid;
  gap: 20px;
}

.notice-page {
  margin-top: 6px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: inherit;
}

.notice-card {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid rgba(15, 31, 51, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.notice-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(15, 31, 51, 0.08);
}

.notice-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.notice-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(31, 78, 121, 0.12);
}

.notice-icon svg {
  width: 18px;
  height: 18px;
}

.important-notice-list {
  list-style: none;
  padding: 18px 22px 10px;
  margin: 0;
  display: grid;
  gap: 12px;
}

.important-notice-item {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15, 31, 51, 0.16);
  border-radius: 10px;
  padding: 14px 18px 12px;
  display: grid;
  gap: 8px;
}

.important-notice-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: transparent;
}

.important-notice-item:hover,
.important-notice-item:focus-within {
  border-color: rgba(31, 78, 121, 0.35);
  box-shadow: 0 10px 22px rgba(15, 31, 51, 0.08);
}

.important-notice-item:hover::before,
.important-notice-item:focus-within::before {
  background: #4b7dff;
}

.important-notice-item a {
  font-weight: 600;
}

.important-notice-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.important-notice-icon {
  width: 16px;
  height: 16px;
  color: #6b7b92;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.important-notice-icon svg {
  width: 14px;
  height: 14px;
}

.notice-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(15, 31, 51, 0.08);
  flex-wrap: wrap;
}

.notice-total {
  color: var(--muted);
  font-size: 12px;
}

.notice-page-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-nav,
.page-current,
.page-size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(15, 31, 51, 0.12);
  padding: 6px 10px;
  background: #fff;
  min-width: 32px;
}

.page-nav {
  color: var(--muted);
}

.page-nav.disabled {
  opacity: 0.5;
}

.page-current {
  border-color: #4b7dff;
  color: #4b7dff;
  font-weight: 600;
}

.page-size {
  color: var(--muted);
  min-width: 86px;
}

.announcement-title-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.announcement-title-list li {
  background: rgba(31, 78, 121, 0.06);
  padding: 14px 18px;
  border-radius: 10px;
}

.announcement-title-list a {
  font-weight: 600;
}

.pagination {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-info {
  font-size: 12px;
  color: var(--muted);
}

.announcement-card {
  background: var(--card);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(15, 31, 51, 0.08);
  box-shadow: var(--shadow);
}

.announcement-card h2 {
  margin: 10px 0 12px;
  font-family: var(--font-display);
}

.announcement-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.announcement-content {
  line-height: 1.6;
  white-space: pre-line;
}

.announcement-attachments {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(15, 31, 51, 0.12);
}

.attachment-panel {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(31, 78, 121, 0.05);
  border: 1px dashed rgba(15, 31, 51, 0.18);
}

.attachment-inputs {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.attachment-input input[type="file"] {
  padding: 10px;
  background: #fff;
}

.btn-add-attachment {
  align-self: flex-start;
}

.attachment-panel-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.attachment-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.attachment-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(31, 78, 121, 0.06);
  padding: 10px 12px;
  border-radius: 8px;
}

.attachment-list--expandable li {
  flex-direction: column;
  align-items: stretch;
}

.attachment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.attachment-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  color: inherit;
}

.attachment-toggle:hover .attachment-name,
.attachment-toggle:focus .attachment-name {
  color: var(--accent);
}

.attachment-hint {
  font-size: 12px;
  color: var(--muted);
}

.attachment-preview {
  display: none;
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  border: 1px dashed rgba(15, 31, 51, 0.2);
  background: #fff;
}

.attachment-preview.is-open {
  display: block;
}

.attachment-preview img {
  width: 100%;
  max-width: 520px;
  display: block;
  border-radius: 6px;
}

.attachment-preview iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.attachment-name {
  font-weight: 600;
  font-size: 14px;
  word-break: break-all;
}

.attachment-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-announcement-list {
  margin-top: 10px;
}

.admin-announcement-grid {
  display: grid;
  gap: 16px;
}

.admin-announcement-item {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(15, 31, 51, 0.08);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-announcement-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.admin-announcement-title {
  margin: 0;
  font-size: 18px;
  font-family: var(--font-display);
}

.admin-announcement-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.flash {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(31, 106, 92, 0.12);
  color: var(--accent-cool);
  font-weight: 600;
}

.flash-success {
  background: rgba(28, 127, 109, 0.12);
  color: var(--accent-cool);
}

.flash-error {
  background: rgba(171, 46, 52, 0.14);
  color: #ab2e34;
}

.empty-state {
  padding: 30px;
  text-align: center;
  background: rgba(31, 106, 92, 0.1);
  border-radius: 12px;
}

.site-footer {
  padding: 24px 0 40px;
  border-top: 1px solid rgba(15, 31, 51, 0.08);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.footer-title {
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 6px;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .hero {
    margin-top: 10px;
  }
  .site-main {
    padding: 32px 0 60px;
  }
  .callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .apply-layout {
    grid-template-columns: 1fr;
  }

  .apply-aside {
    position: static;
  }

  .basic-info-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 22px;
  }
}
