/* ============================================================
   OOTD USA — Pinterest 风格瀑布流样式（浅色主题）
   ============================================================ */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e9e4dc;
  --accent: #b76e79;
  --accent-soft: #f3e4e7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo-mark { flex: 0 0 auto; }
.logo-text em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { font-size: 14px; color: var(--muted); transition: color 0.15s; }
.nav a:hover { color: var(--text); }

/* ---------- 主体 ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 24px; }

.hero { text-align: center; padding: 40px 0 24px; }
.hero h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: 0.01em; }
.hero p { color: var(--muted); font-size: 16px; max-width: 620px; margin: 0 auto; }

/* ---------- 分区标题 ---------- */
.grid-section { margin: 32px 0 8px; }
.section-title {
  font-size: 20px;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

/* ---------- Pinterest 瀑布流（CSS columns） ---------- */
.grid { columns: 4 240px; column-gap: 18px; }

.card {
  display: block;
  break-inside: avoid;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.card-img { background: #eee; }
.card-body { padding: 14px 16px 16px; }
.card h3 { font-size: 16px; margin: 8px 0 6px; line-height: 1.35; font-weight: 600; }
.card time { font-size: 12px; color: var(--muted); }

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------- 文章页 ---------- */
.post { max-width: 720px; margin: 0 auto; padding: 20px 0 40px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--text); }
.post h1 { font-size: 34px; line-height: 1.2; margin: 12px 0 10px; }
.post-date { color: var(--muted); font-size: 14px; }
.feature { border-radius: 16px; margin: 20px 0 24px; }
.content { font-size: 17px; }
.content h2 { font-size: 23px; margin: 32px 0 12px; }
.content p { margin: 0 0 18px; }
.content ul { padding-left: 22px; margin: 0 0 18px; }
.content li { margin-bottom: 6px; }

.related { max-width: 720px; margin: 40px auto 0; }
.related h2 { font-size: 20px; margin: 0 0 16px; }

/* ---------- 页脚 ---------- */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.site-footer a { color: var(--accent); }
.site-footer p { margin: 4px 0; }

/* ---------- 广告位（占位） ---------- */
.ad-slot {
  text-align: center;
  margin: 30px auto;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fbfaf7;
}
.ad-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  color: var(--muted);
  font-size: 13px;
  background: #f2efe9;
  border-radius: 8px;
}
/* 矩形广告位（300x250 / 336x280）占位更高 */
.ad-slot-content-inline-1 .ad-placeholder,
.ad-slot-content-inline-2 .ad-placeholder,
.ad-slot-home-infeed .ad-placeholder { min-height: 250px; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .hero h1 { font-size: 26px; }
  .post h1 { font-size: 26px; }
  .site-header { flex-direction: column; align-items: flex-start; }
}
