:root {
  --bg: #f7f1e8;
  --paper: #fffdf8;
  --ink: #2f241f;
  --subtle: #6b5b52;
  --primary: #b85c38;
  --primary-deep: #8f4325;
  --accent: #e8c07d;
  --line: #e7d7c8;
  --shadow: 0 18px 40px rgba(96, 60, 37, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(232, 192, 125, 0.45), transparent 28%),
    linear-gradient(180deg, #fcf7ef 0%, var(--bg) 100%);
}

.hero {
  padding: 56px 20px 28px;
}

.hero__content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(184, 92, 56, 0.96), rgba(95, 54, 37, 0.92));
  color: #fffaf3;
  box-shadow: var(--shadow);
}

.hero__tag {
  margin: 0 0 10px;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero__text {
  margin: 0;
  max-width: 700px;
  line-height: 1.8;
}

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.panel--accent {
  background: linear-gradient(180deg, #fffaf1 0%, #fff6e8 100%);
}

.panel--wide {
  grid-column: 1 / -1;
}

.penguin-panel {
  overflow: hidden;
  background:
    radial-gradient(circle at right top, rgba(232, 192, 125, 0.35), transparent 24%),
    linear-gradient(135deg, #fffdf8 0%, #fff5e8 100%);
}

.penguin-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
}

.penguin-card__icon {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff 0%, #f5dfb2 100%);
  font-size: 4rem;
  box-shadow: inset 0 0 0 1px rgba(184, 92, 56, 0.12);
}

.penguin-card__tag {
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.penguin-card__text {
  margin-bottom: 12px;
  line-height: 1.9;
}

h2,
h3,
h4,
p {
  margin-top: 0;
}

.form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 700;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d8c6b5;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

button {
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  background: var(--primary-deep);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(184, 92, 56, 0.12);
}

.stat-card__label {
  margin-bottom: 8px;
  color: var(--subtle);
}

.stat-card__value {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

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

.summary-list li {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(184, 92, 56, 0.08);
}

.feedback-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--primary-deep);
  font-weight: 700;
}

.section-title p {
  margin-bottom: 0;
  color: var(--subtle);
}

.post-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.post-card {
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
}

.post-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.post-card__student {
  margin-bottom: 6px;
  color: var(--primary);
  font-weight: 700;
}

.post-card__book {
  margin-bottom: 0;
}

.post-card__count {
  margin-bottom: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f7ecdf;
  white-space: nowrap;
}

.post-card__body {
  padding: 16px;
  border-radius: 18px;
  background: #fffaf4;
}

.post-card__note {
  margin-bottom: 0;
  line-height: 1.8;
  white-space: pre-wrap;
}

.teacher-box {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.recommend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.recommend-row input {
  width: 18px;
  height: 18px;
}

.empty-state {
  padding: 32px 18px;
  text-align: center;
  border: 2px dashed #d8c6b5;
  border-radius: 22px;
  color: var(--subtle);
  background: #fffaf4;
}

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .panel--wide {
    grid-column: auto;
  }

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

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

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