:root {
  --bg: #f7f8fa;
  --card-bg: #ffffff;
  --text: #1a1a1f;
  --text-soft: #5b6470;
  --accent: #4f46e5;
  --border: #e8eaef;
  --good: #16a34a;
  --bad: #dc2626;
  --bad-soft: #fef2f2;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(20, 24, 40, 0.06), 0 8px 24px rgba(20, 24, 40, 0.05);
  --shadow-hover: 0 6px 16px rgba(20, 24, 40, 0.10), 0 16px 40px rgba(20, 24, 40, 0.10);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 页头 */
.site-header {
  background: linear-gradient(135deg, #4f46e5 0%, #7c6cf0 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
}

.site-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-header .subtitle {
  margin-top: 12px;
  font-size: 1.02rem;
  opacity: 0.9;
}

/* 分类区块 */
.topic {
  margin: 56px 0;
}

.topic:first-of-type {
  margin-top: 48px;
}

.topic:last-of-type {
  margin-bottom: 64px;
}

.topic-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.topic-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 3px 9px;
  border-radius: 8px;
}

.topic-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.topic-intro {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.96rem;
}

/* 软件卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 12px;
}

.card-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-note {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
  flex-grow: 1;
}

.card-link {
  margin-top: 18px;
  align-self: flex-start;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.card-link:hover {
  opacity: 0.7;
}

.card-link-todo {
  color: var(--text-soft);
  font-weight: 500;
}

.card-builtin {
  margin-top: 18px;
  align-self: flex-start;
  color: var(--good);
  font-weight: 600;
  font-size: 0.92rem;
}

/* 应避免 */
.avoid-box {
  margin-top: 22px;
  background: var(--bad-soft);
  border-radius: 10px;
  padding: 16px 18px;
}

.avoid-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bad);
  margin-bottom: 8px;
}

.avoid-list {
  list-style: none;
}

.avoid-list li {
  position: relative;
  padding-left: 24px;
  margin: 7px 0;
  font-size: 0.94rem;
}

.avoid-list li::before {
  content: "✗";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--bad);
}

.avoid-name {
  font-weight: 600;
}

.avoid-note {
  color: var(--text-soft);
}

.avoid-note::before {
  content: " — ";
  color: var(--text-soft);
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .site-header {
    padding: 56px 0 48px;
  }
  .site-header h1 {
    font-size: 1.7rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .topic {
    margin: 40px 0;
  }
}
