:root {
  --bg-top: #fff8cf;
  --bg-mid: #ffd8a0;
  --bg-bottom: #ffb5be;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-border: rgba(255, 255, 255, 0.92);
  --ink: #6b4225;
  --sub-ink: #8c6347;
  --accent-1: #ffb05f;
  --accent-2: #ff7e52;
  --accent-3: #ffe7a7;
  --shadow: rgba(181, 96, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "YouYuan", "Trebuchet MS", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.9) 0 8%, transparent 9%),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.82) 0 7%, transparent 8%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 52%, var(--bg-bottom) 100%);
}

body {
  padding: 28px;
}

.site-shell {
  max-width: 1220px;
  margin: 0 auto;
}

.hero-card,
.page-card {
  position: relative;
  padding: 30px;
  border-radius: 34px;
  background: var(--panel);
  border: 2px solid var(--panel-border);
  box-shadow:
    0 24px 60px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.hero-card::after,
.page-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 2px dashed rgba(255, 186, 95, 0.48);
  pointer-events: none;
}

.back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  color: #fff8f0;
  background: linear-gradient(180deg, var(--accent-1) 0%, var(--accent-2) 100%);
  box-shadow: 0 12px 24px rgba(255, 126, 82, 0.3);
}

.hero-tag {
  margin: 18px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #a56f49;
  letter-spacing: 1px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.1;
}

.hero-text,
.page-text,
.tool-card span,
.grade-card span,
.placeholder {
  color: var(--sub-ink);
  font-size: 18px;
  line-height: 1.6;
}

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

.grade-card,
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 170px;
  padding: 26px;
  border-radius: 28px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 18px 34px rgba(180, 98, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.grade-card:hover,
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 40px rgba(180, 98, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.grade-card strong,
.tool-card strong {
  font-size: 34px;
  line-height: 1.2;
}

.tool-card strong {
  font-size: 30px;
}

.featured {
  background: linear-gradient(180deg, rgba(255, 244, 196, 0.96) 0%, rgba(255, 228, 154, 0.92) 100%);
}

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

.page-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
}

.page-text {
  margin: 14px 0 0;
}

.placeholder-box {
  margin-top: 26px;
  padding: 34px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  text-align: center;
}

.placeholder {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

@media (max-width: 760px) {
  body {
    padding: 16px;
  }

  .hero-card,
  .page-card {
    padding: 22px;
    border-radius: 28px;
  }

  .grade-card,
  .tool-card {
    min-height: 146px;
    padding: 22px;
  }

  .grade-card strong,
  .tool-card strong {
    font-size: 28px;
  }

  .hero-text,
  .page-text,
  .tool-card span,
  .grade-card span,
  .placeholder {
    font-size: 16px;
  }
}
