/* 
 * 本文件是最省钱网站的基础样式：
 * - 定义整体布局、字体和颜色
 * - 用卡片布局展示文章列表
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: #0b1020;
  color: #f5f5f7;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(11, 16, 32, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.05em;
}

.site-nav a {
  font-size: 14px;
  color: #cbd5f5;
}

.site-main {
  padding: 32px 0 48px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 16px 0 32px;
  font-size: 12px;
  color: #94a3b8;
}

.hero {
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.hero p {
  margin: 0;
  color: #cbd5f5;
  max-width: 520px;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.post-card {
  background: radial-gradient(circle at top left, #1f2937 0, #020617 60%);
  border-radius: 16px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
}

.post-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.post-title {
  margin: 0;
  font-size: 17px;
}

.post-excerpt {
  margin: 0;
  font-size: 14px;
  color: #e5e7eb;
}

.post-readmore {
  margin-top: 8px;
  font-size: 13px;
  color: #93c5fd;
}

.post-detail {
  max-width: 680px;
}

.post-detail-header h1 {
  margin-bottom: 8px;
}

.post-detail-meta {
  font-size: 13px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-detail-body {
  margin-top: 20px;
  line-height: 1.7;
  font-size: 15px;
  color: #e5e7eb;
}

.post-detail-body p {
  margin: 0 0 12px;
}

.post-detail-back {
  margin-top: 24px;
  font-size: 14px;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 22px;
  }
}

