* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #f6f1e8;
  color: #2f2a25;
}

.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 28px 20px;
  background: linear-gradient(180deg, #ebdfcf 0%, #e2d0ba 100%);
  border-right: 1px solid #d9cab7;
}

.brand {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 28px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item,
.nav-item:visited {
  display: block;
  padding: 12px 14px;
  color: #3a332c;
  text-decoration: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.82);
  transform: translateX(2px);
}

.content {
  padding: 36px;
}

.search-shell {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.search-input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid #ded1c4;
  border-radius: 14px;
  background: #fffaf5;
  color: #2f2a25;
}

.search-button {
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: #314b3d;
  color: #fff;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  padding: 36px;
  border: 1px solid #dfd3c7;
  border-radius: 24px;
  background: linear-gradient(135deg, #efe1cf 0%, #faf6ef 100%);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a6d61;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.15;
}

.summary {
  margin: 0;
  max-width: 720px;
  color: #60574e;
  line-height: 1.7;
}

.hero-card {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
}

.hero-card-label {
  margin-bottom: 12px;
  color: #75685d;
  font-size: 14px;
}

.hero-card-box {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed #cdbbaa;
  border-radius: 18px;
  color: #8a7d71;
  text-align: center;
  padding: 16px;
}

.section {
  margin-top: 28px;
}

.section-title {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 700;
}

.section-subtitle {
  margin-bottom: 18px;
  color: #6b6158;
  line-height: 1.6;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.link-item {
  display: block;
  height: 100%;
  padding: 18px;
  border: 1px solid #e4d8cc;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(128, 108, 83, 0.08);
}

.link-card,
.link-card:visited {
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  border-color: #c7b19a;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(92, 74, 52, 0.14);
}

.link-card:focus-visible {
  outline: 2px solid #365341;
  outline-offset: 3px;
}

.link-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.link-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #eadccf;
  background: #fff8ef;
}

.link-head-copy {
  min-width: 0;
}

.link-item h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.link-title {
  font-weight: 400;
  text-decoration: none;
}

.link-item p {
  margin: 0;
  color: #61574f;
  line-height: 1.65;
  font-size: 14px;
  word-break: break-word;
}

.link-meta {
  margin-bottom: 4px;
  color: #7c6f63;
  font-size: 13px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed #d9cabd;
  border-radius: 18px;
  color: #75685c;
  background: rgba(255, 255, 255, 0.72);
}

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

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

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid #d9cab7;
  }

  .content {
    padding: 20px;
  }

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

  .hero {
    padding: 24px;
  }

  .hero h1 {
    font-size: 30px;
  }

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