/* =============================================================
   雨桐·爱字帖 · 官方网站样式
   -------------------------------------------------------------
   设计基调：中国书画纸＋墨绿的"文房"气质
   · 纸底 #fbf9f4 / 墨字 #23241f / 主色深绿 #1f6b3a（取自软件田字格框色）
   · 点缀朱红 #c1272d（取自软件描红字色）
   · 标题用宋体系（衬线），正文用系统无衬线
   ============================================================= */

:root {
  --ink: #23241f;
  --ink-2: #5b5c53;
  --ink-3: #8d8e83;
  --paper: #fbf9f4;
  --paper-2: #f4f1e9;
  --paper-3: #efeade;
  --line: #e6e1d6;
  --line-2: #d8d2c4;
  --green: #1f6b3a;
  --green-d: #14472a;
  --green-l: #e9f2ec;
  --red: #c1272d;
  --red-l: #fbeceb;
  --gold: #b8873b;
  --white: #fff;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow-s: 0 1px 2px rgba(35, 36, 31, .05);
  --shadow: 0 2px 6px rgba(35, 36, 31, .05), 0 14px 34px rgba(35, 36, 31, .07);
  --shadow-l: 0 6px 16px rgba(35, 36, 31, .07), 0 28px 60px rgba(35, 36, 31, .11);
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-d); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 244, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 26px; height: 66px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); }
.nav-brand .mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; letter-spacing: 1px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18);
}
.nav-brand b { font-size: 19px; font-weight: 700; letter-spacing: .5px; }
.nav-brand .ver {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--green); background: var(--green-l);
  border: 1px solid #cfe3d6; border-radius: 999px; padding: 1px 8px;
  letter-spacing: .3px;
}
.nav-menu { display: flex; gap: 4px; margin-left: auto; }
.nav-menu a {
  color: var(--ink-2); font-size: 14.5px; padding: 7px 13px; border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-menu a:hover { background: var(--paper-3); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 6px; }

/* 学习打卡（手机站）入口 —— 仅登录后在顶部显示 */
.nav-study {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 9px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .2px;
  color: #fff !important; white-space: nowrap;
  background: linear-gradient(135deg, #2f8a52, #1f6b3a);
  box-shadow: 0 3px 10px rgba(31, 107, 58, .26);
  transition: filter .15s, box-shadow .15s, transform .15s;
}
.nav-study:hover {
  filter: brightness(1.07);
  box-shadow: 0 5px 15px rgba(31, 107, 58, .34);
  transform: translateY(-1px);
}
.nav-study .nsi { font-size: 15px; line-height: 1; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 20px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; font-family: var(--sans);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 2px 0 #164e2a, 0 8px 18px rgba(31, 107, 58, .22); }
.btn-primary:hover { background: #238044; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 88% 8%, #fffdf8 0%, rgba(251, 249, 244, 0) 60%),
    linear-gradient(180deg, #fdfbf7 0%, var(--paper) 100%);
}
/* 淡淡的田字格底纹 */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(31, 107, 58, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 107, 58, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(75% 65% at 78% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(75% 65% at 78% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero-in {
  position: relative; display: grid; grid-template-columns: 1.02fr .98fr;
  gap: 54px; align-items: center; padding: 76px 0 82px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--green);
  background: #fff; border: 1px solid #cfe3d6; border-radius: 999px;
  padding: 5px 13px; box-shadow: var(--shadow-s);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.hero h1 {
  font-family: var(--serif); font-size: 50px; line-height: 1.22;
  margin: 20px 0 0; font-weight: 700; letter-spacing: 1px;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { font-size: 16.5px; color: var(--ink-2); margin: 18px 0 0; max-width: 30em; }
.hero .lead b { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--ink-3); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { flex: none; }

/* 右侧截图堆叠 */
.hero-shot { position: relative; }
.shot-frame {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px;
  box-shadow: var(--shadow-l);
}
.shot-frame .bar { display: flex; gap: 5px; padding: 2px 2px 9px; }
.shot-frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
/* 产品截图是整张 A4（竖长），统一按比例裁切顶部，版面才不会被撑得又高又空 */
.shot-frame img {
  border-radius: 8px; border: 1px solid var(--line);
  aspect-ratio: 4 / 3; object-fit: cover; object-position: top center;
}
.hero-shot .float {
  position: absolute; right: -14px; bottom: -26px; width: 47%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; box-shadow: var(--shadow-l);
}
.hero-shot .float img {
  border-radius: 8px; border: 1px solid var(--line);
  aspect-ratio: 4 / 3; object-fit: cover; object-position: top center;
}
.hero-badge {
  position: absolute; left: -18px; top: 26px; z-index: 2;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow);
}

/* ---------------- 数据条 ---------------- */
.stats { border-bottom: 1px solid var(--line); background: #fff; }
.stats-in { display: grid; grid-template-columns: repeat(6, 1fr); }
.stat { padding: 26px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 29px; color: var(--green); letter-spacing: .5px; }
.stat span { font-size: 12.5px; color: var(--ink-3); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 78px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sec-head .kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: 3px;
  color: var(--green); text-transform: uppercase;
}
.sec-head h2 {
  font-family: var(--serif); font-size: 33px; margin: 12px 0 0;
  font-weight: 700; letter-spacing: .5px;
}
.sec-head p { color: var(--ink-2); margin: 14px 0 0; }

/* ---------------- 功能卡 ---------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-s);
  transition: transform .16s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 15px;
  background: var(--green-l); color: var(--green);
}
.card.red .ico { background: var(--red-l); color: var(--red); }
.card h3 { font-family: var(--serif); font-size: 19px; margin: 0 0 8px; font-weight: 700; }
.card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.card ul { margin: 12px 0 0; padding: 0; list-style: none; }
.card ul li {
  font-size: 13px; color: var(--ink-2); padding-left: 16px; position: relative; margin-top: 5px;
}
.card ul li::before {
  content: ''; position: absolute; left: 2px; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--green);
}
.card.red ul li::before { background: var(--red); }

/* ---------------- 界面预览 ---------------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shot-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-s); }
.shot-item img {
  border-radius: 8px; border: 1px solid var(--line);
  aspect-ratio: 4 / 5; object-fit: cover; object-position: top center;
  transition: transform .25s;
}
.shot-item:hover img { transform: scale(1.015); }
.shot-item figcaption {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px;
  padding: 12px 4px 2px; font-size: 13.5px; color: var(--ink-2);
}
.shot-item figcaption b { font-family: var(--serif); font-size: 15px; color: var(--ink); font-weight: 700; }
.tag { font-size: 11.5px; color: var(--green); background: var(--green-l); border-radius: 999px; padding: 2px 9px; }

/* ---------------- 更新日志 ---------------- */
.log { max-width: 820px; margin: 0 auto; }
.log-item { display: grid; grid-template-columns: 130px 1fr; gap: 22px; padding: 20px 0; border-top: 1px solid var(--line); }
.log-item:first-child { border-top: 0; }
.log-v { font-family: var(--serif); }
.log-v b { display: block; font-size: 18px; color: var(--green); font-weight: 700; }
.log-v span { font-size: 12px; color: var(--ink-3); }
.log-x h4 { margin: 0 0 5px; font-size: 15px; font-weight: 600; }
.log-x p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.pill-new { font-size: 11px; font-weight: 700; color: #fff; background: var(--red); border-radius: 4px; padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }

/* ---------------- 下载区 ---------------- */
.dl {
  background: linear-gradient(180deg, #fff 0%, #fdfcf9 100%);
  border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow); overflow: hidden;
}
.dl-top {
  display: flex; align-items: center; gap: 18px;
  padding: 26px 30px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f7f5ef 0%, #fff 100%);
}
.dl-ico {
  width: 54px; height: 54px; border-radius: 14px; flex: none;
  background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(31, 107, 58, .24);
}
.dl-top h3 { font-family: var(--serif); font-size: 21px; margin: 0; font-weight: 700; }
.dl-top p { margin: 3px 0 0; font-size: 13px; color: var(--ink-3); }
.dl-meta { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--ink-3); }
.dl-meta b { color: var(--green); }

.dl-body { padding: 26px 30px 30px; }
.dl-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.dl-row:last-of-type { border-bottom: 0; }
.dl-row .t { font-size: 15px; font-weight: 600; }
.dl-row .t small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.dl-row .t .pan-code {
  display: inline-block; margin-top: 4px; padding: 3px 10px 3px 8px;
  background: rgba(31, 107, 58, .07);
  border: 1px dashed rgba(31, 107, 58, .5);
  border-radius: 6px; color: var(--green); font-weight: 600; font-size: 12.5px;
}
.dl-row .t .pan-code b {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 15px; letter-spacing: 2px; padding-left: 2px;
}
.dl-row .rel-badge {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  border-radius: 10px; background: var(--green); color: #fff;
  font-size: 11px; font-weight: 600; vertical-align: 2px;
}
.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-hash { font-size: 12px; color: var(--ink-3); word-break: break-all; }
.dl-hash code { font-family: ui-monospace, Consolas, monospace; background: var(--paper-2); padding: 2px 6px; border-radius: 4px; }

/* 未登录遮罩 */
.dl-lock { position: relative; }
.dl-lock .locked {
  filter: blur(6px); opacity: .45; pointer-events: none; user-select: none;
}
.dl-lock .lock-cover {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
  background: rgba(255, 255, 255, .55);
}
/* 已登录（或后台关掉了"仅登录可见"）：解除模糊 */
.dl-lock.unlocked .locked { filter: none; opacity: 1; pointer-events: auto; user-select: auto; }
.lock-cover .lock-ico {
  width: 50px; height: 50px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-2); color: var(--green);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.lock-cover b { font-size: 16px; }
.lock-cover p { margin: -6px 0 0; font-size: 13px; color: var(--ink-2); }
.lock-cover .row { display: flex; gap: 10px; }

/* ---------------- 页脚 ---------------- */
.foot { background: var(--green-d); color: #cfe0d5; margin-top: 0; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 54px 0 34px; }
.foot h5 { color: #fff; font-size: 14px; margin: 0 0 14px; font-weight: 600; letter-spacing: .5px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-brand .mark {
  width: 32px; height: 32px; border-radius: 8px; background: #fff; color: var(--green-d);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; font-family: var(--serif);
}
.foot-brand b { color: #fff; font-family: var(--serif); font-size: 18px; }
.foot p { margin: 0; font-size: 13px; line-height: 1.9; color: #a9c4b4; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot ul li { margin-bottom: 9px; }
.foot ul a { color: #a9c4b4; font-size: 13.5px; }
.foot ul a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 0 26px; display: flex; flex-wrap: wrap; gap: 8px 22px;
  align-items: center; font-size: 12.5px; color: #93b3a2;
}
.foot-bottom .rec { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.foot-bottom .rec a { color: #a9c4b4; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.foot-bottom .rec a:hover { color: #fff; }
.foot-bottom .sep { opacity: .35; }

/* ---------------- 表单（登录/注册） ---------------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  background: linear-gradient(160deg, #1f6b3a 0%, #14472a 100%);
  color: #fff; padding: 56px 54px; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.auth-side::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(70% 60% at 30% 75%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 30% 75%, #000, transparent 75%);
}
.auth-side .brand2 { display: flex; align-items: center; gap: 11px; position: relative; }
.auth-side .brand2 .mark { width: 36px; height: 36px; border-radius: 9px; background: #fff; color: var(--green-d); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.auth-side .brand2 b { font-family: var(--serif); font-size: 20px; }
.auth-side h2 { font-family: var(--serif); font-size: 30px; line-height: 1.4; margin: auto 0 0; position: relative; font-weight: 700; }
.auth-side p { color: rgba(255, 255, 255, .78); font-size: 14px; position: relative; margin: 14px 0 0; }
.auth-side .feats { position: relative; margin: 26px 0 0; padding: 0; list-style: none; }
.auth-side .feats li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: rgba(255, 255, 255, .9); margin-bottom: 10px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 30px; background: var(--paper); }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { font-family: var(--serif); font-size: 27px; margin: 0 0 6px; font-weight: 700; }
.auth-box .sub { color: var(--ink-3); font-size: 13.5px; margin: 0 0 26px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 46px; padding: 0 13px; border-radius: 10px;
  border: 1px solid var(--line-2); background: #fff; font-size: 14.5px;
  font-family: var(--sans); color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 107, 58, .12); }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.code-btn { height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--green); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.code-btn:hover { border-color: var(--green); }
.code-btn[disabled] { color: var(--ink-3); cursor: not-allowed; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); margin: 4px 0 18px; }
.agree input { margin-top: 3px; }
.auth-alt { text-align: center; font-size: 13.5px; color: var(--ink-3); margin-top: 22px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12.5px; margin: 22px 0; }
.divider::before, .divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.wx-row { display: flex; gap: 12px; }
.wx-btn {
  flex: 1; height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.wx-btn:hover { border-color: #1aad19; color: #1aad19; }
.wx-btn svg { flex: none; }
/* 注册页：微信关注注册主卡片（微信优先） */
.wx-hero {
  background: linear-gradient(180deg, #f0f9f2, #e6f4ea);
  border: 1px solid #cfe3d6; border-radius: var(--radius);
  padding: 20px 18px 16px; text-align: center; margin-bottom: 4px;
  counter-reset: wxs;
}
.wx-hero .wx-ico {
  width: 52px; height: 52px; border-radius: 50%; background: #1aad19;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
  box-shadow: 0 6px 14px rgba(26, 170, 25, .28);
}
.wx-hero .wx-t { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.wx-hero .wx-d { font-size: 13px; color: var(--ink-2); line-height: 1.65; margin: 0 0 14px; }
.wx-hero .btn-wx {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #1aad19; color: #fff; border: 1px solid #1aad19;
}
.wx-hero .btn-wx:hover { background: #17920f; border-color: #17920f; color: #fff; }
.wx-hero .wx-steps {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: flex; justify-content: center; gap: 8px;
}
.wx-hero .wx-steps li {
  flex: 1; position: relative; padding: 24px 2px 0;
  font-size: 12px; color: var(--ink-3); line-height: 1.5;
}
.wx-hero .wx-steps li::before {
  content: counter(wxs); counter-increment: wxs;
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%; background: #1aad19; color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
/* 登录页：邮箱登录折叠区（微信优先） */
.mail-fold { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 2px; }
.mail-fold > summary {
  cursor: pointer; list-style: none; padding: 14px 0 4px;
  font-size: 13.5px; color: var(--ink-2); text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.mail-fold > summary::-webkit-details-marker { display: none; }
.mail-fold > summary::after {
  content: ''; width: 7px; height: 7px; border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-1px);
  transition: transform .18s; margin-left: 2px;
}
.mail-fold[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.mail-fold > summary:hover { color: var(--green); }
.mail-fold-body { padding-top: 8px; }
.qr-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 22px; text-align: center; box-shadow: var(--shadow-s);
}
.qr-card .qr {
  width: 168px; height: 168px; margin: 0 auto 14px; border-radius: 10px;
  background: #f4f4f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='168'%3E%3Crect width='168' height='168' fill='%23fafafa'/%3E%3Cg fill='%231aad19'%3E%3Crect x='16' y='16' width='38' height='38'/%3E%3Crect x='114' y='16' width='38' height='38'/%3E%3Crect x='16' y='114' width='38' height='38'/%3E%3C/g%3E%3Cg fill='%23333'%3E%3Crect x='64' y='30' width='10' height='10'/%3E%3Crect x='86' y='30' width='10' height='10'/%3E%3Crect x='64' y='52' width='10' height='10'/%3E%3Crect x='96' y='52' width='10' height='10'/%3E%3Crect x='30' y='64' width='10' height='10'/%3E%3Crect x='52' y='74' width='10' height='10'/%3E%3Crect x='74' y='64' width='10' height='10'/%3E%3Crect x='96' y='74' width='10' height='10'/%3E%3Crect x='118' y='64' width='10' height='10'/%3E%3Crect x='140' y='74' width='10' height='10'/%3E%3Crect x='30' y='96' width='10' height='10'/%3E%3Crect x='52' y='106' width='10' height='10'/%3E%3Crect x='74' y='96' width='10' height='10'/%3E%3Crect x='96' y='106' width='10' height='10'/%3E%3Crect x='118' y='96' width='10' height='10'/%3E%3Crect x='140' y='106' width='10' height='10'/%3E%3Crect x='64' y='118' width='10' height='10'/%3E%3Crect x='86' y='118' width='10' height='10'/%3E%3Crect x='64' y='140' width='10' height='10'/%3E%3Crect x='96' y='140' width='10' height='10'/%3E%3Crect x='118' y='140' width='10' height='10'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.qr-card b { font-size: 14.5px; }
.qr-card p { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); }

/* ---------------- 提示条 ---------------- */
.alert { border-radius: 10px; padding: 12px 15px; font-size: 13.5px; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.alert.ok { background: var(--green-l); border: 1px solid #cfe3d6; color: #14472a; }
.alert.warn { background: #fdf6e6; border: 1px solid #f0dcae; color: #7a5416; }
.alert.err { background: var(--red-l); border: 1px solid #f3cdcc; color: #8a2024; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .hero-in { grid-template-columns: 1fr; gap: 44px; padding: 56px 0 64px; }
  .hero h1 { font-size: 40px; }
  .cards, .shots, .foot-in { grid-template-columns: repeat(2, 1fr); }
  .stats-in { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3n) { border-right: 0; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { padding: 40px 30px; }
  .auth-side h2 { margin: 26px 0 0; font-size: 24px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  .nav-menu { display: none; }
  .cards, .shots, .foot-in { grid-template-columns: 1fr; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .hero h1 { font-size: 33px; }
  .log-item { grid-template-columns: 1fr; gap: 8px; }
  .dl-top { flex-wrap: wrap; }
  .dl-meta { margin-left: 0; text-align: left; }
}

/* =============================================================
   v1.1 新增（2026-09-17）
   ① 互动卡片展示（汉字卡 / 单词卡）
   ② 微信公众号（二维码 + 关注链接）
   ③ 访问统计条
   ============================================================= */

/* ---------------- ① 互动卡片 ---------------- */
.section.tint { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.inter { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.inter-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-s); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .22s, border-color .2s;
}
.inter-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.inter-shot {
  padding: 28px 28px 22px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(31, 107, 58, .05), rgba(31, 107, 58, 0) 72%),
    repeating-linear-gradient(0deg, #f5f2ea 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, #f5f2ea 0 1px, transparent 1px 26px),
    #fdfcf8;
}
.inter-shot img {
  max-height: 328px; width: auto; border-radius: 12px;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff;
}
.inter-body { padding: 22px 26px 26px; flex: 1 1 auto; }
.inter-body h3 { font-family: var(--serif); font-size: 20px; margin: 0; letter-spacing: .3px; }
.inter-body .desc { color: var(--ink-2); font-size: 13.8px; margin: 10px 0 15px; }
.inter-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.inter-body li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--ink-2); }
.inter-body li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--green); opacity: .55;
}
.inter-item.red li::before { background: var(--red); }

/* ---------------- ② 微信公众号 ---------------- */
.wx {
  display: grid; grid-template-columns: 268px 1fr; gap: 44px; align-items: center;
  background: linear-gradient(150deg, #1f6b3a 0%, #14472a 100%);
  color: #fff; border-radius: var(--radius-l); padding: 42px 46px;
  box-shadow: var(--shadow-l); position: relative; overflow: hidden;
}
.wx::after {
  content: ""; position: absolute; right: -80px; bottom: -100px; width: 330px; height: 330px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 70%);
}
.wx-qr {
  background: #fff; border-radius: var(--radius); padding: 12px;
  box-shadow: var(--shadow-l); position: relative; z-index: 1;
}
.wx-qr img { width: 100%; border-radius: 8px; }
.wx-qr .cap { text-align: center; font-size: 12.5px; color: var(--ink-3); padding: 10px 0 3px; }
.wx-body { position: relative; z-index: 1; }
.wx-body h3 { font-family: var(--serif); font-size: 26px; margin: 0 0 12px; letter-spacing: .5px; }
.wx-body p { color: #cfe0d5; margin: 0 0 18px; font-size: 14.5px; }
.wx-list {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin: 0 0 24px; padding: 0; list-style: none; font-size: 13.5px; color: #dcebe2;
}
.wx-list li { display: flex; align-items: center; gap: 7px; }
.wx-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { background: #f2f7f4; color: var(--green-d); }
/* 深色底上的描边按钮（不能用 .btn-ghost：它是白底，白字会看不见） */
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-white:hover { background: rgba(255, 255, 255, .13); color: #fff; border-color: #fff; }
.wx-note { font-size: 12px; color: #9dbdac; margin: 15px 0 0; }

/* ---------------- ③ 访问统计条 ---------------- */
.visit { border-top: 1px solid var(--line); background: #fff; }
.visit-in {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 48px; padding: 22px 0;
}
.visit-i { display: flex; align-items: baseline; gap: 9px; font-size: 12.8px; color: var(--ink-3); }
.visit-i b { font-family: var(--serif); font-size: 21px; color: var(--green); letter-spacing: .5px; }
.visit-i.hide { display: none; }

/* ---------------- v1.1 响应式 ---------------- */
@media (max-width: 1024px) {
  .inter { grid-template-columns: 1fr; }
  .wx { grid-template-columns: 1fr; gap: 30px; padding: 34px 30px; }
  .wx-qr { max-width: 236px; margin: 0 auto; }
}@media (max-width: 680px) {
  .inter-shot { padding: 20px 18px 16px; }
  .inter-shot img { max-height: 250px; }
  .inter-body { padding: 18px 18px 22px; }
  .visit-in { gap: 10px 26px; }
}

/* =============================================================
   登录 / 注册 / 激活 页面（PHP 版使用；由设计稿内联样式收编而来）
   ============================================================= */
.tabbar { display: flex; gap: 26px; border-bottom: 1px solid #e6e1d6; margin-bottom: 26px; }
.tabbar a { font-size: 15.5px; font-weight: 600; color: #8d8e83; padding-bottom: 11px; border-bottom: 2px solid transparent; }
.tabbar a:hover { color: var(--ink); }
.tabbar a.on { color: #1f6b3a; border-bottom-color: #1f6b3a; }

.cap-row { display: flex; gap: 10px; align-items: flex-start; }
.cap-row input { flex: 1; }
.cap-row img.cap-img {
  width: 108px; height: 46px; border: 1px solid #d8d2c4; border-radius: 10px;
  background: #f4f1e9; cursor: pointer; flex: none;
}

.mail-ico {
  width: 56px; height: 56px; border-radius: 16px; background: var(--green-l); color: var(--green);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}

/* 表单里的即时错误提示 */
.field .err { font-size: 12px; color: var(--red); margin-top: 5px; }
.field input.has-err { border-color: #e39a98; }


/* =============================================================
   功能介绍页（features.php）· v1.2.4 新增
   ============================================================= */

/* 窄版首屏 */
.hero-slim { padding: 64px 0 56px; text-align: left; }
.hero-slim .lead { max-width: 720px; }
.hero-slim .hero-actions { margin-top: 26px; }

/* 页内锚点导航（吸顶，位于主导航下方） */
.fnav {
  position: sticky; top: 66px; z-index: 40;
  background: rgba(251, 249, 244, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.fnav-in { display: flex; gap: 4px; overflow-x: auto; height: 48px; align-items: stretch; }
.fnav-in a {
  display: flex; align-items: center; padding: 0 14px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.fnav-in a:hover { color: var(--green-d); background: var(--paper-3); }

/* 30 秒看懂 / 规格表 */
.qtable-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-s); overflow-x: auto;
}
.qtable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.qtable th, .qtable td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.qtable thead th {
  background: var(--paper-2); font-family: var(--serif); font-size: 13.5px;
  color: var(--ink-2); letter-spacing: .5px; white-space: nowrap;
}
.qtable tbody tr:last-child th, .qtable tbody tr:last-child td { border-bottom: 0; }
.qtable tbody tr:hover { background: #fcfbf7; }
.qtable td.hl { position: relative; padding-left: 30px; }
.qtable td.hl::before {
  content: '新'; position: absolute; left: 4px; top: 12px;
  font-size: 10px; font-weight: 700; color: #fff; background: var(--red);
  border-radius: 4px; padding: 1px 5px; line-height: 1.4; letter-spacing: 1px;
}
.qtable.spec th {
  width: 172px; font-family: var(--serif); color: var(--ink); white-space: nowrap;
  background: var(--paper-2); font-size: 13.5px;
}
.qtable code {
  font-family: Consolas, monospace; font-size: 12.5px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--ink-2);
}

/* 三科详解：图文交错块 */
.fblock {
  display: grid; grid-template-columns: 1.08fr 1fr; gap: 38px; align-items: center;
  padding: 34px 0;
}
.fblock + .fblock { border-top: 1px dashed var(--line-2); }
.fblock.rev .fb-shot { order: 2; }
.fb-shot img {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: var(--shadow); background: #fff;
}
.fb-body h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 10px; letter-spacing: .5px; }
.fb-body p { color: var(--ink-2); margin: 0 0 12px; font-size: 14.5px; }
.fb-body ul { margin: 0; padding: 0; list-style: none; }
.fb-body li {
  position: relative; padding: 5px 0 5px 24px; font-size: 14px; color: var(--ink-2);
}
.fb-body li::before {
  content: ''; position: absolute; left: 4px; top: 14px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--green); opacity: .75;
  transform: rotate(45deg);
}
.fb-body li b { color: var(--ink); }

/* 拼读 7 组版式网格 */
.ph-grid-wrap { margin-top: 34px; padding-top: 30px; border-top: 1px dashed var(--line-2); }
.ph-title { font-family: var(--serif); font-size: 18px; margin: 0 0 18px; text-align: center; color: var(--ink); }
.ph-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.ph-grid figure {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
  overflow: hidden; box-shadow: var(--shadow-s); transition: transform .15s, box-shadow .15s;
}
.ph-grid figure:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ph-grid img { width: 100%; height: 200px; object-fit: cover; object-position: top center; }
.ph-grid figcaption {
  padding: 9px 12px; font-size: 12.5px; color: var(--ink-2);
  border-top: 1px solid var(--line); text-align: center;
}

/* 双图卡片（汉字卡 / 单词卡） */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 30px; }
.duo-item {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-s);
}
.duo-item img { width: 100%; max-height: 320px; object-fit: cover; object-position: top center; }
/* 界面截图型组图：完整显示，不裁切（如数学立体图形展开图） */
.duo.duo-fit .duo-item img { max-height: none; object-fit: contain; object-position: center; }
.duo-item figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--ink-2); border-top: 1px solid var(--line); }
.duo-item figcaption b { color: var(--green-d); margin-right: 6px; }

/* FAQ */
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 16px 20px; margin-bottom: 12px;
}
.faq-item h4 {
  margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); letter-spacing: .3px;
}
.faq-no {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-l); color: var(--green); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-family: var(--sans);
}
.faq-item p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* 底部 CTA 卡 */
.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, #1f6b3a 0%, #14472a 100%);
  border-radius: var(--radius-l); padding: 34px 38px; color: #fff;
  box-shadow: var(--shadow-l);
}
.cta-card h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 24px; letter-spacing: 1px; }
.cta-card p { margin: 0; color: #d9e8df; font-size: 14.5px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-card .btn-primary { background: #fff; color: var(--green-d); box-shadow: 0 2px 0 #d8d2c4; }
.cta-card .btn-primary:hover { background: #f1f6f2; color: var(--green-d); }
.cta-card .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.cta-card .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* 导航当前页高亮 */
.nav-menu a.cur { color: var(--green-d); background: var(--green-l); }

/* 新增功能徽章（功能介绍页 · 板块标题旁的小红标） */
.fb-body h3 .fb-new {
  display: inline-block; vertical-align: 3px; margin-left: 7px;
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .6px;
  color: #fff; background: var(--red); border-radius: 999px; padding: 2px 9px;
}

/* 宽幅截图（省心设计 · 自动更新提示） */
.wide-shot { margin: 0 0 30px; }
.wide-shot img {
  display: block; width: 100%; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-s);
}
.wide-shot figcaption {
  padding: 13px 6px 0; font-size: 13.5px; color: var(--ink-2); text-align: center;
}
.wide-shot figcaption b { color: var(--green-d); margin-right: 6px; }

/* 响应式 */
@media (max-width: 900px) {
  .fblock { grid-template-columns: 1fr; gap: 20px; padding: 26px 0; }
  .fblock.rev .fb-shot { order: 0; }
  .ph-grid { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; }
  .fnav { top: 58px; }
}
@media (max-width: 560px) {
  .ph-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 26px 22px; }
}

/* ==========================================================================
   素材下载页（v1.3.0 materials.php）
   ========================================================================== */
.mat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 26px; }
.mat-tabs a {
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 18px; transition: all .15s;
}
.mat-tabs a:hover { color: var(--green-d); border-color: var(--green); }
.mat-tabs a.on { color: #fff; background: var(--green); border-color: var(--green); }

.mat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.mat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-s); display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.mat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.mat-thumb { position: relative; margin: 0; background: var(--paper-2); height: 250px; overflow: hidden; }
.mat-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mat-thumb-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 13px;
}
.mat-badge {
  position: absolute; left: 10px; top: 10px;
  font-size: 11.5px; font-weight: 700; color: #fff; background: var(--green-d);
  border-radius: 6px; padding: 3px 9px; letter-spacing: .5px;
}

.mat-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1 1 auto; }
.mat-body h3 { font-family: var(--serif); font-size: 17px; margin: 0; font-weight: 700; line-height: 1.45; }
.mat-body p { margin: 7px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.mat-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.mat-meta span {
  font-size: 11.5px; color: var(--ink-3); background: var(--paper-2);
  border-radius: 4px; padding: 2px 8px;
}
.mat-actions { margin-top: auto; padding-top: 14px; }

.btn-lock {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-3); background: transparent;
  border: 1.5px dashed var(--line-2); border-radius: 10px; transition: all .15s;
}
.btn-lock:hover { color: var(--green-d); border-color: var(--green); background: var(--green-l); }

.mat-empty {
  max-width: 460px; margin: 30px auto; text-align: center;
  background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius);
  padding: 46px 30px;
}
.mat-empty .ico {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 16px;
  background: var(--green-l); color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.mat-empty h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 8px; }
.mat-empty p { color: var(--ink-2); font-size: 13.5px; margin: 0 0 20px; }

.mat-cta { background: var(--green-d); padding: 44px 0; }
.mat-cta-in { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.mat-cta-in > div:first-child { flex: 1 1 380px; }
.mat-cta-in h3 { color: #fff; font-family: var(--serif); font-size: 22px; margin: 0 0 8px; letter-spacing: .5px; }
.mat-cta-in p { color: #cfe0d5; font-size: 14px; margin: 0; }
.mat-cta .btn-primary { background: #fff; color: var(--green-d); box-shadow: 0 2px 0 #d8d2c4; }
.mat-cta .btn-primary:hover { background: #f1f6f2; color: var(--green-d); }
.mat-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.mat-cta .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

@media (max-width: 1024px) {
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mat-grid { grid-template-columns: 1fr; }
  .mat-cta-in { flex-direction: column; align-items: flex-start; }
}

/* 缩略图大图弹窗（点击缩略图打开） */
.mat-thumb.can-zoom { cursor: zoom-in; }
.mat-lb {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 999;
  background: rgba(16, 22, 18, .88);
  display: flex; align-items: center; justify-content: center; padding: 34px;
  opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s;
}
.mat-lb.on { opacity: 1; visibility: visible; }
.mat-lb img {
  max-width: min(1100px, 92vw); max-height: 86vh;
  border-radius: 10px; box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
  display: block; cursor: zoom-out;
}
.mat-lb-x {
  position: absolute; top: 18px; right: 22px; width: 42px; height: 42px;
  border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14);
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mat-lb-x:hover { background: rgba(255, 255, 255, .28); }
