/* 爪伴 PawMate 官网样式（浅色、暖橘 + 玫瑰，与客户端配色一致） */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #faf8f5; color: #2f3038;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  line-height: 1.7;
}
a { color: #b06a7d; text-decoration: none; }
a:hover { color: #8f5163; }
/* v1.8.1：header 内容收进 1080px 居中容器，与正文 / 更新日志 / 打赏板块左右对齐；
   背景条仍全宽 sticky，logo 与导航不再贴屏幕两端。 */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px max(28px, calc((100% - 1080px) / 2 + 24px));
  background: rgba(255, 253, 250, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid #ece7df;
}
.brand { font-size: 18px; font-weight: 700; color: #2f3038; }
.brand b { color: #c8793f; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Hero：左文右图双栏（v1.8.1 恢复），文字在左栏内居中 */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px;
  align-items: center; padding: 64px 0 52px;
}
.hero h1 { font-size: 42px; line-height: 1.25; margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: #c8793f; }
.lead { font-size: 16px; color: #5a5c66; margin: 0 0 22px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.badge {
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  background: #fbf1e6; border: 1px solid #ecd9b8; color: #8a6d3b;
}
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  background: #b06a7d; color: #fff !important; font-size: 15px; font-weight: 600;
  border: 1px solid #b06a7d;
}
.btn:hover { background: #9c5a6d; border-color: #9c5a6d; }
.btn.ghost { background: #fff; color: #555762 !important; border-color: #dcd9d2; }
.btn.ghost:hover { background: #f7ecef; border-color: #d6a9b5; }
.hero-note { font-size: 12px; color: #9a9ca4; margin-top: 14px; }

/* CSS 预览示意（不依赖任何截图，打包即可显示） */
.preview {
  background: linear-gradient(150deg, #2b2c36, #3a3b48);
  border-radius: 20px; padding: 26px; min-height: 300px;
  box-shadow: 0 18px 48px rgba(47, 48, 56, 0.22);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
}
.preview .bar { display: flex; gap: 6px; }
.preview .dot { width: 9px; height: 9px; border-radius: 50%; background: #6a6c78; }
.cat {
  align-self: center; position: relative; width: 132px; height: 106px;
  background: #e79a4d; border-radius: 50% 50% 46% 46%; margin-bottom: 4px;
}
.cat::before, .cat::after {
  content: ""; position: absolute; top: -22px; width: 0; height: 0;
  border-left: 24px solid transparent; border-right: 24px solid transparent;
  border-bottom: 38px solid #e79a4d;
}
.cat::before { left: 6px; transform: rotate(-14deg); }
.cat::after { right: 6px; transform: rotate(14deg); }
.eyes { position: absolute; top: 44px; left: 0; right: 0; display: flex; justify-content: center; gap: 30px; }
.eyes i { width: 11px; height: 15px; border-radius: 50%; background: #2b2b33; }
.paws { position: absolute; bottom: -14px; left: 12px; right: 12px; display: flex; justify-content: space-between; }
.paws i { width: 30px; height: 18px; border-radius: 50%; background: #f2f0e9; }
.kb { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.kb i { height: 20px; border-radius: 4px; background: #55576a; }
.kb i.on { background: #e8bf5a; }
.preview-label { text-align: center; color: #b9bbc6; font-size: 12px; }

/* 通用区块 */
section.block { padding: 48px 0; border-top: 1px solid #efebe4; }
section.block h2 { font-size: 26px; margin: 0 0 8px; }
section.block .sub { color: #7a7c86; font-size: 14px; margin: 0 0 26px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: #fff; border: 1px solid #ece7df; border-radius: 14px;
  padding: 20px; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(47,48,56,.08); }
.card .ico { font-size: 24px; }
.card h3 { font-size: 16px; margin: 8px 0 6px; }
.card p { font-size: 13px; color: #6a6c76; margin: 0; }
.vipbox { background: linear-gradient(135deg, #fff6ea, #fdf0f3); border: 1px solid #ecd9b8; }
.vip-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.vip-feats div { background: #fff; border-radius: 10px; padding: 14px; border: 1px solid #f0e4d4; font-size: 13px; }
.vip-feats b { display: block; color: #8a6d3b; margin-bottom: 3px; }

.faq details { background: #fff; border: 1px solid #ece7df; border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.faq p { font-size: 13px; color: #6a6c76; margin: 8px 0 0; }

.donate { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.donate figure { margin: 0; text-align: center; }
.donate img { width: 190px; height: 190px; object-fit: contain; background: #fff; border: 1px solid #ece7df; border-radius: 12px; padding: 8px; }
.donate figcaption { font-size: 13px; color: #6a6c76; margin-top: 8px; }

.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #ece7df; border-radius: 12px; overflow: hidden; font-size: 13px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid #f1ede7; text-align: left; vertical-align: top; }
.tbl th { background: #faf6f0; color: #7a6035; }
.tbl code { font-family: Consolas, monospace; font-size: 12px; }
.hint { font-size: 12px; color: #9a9ca4; }
code { background: #f5f3ef; padding: 1px 5px; border-radius: 4px; }
.foot { text-align: center; padding: 26px; color: #9a9ca4; font-size: 12px; border-top: 1px solid #efebe4; }

/* v1.8.1：下载页 —— 主版本卡片 + 历史版本表；列宽固定，杜绝日期折行 / 按钮文字竖排 */
body.dl-body { min-height: 100vh; display: flex; flex-direction: column; }
body.dl-body main.wrap { flex: 1 0 auto; width: 100%; }
main.wrap > .lead { max-width: 780px; margin-left: auto; margin-right: auto; }
main.wrap > .hint { margin-top: 16px; max-width: 780px; margin-left: auto; margin-right: auto; }

/* 当前版本：一眼看到该下哪个、SHA256 与大小 */
.dl-hero {
  margin: 30px 0 34px; padding: 30px 34px;
  background: linear-gradient(135deg, #fffaf3, #fdf3f5);
  border: 1px solid #e6c9a8; border-radius: 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.dl-hero-info { flex: 1 1 420px; min-width: 0; }
.dl-tag { display: inline-block; font-size: 11px; font-weight: 600; color: #fff; background: #b06a7d; border-radius: 999px; padding: 2px 10px; }
.dl-ver { font-size: 38px; font-weight: 700; line-height: 1.2; margin: 10px 0 4px; color: #2f3038; }
.dl-meta { font-size: 13px; color: #7a7c86; margin: 0 0 12px; }
.dl-notes { font-size: 14px; color: #5a5c66; margin: 0 0 16px; max-width: 620px; }
.dl-sha { font-size: 12px; color: #9a9ca4; margin: 12px 0 0; }
.dl-hero-act { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.btn.dl-primary { font-size: 17px; padding: 15px 34px; border-radius: 12px; white-space: nowrap; }
.dl-primary-sub { font-size: 12px; color: #9a9ca4; }
.dl-history-title { text-align: center; font-size: 20px; margin: 0 0 14px; }

.tbl-wrap { overflow-x: auto; border-radius: 12px; }
table.tbl.tbl-versions { table-layout: fixed; min-width: 760px; }
.tbl-versions col.c-ver { width: 96px; }
.tbl-versions col.c-date { width: 124px; }
.tbl-versions col.c-notes { width: auto; }
.tbl-versions col.c-sha { width: 176px; }
.tbl-versions col.c-dl { width: 104px; }
.tbl-versions th, .tbl-versions td { vertical-align: middle; }
.tbl-versions .cell-center { text-align: center; }
.tbl-versions td.c-date, .tbl-versions td.c-sha code { white-space: nowrap; }
.tbl-versions td.c-notes { word-break: break-word; }
.tbl-versions tr.is-current { background: #fffaf3; }
.tbl-versions .btn-dl {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 76px; padding: 9px 12px; white-space: nowrap; font-size: 14px;
  background: #fff; color: #b06a7d !important; border-color: #d6a9b5;
}
.tbl-versions .btn-dl:hover { background: #f7ecef; color: #8f5163 !important; border-color: #b06a7d; }

/* 激活页 */
.form-wrap { max-width: 560px; margin: 46px auto; background: #fff; border: 1px solid #ece7df; border-radius: 16px; padding: 28px; }
.form-wrap h1 { font-size: 24px; margin: 0 0 6px; }
.form-wrap label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
.form-wrap input { width: 100%; padding: 10px 12px; border: 1px solid #dcd9d2; border-radius: 8px; font-size: 14px; font-family: inherit; }
.form-wrap button { margin-top: 20px; width: 100%; }
.result { margin-top: 18px; padding: 14px; border-radius: 10px; font-size: 13px; display: none; white-space: pre-wrap; word-break: break-all; }
.result.ok { background: #edf6ef; border: 1px solid #cfe6d5; color: #3f7a52; display: block; }
.result.err { background: #fdf0f1; border: 1px solid #f0d0d4; color: #a34b5b; display: block; }

/* 打赏申请页 */
.steps { background: #fff8f0; border: 1px solid #ecd9b8; border-radius: 10px; padding: 14px 16px; margin: 16px 0 4px; font-size: 13px; }
.steps b { color: #8a6d3b; }
.steps ol { margin: 8px 0; padding-left: 20px; color: #5a5c66; }
.steps li { margin: 4px 0; }
.shot-box { border: 1px dashed #d6cfc4; border-radius: 10px; padding: 14px; background: #fdfbf8; }
.shot-box input[type="file"] { width: 100%; font-size: 13px; }
.shot-preview { display: none; max-width: 100%; max-height: 260px; margin-top: 12px; border: 1px solid #ece7df; border-radius: 8px; background: #fff; }

/* v1.8.1：全站标题 / 按钮组 / 说明文字统一居中 */
.hero > div:first-child { text-align: center; }
.hero .badges, .hero .cta { justify-content: center; }
section.block h2, section.block .sub { text-align: center; }
section.block .cta { justify-content: center; }
section.block .hint { text-align: center; }
.form-wrap h1 { text-align: center; }
.form-wrap > .hint { text-align: center; }
main.wrap > h1, main.wrap > .lead, main.wrap > .hint { text-align: center; }

/* v1.8.1：更新日志与功能卡片 / VIP / FAQ 同宽，正文限宽居中保持可读性 */
.changelog { max-width: none; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.cl-item {
  background: #fff; border: 1px solid #ece7df; border-radius: 14px;
  padding: 20px 24px; text-align: center;
}
.cl-item.cl-current { border-color: #e6c9a8; background: linear-gradient(135deg, #fffaf3, #fdf3f5); }
.cl-ver { font-size: 20px; font-weight: 700; color: #2f3038; text-align: center; }
.cl-tag {
  display: inline-block; font-size: 11px; font-weight: 600; color: #fff;
  background: #b06a7d; border-radius: 999px; padding: 2px 10px;
  margin-left: 8px; vertical-align: middle;
}
.cl-date { font-size: 12px; color: #9a9ca4; margin: 4px 0 12px; text-align: center; }
.cl-item ul { text-align: left; margin: 0 auto; max-width: 760px; padding-left: 20px; font-size: 13px; color: #5a5c66; }
.cl-item li { margin: 6px 0; }
.cl-item li b { color: #8a6d3b; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero h1 { font-size: 32px; }
  .grid, .vip-feats { grid-template-columns: 1fr; }
  .top { padding: 12px 16px; }
  .wrap { padding: 0 16px; }
  .cl-item { padding: 16px; }
  .cl-item ul { padding-left: 18px; }
  .dl-hero { padding: 22px; gap: 18px; }
  .dl-ver { font-size: 30px; }
  .dl-hero-act { align-items: flex-start; }
}
