/* ai 脚鸡官方站 · 样式表
   配色取自品牌 logo：深蓝主色 + 米白底 + 鸡冠红强调 */

:root {
  --navy: #14315E;
  --navy-light: #1D4480;
  --red: #C8322B;
  --cream: #FAF7F0;
  --white: #FFFFFF;
  --ink: #1F2937;
  --ink-soft: #5B6472;
  --line: #E3DED2;
  --green: #2F7D4F;
  --radius: 10px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--red); }

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

/* ---------- 顶栏 ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand-text { line-height: 1.2; }
.brand-name { font-size: 15px; font-weight: 600; color: var(--navy); letter-spacing: .5px; }
.brand-sub { font-size: 11px; color: var(--ink-soft); letter-spacing: 1.2px; }

.site-nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { font-size: 14px; color: var(--ink); padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.site-nav a.active { color: var(--navy); font-weight: 600; border-bottom-color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 58px;
}
.hero h1 { font-size: 32px; line-height: 1.4; margin: 0 0 16px; font-weight: 600; letter-spacing: .5px; }
.hero p { font-size: 16px; color: #C8D3E4; margin: 0 0 28px; max-width: 620px; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #A82820; color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }

/* ---------- 通用区块 ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2.title {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 8px;
}
h3.sub { font-size: 16px; font-weight: 600; color: var(--navy); margin: 32px 0 12px; }
p.lead { color: var(--ink-soft); margin: 0 0 28px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.section.alt .card { background: var(--cream); }
.card h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--navy); }
.card p { margin: 0; font-size: 14px; color: var(--ink-soft); }

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
  background: #E8EDF5;
  color: var(--navy);
  margin: 0 6px 6px 0;
}
.tag-red { background: #FBE9E7; color: var(--red); }
.tag-green { background: #E7F3EC; color: var(--green); }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 14px; background: var(--white); }
th, td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
th { background: #F2F5FA; color: var(--navy); font-weight: 600; white-space: nowrap; }
td.center, th.center { text-align: center; }
.yes { color: var(--green); font-weight: 600; }
.no { color: #B0B7C3; }
.hl { background: #FFF9E8; }

/* ---------- 正文排版 ---------- */
.doc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; }
.doc h2 { font-size: 19px; font-weight: 600; color: var(--navy); margin: 34px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 15px; font-weight: 600; color: var(--navy); margin: 22px 0 8px; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .meta { font-size: 13px; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 26px; }

.notice {
  border-left: 3px solid var(--red);
  background: #FDF4F3;
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin: 20px 0;
  font-size: 14px;
}
.notice-blue { border-left-color: var(--navy); background: #F1F5FB; }

/* 营业执照经营范围全文：字号略小、行距宽松，长段落才读得下去 */
.scope-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 13px;
  line-height: 2;
  color: var(--ink-soft);
  text-align: justify;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--navy);
  color: #A9B8CE;
  font-size: 13px;
  padding: 40px 0 32px;
  margin-top: 8px;
}
.site-footer a { color: #C8D3E4; }
.site-footer a:hover { color: var(--white); }
.footer-top { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-col h5 { color: var(--white); font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 20px;
  line-height: 1.9;
  font-size: 12.5px;
}
.footer-legal .row { margin-bottom: 2px; }

/* ---------- 有偿资讯卡片 ----------
   版式刻意 1:1 复刻小程序信息流的 `.pcard`（pages/feeds/index.wxml + wxss），
   目的是让审核方一眼看出「网站和小程序是同一个平台」。
   小程序用 rpx（750 设计稿），此处按桌面端比例换算成 px，但**保持原有的相对关系与裁切比例**：

     pcard        padding 24rpx            → 20px
     ptag         24rpx / 圆角 6rpx        → 12px / 4px
     ptime        24rpx #B9BEC5            → 12px
     pcard-cover  210×180rpx（7:6 裁切）  → 190×163px（同为 7:6，装 3:2 素材只裁约 12%）
     pcard-title  30rpx / 500 / 行高 1.4   → 17px
     pcard-desc   24rpx / #8A8A8A / 行高 1.5 → 13.5px
     pcard-av     30rpx 圆形               → 16px 圆形
     pcard-name   24rpx #5A6270            → 12.5px
     pcard-loc    24rpx #9AA0A6            → 12.5px

   ⚠️ 不要再往这里加"网站独有"的装饰样式 —— 一旦和小程序长得不一样，
      "同一平台"的直观印象就没了，这条改动的意义也就没了。 */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.news-item:hover, .news-item:focus-visible {
  border-color: var(--red);
  transform: translateX(2px);
  outline: none;
}
.news-head { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
/* 占小程序 .ptag 的位置，但显示资费 —— 对应代办给的样图「付费XX元」 */
.news-price {
  font-size: 12px;
  border-radius: 4px;
  padding: 2px 8px;
  background: #FBE9E7;
  color: var(--red);
  font-weight: 600;
}
.news-tag {
  font-size: 12px;
  border-radius: 4px;
  padding: 2px 8px;
  background: #F0F2F5;
  color: #6B7280;
}
.news-date { margin-left: auto; font-size: 12px; color: #B9BEC5; }

.news-main { display: block; }
.news-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.news-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 17px;
  color: #1A1A1A;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}
.news-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  color: #8A8A8A;
  line-height: 1.5;
  margin-top: 5px;
}
.news-meta { display: flex; align-items: center; margin-top: auto; padding-top: 10px; }
.news-av { width: 16px; height: 16px; border-radius: 50%; background: #E5E7EB; }
.news-author { font-size: 12.5px; color: #5A6270; margin-left: 7px; }
.news-cat { font-size: 12.5px; color: #9AA0A6; margin-left: 10px; }
@media (max-width: 640px) {
  .news-cover { width: 132px; height: 113px; border-radius: 8px; }
  .news-body { margin-left: 13px; }
  .news-title { font-size: 15.5px; }
  .news-item { padding: 15px 16px; }
}

/* ---------- 文章详情页（有偿资讯的"正文"形态） ----------
   形态要点：免费段 → 付费墙（下方露出被模糊的正文首段）→ 四步支付流程。
   付费墙必须"让人看见后面还有内容但读不到"，否则审核方看不出这是个付费墙。 */
.crumbs { font-size: 13px; color: #9AA0A6; margin-bottom: 20px; }
.crumbs a { color: #5A6270; text-decoration: none; }
.crumbs a:hover { color: var(--navy); }
.crumbs span { margin: 0 7px; color: #C6CCD6; }

.article-title {
  margin: 0 0 12px;
  font-size: 27px;
  line-height: 1.45;
  color: #1A1A1A;
  font-weight: 600;
}
.article-cover {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  margin: 20px 0 28px;
  background: #F0F2F5;
}
.article-body { font-size: 16px; line-height: 2; color: #33383F; }
.article-body h2 {
  font-size: 19px;
  color: var(--navy);
  font-weight: 600;
  margin: 34px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--red);
  line-height: 1.5;
}
.article-body p { margin: 0 0 16px; }

.paywall { position: relative; margin-top: 8px; }
.paywall-blur {
  max-height: 190px;
  overflow: hidden;
  filter: blur(4px);
  opacity: .5;
  font-size: 16px;
  line-height: 2;
  color: #33383F;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent);
  pointer-events: none;
  user-select: none;
}
.paywall-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 34px;
  text-align: center;
}
.paywall-price {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--red);
  background: #FBE9E7;
  padding: 7px 18px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.paywall-lead { font-size: 14px; color: var(--ink-soft); line-height: 1.9; margin: 0 0 20px; }

/* 付费墙：二维码不常驻，改成一个「支付」按钮，点开才弹付款码 */
.paywall-buy { margin: 0 auto 22px; max-width: 380px; }
.paywall-btn {
  width: 100%;
  display: block;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s;
}
.paywall-btn:hover { filter: brightness(1.08); }
.paywall-btn span { font-size: 18px; }
.paywall-tip { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }

/* 付款码弹层 */
.paymodal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; }
.paymodal[hidden] { display: none; }
.paymodal-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .6); }
.paymodal-box {
  position: relative;
  width: 100%; max-width: 400px;
  max-height: 90vh; overflow-y: auto;
  background: var(--white);
  border-radius: 14px;
  padding: 30px 30px 24px;
  text-align: center;
  box-shadow: 0 20px 52px rgba(15, 23, 42, .32);
}
.paymodal-x {
  position: absolute; top: 10px; right: 14px;
  width: 30px; height: 30px;
  border: none; background: transparent;
  font-size: 24px; line-height: 1; color: #9AA3B0; cursor: pointer;
}
.paymodal-x:hover { color: var(--navy); }
.paymodal-title { margin: 0 0 4px; font-size: 17px; color: var(--navy); font-weight: 600; }
.paymodal-amount { font-size: 30px; font-weight: 700; color: var(--red); margin-bottom: 14px; }
.paymodal-qr { max-width: 250px; margin: 0 auto; }
.paymodal-qr img {
  display: block; width: 100%;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.paymodal-cap { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }
.paymodal-cap-2 { margin-top: 4px; font-size: 12.5px; color: #9AA3B0; }
.paymodal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.paymodal-actions .btn-solid, .paymodal-actions .btn-line {
  display: inline-block; padding: 10px 20px; border-radius: 8px;
  font-size: 14px; text-decoration: none; cursor: pointer;
}
@media (max-width: 640px) {
  .paymodal-box { padding: 26px 20px 20px; }
  .paymodal-actions { flex-direction: column; }
}
.paywall-steps { text-align: left; }
.paywall-steps-title { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.paywall-steps ol { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 2; color: var(--ink-soft); }
.paywall-actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }
.paywall-actions .btn-solid, .paywall-actions .btn-line {
  display: inline-block; padding: 10px 22px; border-radius: 8px;
  font-size: 14px; text-decoration: none;
}
.paywall-actions .btn-solid { background: var(--red); color: var(--white); }
.paywall-actions .btn-line { border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); }

.article-note { margin-top: 30px; }
@media (max-width: 640px) {
  .article-title { font-size: 22px; }
  .article-cover { height: 210px; }
  .article-body { font-size: 15px; line-height: 1.95; }
  .paywall-box { padding: 22px 18px; }
  .paywall-actions { flex-direction: column; }
}
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.modal-box {
  position: relative;
  width: 100%; max-width: 620px;
  max-height: 88vh; overflow-y: auto;
  background: var(--white);
  border-radius: 14px;
  padding: 30px 34px 26px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .28);
}
.modal-x {
  position: absolute; top: 14px; right: 16px;
  width: 30px; height: 30px;
  border: none; background: transparent;
  font-size: 24px; line-height: 1; color: #9AA3B0; cursor: pointer;
}
.modal-x:hover { color: var(--navy); }
.modal-tag {
  display: inline-block;
  font-size: 12.5px; font-weight: 600;
  color: var(--red); background: #FBE9E7;
  padding: 4px 11px; border-radius: 4px;
  margin-bottom: 12px;
}
.modal-title { margin: 0 0 6px; font-size: 19px; color: var(--navy); line-height: 1.5; }
.modal-meta { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 16px; }
.modal-abstract {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px; line-height: 1.9; color: var(--ink-soft);
}
.modal-abstract-label { font-size: 12px; color: #9AA3B0; margin-bottom: 6px; }
.modal-abstract p { margin: 0; }
.modal-lock { color: var(--red); margin-top: 8px !important; font-size: 13px; }
.modal-steps { margin-top: 18px; }
.modal-steps-title { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.modal-steps ol { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 2; color: var(--ink-soft); }
.modal-actions { display: flex; gap: 12px; margin-top: 22px; }
.btn-line, .btn-solid {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}
.btn-line { border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); cursor: pointer; }
.btn-solid { background: var(--red); color: var(--white); text-decoration: none; }
@media (max-width: 640px) {
  .modal-box { padding: 24px 20px 20px; }
  .news-item { gap: 12px; padding: 14px 16px; }
  .news-thumb { width: 52px; height: 52px; font-size: 12px; }
  .news-title { font-size: 15px; }
  .modal-actions { flex-direction: column; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .site-header .wrap { gap: 12px; padding: 10px 20px; }
  .site-nav { gap: 14px; margin-left: 0; width: 100%; }
  .site-nav a { font-size: 13px; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 24px; }
  .doc { padding: 24px 20px; }
  .section { padding: 40px 0; }
  .wrap { padding: 0 20px; }
}
