/* =========================================================
   右右的博客 · 样式
   温馨奶油风：无外部依赖、无网络字体，离线可用
   ========================================================= */

:root {
  --bg: #fff8f1;          /* 奶油底 */
  --card: #ffffff;
  --ink: #3d3a36;         /* 正文深灰褐 */
  --ink-2: #7a736b;       /* 次级文字 */
  --ink-3: #a89f95;       /* 弱文字 */
  --line: #f0e4d8;        /* 分隔线 */
  --primary: #e8836b;     /* 珊瑚暖橙 */
  --primary-soft: #fdeee9;
  --accent: #f2b75f;      /* 奶黄点缀 */
  --green: #7fae8e;       /* 柔绿（成长） */
  --radius: 18px;
  --shadow: 0 8px 28px rgba(160, 110, 80, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 248, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.5px;
}

.logo-emoji { font-size: 24px; }

.nav { display: flex; gap: 6px; }

.nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav a:hover { color: var(--primary); background: var(--primary-soft); }

.nav a.active {
  color: #fff;
  background: var(--primary);
}

/* ---------- 首页 Hero ---------- */

.hero {
  text-align: center;
  padding: 56px 0 10px;
}

.hero .wave { font-size: 40px; }

.hero h1 {
  margin: 10px 0 6px;
  font-size: 34px;
  letter-spacing: 1px;
}

.hero .sub {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  letter-spacing: 2px;
}

/* ---------- 倒计时卡片 ---------- */

.countdown-wrap {
  margin: 30px 0 8px;
  background: linear-gradient(135deg, #fff, #fdf1e7 65%, #fbe6da);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 26px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-wrap::before,
.countdown-wrap::after {
  content: "✦";
  position: absolute;
  color: var(--accent);
  opacity: 0.55;
  font-size: 20px;
}

.countdown-wrap::before { top: 14px; left: 20px; }
.countdown-wrap::after { bottom: 12px; right: 20px; }

.cd-title {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--ink-2);
  letter-spacing: 3px;
}

.cd-due {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ink-3);
}

.cd-due b { color: var(--primary); font-weight: 600; }

.cd-grid {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cd-cell {
  min-width: 92px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 10px 10px;
}

.cd-num {
  display: block;
  font-size: 34px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.cd-label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 2px;
  margin-top: 2px;
}

.cd-note {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ---------- 通用卡片 ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin: 22px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.section-title .bar {
  width: 5px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(var(--primary), var(--accent));
}

.section-sub {
  margin: 0 0 8px;
  color: var(--ink-3);
  font-size: 14px;
}

/* ---------- 文章列表 ---------- */

.post-list { list-style: none; margin: 14px 0 0; padding: 0; }

.post-item + .post-item { margin-top: 14px; }

.post-item a {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-item a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(160, 110, 80, 0.14);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-3);
}

.post-tag {
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12.5px;
}

.post-item h3 { margin: 8px 0 6px; font-size: 18px; }

.post-item p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
}

.more-hint {
  text-align: center;
  color: var(--ink-3);
  font-size: 13.5px;
  margin: 18px 0 6px;
}

/* ---------- 文章详情 ---------- */

.article-head { margin-bottom: 6px; }

.article-head h2 {
  margin: 10px 0 8px;
  font-size: 26px;
  line-height: 1.5;
}

.article-meta { color: var(--ink-3); font-size: 13.5px; }

.article-body p { margin: 14px 0; font-size: 15.5px; }

.article-body .signature {
  text-align: right;
  color: var(--ink-2);
  margin-top: 26px;
}

.back-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14.5px;
}

.back-link:hover { text-decoration: underline; }

/* ---------- 关于 ---------- */

.about-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 14px 0;
}

.about-line .ico { font-size: 22px; line-height: 1.6; }

.about-line p { margin: 0; }

/* ---------- 时间线（首页「最近的期待」） ---------- */

.timeline { list-style: none; margin: 14px 0 0; padding: 0 0 0 6px; }

.timeline li {
  position: relative;
  padding: 0 0 18px 26px;
  border-left: 2px dashed var(--line);
}

.timeline li:last-child { border-left-color: transparent; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--green);
}

.timeline .t-date {
  font-size: 13px;
  color: var(--ink-3);
}

.timeline .t-text {
  margin: 2px 0 0;
  font-size: 15px;
}

/* ---------- 页脚 ---------- */

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: #fdf4ec;
  padding: 26px 0 34px;
  text-align: center;
  color: var(--ink-2);
  font-size: 13.5px;
}

.footer-inner p { margin: 6px 0; }

.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer a:hover { color: var(--primary); }

/* ---------- 响应式 ---------- */

@media (max-width: 560px) {
  .hero h1 { font-size: 27px; }
  .hero { padding-top: 40px; }
  .cd-cell { min-width: 74px; padding: 10px 6px 8px; }
  .cd-num { font-size: 26px; }
  .header-inner { height: 58px; }
  .logo-text { font-size: 17px; }
  .nav a { padding: 7px 10px; font-size: 14px; }
  .card { padding: 20px 18px; }
}
