﻿:root {
  --bg-1: #f6f1e9;
  --bg-2: #f8e6d2;
  --accent: #d65a31;
  --accent-2: #244a7a;
  --text: #2b2b2b;
  --card: #ffffff;
  --muted: #7b6f63;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 10%, #fff5e8 0%, var(--bg-1) 40%)
      no-repeat,
    linear-gradient(120deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--accent-2);
  font-weight: 600;
}

.container {
  padding: 0 40px 40px;
  animation: fadeIn 0.6s ease-out;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  align-items: center;
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.hero p {
  color: var(--muted);
}

.hero-cta {
  display: flex;
  justify-content: flex-end;
}

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

.card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
  animation: slideUp 0.5s ease-out;
}

.card-body h3,
.card-body h4 {
  margin: 0 0 8px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}

.button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.button.ghost {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.button.danger {
  background: #b22222;
}

.panel {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.panel form {
  display: grid;
  gap: 10px;
}

.panel input,
.panel textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-family: inherit;
}

.table-wrap {
  overflow: auto;
}

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

.table th,
.table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  vertical-align: top;
}

.table thead th {
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}

.table a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.error {
  color: #b22222;
  margin-bottom: 8px;
}

.success {
  color: #207f4c;
  margin-bottom: 8px;
}

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

.video-detail {
  margin-bottom: 20px;
}

.video-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

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

.empty {
  padding: 20px;
  color: var(--muted);
}

.site-footer {
  padding: 20px 40px;
  color: var(--muted);
}

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

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

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .container {
    padding: 0 20px 40px;
  }
  .hero,
  .video-box {
    grid-template-columns: 1fr;
  }
}
