/* ============================================================
   柱哥笔记站 · 莫兰迪 × 苹果风 公共样式（板式按 apple.com.cn 节奏优化）
   调色板不变（见 ~/.workbuddy/MEMORY.md 〇·补 0）
   优化点：超大居中标题/紧字距、标题下接「产品大图」式视频展示、
          板块大留白、卡片大圆角+充足内边距、文字链接替代实心按钮堆叠
   ============================================================ */
:root{
  --bg:        #F2EEE8;   /* 温奶油主背景 */
  --bg-soft:   #EDE8E0;   /* 略深奶油（分区带） */
  --card:      #FBF8F2;   /* 卡片底 */
  --ink:       #3A3733;   /* 温炭灰正文（不用纯黑） */
  --ink-2:     #58524B;   /* 副文字 */
  --ink-3:     #8A857D;   /* 提示灰 */
  --line:      #DDD6CB;   /* 分隔线 */
  --accent:    #7A93A6;   /* 灰蓝主强调 */
  --accent-l:  #9BB1BF;   /* 灰蓝浅渐变 */
  --pine:      #8FA48C;   /* 松绿副强调 */
  --pine-l:    #B2C1AF;
  --radius:    20px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --shadow:    0 1px 3px rgba(58,55,51,.06), 0 18px 50px rgba(58,55,51,.07);
  --shadow-sm: 0 1px 2px rgba(58,55,51,.06);
  --maxw:      1080px;
  --maxw-narrow: 820px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--ink);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.wrap-n{ max-width:var(--maxw-narrow); margin:0 auto; padding:0 24px; }

/* ---------- 顶部导航（苹果风毛玻璃·极简） ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(242,238,232,.72);
  backdrop-filter:saturate(180%) blur(20px);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid var(--line);
}
.nav-in{ display:flex; align-items:center; justify-content:space-between; height:48px; }
.brand{ font-weight:600; font-size:18px; letter-spacing:.3px; }
.brand .dot{ color:var(--accent); }
.nav-links{ display:flex; gap:34px; font-size:14px; letter-spacing:.2px; color:var(--ink-2); }
.nav-links a{ position:relative; padding:4px 0; transition:color .2s; }
.nav-links a:hover{ color:var(--ink); }
.nav-links a.active{ color:var(--ink); }
.nav-links a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px;
  background:var(--accent); border-radius:2px;
}

/* ---------- 首屏（占满整屏，承载 Hero + 视频，大气） ---------- */
.top-screen{
  min-height:calc(100vh - 48px); /* 扣除导航 */
  display:flex; flex-direction:column; justify-content:center; align-items:stretch;
  padding: 40px 0 56px; box-sizing:border-box;
}

/* ---------- Hero（超大居中标题 / 紧字距） ---------- */
.hero{ width:100%; max-width:var(--maxw); margin:0 auto; padding:40px 0 32px; text-align:center; }
.hero .eyebrow{
  display:inline-block; font-size:13px; letter-spacing:2.5px; text-transform:uppercase;
  color:var(--accent); background:rgba(122,147,166,.12);
  padding:7px 17px; border-radius:999px; margin-bottom:28px;
}
.hero h1{
  font-size:clamp(52px, 9vw, 88px); font-weight:700; letter-spacing:-2px;
  line-height:1.03; margin-bottom:28px;
}
.hero h1 .hl{ color:var(--accent); }
.hero p.lead{
  font-size:clamp(17px,2.4vw,22px); color:var(--ink-2); max-width:660px;
  margin:0 auto 32px; line-height:1.6;
}
.cta{ display:flex; gap:16px; justify-content:center; align-items:center; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-size:15.5px; font-weight:500; padding:13px 28px; border-radius:999px;
  transition:transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--accent); color:#fff; box-shadow:0 8px 24px rgba(122,147,166,.35); }
.btn-primary:hover{ background:var(--accent-l); }
/* 苹果风次级动作=文字链接，不堆实心按钮 */
.link-cta{ font-size:15.5px; color:var(--accent); font-weight:500; }
.link-cta:hover{ color:var(--accent-l); }

/* ---------- 视频展示区（标题下接「产品大图」式） ---------- */
.showcase{
  width:100%; max-width:var(--maxw); margin:0 auto;
  padding:10px 24px 0;
}
.video-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:14px 0; box-shadow:var(--shadow); width:100%; margin:0 auto; overflow:hidden;
}
.video-card video{
  width:100%; border-radius:0; background:#1c1a17; display:block; aspect-ratio:16/9; max-height:640px;
}
.video-ph{
  width:100%; aspect-ratio:16/9; max-height:640px; border-radius:0;
  background:linear-gradient(135deg,#3A3733,#58524B);
  display:flex; align-items:center; justify-content:center; color:#F2EEE8;
  font-size:15px; text-align:center; padding:24px;
}
.seg-bar{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:16px; padding:0 14px; }
.seg{
  font-size:13.5px; padding:8px 16px; border-radius:999px; cursor:pointer;
  background:var(--bg); border:1px solid var(--line); color:var(--ink-2);
  transition:all .18s;
}
.video-note{ text-align:center; font-size:13px; color:var(--ink-3); margin-top:14px; padding:0 14px; }

/* ---------- 区块通用（紧凑第二屏） ---------- */
section.block{ padding:40px 0; }
.section-head{ text-align:center; margin-bottom:28px; }
.section-head h2{ font-size:clamp(26px,4.5vw,38px); font-weight:700; letter-spacing:-.5px; }
.section-head p{ color:var(--ink-3); margin-top:10px; font-size:15.5px; }

/* ---------- 内容方向卡片（大圆角 / 充足内边距 / 文字链接） ---------- */
.cat-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.cat{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:22px 20px; box-shadow:var(--shadow-sm);
  transition:transform .2s, box-shadow .25s, border-color .2s;
}
.cat:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--accent-l); }
.cat .ico{ font-size:32px; margin-bottom:10px; }
.cat h3{ font-size:19px; font-weight:600; margin-bottom:6px; letter-spacing:-.2px; }
.cat p{ font-size:14.5px; color:var(--ink-2); }
.cat .more{ display:inline-block; margin-top:10px; font-size:14px; color:var(--accent); font-weight:500; }
.cat .more:hover{ color:var(--accent-l); }

/* ---------- 笔记预览 / 列表 ---------- */
.note-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.note{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px 26px 24px; box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column; transition:transform .2s, box-shadow .25s, border-color .2s;
}
.note:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--accent-l); }
.note .meta{ font-size:14px; color:var(--ink-3); margin-bottom:14px; display:flex; gap:12px; align-items:center; }
.tag{
  font-size:13px; padding:6px 13px; border-radius:999px; font-weight:600;
  background:rgba(122,147,166,.14); color:var(--accent); border:1px solid rgba(122,147,166,.22);
  box-shadow:0 1px 0 rgba(255,255,255,.6) inset;
}
.tag.t-obs{ background:rgba(143,164,140,.20); color:var(--pine); border-color:rgba(143,164,140,.30); }
.tag.t-sc{ background:rgba(181,137,116,.20); color:#B58974; border-color:rgba(181,137,116,.30); }
.tag.t-ai{ background:rgba(122,147,166,.20); color:var(--accent); border-color:rgba(122,147,166,.30); }
.tag.t-money{ background:rgba(181,137,116,.20); color:#B58974; border-color:rgba(181,137,116,.30); }
.tag.t-english{ background:rgba(102, 120, 160,.20); color:#6678a0; border-color:rgba(102, 120, 160,.30); }
.note h3{ font-size:20px; font-weight:600; line-height:1.35; margin-bottom:10px; letter-spacing:-.2px; }
.note p{ font-size:15px; color:var(--ink-2); flex:1; line-height:1.65; }
.note .read{ margin-top:16px; font-size:14.5px; color:var(--accent); font-weight:500; }
.note .read:hover{ color:var(--accent-l); }

/* 笔记列表页筛选条 */
.filter{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-bottom:56px; }
.filter .chip{
  font-size:15px; padding:10px 22px; border-radius:999px; cursor:pointer;
  background:var(--bg); border:1px solid var(--line); color:var(--ink-2); transition:all .18s;
}
.filter .chip:hover{ border-color:var(--accent); color:var(--accent); }
.filter .chip.on{ background:var(--accent); color:#fff; border-color:var(--accent); }

.load-more{ text-align:center; margin-top:48px; }
.load-more .btn{
  display:inline-flex; align-items:center; gap:8px;
  font-size:15px; font-weight:500; padding:13px 32px; border-radius:999px;
  background:var(--accent); color:#fff; box-shadow:0 6px 18px rgba(122,147,166,.35);
  transition:transform .15s, background .2s, box-shadow .2s;
}
.load-more .btn:hover{ background:var(--accent-l); transform:translateY(-2px); }

/* 笔记页 hero 标题区 */
.page-hero{ padding:64px 0 12px; text-align:center; }
.page-hero .eyebrow{
  display:inline-block; font-size:12.5px; letter-spacing:2px; text-transform:uppercase;
  color:var(--accent); background:rgba(122,147,166,.12);
  padding:5px 14px; border-radius:999px; margin-bottom:18px;
}

/* ---------- 关于（首页内锚点） ---------- */
.about{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:30px; box-shadow:var(--shadow-sm); max-width:var(--maxw); margin:0 auto; text-align:center;
}
.about{ text-align:center; }
.about h2{ font-size:clamp(26px,4vw,34px); font-weight:700; letter-spacing:-.4px; margin-bottom:14px; }
.about-grid{ display:grid; grid-template-columns:2fr 1fr; gap:24px; align-items:start; text-align:left; }
.about-main p{ color:var(--ink-2); margin-bottom:12px; font-size:16px; line-height:1.75; }
.about-main p.lead-about{ font-size:18px; font-weight:600; color:var(--ink-1); line-height:1.65; margin-bottom:14px; }
.about-side h4{ font-size:13.5px; font-weight:600; color:var(--ink-3); margin-bottom:12px; letter-spacing:.2px; text-transform:uppercase; }
.tool-stack{ display:flex; flex-wrap:wrap; gap:8px; }
.tool-stack span{ font-size:13px; padding:6px 12px; border-radius:999px; background:var(--bg); border:1px solid var(--line); color:var(--ink-2); display:inline-flex; align-items:center; gap:6px; }
.ticon{ font-size:15px; line-height:1; font-style:normal; }
.tlogo{ width:16px; height:16px; object-fit:contain; flex:none; margin-right:1px; }
.about .sig{ color:var(--ink-3); font-size:14.5px; margin-top:22px; }

/* ---------- 页脚 ---------- */
.footer{ border-top:1px solid var(--line); padding:20px 0; margin-top:0; background:var(--bg-soft); }
.footer-in{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; }
.footer p{ font-size:13.5px; color:var(--ink-3); }
.badge-icp, .badge-gongan{
  font-size:12px; padding:4px 13px; border-radius:999px;
  background:rgba(143,164,140,.16); color:var(--pine); border:1px solid var(--pine-l);
  margin-left:8px;
}
.badge-icp a, .badge-gongan a{ color:inherit; text-decoration:none; display:flex; align-items:center; gap:6px; }
.beian-logo{ width:18px; height:18px; display:block; flex:none; }
.badge-icp a:hover, .badge-gongan a:hover{ text-decoration:underline; }
/* 备案列表样式（和原站点统一） */
.beian-list{ line-height:1.5; }
.foot-note a{ color:#8e8e93; border-bottom:none; }
/* 备案徽章样式（和截图统一：两个圆角绿色徽章并排） */
.badge-beian{
  display:inline-block;
  font-size:12px;
  padding:6px 16px;
  border-radius:999px;
  background:rgba(143,164,140,.16);
  color:var(--pine);
  border:1px solid var(--pine-l);
  margin-left:8px;
}
.badge-beian a{
  color:inherit;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:6px;
}
.badge-beian a:hover{ text-decoration:underline; }
.beian-shield{ width:18px; height:18px; display:block; flex:none; }
/* 备案排列：PC水平并排，手机竖直排列 */
.beian-wrap{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
}
.beian-list{
  display:flex;
  gap:10px;
}
.footer a{ color:var(--accent); }

/* ---------- 响应式 ---------- */
@media (max-width:820px){
  .top-screen{ min-height:auto; padding:24px 0 40px; }
  .cat-grid{ grid-template-columns:1fr; }
  .note-grid{ grid-template-columns:repeat(2,1fr); }
  .nav-links{ gap:22px; font-size:14px; }
  .hero{ padding:40px 0 28px; }
  .hero h1{ font-size:clamp(42px, 10vw, 64px); letter-spacing:-1.5px; }
  section.block{ padding:36px 0; }
  .about{ padding:28px 24px; }
  .video-card{ max-width:100%; padding:14px; }
  .video-card video, .video-ph{ max-height:360px; }
  .beian-wrap{
    flex-direction: column;
    align-items:flex-start;
    gap:8px;
  }
  .beian-list{
    flex-direction:column;
  }
}
@media (max-width:560px){
  .note-grid{ grid-template-columns:1fr; }
  .about-grid{ grid-template-columns:1fr; gap:32px; }
  .about-side h4{ text-align:center; }
  .tool-stack{ justify-content:center; }
  .hero h1{ font-size:clamp(36px, 11vw, 52px); }
}
