:root {
  --bg: #f6efe7;
  --bg-soft: #fffaf5;
  --paper: rgba(255, 250, 245, 0.82);
  --line: rgba(122, 77, 54, 0.14);
  --text: #3e2419;
  --muted: #8d6c5a;
  --accent: #d8645c;
  --accent-deep: #b84f4a;
  --gold: #e0ad5b;
  --shadow: 0 24px 60px rgba(109, 65, 41, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(224, 173, 91, 0.26), transparent 28%),
    radial-gradient(circle at top right, rgba(216, 100, 92, 0.18), transparent 30%),
    linear-gradient(180deg, #fcf3eb 0%, #f7ebdf 100%);
}

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero {
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.hero-copy,
.hero-visual,
.panel,
.hero-card {
  backdrop-filter: blur(18px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: 40px;
  padding: 48px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--muted);
}

.hero-copy h1,
.topbar h2,
.section-title h3 {
  margin: 0;
  font-family: Georgia, "STSong", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.05;
}

.subtitle {
  max-width: 520px;
  margin: 18px 0 30px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}

.hero-card {
  border-radius: 28px;
  padding: 24px;
}

.tabs {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
}

.tab,
.text-btn,
.ghost-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}

.tab {
  padding: 10px 18px;
  border-radius: 999px;
}

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

.auth-form,
.admin-form {
  display: grid;
  gap: 14px;
}

.auth-form label,
.admin-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

input[type="text"],
input[type="password"],
input[type="file"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(141, 108, 90, 0.18);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

.primary-btn,
.ghost-btn {
  padding: 12px 18px;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.primary-btn {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
}

.ghost-btn {
  border: 1px solid rgba(141, 108, 90, 0.18);
  background: rgba(255, 255, 255, 0.65);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.hero-visual {
  border-radius: 40px;
  padding: 28px;
  min-height: 620px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 244, 236, 0.88)),
    radial-gradient(circle at top, rgba(224, 173, 91, 0.18), transparent 36%);
}

.visual-card {
  padding: 28px;
  border-radius: 28px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(216, 100, 92, 0.94), rgba(130, 53, 49, 0.88)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.18)'%3E%3Cpath d='M20 180c40-80 160-80 200 0'/%3E%3Cpath d='M40 60c26 12 48 32 80 32s54-20 80-32'/%3E%3C/g%3E%3C/svg%3E");
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.visual-card span,
.visual-grid span,
.panel-head span,
.metric-row span {
  color: inherit;
  opacity: 0.78;
}

.visual-card strong {
  max-width: 260px;
  margin-top: 14px;
  font-family: Georgia, "STSong", serif;
  font-size: 34px;
  line-height: 1.2;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.visual-grid article {
  border-radius: 24px;
  padding: 22px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.75);
}

.visual-grid strong {
  font-size: 24px;
  font-family: Georgia, "STSong", serif;
}

.dashboard {
  animation: rise 0.45s ease;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.topbar-actions,
.inline-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dashboard-grid,
.admin-grid {
  display: grid;
  gap: 20px;
}

.dashboard-grid {
  grid-template-columns: repeat(12, 1fr);
}

.panel {
  border-radius: var(--radius);
  padding: 22px;
}

.panel:nth-child(1) { grid-column: span 5; }
.panel:nth-child(2) { grid-column: span 7; }
.panel:nth-child(3) { grid-column: span 4; }
.panel:nth-child(4) { grid-column: span 8; }
.panel:nth-child(5) { grid-column: span 12; }

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

.panel-head h3,
.panel-head h4 {
  margin: 0;
  font-size: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(216, 100, 92, 0.14);
  color: var(--accent-deep);
  font-size: 13px;
}

.badge.soft {
  background: rgba(224, 173, 91, 0.18);
  color: #8b642d;
}

blockquote {
  margin: 0;
  font-size: 30px;
  line-height: 1.5;
  font-family: Georgia, "STSong", serif;
}

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

.metric-row strong {
  display: block;
  margin-bottom: 6px;
  font-size: 32px;
  font-family: Georgia, "STSong", serif;
}

.timeline,
.todo-list,
.admin-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li,
.todo-item,
.admin-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(141, 108, 90, 0.12);
}

.timeline li:last-child,
.todo-item:last-child,
.admin-item:last-child {
  border-bottom: 0;
}

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

.todo-item.done .todo-content {
  color: var(--muted);
  text-decoration: line-through;
}

.todo-actions,
.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.gallery-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(141, 108, 90, 0.12);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.gallery-card footer {
  padding: 10px 12px 12px;
  font-size: 12px;
  color: var(--muted);
}

.section-title {
  margin: 36px 0 18px;
}

.section-title h3 {
  font-size: 34px;
}

.admin-grid {
  grid-template-columns: repeat(2, 1fr);
}

.check-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.admin-item textarea,
.admin-item input[type="text"],
.admin-item input[type="number"] {
  width: 100%;
  min-width: 0;
}

.admin-edit {
  flex: 1;
  display: grid;
  gap: 10px;
}

.feedback {
  min-height: 24px;
  margin: 14px 2px 0;
  color: var(--accent-deep);
}

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

@media (max-width: 960px) {
  .hero,
  .admin-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .panel:nth-child(1),
  .panel:nth-child(2),
  .panel:nth-child(3),
  .panel:nth-child(4),
  .panel:nth-child(5) {
    grid-column: span 1;
  }

  .hero-copy,
  .hero-visual {
    padding: 28px;
  }

  .topbar,
  .metric-row,
  .todo-item,
  .admin-item {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions,
  .inline-actions,
  .todo-actions,
  .admin-actions {
    justify-content: flex-start;
  }

  blockquote {
    font-size: 24px;
  }
}

