/* ============================================================
   凌飞课程网页 · 手账风 v4
   治愈系手绘笔记 · 暖米黄 · 手写感 · 便签胶带荧光笔
   ============================================================ */

:root {
  /* 暖色基底 */
  --paper-bg: #f5efdf;          /* 牛皮纸米黄 */
  --paper-bg-deep: #ebe3cc;     /* 纸张纹理阴影 */
  --paper-white: #fdfbf5;       /* 便签纸白 */
  --paper-yellow: #fff2b8;      /* 黄色便签 */
  --paper-yellow-deep: #ffe680; /* 黄色便签阴影 */
  --paper-pink: #ffd9d2;        /* 粉色便签 */
  --paper-mint: #c9e8d2;        /* 薄荷绿便签 */
  --paper-blue: #c8dff0;        /* 蓝色便签 */

  /* 墨色文字 */
  --ink-black: #2a2520;         /* 主文字（暖墨色） */
  --ink-dark: #4a4035;          /* 次要文字 */
  --ink-mid: #807565;           /* 辅助文字 */
  --ink-light: #b5a98f;         /* 弱化文字 */

  /* 主题色（克制） */
  --accent-red: #d44c3f;        /* 重点红（手写感） */
  --accent-red-bg: #fde7e3;     /* 重点红便签 */
  --accent-green: #5a8b5f;      /* 重点绿 */
  --accent-green-bg: #d6e8d9;   /* 重点绿便签 */
  --accent-blue: #3a6f8f;       /* 重点蓝 */
  --accent-blue-bg: #d8e6ee;    /* 重点蓝便签 */

  /* 装饰色 */
  --tape-yellow: #ffd56b;       /* 胶带黄 */
  --tape-pink: #ffb5b8;         /* 胶带粉 */
  --tape-mint: #a8d8b8;         /* 胶带薄荷 */
  --highlight-yellow: #ffe45c;  /* 荧光笔黄 */

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', STSong, SimSun, serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-hand: 'Caveat', 'Long Cang', cursive;
}

/* ============================================================
   全局
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 18px;       /* 手机 base 18px —— 让 rem 字体不会太小 */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background:
    /* 牛皮纸纹理 */
    radial-gradient(circle at 20% 30%, rgba(180, 160, 120, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(180, 160, 120, 0.06) 0%, transparent 50%),
    var(--paper-bg);
  color: var(--ink-black);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 40px;
}

/* 纸张噪点纹理（手绘感） */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 27px, rgba(180,160,120,0.04) 27px, rgba(180,160,120,0.04) 28px);
  pointer-events: none;
  z-index: 0;
}

p {
  margin-bottom: 14px;
  line-height: 1.75;
  font-size: 1.05rem;       /* ≈ 19px，正文 */
}

a { color: var(--accent-red); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   容器
   ============================================================ */
.container {
  max-width: 100%;
  padding: 0 18px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .container { max-width: 720px; padding: 0 28px; }
}

/* ============================================================
   Hero · 像贴在便签上的标题
   ============================================================ */
.hero {
  padding: 36px 0 28px;
  position: relative;
}

.hero-tag {
  display: inline-block;
  background: var(--accent-red-bg);
  color: var(--accent-red);
  font-family: var(--font-hand);
  font-size: 22px;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
  transform: rotate(-1.5deg);
  box-shadow: 1px 2px 0 rgba(0,0,0,0.06);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 44px;          /* 移动端 44px（原 38） */
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-black);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.hero .subtitle {
  font-family: var(--font-sans);
  font-size: 28px;          /* 28px（原 26） */
  color: var(--ink-dark);
  line-height: 1.4;
  margin-bottom: 18px;
}

.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 19px;          /* 19px（原 18） */
  color: var(--ink-mid);
}

.hero .meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero .meta .dot { color: var(--ink-light); }

/* ============================================================
   章节标题 · 像手写标记
   ============================================================ */
section {
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

h2 {
  font-family: var(--font-serif);
  font-size: 32px;          /* 32px（原 26） */
  font-weight: 700;
  color: var(--ink-black);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.3px;
}

h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;              /* 40px（原 36） */
  height: 40px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-hand);
  font-size: 24px;          /* 24px（原 22） */
  flex-shrink: 0;
  box-shadow: 1px 2px 0 rgba(0,0,0,0.1);
}

h3 {
  font-family: var(--font-serif);
  font-size: 24px;          /* 24px（原 20） */
  font-weight: 700;
  color: var(--ink-black);
  margin: 24px 0 14px;
  padding-left: 10px;
  border-left: 3px solid var(--accent-red);
}

h4 {
  font-family: var(--font-sans);
  font-size: 21px;          /* 21px（原 22） */
  font-weight: 700;
  color: var(--ink-dark);
  margin: 16px 0 10px;
}

/* ============================================================
   便签卡片 · 核心元素
   ============================================================ */
.note-card {
  background: var(--paper-white);
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;     /* 22px（原 18） */
  margin: 18px 0;              /* 18px（原 14） */
  box-shadow:
    0 1px 2px rgba(120, 100, 60, 0.06),
    0 3px 8px rgba(120, 100, 60, 0.04);
  position: relative;
  border: 1px solid rgba(180, 160, 120, 0.18);
}

.note-card::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 30%;
  width: 60px;
  height: 16px;
  background: var(--tape-yellow);
  opacity: 0.7;
  transform: rotate(-3deg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* 便签纸变体 */
.note-card.yellow {
  background: var(--paper-yellow);
}
.note-card.yellow::before {
  background: var(--tape-pink);
}

.note-card.pink {
  background: var(--paper-pink);
}

.note-card.mint {
  background: var(--paper-mint);
}

.note-card.blue {
  background: var(--paper-blue);
}

.note-card-title {
  font-family: var(--font-serif);
  font-size: 21px;          /* 21px（原 18） */
  font-weight: 700;
  color: var(--ink-black);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.note-card-title .ico {
  font-size: 26px;          /* 26px（原 22） */
}

.note-card-body {
  font-family: var(--font-sans);
  font-size: 19px;          /* 19px（原 16） */
  line-height: 1.85;
  color: var(--ink-dark);
}

.note-card-body strong {
  color: var(--accent-red);
  font-weight: 700;
  background: linear-gradient(180deg, transparent 60%, var(--highlight-yellow) 60%);
  padding: 0 2px;
}

/* ============================================================
   时间轴（一天节奏） · 像时间便签
   ============================================================ */
.timeline {
  margin: 18px 0;
}

.timeline-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;            /* 12px（原 10） */
  align-items: flex-start;
}

.timeline-time {
  font-family: var(--font-sans);
  font-size: 24px;            /* 24px（原 22） */
  font-weight: 700;
  color: var(--accent-red);
  background: var(--paper-yellow);
  padding: 3px 12px;
  border-radius: 4px;
  flex-shrink: 0;
  min-width: 78px;
  text-align: center;
  transform: rotate(-1deg);
  box-shadow: 1px 1px 0 rgba(0,0,0,0.05);
  letter-spacing: 0.2px;
}

.timeline-content {
  flex: 1;
  padding-top: 4px;
}

.timeline-title {
  font-family: var(--font-sans);
  font-size: 20px;            /* 20px（原 17） */
  font-weight: 700;
  color: var(--ink-black);
  margin-bottom: 4px;
}

.timeline-desc {
  font-family: var(--font-sans);
  font-size: 18px;            /* 18px（原 16） */
  color: var(--ink-dark);
  line-height: 1.7;
}

/* ============================================================
   训练日卡片 · 像贴的训练计划
   ============================================================ */
.training-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;                /* 16px（原 12） */
  margin: 18px 0;
}

.training-day {
  background: var(--paper-white);
  border: 1.5px solid rgba(180, 160, 120, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;         /* 18px 20px（原 14 16） */
  box-shadow: 0 1px 3px rgba(120, 100, 60, 0.06);
  position: relative;
}

.training-day-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.training-day-emoji {
  width: 50px;               /* 50px（原 44） */
  height: 50px;
  border-radius: 50%;
  background: var(--paper-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;           /* 28px（原 24） */
  flex-shrink: 0;
  box-shadow: inset 0 -2px 0 rgba(180, 160, 120, 0.2);
}

.training-day-name {
  font-family: var(--font-serif);
  font-size: 22px;           /* 22px（原 19） */
  font-weight: 700;
  color: var(--ink-black);
  line-height: 1.3;
}

.training-day-meta {
  font-family: var(--font-sans);
  font-size: 17px;           /* 17px（原 16） */
  color: var(--ink-mid);
  margin-top: 2px;
}

.training-day-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 64px;        /* 64px（原 56） */
}

.training-day-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 19px;           /* 19px（原 16） */
  line-height: 1.6;
  color: var(--ink-dark);
}

.training-day-tag {
  font-family: var(--font-sans);
  font-size: 18px;           /* 18px（原 17） */
  font-weight: 700;
  color: var(--accent-red);
  flex-shrink: 0;
  min-width: 48px;
}

/* ============================================================
   数据行 · 像表格便签
   ============================================================ */
.data-table {
  background: var(--paper-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(180, 160, 120, 0.25);
  margin: 16px 0;
  overflow: hidden;
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;        /* 14px 18px（原 12 16） */
  border-bottom: 1px dashed rgba(180, 160, 120, 0.3);
  font-family: var(--font-sans);
}

.data-row:last-child { border-bottom: none; }

.data-row .label {
  font-size: 18px;           /* 18px（原 16） */
  color: var(--ink-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-row .value {
  font-family: var(--font-sans);
  font-size: 22px;           /* 22px（原 22） */
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.3px;
}

.data-row .value strong {
  font-size: 24px;
}

/* ============================================================
   清单
   ============================================================ */
.checklist {
  background: var(--paper-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(180, 160, 120, 0.25);
  padding: 8px 0;
  margin: 16px 0;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;        /* 12px 18px（原 10 16） */
  font-size: 19px;           /* 19px（原 16） */
  color: var(--ink-dark);
  line-height: 1.6;
  border-bottom: 1px dashed rgba(180, 160, 120, 0.2);
}

.checklist-item:last-child { border-bottom: none; }

.checklist-item::before {
  content: '□';
  font-family: var(--font-sans);
  font-size: 26px;           /* 26px（原 22） */
  color: var(--accent-red);
  line-height: 1;
  flex-shrink: 0;
  margin-top: -2px;
}

/* ============================================================
   数字 stat · 像便签大字
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;                /* 12px（原 10） */
  margin: 18px 0;
}

.stat-item {
  background: var(--paper-yellow);
  border-radius: var(--radius-md);
  padding: 18px 14px;        /* 18px 14px（原 14 12） */
  text-align: center;
  box-shadow: 0 1px 2px rgba(120, 100, 60, 0.06);
  position: relative;
}

.stat-item.pink { background: var(--paper-pink); }
.stat-item.mint { background: var(--paper-mint); }
.stat-item.blue { background: var(--paper-blue); }
.stat-item.white { background: var(--paper-white); border: 1px solid rgba(180, 160, 120, 0.25); }

.stat-number {
  font-family: var(--font-serif);
  font-size: 40px;           /* 40px（原 36） */
  font-weight: 800;
  color: var(--accent-red);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.stat-item.mint .stat-number { color: var(--accent-green); }
.stat-item.blue .stat-number { color: var(--accent-blue); }

.stat-label {
  font-family: var(--font-sans);
  font-size: 15px;           /* 15px（原 14） */
  color: var(--ink-dark);
  line-height: 1.4;
  letter-spacing: 0.2px;
}

/* ============================================================
   Tip 框 · 像凌飞手写便签
   ============================================================ */
.lingfei-note {
  background: var(--paper-yellow);
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;   /* 22px（原 16） */
  margin: 22px 0;
  position: relative;
  border: 1px dashed rgba(180, 160, 120, 0.4);
  box-shadow: 0 2px 6px rgba(120, 100, 60, 0.06);
}

.lingfei-note::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 28px;
  width: 50px;
  height: 18px;
  background: var(--tape-pink);
  opacity: 0.8;
  transform: rotate(-4deg);
}

.lingfei-note-label {
  font-family: var(--font-sans);
  font-size: 17px;           /* 17px（原 16） */
  color: var(--accent-red);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

.lingfei-note-body {
  font-family: var(--font-serif);
  font-size: 20px;           /* 20px（原 17） */
  line-height: 1.85;
  color: var(--ink-black);
}

.lingfei-note-body strong {
  color: var(--accent-red);
  background: linear-gradient(180deg, transparent 60%, var(--highlight-yellow) 60%);
  padding: 0 2px;
  font-weight: 700;
}

/* ============================================================
   Blockquote · 引言便签
   ============================================================ */
blockquote {
  background: var(--paper-mint);
  border-radius: var(--radius-md);
  padding: 18px 22px;         /* 18px 22px（原 14 18） */
  margin: 18px 0;
  font-family: var(--font-serif);
  font-size: 20px;           /* 20px（原 17） */
  line-height: 1.85;
  color: var(--ink-black);
  position: relative;
  border-left: 4px solid var(--accent-green);
}

blockquote strong { color: var(--accent-green); font-weight: 700; }

/* ============================================================
   Footer
   ============================================================ */
footer {
  padding: 24px 18px 40px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-mid);
  position: relative;
  z-index: 1;
  letter-spacing: 0.3px;
}

footer .sign {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 26px;
  color: var(--accent-red);
  margin-top: 8px;
  transform: rotate(-2deg);
}

/* ============================================================
   桌面端适配
   ============================================================ */
@media (min-width: 768px) {
  .hero h1 { font-size: 44px; }
  .hero .subtitle { font-size: 28px; }
  h2 { font-size: 30px; }
  h2 .num { width: 40px; height: 40px; font-size: 24px; }
  section { padding: 40px 0; }
  .training-day-content { padding-left: 60px; }
  .stat-grid { gap: 14px; }
  .stat-number { font-size: 38px; }
}