/* =========================
   主题与基础变量（中文注释）
   ========================= */
:root{
  --bg: #ffffff;          /* 白底 */
  --text: #111111;        /* 黑字 */
  --muted: #6b7280;       /* 次要文字 */
  --border: #e5e7eb;      /* 边框色 */
  --accent: #8deb51;      /* 主题色（按钮、标记） */
  --accent-ink: #0f3d00;  /* 主题色上的深色文字 */
  --radius: 16px;         /* 卡片圆角 */
  --shadow: 0 6px 18px rgba(17,17,17,.06); /* 卡片阴影 */
}

/* 全局排版 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial;
  line-height: 1.55;
}

/* 顶部栏 */
.site-header{
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.1) blur(6px);
}
.brand{
  display: flex; align-items: center; gap: 10px;
  width: min(960px, 94vw);
  margin: 0 auto;
  padding: 12px 6px;
}
.logo{ height: 26px; width: auto; }
.title{ margin: 0; font-size: 18px; font-weight: 800; letter-spacing: .2px; }

/* 布局容器 */
.container{ width: min(960px, 94vw); margin: 12px auto 60px; padding: 0 6px; }

/* 卡片网格 */
.card-grid{
  display: grid;
  grid-template-columns: 1fr;     /* 移动端单列 */
  gap: 12px;
}
@media (min-width: 760px){
  .card-grid{ grid-template-columns: 1fr 1fr; } /* 平板/桌面两列 */
}

/* =========================
   可折叠卡片（details/summary）
   ========================= */
.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: clip;
}

/* 卡片标题区（summary）：徽标 + 标题 + 副标题 + 右侧箭头 */
.card-summary{
  display: grid;
  grid-template-columns: auto 1fr auto; /* 左徽标 / 中标题 / 右箭头 */
  align-items: center;
  column-gap: 10px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}
.card-summary::-webkit-details-marker{ display: none; } /* 隐藏默认三角 */

.card-tag{
  display: inline-grid; place-items: center;
  height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 900; font-size: 12px;
  box-shadow: 0 4px 10px rgba(141,235,81,.35);
}
.card-head{ min-width: 0; } /* 防止长标题挤压 */
.card-title{
  margin: 0; font-size: 18px; font-weight: 900; line-height: 1.25;
}
.card-subtitle{
  margin: 4px 0 0; color: var(--muted); font-size: 14px;
}
.chev{
  margin-left: 8px; color: #222; transition: transform .2s ease;
}
.card[open] .chev{ transform: rotate(180deg); }

/* 卡片展开内容区域 */
.card-content{
  border-top: 1px dashed var(--border);
  padding: 12px 14px 16px;
}

/* 提示/广告模块 */
.notice{
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: #333;
  background: #fcfdfc;
  margin-bottom: 10px;
}
.ad-block{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
}

/* 列表提示 */
.tips{ margin: 0 0 10px; padding-left: 18px; color: #222; }
.tips li{ margin: 6px 0; }

/* 行动按钮区 */
.card-actions{
  display: flex;
  flex-direction: column; /* 中文注释：手机端上下堆叠，避免拥挤 */
  gap: 8px;
}
@media (min-width: 520px){
  .card-actions{ flex-direction: row; flex-wrap: wrap; }
}

/* 按钮 */
.btn{
  appearance: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;

  transition: transform .18s ease, box-shadow .18s ease;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  
}
.btn:hover,.btn:focus-visible {
    transform: scale(1.03);                                 /* 悬停/聚焦：略放大 */
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.btn:active{  transform: scale(.97);  }
.btn-outline{
  background: #fff; color: #111; border-color: var(--border);
}

/* —— 呼吸动画：吸引注意力，只给 open-guide 用 —— */
@keyframes btn-pulse {
  0%, 100% { transform: scale(0.95); }
  50%      { transform: scale(1.06); } /* 峰值：放大 6% */
}

/* 默认不开启；加上 .is-pulsing 再启动（见步骤 4 的 JS） */
.btn.open-guide.is-pulsing{
  animation: btn-pulse 1.4s ease-in-out infinite;
}

/* 用户一旦悬停/聚焦/按下，就暂停动画，尊重操作优先 */
.btn.open-guide:hover,
.btn.open-guide:focus-visible,
.btn.open-guide:active{
  animation-play-state: paused;
}

/* 无障碍：系统偏好“减少动效”时禁用动画 */
@media (prefers-reduced-motion: reduce){
  .btn.open-guide.is-pulsing{ animation: none; }
}

/* 页脚 */
.site-footer{
  width: min(960px, 94vw);
  margin: 16px auto 26px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
