@font-face {
  font-family: "Space Grotesk";
  src: url("/globals/fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/globals/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/globals/fonts/SpaceGrotesk-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/globals/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg: #f5f1e8;
  --bg-offset: #ede5d7;
  --surface: rgba(255, 252, 246, 0.9);
  --card: rgba(255, 251, 245, 0.96);
  --ink: #151515;
  --muted: #5f5b53;
  --subtle: #8a857b;
  --accent: #123f3c;
  --accent-strong: #0a2c2a;
  --accent-soft: rgba(18, 63, 60, 0.1);
  --warm: #9f5631;
  --warm-soft: rgba(159, 86, 49, 0.12);
  --success: #1f7a4e;
  --error: #ba3d2d;
  --line: rgba(22, 22, 20, 0.08);
  --line-subtle: rgba(22, 22, 20, 0.05);
  --line-strong: rgba(22, 22, 20, 0.15);
  --shadow-sm: 0 10px 30px rgba(16, 19, 17, 0.06);
  --shadow-md: 0 24px 60px rgba(16, 19, 17, 0.11);
  --shadow-lg: 0 40px 90px rgba(16, 19, 17, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 999px;
  --header-height: 88px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151618;
    --bg-offset: #1a1b1e;
    --surface: rgba(30, 31, 34, 0.9);
    --card: rgba(35, 36, 40, 0.96);
    --ink: #f5f5f5;
    --muted: #a0a0a0;
    --subtle: #737373;
    --accent: #4fbdb6;
    --accent-strong: #78d2cc;
    --accent-soft: rgba(79, 189, 182, 0.15);
    --warm: #e68d63;
    --warm-soft: rgba(230, 141, 99, 0.15);
    --success: #3ab57b;
    --error: #e66657;
    --line: rgba(255, 255, 255, 0.12);
    --line-subtle: rgba(255, 255, 255, 0.06);
    --line-strong: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 24px 60px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.5);
  }
  
  body {
    background:
      radial-gradient(circle at top left, rgba(79, 189, 182, 0.08), transparent 34%),
      radial-gradient(circle at 85% 12%, rgba(230, 141, 99, 0.08), transparent 26%),
      linear-gradient(180deg, #18191b 0%, #151618 100%) !important;
  }

  body::before {
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) !important;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 85%) !important;
    opacity: 0.15 !important;
  }

  header {
    background: rgba(25, 26, 28, 0.78) !important;
  }

  .card, .form-card {
    background: linear-gradient(180deg, rgba(35, 36, 40, 0.98), rgba(30, 31, 35, 0.94)) !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(18, 63, 60, 0.12), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(159, 86, 49, 0.15), transparent 26%),
    linear-gradient(180deg, #f7f3eb 0%, #f2ede4 40%, #f5f1e8 100%);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 65%);
  opacity: 0.22;
}

img,
video {
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo,
.section-title,
.card-title {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 243, 235, 0.78);
  border-bottom: 1px solid rgba(18, 63, 60, 0.08);
  backdrop-filter: blur(22px) saturate(140%);
}

header::after {
  content: "";
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  right: clamp(20px, 5vw, 72px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18, 63, 60, 0.18), transparent);
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.24s ease;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #f7f3eb;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 28px rgba(10, 44, 42, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.logo-stack {
  display: grid;
  gap: 2px;
}

.logo-lockup:hover {
  transform: translateY(-1px);
}

.logo-lockup:hover .logo-mark {
  transform: rotate(-6deg) translateY(-1px);
  box-shadow: 0 18px 32px rgba(10, 44, 42, 0.24);
}

.logo {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--accent-strong);
  transition: color 0.2s ease;
}

.logo-subtitle {
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent-strong);
  background: rgba(18, 63, 60, 0.07);
}

nav a:hover::after,
nav a.active::after {
  opacity: 0.4;
  transform: scaleX(1);
}

main {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(18, 63, 60, 0.14);
  background: rgba(255, 255, 255, 0.52);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 6px rgba(159, 86, 49, 0.12);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
}

.section-copy,
.page-lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.03rem;
}

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

.section-header > div {
  display: grid;
  gap: 16px;
}

.card,
.form-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(251, 247, 241, 0.94));
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card::before,
.form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 35%);
}

.card {
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(18, 63, 60, 0.18);
  box-shadow: var(--shadow-md);
}

.card:hover .tag-chip {
  background: rgba(18, 63, 60, 0.1);
}

.card-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, rgba(18, 63, 60, 0.1), rgba(159, 86, 49, 0.08));
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.card:hover .card-img {
  transform: scale(1.06);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
}

.card-title {
  font-size: 1.35rem;
  line-height: 1.1;
}

.card-summary {
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(18, 63, 60, 0.1);
  background: rgba(18, 63, 60, 0.06);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(18, 63, 60, 0.15);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.68);
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.34) 50%, transparent 100%);
  transform: translateX(-140%);
  transition: transform 0.5s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 63, 60, 0.26);
  box-shadow: var(--shadow-sm);
}

.btn:hover::after {
  transform: translateX(140%);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  border-color: rgba(18, 63, 60, 0.3);
  box-shadow: 0 0 0 4px rgba(18, 63, 60, 0.12);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #f8f6f0;
}

.btn.primary:hover {
  box-shadow: 0 22px 42px rgba(10, 44, 42, 0.22);
}

.btn.danger {
  border-color: rgba(186, 61, 45, 0.2);
  color: var(--error);
  background: rgba(186, 61, 45, 0.08);
}

.btn.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.85rem;
}

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

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(18, 63, 60, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

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

input::placeholder,
textarea::placeholder {
  color: rgba(95, 91, 83, 0.72);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(18, 63, 60, 0.34);
  box-shadow: 0 0 0 5px rgba(18, 63, 60, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

label {
  display: block;
  margin-bottom: 8px;
}

footer {
  padding: 42px 24px 52px;
  color: var(--subtle);
  text-align: center;
}

.footer-beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.82rem;
  opacity: 0.8;
}

.footer-beian a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--subtle);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-beian a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-beian img {
  width: 16px;
  height: 16px;
  margin-bottom: -1px; /* 微调与文字对齐 */
}

@media (prefers-color-scheme: dark) {
  .footer-beian img {
    opacity: 0.8; /* 暗色模式下仅降低透明度，不修改颜色 */
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}

.list > * + * {
  margin-top: 16px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(18, 63, 60, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-strong);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #f8f6f0;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(18, 63, 60, 0.14);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

.empty-state {
  padding: 46px 24px;
  border: 1px dashed rgba(18, 63, 60, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.46);
  text-align: center;
  color: var(--muted);
}

.empty-icon {
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.notice {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(159, 86, 49, 0.09);
  color: var(--muted);
}

#toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 220px;
  max-width: 320px;
  padding: 14px 16px;
  border: 1px solid rgba(18, 63, 60, 0.12);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  animation: slideUp 0.22s ease;
}

.toast.success {
  border-color: rgba(31, 122, 78, 0.2);
}

.toast.error {
  border-color: rgba(186, 61, 45, 0.22);
}

.toast.out {
  opacity: 0;
  transform: translateY(10px);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 25, 22, 0.42);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.modal-overlay.active {
  opacity: 1;
}

.modal-content {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(251, 247, 241, 0.94));
  box-shadow: var(--shadow-lg);
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
}

.modal-body {
  padding: 0 24px 8px;
  color: var(--muted);
}

.modal-title {
  font-size: 1.2rem;
}

.modal-close {
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--subtle);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-0 {
  background: rgba(159, 86, 49, 0.12);
  color: #8b4a2c;
}

.status-1 {
  background: rgba(31, 122, 78, 0.12);
  color: #1f7a4e;
}

.status-2 {
  background: rgba(18, 63, 60, 0.09);
  color: var(--accent);
}

.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 16px;
}

.gap-3 {
  gap: 24px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 32px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mb-4 {
  margin-bottom: 32px;
}

.p-4 {
  padding: 24px;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted);
}

.text-error {
  color: var(--error);
}

.flex-1 {
  flex: 1;
}

.animate-fade-in {
  animation: fadeIn 0.7s ease both;
}

.stagger-item {
  animation: cardFloatIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--stagger-index, 0) * 75ms);
}

.tab-panel {
  min-height: 0;
}

.tab-panel.is-visible {
  animation: fadeIn 0.32s ease both;
}

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

@keyframes cardFloatIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .section {
    padding: 72px 0;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  header {
    align-items: start;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
  }

  nav {
    width: 100%;
    gap: 8px;
  }

  nav a {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .logo-subtitle {
    letter-spacing: 0.1em;
  }

  .container {
    width: min(100%, calc(100% - 28px));
  }

  .section {
    padding: 60px 0;
  }

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

  .modal-header,
  .modal-footer,
  .modal-body {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
