/* ============================================================
   51视频中文站 · 红楣金章·内容门户
   品牌取值来自官网 51Porn.com 实测：
   主红 #E21725（logo 红字/注册/搜索按钮 226,23,37）、
   VIP 金 #FACD5F（金色 VIP 按钮 250,205,95）。
   圆角体系 10/16/999；无等宽字体；底色白与粉白交替。
   ============================================================ */

:root {
  --red: #E21725;
  --red-deep: #A9131D;
  --red-soft: #FFF0F1;
  --gold: #FACD5F;
  --gold-deep: #B8892B;
  --gold-soft: #FFF7E4;
  --bg: #FFFFFF;
  --bg-pink: #FFF4F0;
  --ink: #191A1C;
  --ink-2: #43454A;
  --ink-3: #7A7D83;
  --line: #EFE7E2;
  --line-2: #DCD3CC;

  --r1: 10px;
  --r2: 16px;
  --rpill: 999px;

  --sh1: 0 1px 2px rgba(25, 26, 28, .05);
  --sh2: 0 6px 18px rgba(25, 26, 28, .07);
  --sh3: 0 14px 34px rgba(25, 26, 28, .10);

  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-22: 22px;
  --fs-28: 28px;
  --fs-34: 34px;
  --fs-44: 44px;
  --fs-58: 58px;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s7: 28px; --s8: 32px; --s9: 36px; --s10: 40px;
  --s11: 44px; --s12: 48px; --s13: 56px; --s14: 64px; --s15: 80px;

  --page: 1224px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-15, 15px);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { line-height: 1.35; font-weight: 800; letter-spacing: .01em; }
ul, ol { padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(226, 23, 37, .45); outline-offset: 2px; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--s5); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  background: var(--red); color: #fff;
  border: 0; border-radius: var(--rpill);
  font-size: var(--fs-14); font-weight: 700; letter-spacing: .02em;
  cursor: pointer; transition: background .22s ease, box-shadow .22s ease, transform .22s ease;
}
.btn:hover { background: var(--red-deep); color: #fff; box-shadow: var(--sh2); }
.btn-lg { min-height: 52px; padding: 0 30px; font-size: var(--fs-16); }
.btn-gold { background: var(--gold); color: #4A3608; }
.btn-gold:hover { background: #F5BE3F; color: #3C2C06; }

/* ---------- 页首：顶红条 + 单行三分 ---------- */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); }
.masthead::before { content: ""; display: block; height: 4px; background: var(--red); }
.hd-in {
  max-width: var(--page); margin: 0 auto; padding: 0 var(--s5);
  display: flex; align-items: center; gap: var(--s4);
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .22s ease;
}
.masthead.scrolled .hd-in { box-shadow: var(--sh1); }
.brand { display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; margin-right: auto; }
.brand-mark { font-size: var(--fs-28); font-weight: 800; color: var(--red); line-height: 1; letter-spacing: .01em; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); align-self: center; }
.brand-zh { font-size: var(--fs-12); color: var(--ink-3); letter-spacing: .14em; }
.hd-nav { display: flex; align-items: center; }
.hd-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink-2); font-size: var(--fs-14); border-radius: var(--r1); }
.hd-nav a:hover { color: var(--red); background: var(--red-soft); }
.hd-nav a[aria-current="page"] { color: var(--red); font-weight: 700; }
.hd-tail { display: flex; align-items: center; gap: var(--s3); margin-left: auto; }
.hd .btn { min-height: 44px; padding: 0 20px; }
.menu-toggle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line-2); border-radius: var(--r1); cursor: pointer; padding: 0;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); }
.menu-toggle span { position: relative; }
.menu-toggle span::before { position: absolute; top: -6px; left: 0; }
.menu-toggle span::after { position: absolute; top: 6px; left: 0; }

@media (max-width: 899px) {
  .hd-in { flex-wrap: wrap; padding-top: var(--s2); padding-bottom: var(--s2); }
  .hd-nav { display: none; }
  .masthead.open .hd-nav {
    display: flex; flex-direction: column; align-items: stretch;
    flex-basis: 100%; order: 9;
    border-top: 1px solid var(--line);
    padding: var(--s2) 0 0;
  }
  .masthead.open .hd-nav a { min-height: 44px; font-size: var(--fs-16); }
}
@media (min-width: 900px) {
  .hd-in { display: grid; grid-template-columns: 1fr auto 1fr; }
  .brand { margin: 0; justify-self: start; }
  .hd-nav { justify-self: center; }
  .hd-tail { margin: 0; justify-self: end; justify-content: flex-end; }
  .menu-toggle { display: none; }
}

/* ---------- 首屏：浅底文案 + 通栏界面截图 ---------- */
.hero { background: var(--bg); }
.hero .wrap { padding-top: var(--s9); padding-bottom: var(--s10); }
.eyebrow {
  margin: 0 0 var(--s4);
  display: inline-flex; align-items: center; gap: var(--s2);
  color: var(--red); font-size: var(--fs-13); font-weight: 700; letter-spacing: .18em;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: var(--fs-34); color: var(--ink); margin-bottom: var(--s4); text-wrap: balance; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero-lead { color: var(--ink-2); max-width: 660px; margin-bottom: var(--s7); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-13); color: var(--ink-3); }
.hero-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.hero-shot { margin: var(--s10) 0 0; }
.browser-frame { border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; background: #fff; box-shadow: var(--sh3); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FCFBFA; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.browser-bar i:first-child { background: var(--red); }
.browser-bar i:nth-child(2) { background: var(--gold); }
.browser-bar em { margin-left: 10px; font-style: normal; font-size: var(--fs-12); color: var(--ink-3); letter-spacing: .03em; }
.browser-frame img { display: block; width: 100%; height: auto; }
.hero-shot figcaption { margin-top: var(--s3); font-size: var(--fs-12); color: var(--ink-3); }
@media (min-width: 900px) {
  .hero .wrap { padding-top: var(--s12); padding-bottom: var(--s12); }
  .hero h1 { font-size: 48px; }
  .hero-lead { font-size: var(--fs-18); }
  .hero-shot { margin-top: var(--s11); }
}

/* ---------- 区块骨架 ---------- */
.band { padding: var(--s11) 0; }
.band-pink { background: var(--bg-pink); }
.sec-head { max-width: 720px; margin: 0 auto var(--s8); text-align: center; }
.sec-head h2 { font-size: var(--fs-28); margin-bottom: var(--s3); }
.sec-head p { color: var(--ink-2); font-size: var(--fs-14); }
.sec-head a, .blk p a, .notice-panel a, .split-copy p a, .fbody a { color: var(--red-deep); border-bottom: 1px solid rgba(226,23,37,.25); }
.sec-head a:hover, .blk p a:hover, .notice-panel a:hover, .split-copy p a:hover, .fbody a:hover { color: var(--red); border-bottom-color: var(--red); }
@media (min-width: 900px) { .band { padding: var(--s14) 0; } }

/* ---------- 频道四卡 ---------- */
.chancards { display: grid; gap: var(--s5); }
.chancard {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r2);
  padding: var(--s6); box-shadow: var(--sh1);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.chancard:hover { transform: translateY(-3px); box-shadow: var(--sh3); border-color: rgba(226,23,37,.35); }
.chancard i { display: inline-flex; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); margin-bottom: var(--s4); }
.chancard b { display: block; font-size: var(--fs-18); margin-bottom: 4px; }
.chancard b a { color: var(--ink); }
.chancard b a:hover { color: var(--red); }
.chancard p { color: var(--ink-2); font-size: var(--fs-14); margin: 0; }
@media (min-width: 640px) { .chancards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .chancards { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 错位内容卡 ---------- */
.feature { display: grid; gap: var(--s8); }
.feature-visual { position: relative; max-width: 274px; margin-left: 14px; }
.feature-visual::before {
  content: ""; position: absolute; left: -14px; top: 18px; right: 22px; bottom: -14px;
  background: var(--red-soft); border-radius: var(--r2);
}
.feature-visual img {
  position: relative; display: block; width: 100%; height: auto;
  border-radius: var(--r2); box-shadow: var(--sh3);
}
.feature-copy h2 { font-size: var(--fs-28); margin-bottom: var(--s3); }
.feature-copy > p { color: var(--ink-2); margin-bottom: var(--s5); }
.feature-list { list-style: none; }
.feature-list li { border-top: 1px solid var(--line); padding: var(--s4) 0; color: var(--ink-2); font-size: var(--fs-14); }
.feature-list li b { color: var(--ink); margin-right: 6px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 5fr 7fr; gap: var(--s12); align-items: center; }
}

/* ---------- VIP 金章带 ---------- */
.vipband { background: var(--gold-soft); border-radius: var(--r2); padding: var(--s7); border: 1px solid rgba(184,137,43,.25); }
.vipband h2 { font-size: var(--fs-22); margin-bottom: var(--s2); }
.vipband .sub { color: var(--ink-2); font-size: var(--fs-14); margin-bottom: var(--s6); }
.vipband img { display: block; width: 100%; max-width: 955px; height: auto; border-radius: var(--r1); }
@media (min-width: 900px) { .vipband { padding: var(--s9); } }

/* ---------- 对比双卡 ---------- */
.compare { display: grid; gap: var(--s6); }
.ccard { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s7); box-shadow: var(--sh1); }
.ccard .ctag { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); font-weight: 700; letter-spacing: .1em; border-radius: var(--rpill); padding: 3px 12px; margin-bottom: var(--s4); }
.ccard-free .ctag { background: var(--red-soft); color: var(--red-deep); }
.ccard-vip { border-color: rgba(184,137,43,.4); }
.ccard-vip .ctag { background: var(--gold); color: #4A3608; }
.ccard h3 { font-size: var(--fs-22); margin-bottom: var(--s4); }
.ccard ul { list-style: none; }
.ccard li { border-top: 1px solid var(--line); padding: var(--s3) 0; font-size: var(--fs-14); color: var(--ink-2); }
.ccard li b { color: var(--ink); }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr 1fr; gap: var(--s8); } }

/* ---------- 圆节点流程 ---------- */
.steps-flow { list-style: none; display: grid; gap: var(--s6); counter-reset: step; }
.steps-flow li { display: flex; gap: var(--s4); align-items: flex-start; }
.steps-flow .dot {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; font-size: var(--fs-16);
  display: inline-flex; align-items: center; justify-content: center;
}
.steps-flow b { display: block; font-size: var(--fs-16); margin-bottom: 2px; }
.steps-flow p { color: var(--ink-2); font-size: var(--fs-14); margin: 0; }
@media (min-width: 900px) {
  .steps-flow { grid-template-columns: repeat(3, 1fr); gap: var(--s8); }
  .steps-flow li { position: relative; display: block; padding-top: 0; }
  .steps-flow .dot { margin-bottom: var(--s4); }
  .steps-flow li::after {
    content: ""; position: absolute; top: 22px; left: 64px; right: -26px; height: 0;
    border-top: 2px dotted rgba(226, 23, 37, .35);
  }
  .steps-flow li:last-child::after { content: none; }
}

/* ---------- 地址条 ---------- */
.address-strip { display: grid; gap: var(--s5); }
.address-strip img { display: block; width: 100%; height: auto; border-radius: var(--r1); border: 1px solid var(--line); }
.address-strip p { color: var(--ink-2); font-size: var(--fs-14); }
@media (min-width: 900px) {
  .address-strip { gap: var(--s4); }
}


/* ---------- VIP 权益列表（无图版） ---------- */
.viplist { list-style: none; display: grid; gap: var(--s3); margin-top: var(--s5); }
.viplist li { display: flex; gap: var(--s3); align-items: baseline; font-size: var(--fs-14); color: var(--ink-2); }
.viplist li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--red); align-self: center; }
.viplist li b { color: var(--ink); }

/* ---------- 永久地址条（CSS 复刻官网公告形态） ---------- */
.addrline {
  display: flex; align-items: center; gap: var(--s3);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r2);
  padding: var(--s5) var(--s6); box-shadow: var(--sh1);
}
.addrline::before { content: ""; width: 4px; align-self: stretch; border-radius: 2px; background: var(--red); }
.addrline b { font-size: var(--fs-16); }
.addrline a { color: var(--red-deep); }

/* ---------- 两列信息表（细线） ---------- */
.tlist { list-style: none; max-width: 900px; }
.tlist li { display: grid; gap: var(--s1) var(--s6); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.tlist li:last-child { border-bottom: 1px solid var(--line); }
.tlist b { font-size: var(--fs-16); }
.tlist b a { color: var(--ink); }
.tlist b a:hover { color: var(--red); }
.tlist p { margin: 0; color: var(--ink-2); font-size: var(--fs-14); }
@media (min-width: 760px) { .tlist li { grid-template-columns: 190px 1fr; align-items: baseline; } }
.blkhead { max-width: 900px; margin-bottom: var(--s5); }
.blkhead h2 { font-size: var(--fs-28); margin-bottom: var(--s2); }
.blkhead p { color: var(--ink-2); font-size: var(--fs-14); }

/* ---------- 金色权益带 ---------- */
.goldband { background: var(--gold); color: #3E2D06; }
.goldband .wrap { padding-top: var(--s7); padding-bottom: var(--s7); display: grid; gap: var(--s4); }
.goldband h2 { font-size: var(--fs-22); }
.goldband ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s7); }
.goldband li { font-size: var(--fs-14); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.goldband li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3E2D06; }
.goldband p { margin: 0; font-size: var(--fs-14); color: rgba(62,45,6,.85); }
.goldband a { color: #3E2D06; border-bottom: 1px solid rgba(62,45,6,.4); }
.goldband a:hover { border-bottom-color: #3E2D06; }
@media (min-width: 900px) {
  .goldband .wrap { grid-template-columns: auto 1fr; align-items: center; gap: var(--s4) var(--s8); padding-top: var(--s8); padding-bottom: var(--s8); }
  .goldband ul { justify-content: flex-end; }
  .goldband p { grid-column: 1 / -1; }
}

/* ---------- 竖排时间线 ---------- */
.timeline { list-style: none; max-width: 720px; }
.timeline li { position: relative; padding: 0 0 var(--s7) 44px; }
.timeline li::before { content: ""; position: absolute; left: 10px; top: 26px; bottom: 0; border-left: 2px dotted rgba(226,23,37,.35); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { content: none; }
.timeline .dot {
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-12); font-weight: 800;
}
.timeline b { display: block; font-size: var(--fs-16); margin-bottom: 2px; }
.timeline p { margin: 0; color: var(--ink-2); font-size: var(--fs-14); }


/* ---------- 合规面板 ---------- */
.notice-panel { max-width: 940px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--r2); padding: var(--s7); }
.notice-panel h2 { font-size: var(--fs-22); margin-bottom: var(--s4); }
.notice-cols { display: grid; gap: var(--s4); }
.notice-cols p { font-size: var(--fs-14); color: var(--ink-2); }
@media (min-width: 900px) {
  .notice-panel { padding: var(--s9); }
  .notice-cols { grid-template-columns: 1fr 1fr; gap: var(--s8); }
}
.band-pink .notice-panel { background: var(--bg); }

/* ---------- 分页 ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: var(--s5) 0 0; font-size: var(--fs-13); color: var(--ink-3); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-3); }
.crumbs a:hover { color: var(--red); }
.crumbs span { color: var(--line-2); }
.page-head { padding: var(--s6) 0 var(--s2); max-width: 760px; }
.page-head h1 { font-size: var(--fs-28); margin-bottom: var(--s3); }
.page-head p { color: var(--ink-2); }
.blk { padding: var(--s7) 0 0; max-width: 760px; }
.blk + .blk { margin-top: var(--s7); }
.blk h2 { display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-22); margin-bottom: var(--s4); }
.blk h2 .chip {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 28px; padding: 0 10px;
  background: var(--red); color: #fff;
  border-radius: var(--rpill);
  font-size: var(--fs-13); font-weight: 700; letter-spacing: .06em;
}
.blk p { margin-bottom: var(--s4); color: var(--ink-2); }
.blk p:last-child { margin-bottom: 0; }
.blk ul.dotlist { list-style: none; margin: var(--s2) 0 var(--s4); }
.blk ul.dotlist li { position: relative; padding-left: var(--s5); margin-bottom: var(--s2); color: var(--ink-2); }
.blk ul.dotlist li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.blk ul.dotlist li b { color: var(--ink); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; margin: var(--s3) 0 var(--s5); font-size: var(--fs-14); }
.tbl th { background: var(--red-soft); color: var(--red-deep); text-align: left; font-weight: 700; padding: 12px 16px; }
.tbl td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.media { max-width: 780px; margin: var(--s5) 0; }
.media img { display: block; max-width: 100%; width: auto; height: auto; border-radius: var(--r2); box-shadow: var(--sh2); }
.media figcaption { margin-top: var(--s2); font-size: var(--fs-12); color: var(--ink-3); }

/* FAQ */
.faq-group { padding: var(--s7) 0 0; max-width: 780px; }
.faq-group h2 { display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-22); margin-bottom: var(--s4); }
.faq-group h2 .chip {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 28px; padding: 0 10px;
  background: var(--red); color: #fff; border-radius: var(--rpill);
  font-size: var(--fs-13); font-weight: 700; letter-spacing: .06em;
}
details { border: 1px solid var(--line); border-radius: var(--r2); margin-bottom: var(--s3); background: var(--bg); }
details[open] { border-color: rgba(226,23,37,.3); box-shadow: var(--sh1); }
summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: 14px var(--s5); min-height: 52px;
  font-size: var(--fs-16); font-weight: 700; color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red-soft); color: var(--red-deep); font-weight: 800; font-size: var(--fs-16);
}
details[open] summary::after { content: "–"; background: var(--red); color: #fff; }
.answer { padding: 0 var(--s5) var(--s5); }
.answer p { color: var(--ink-2); font-size: var(--fs-14); }

/* ---------- 页脚 ---------- */
.ft { background: var(--bg-pink); border-top: 1px solid var(--line); margin-top: var(--s12); }
.ft .wrap { padding-top: var(--s9); padding-bottom: var(--s8); }
.ft-brand { font-size: var(--fs-22); font-weight: 800; color: var(--red); letter-spacing: .01em; }
.ft-note { color: var(--ink-2); font-size: var(--fs-13); max-width: 860px; margin: var(--s3) 0 var(--s4); }
.ft-legal { color: var(--ink-2); font-size: var(--fs-13); margin-bottom: var(--s2); }
.ft-legal b { color: var(--ink); }
.ft-copy { color: var(--ink-3); font-size: var(--fs-13); }

/* ---------- 进入视口淡入（仅首页；无 JS 时内容照常显示） ---------- */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
