:root {
  --brand: #DB2777;
  --brand-deep: #70103B;
  --brand-tint: #FDF2F8;
  --price: #EA580C;
  --ink: #1F2937;
  --ink-2: #6B7280;
  --ink-3: #9CA3AF;
  --line: #E5E7EB;
  --bg: #F9FAFB;
  --card: #FFFFFF;
  --ok: #059669;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* 顶栏 */
.site-header {
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .inner {
  max-width: 1080px; margin: 0 auto; padding: 0 16px; height: 56px;
  display: flex; align-items: center; gap: 28px;
}
.logo { font-size: 18px; font-weight: 700; color: var(--brand-deep); }
.logo span { color: var(--brand); }
.site-nav { display: flex; gap: 20px; font-size: 14px; color: var(--ink-2); }
.site-nav a.active { color: var(--brand); font-weight: 600; }
.site-nav a:hover { color: var(--brand); }
.header-right { margin-left: auto; }
.header-right a {
  font-size: 13px; color: var(--brand); border: 1px solid var(--brand);
  border-radius: 999px; padding: 4px 14px;
}
.header-right a:hover { background: var(--brand-tint); }

/* 首页 hero */
.hero { text-align: center; padding: 64px 16px 40px; }
.hero h1 { font-size: 32px; color: var(--brand-deep); letter-spacing: 1px; }
.hero p { color: var(--ink-2); margin-top: 10px; font-size: 15px; }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 720px; margin: 36px auto 0; }
.entry-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px 24px; text-align: center; transition: box-shadow .15s, transform .15s;
}
.entry-card:hover { box-shadow: 0 8px 24px rgba(219,39,119,.10); transform: translateY(-2px); }
.entry-card .icon { font-size: 34px; }
.entry-card h2 { font-size: 18px; margin: 10px 0 6px; color: var(--brand-deep); }
.entry-card p { font-size: 13px; color: var(--ink-2); }
.home-links { text-align: center; margin: 28px 0 8px; font-size: 13px; color: var(--ink-3); }
.home-links a { color: var(--brand); margin: 0 10px; }

/* 页面标题 */
.page-head { padding: 28px 0 4px; }
.page-head h1 { font-size: 22px; color: var(--brand-deep); }
.page-head .sub { font-size: 13px; color: var(--ink-2); margin-top: 4px; }

/* 筛选条 */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin: 16px 0;
}
.filter-bar select, .filter-bar input {
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
  font-size: 13px; color: var(--ink); background: #fff; outline: none;
}
.filter-bar input { flex: 1; min-width: 140px; }
.filter-bar button {
  background: var(--brand); color: #fff; border: 0; border-radius: 8px;
  padding: 8px 18px; font-size: 13px; cursor: pointer;
}
.filter-bar button:hover { background: var(--brand-deep); }

/* 卡片列表 */
.card-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 40px; }
@media (max-width: 720px) { .card-list { grid-template-columns: 1fr; } .entry-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; transition: box-shadow .15s;
  display: flex; flex-direction: column; gap: 8px;
}
.card:hover { box-shadow: 0 6px 18px rgba(31,41,55,.07); }
.card h3 { font-size: 16px; color: var(--ink); }
.card h3:hover { color: var(--brand); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px; color: var(--brand-deep); background: var(--brand-tint);
  border-radius: 6px; padding: 2px 8px;
}
.tag.plain { color: var(--ink-2); background: #F3F4F6; }
.tag.verify { color: var(--ok); background: #ECFDF5; }
.meta-row { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-2); }
.price { color: var(--price); font-weight: 700; font-size: 15px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-3); margin-top: auto; }

/* 详情页 */
.detail { max-width: 760px; margin: 0 auto; padding: 24px 16px 90px; }
.detail-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.detail-card h1 { font-size: 22px; margin-bottom: 10px; }
.section { margin-top: 20px; }
.section h4 { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; font-weight: 600; }
.section .body { font-size: 14px; white-space: pre-wrap; color: var(--ink); }
.stat-row { display: flex; gap: 26px; }
.stat .num { font-size: 18px; font-weight: 700; color: var(--brand-deep); }
.stat .lbl { font-size: 12px; color: var(--ink-3); }
.publisher-row { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand-tint);
  color: var(--brand); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; overflow: hidden; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* 底部引导 */
.site-footer {
  background: var(--card); border-top: 1px solid var(--line);
  padding: 26px 16px; text-align: center; font-size: 13px; color: var(--ink-2);
}
.site-footer .strong { color: var(--brand-deep); font-weight: 600; margin-bottom: 4px; }

/* 状态 */
.loading, .empty { text-align: center; color: var(--ink-3); padding: 48px 0; font-size: 14px; }
.error-tip { text-align: center; color: #B91C1C; padding: 40px 0; font-size: 14px; }
