/* ═══════════════════════════════════════
   rita.css · 瑞塔个人主页 v2
   米白底 · 干净博客风格
   ═══════════════════════════════════════ */

:root {
  --bg: #faf8f5;
  --bg-alt: #f3efe9;
  --bg-header: #f5f1eb;
  --text: #2c2825;
  --text-light: #6b655e;
  --text-muted: #9b948a;
  --accent: #7c5f9e;
  --accent-light: #a890c4;
  --accent-bg: rgba(124,95,158,0.06);
  --border: #e0d8cf;
  --border-light: #ede7de;
  --radius: 8px;
  --max-width: 820px;
  --header-h: 64px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

/* ═══ Header ═══ */
.r-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.r-header-inner {
  max-width: 960px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
}

/* 瑞塔 logo：左上+右下直角框装饰 */
.r-logo-wrap {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 4px 12px;
}
.r-logo-wrap::before,
.r-logo-wrap::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-color: var(--accent);
  border-style: solid;
}
.r-logo-wrap::before {
  top: 0; left: 0;
  border-width: 1.5px 0 0 1.5px;
}
.r-logo-wrap::after {
  bottom: 0; right: 0;
  border-width: 0 1.5px 1.5px 0;
}
.r-logo {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px; font-weight: 600;
  color: var(--text);
  letter-spacing: 2px;
}
.r-logo-sub {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.r-nav { display: flex; gap: 2px; align-items: center; }
.r-nav-link {
  padding: 6px 14px;
  font-size: 14px;
  color: var(--text-light);
  border-radius: 6px;
  transition: all 0.2s;
}
.r-nav-link:hover { color: var(--text); background: rgba(124,95,158,0.06); }
.r-nav-link--active { color: var(--accent); font-weight: 500; }

/* 瑞塔宇宙跳转按钮 */
.r-nav-cosmos {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--accent-light);
  border-radius: 6px;
  margin-left: 8px;
  transition: all 0.2s;
}
.r-nav-cosmos:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
}
.r-nav-cosmos-icon {
  width: 16px; height: 16px;
  display: inline-block;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}
.r-nav-cosmos-icon::after {
  content: '';
  position: absolute; inset: 3px;
  background: var(--bg-header);
  border-radius: 50%;
}

/* ═══ 首页 Hero（左右结构） ═══ */
.r-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.r-hero-left {
  padding-right: 16px;
  border-right: 1px solid var(--border-light);
}
.r-hero-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 32px; font-weight: 600;
  color: var(--text);
  letter-spacing: 6px;
  margin-bottom: 8px;
}
.r-hero-tag {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.r-hero-bio {
  font-size: 14px;
  line-height: 2.1;
  color: var(--text-light);
}
.r-hero-right {
  padding-left: 16px;
}
.r-hero-right-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px; font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.r-rec-article {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.r-rec-article:last-child { border-bottom: none; }
.r-rec-article-col {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 4px;
}
.r-rec-article-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px; font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 2px;
}
.r-rec-article-title:hover { color: var(--accent); }
.r-rec-article-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══ Section 通用 ═══ */
.r-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.r-section-head--center {
  text-align: center;
  flex-direction: column;
  align-items: center;
  border-bottom: none;
}
.r-section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px; font-weight: 600;
  color: var(--text);
  letter-spacing: 2px;
}
.r-section-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}
.r-more { font-size: 13px; color: var(--accent); }

/* ═══ 首页专栏 ═══ */
.r-columns-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px 60px;
}
.r-column-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.r-col-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: all 0.2s;
  cursor: pointer;
}
.r-col-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-1px);
}
.r-col-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px; font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.r-col-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 8px;
}
.r-col-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ═══ 博客页 ═══ */
.r-blog-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 32px 40px;
}

/* 博客页专栏：紧凑横排标签 */
.r-blog-columns {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 8px;
}
.r-blog-col-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}
.r-blog-col-tag:hover {
  border-color: var(--accent-light);
  color: var(--accent);
}
.r-blog-col-count {
  font-size: 11px;
  color: var(--text-muted);
}

/* 时间归档 */
.r-archive {
  margin-top: 40px;
}
.r-archive-year {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px; font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-light);
}

/* ═══ 文章列表 ═══ */
.r-article-list { display: flex; flex-direction: column; }
.r-article {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s;
}
.r-article:last-child { border-bottom: none; }
.r-article:hover { padding-left: 4px; }
.r-article-col {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.r-article-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 17px; font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.5;
}
.r-article-title a { color: inherit; }
.r-article-title a:hover { color: var(--accent); }
.r-article-excerpt {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 6px;
}
.r-article-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══ 短视频页 ═══ */
.r-videos-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 32px 60px;
}
.r-series {
  margin-bottom: 48px;
}
.r-series-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px; font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.r-series-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.r-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.r-series-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: all 0.2s;
}
.r-series-card:hover {
  border-color: var(--accent-light);
}
.r-series-card-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px; font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.r-series-card-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}
/* 小 icon 链接行 */
.r-channel-links {
  display: flex; gap: 10px; align-items: center;
}
.r-ch-icon {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s;
}
.r-ch-icon:hover {
  color: var(--accent);
  border-color: var(--accent-light);
}
.r-ch-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.r-ch-dot--bili { background: #fb7299; }
.r-ch-dot--yt { background: #ff0000; }
.r-ch-dot--xhs { background: #ff2442; }

/* ═══ 播客页 ═══ */
.r-podcast-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 32px 60px;
}
.r-podcast-series {
  margin-bottom: 40px;
}
.r-podcast-series-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.r-podcast-series-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px; font-weight: 600;
  color: var(--text);
}
.r-podcast-list { display: flex; flex-direction: column; gap: 12px; }
.r-podcast-item {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: all 0.2s;
}
.r-podcast-item:hover { border-color: var(--accent-light); }
.r-podcast-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px; font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.r-podcast-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 6px;
}
.r-podcast-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.r-podcast-embed {
  margin-top: 10px;
  border-radius: 6px;
  overflow: hidden;
}
.r-podcast-embed iframe { width: 100%; border: 0; }

/* ═══ Footer ═══ */
.r-footer {
  border-top: 1px solid var(--border);
  padding: 20px 32px;
  margin-top: 40px;
  background: var(--bg-header);
}
.r-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px;
}
.r-footer-left, .r-footer-right {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
}
.r-footer-name {
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
  color: var(--text);
}
.r-footer-link { color: var(--text-light); }
.r-footer-link:hover { color: var(--accent); }
.r-footer-dot { color: var(--text-muted); }
.r-footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ═══ 响应式 ═══ */
@media (max-width: 700px) {
  .r-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px;
  }
  .r-hero-left {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-right: 0;
    padding-bottom: 24px;
  }
  .r-hero-right { padding-left: 0; }
  .r-hero-name { font-size: 26px; }
  .r-nav-link { padding: 6px 8px; font-size: 13px; }
  .r-nav-cosmos { display: none; }
  .r-columns-section, .r-blog-section, .r-videos-section, .r-podcast-section {
    padding: 20px 16px 40px;
  }
  .r-column-cards { grid-template-columns: 1fr; }
  .r-series-grid { grid-template-columns: 1fr; }
  .r-footer-inner { flex-direction: column; text-align: center; }
}
