/* ============================================================
   射命丸文主题（只给 iPhone Duo / ?theme=aya）
   壁纸：湖畔树下读书的文 —— 小红帽（头巾）+ 三颗白绒球、红米格纹围巾、橄榄棕开衫、白衬衫、
         黑短裙白蕾丝、黑裤袜、红色高跟木屐；远处是湖、山和红魔馆，湖边有妖精，风里飘着柳叶
   设计：她是鸦天狗记者 → 整套 UI 是《文々。新聞》：报头、人物专访、拍立得照片、文化版
   配色：墨黑 #1F1B16 / 新闻纸米白 #F4EEDF（围巾的米色）/ 天狗红 #B8352B（头巾、围巾）
         橄榄棕 #6B604C（开衫）/ 湖水青 #3F7F82 / 草地黄绿 #A9B94A
   四种状态：html.aya-outer（折叠外屏）/ html.aya-inner（展开内屏）× (orientation)
   所有规则都以 html.aya 开头；另外三套主题的样式表在文主题下被 aya-detect.js 关掉
   ============================================================ */

html.aya {
  /* 安全区（灵动岛 / 底部横条）：统一走这四个变量，本地 duo-demo.html 也靠它们模拟真机 */
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --ink: #1F1B16;
  --ink-2: #4A4236;
  --paper: #F4EEDF;
  --red: #B8352B;
  --red-d: #8F2A22;
  --olive: #6B604C;
  --teal: #3F7F82;
  --lime: #A9B94A;
  --cream: #E9DBB4;
  --text: var(--ink);
  --muted: var(--ink-2);
  --accent: var(--red);
  --page-bg: #C9D6C2;
  --card-line: rgba(31, 27, 22, .55);
  --patch: rgba(246, 240, 226, .28);
  color-scheme: light;
}
/* 字号：外屏竖 466px 宽 → 16px；内屏竖 626px → 约 17px；横屏按高度 */
html.aya.aya-outer { font-size: 16px; }
html.aya.aya-inner { font-size: clamp(16px, 2.75vw, 18.5px); }
@media (orientation: landscape) {
  html.aya.aya-inner { font-size: clamp(15.5px, 2.65vh, 17.5px); }
  html.aya.aya-outer { font-size: 15px; }
}

html.aya body { background: var(--page-bg); color: var(--ink); overflow-x: hidden; }

/* 不属于这个主题的东西一律隐藏 */
html.aya :is(.type-deco, .nametag, .shimenawa, .doodle, .profile-duck, .avatar-petals, .starclock, .quick, .credit, .lt-deco) { display: none !important; }
html.aya .side { display: contents; }

/* ---------- 壁纸：按状态换图（aya-detect.js），铺满；上下各压一层很淡的过渡，给报头和底部文字托底 ---------- */
html.aya .bg picture { position: static !important; width: 100% !important; height: 100% !important; }
html.aya .bg img {
  width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: 50% 50% !important;
  -webkit-mask-image: none !important; mask-image: none !important; filter: none !important; transform: none !important;
}
html.aya .bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(244, 238, 223, 0) 80%, rgba(31, 27, 22, .1) 100%);
}

/* ---------- 风和柳叶：壁纸里本来就有飘着的叶子，让它们动起来 ---------- */
html.aya .rain {
  display: block !important; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(90deg, transparent 0 30%, rgba(255, 255, 255, .55) 40%, transparent 50%),
    linear-gradient(90deg, transparent 0 55%, rgba(255, 255, 255, .4) 62%, transparent 70%);
  background-size: 60vw 1.5px, 45vw 1px; background-repeat: no-repeat;
  background-position: -60vw 22%, -45vw 41%;
  animation: aya-wind 7s linear infinite;
}
@keyframes aya-wind {
  0% { background-position: -60vw 22%, -45vw 41%; }
  60%, 100% { background-position: 120vw 26%, 120vw 44%; }
}
html.aya .petals { display: block !important; position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
html.aya .petals i {
  position: absolute; left: -6vw; width: .42rem; height: 1.25rem; border-radius: 0 100% 0 100%;
  background: linear-gradient(160deg, #D7DF7A, #8FA63A); opacity: .85;
  animation: aya-leaf linear infinite;
}
html.aya .petals i:nth-child(1)  { top: 8%;  animation-duration: 13s; animation-delay: -1s; }
html.aya .petals i:nth-child(2)  { top: 18%; animation-duration: 16s; animation-delay: -7s; transform: scale(.8); }
html.aya .petals i:nth-child(3)  { top: 30%; animation-duration: 12s; animation-delay: -4s; }
html.aya .petals i:nth-child(4)  { top: 40%; animation-duration: 18s; animation-delay: -11s; }
html.aya .petals i:nth-child(5)  { top: 52%; animation-duration: 14s; animation-delay: -2s; }
html.aya .petals i:nth-child(6)  { top: 12%; animation-duration: 15s; animation-delay: -9s; }
html.aya .petals i:nth-child(7)  { top: 63%; animation-duration: 17s; animation-delay: -5s; }
html.aya .petals i:nth-child(8)  { top: 25%; animation-duration: 19s; animation-delay: -14s; }
html.aya .petals i:nth-child(9)  { top: 72%; animation-duration: 13s; animation-delay: -8s; }
html.aya .petals i:nth-child(10) { /* 偶尔飘过一根鸦天狗的黑羽毛 */
  top: 35%; width: .55rem; height: 1.7rem; border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%;
  background: linear-gradient(90deg, #2A2520, #1F1B16 45%, #3A342C 50%, #1F1B16 55%); opacity: .9;
  animation-duration: 24s; animation-delay: -16s;
}
@keyframes aya-leaf {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(30vw, 6vh) rotate(160deg); }
  50%  { transform: translate(60vw, 2vh) rotate(320deg); }
  75%  { transform: translate(85vw, 12vh) rotate(470deg); }
  100% { transform: translate(115vw, 18vh) rotate(640deg); }
}

/* ============================================================
   通用部件
   ============================================================ */
html.aya .card {
  position: relative;
  background: rgba(246, 240, 226, calc(.1 + .12 * var(--read, 0)));
  border: 1px solid var(--card-line); border-top: 3px double var(--ink);
  border-radius: .3rem;
  box-shadow: 0 .35rem 1rem rgba(31, 27, 22, .08);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background-color .35s ease;
}
html.aya .page { text-shadow: 0 0 .3rem rgba(246, 240, 226, .95), 0 0 .12rem rgba(246, 240, 226, .95); }
/* 文字背后的局部模糊块（参考手机主题：轻、羽化，滑到阅读位置稍微加深） */
html.aya :is(.profile-id, .bio, .facts, .mf-body, .links-title) { position: relative; }
html.aya :is(.profile-id, .bio, .facts, .mf-body, .links-title)::before {
  content: ""; position: absolute; inset: -.3rem -.55rem; z-index: -1; border-radius: .7rem; pointer-events: none;
  background: var(--patch);
  -webkit-backdrop-filter: blur(calc(1px + 1.5px * var(--read, 0))); backdrop-filter: blur(calc(1px + 1.5px * var(--read, 0)));
  -webkit-mask: linear-gradient(90deg, transparent, #000 1rem, #000 calc(100% - 1rem), transparent),
                linear-gradient(transparent, #000 .55rem, #000 calc(100% - .55rem), transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}

/* 版面标签：红底白字的小签条，像报纸的栏目名 */
html.aya .aya-kicker, html.aya .mf-kicker {
  display: inline-block; font-size: .76rem; letter-spacing: .16em; line-height: 1;
  padding: .32rem .7rem .3rem; background: var(--red); color: var(--paper); text-shadow: none;
  box-shadow: .15rem .15rem 0 var(--ink);
}
html.aya .aya-kicker { position: absolute; top: -.85rem; left: 1rem; z-index: 2; }

/* ---------- 报头《文々。新聞》 ---------- */
html.aya .aya-mast {
  /* 报头不模糊、不铺底：天空直接露出来，文字靠光晕读；只有内容滑到报头下面时才托一层纸底（见下） */
  display: grid; justify-items: center; text-align: center; gap: .1rem; color: var(--ink);
  text-shadow: 0 0 .35rem rgba(246, 240, 226, .95), 0 0 .12rem rgba(246, 240, 226, .95);
  padding: .5rem 1rem .45rem;
  background: rgba(244, 238, 223, 0);
  border-bottom: 3px double rgba(31, 27, 22, .8);
  transition: background-color .3s ease;
}
/* 迷你报头（灵动岛两侧）：没有底色，只靠米白光晕；平时藏着，滑动后淡入 */
html.aya .aya-island {
  display: grid; pointer-events: none; color: var(--ink);
  font-size: .95rem; line-height: 1; letter-spacing: .08em; white-space: nowrap;
  text-shadow: 0 0 .35rem rgba(246, 240, 226, .95), 0 0 .15rem rgba(246, 240, 226, .95), 0 0 .05rem rgba(246, 240, 226, 1);
  opacity: 0; transform: translateY(-.5rem); transition: opacity .3s ease, transform .3s ease;
}
html.aya .ai-b { color: var(--red); }
html.aya { --island-w: 126px; }
html.aya .am-meta { display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: .68rem; color: var(--ink-2); letter-spacing: .06em; }
html.aya .am-feather { width: .5rem; height: 1.3rem; transform: rotate(78deg); margin: -.45rem 0; }
html.aya .am-title { font-size: 2.15rem; line-height: 1.05; letter-spacing: .14em; padding-left: .14em; transition: font-size .3s ease; }
html.aya .am-sub { display: flex; align-items: center; gap: .6rem; }
html.aya .am-latin { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: .85rem; color: var(--olive); letter-spacing: .08em; }
html.aya .am-extra {
  font-size: .78rem; color: var(--red); border: 2px solid var(--red); padding: .05rem .45rem; letter-spacing: .2em;
  transform: rotate(-5deg); border-radius: .15rem;
}

/* ---------- 人物专访（个人卡） ---------- */
html.aya .profile { padding: 1.5rem 1.25rem 1.2rem; }
html.aya .profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "av id" "av lang"; column-gap: 1.1rem; row-gap: .5rem; align-items: center; margin-bottom: .9rem; }
html.aya .avatar-wrap { grid-area: av; position: relative; width: 6.3rem; height: 6.3rem; display: block; cursor: pointer; margin: .5rem .3rem 1rem .4rem; }
html.aya .avatar {
  width: 100%; height: 100%; display: block; border-radius: .15rem; object-fit: cover; background: #fff;
  border: .32rem solid #FBF8F0; box-shadow: 0 .35rem .9rem rgba(31, 27, 22, .3);
  transform: rotate(-2.5deg);
}
html.aya .profile-id { grid-area: id; align-self: end; }
html.aya .profile h1 {
  margin: 0; font-size: 2.35rem; line-height: 1.05; letter-spacing: .02em;
  background: linear-gradient(transparent 68%, rgba(184, 53, 43, .28) 68%, rgba(184, 53, 43, .28) 90%, transparent 90%);
  width: fit-content; padding-right: .2rem;
}
html.aya .tagline { margin: .35rem 0 0; font-size: .92rem; color: var(--olive); }
html.aya .profile-head .lang-switch { grid-area: lang; justify-self: start; align-self: start; }
html.aya .lang-switch { display: inline-flex; gap: .1rem; padding: .16rem; border-radius: 999px; border: 1.5px solid var(--ink); background: rgba(246, 240, 226, .65); }
html.aya .lang-switch button { border: 0; background: transparent; cursor: pointer; font-size: .78rem; line-height: 1; padding: .42rem .65rem; border-radius: 999px; color: var(--ink); }
html.aya .lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); text-shadow: none; }

/* 头像特效：相机取景框（四角括号、REC 闪烁、对焦框、光圈快门参数），点一下会「按快门」 */
html.aya .vf-frame {
  display: block; position: absolute; inset: -.6rem; pointer-events: none; color: var(--red);
  background:
    linear-gradient(currentColor, currentColor) left top / 1.1rem 2px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 2px 1.1rem no-repeat,
    linear-gradient(currentColor, currentColor) right top / 1.1rem 2px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 2px 1.1rem no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 1.1rem 2px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 2px 1.1rem no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 1.1rem 2px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 2px 1.1rem no-repeat;
  animation: vf-breathe 3s ease-in-out infinite;
}
@keyframes vf-breathe { 0%, 100% { inset: -.6rem; } 50% { inset: -.42rem; } }
html.aya .vf-frame i { position: absolute; font-style: normal; text-shadow: none; }
html.aya .vf-rec { top: -1.05rem; right: .05rem; font-size: .58rem; letter-spacing: .12em; color: var(--red); display: flex; align-items: center; gap: .25rem; }
html.aya .vf-rec::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: var(--red); animation: vf-blink 1.2s steps(2, start) infinite; }
@keyframes vf-blink { to { visibility: hidden; } }
html.aya .vf-focus { left: 50%; top: 50%; width: 1.5rem; height: 1.5rem; margin: -.75rem 0 0 -.75rem; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: .1rem; box-shadow: 0 0 0 1px rgba(31, 27, 22, .35); opacity: .75; }
html.aya .vf-focus::before, html.aya .vf-focus::after { content: ""; position: absolute; background: rgba(255, 255, 255, .85); }
html.aya .vf-focus::before { left: 50%; top: -.35rem; bottom: -.35rem; width: 1px; }
html.aya .vf-focus::after { top: 50%; left: -.35rem; right: -.35rem; height: 1px; }
html.aya .vf-meta { left: 0; right: 0; bottom: -1.15rem; text-align: center; font-size: .56rem; letter-spacing: .1em; color: var(--ink-2); white-space: nowrap; }
html.aya .avatar-wrap:hover .vf-frame { color: var(--teal); }
html.aya .avatar-wrap.snapping .vf-frame { animation: vf-snap .55s ease-out; }
html.aya .avatar-wrap.snapping .vf-focus { animation: vf-focus .55s ease-out; }
html.aya .avatar-wrap.snapping .avatar { animation: vf-shake .3s ease-out; }
html.aya .avatar-wrap.snapping::after {
  content: attr(data-snap); position: absolute; top: -1.6rem; right: -1.6rem; z-index: 3;
  font-size: .85rem; padding: .15rem .55rem; background: var(--paper); color: var(--red); border: 1.5px solid var(--ink);
  border-radius: .8rem .8rem .8rem .1rem; text-shadow: none; animation: vf-pop .9s ease-out forwards;
}
@keyframes vf-snap { 0% { inset: -.6rem; } 35% { inset: -.15rem; color: #fff; } 100% { inset: -.6rem; } }
@keyframes vf-focus { 0% { transform: scale(1.8); opacity: 0; } 60% { transform: scale(1); opacity: 1; border-color: #7CFC9A; } 100% { opacity: .75; } }
@keyframes vf-shake { 50% { transform: rotate(-2.5deg) scale(.97); } }
@keyframes vf-pop { 0% { transform: scale(.5) rotate(-8deg); opacity: 0; } 25% { transform: scale(1.1) rotate(4deg); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-.4rem); } }
html.aya .aya-flash { display: block; position: fixed; inset: 0; z-index: 60; pointer-events: none; background: #fff; opacity: 0; }
html.aya .aya-flash.on { animation: aya-flash .5s ease-out; }
@keyframes aya-flash { 0% { opacity: .85; } 100% { opacity: 0; } }

/* 关键词标签：红色话题 # */
html.aya .tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: .2rem 0 0; padding: 0; }
html.aya .tags li {
  font-size: .86rem; padding: .16rem .55rem; color: var(--red-d); border: 1px solid rgba(184, 53, 43, .55);
  border-radius: .2rem; background: rgba(246, 240, 226, .55);
}
html.aya .tags li::before { content: "#"; margin-right: .1rem; opacity: .7; }
html.aya .tags li:first-child { background: var(--red); color: var(--paper); border-color: var(--red); text-shadow: none; }

/* 正文：报纸首字下沉 */
html.aya .bio { margin: 1rem 0 0; font-size: 1.05rem; line-height: 1.75; }
html.aya .bio::first-letter { float: left; font-size: 2.7em; line-height: .95; margin: .08em .16em 0 0; color: var(--red); text-shadow: none; }

/* 资料：点线分隔的小表格 */
html.aya .facts { margin: .9rem 0 0; display: grid; gap: 0 1.2rem; font-size: .98rem; }
html.aya .facts div { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: .7rem; align-items: baseline; padding: .42rem 0; border-bottom: 1px dotted rgba(31, 27, 22, .45); }
html.aya:lang(en) .facts div, html.aya:lang(ja) .facts div { grid-template-columns: 7em minmax(0, 1fr); }
html.aya .facts dt { color: var(--red); font-size: .84rem; letter-spacing: .06em; white-space: nowrap; }
html.aya .facts dd { margin: 0; color: var(--ink); }

/* ---------- 联络方式：九张拍立得照片 ---------- */
html.aya .links-title { display: flex; align-items: baseline; gap: .6rem; margin: .4rem 0 1rem; padding: .3rem .1rem .35rem; border-bottom: 3px double var(--ink); }
html.aya .lt-text { font-size: 1rem; color: var(--ink); letter-spacing: .08em; }
html.aya .links-title::after { content: "CONTACT"; margin-left: auto; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: .95rem; color: var(--red); letter-spacing: .1em; }
html.aya .links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem .8rem; }
html.aya .link {
  position: relative; display: flex; flex-direction: column; align-items: stretch;
  padding: .45rem .45rem .55rem; border-radius: .12rem;
  background: rgba(252, 249, 241, .72);
  box-shadow: 0 .35rem .9rem rgba(31, 27, 22, .24);
  transform: rotate(var(--r, 0deg)); transition: transform .2s ease, box-shadow .2s ease;
  text-shadow: none;
}
html.aya .links li:nth-child(1) .link { --r: -2deg; }
html.aya .links li:nth-child(2) .link { --r: 1.5deg; }
html.aya .links li:nth-child(3) .link { --r: -1deg; }
html.aya .links li:nth-child(4) .link { --r: 1.8deg; }
html.aya .links li:nth-child(5) .link { --r: -1.4deg; }
html.aya .links li:nth-child(6) .link { --r: 1deg; }
html.aya .links li:nth-child(7) .link { --r: -1.8deg; }
html.aya .links li:nth-child(8) .link { --r: 1.2deg; }
html.aya .links li:nth-child(9) .link { --r: -.8deg; }
html.aya .link::before { /* 米色胶带（取自围巾的米色） */
  content: ""; position: absolute; top: -.5rem; left: 50%; width: 2.6rem; height: .95rem; z-index: 1;
  background: rgba(233, 219, 180, .88); transform: translateX(-50%) rotate(-4deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
html.aya .link:hover, html.aya .link:focus-visible { transform: rotate(0) translateY(-.2rem) scale(1.04); box-shadow: 0 .6rem 1.4rem rgba(31, 27, 22, .3); }
html.aya .link:active { transform: rotate(0) scale(.97); }
html.aya .chip {
  width: 100%; height: auto; aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: .08rem;
  background: radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .28), transparent 55%), var(--brand); color: #fff;
}
html.aya .chip svg { width: 46%; height: 46%; fill: currentColor; filter: drop-shadow(0 .1rem .2rem rgba(0, 0, 0, .25)); }
html.aya .link-text { display: grid; justify-items: center; text-align: center; margin-top: .45rem; line-height: 1.25; min-width: 0; }
html.aya .link-text b { font-size: .92rem; color: var(--ink); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.aya .link-text small { font-size: .74rem; color: var(--olive); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 文化版：我喜欢的音乐 ---------- */
html.aya .music-feature {
  display: grid; gap: .75rem 1rem; padding: 1.4rem 1.2rem 1.2rem;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  grid-template-areas: "covers body" "pick pick" "actions actions";
}
html.aya .mf-covers { grid-area: covers; display: block; transform: rotate(-2deg); }
html.aya .music-feature .music-covers {
  display: grid; grid-template-columns: 1fr 1fr; gap: .22rem; width: 100%; aspect-ratio: 1 / 1;
  padding: .22rem; background: #FBF8F0; box-shadow: 0 .35rem .9rem rgba(31, 27, 22, .28);
}
html.aya .music-feature .music-covers img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; margin: 0; border: 0; border-radius: 0; }
html.aya .mf-body { grid-area: body; display: grid; align-content: center; gap: .25rem; min-width: 0; }
html.aya .mf-kicker { justify-self: start; }
html.aya .mf-title { font-size: 1.38rem; line-height: 1.25; color: var(--ink); margin-top: .2rem; }
html.aya .mf-stats { font-size: .84rem; color: var(--olive); }
html.aya .mf-pick {
  grid-area: pick; display: flex; align-items: center; gap: .8rem; min-width: 0;
  padding: .55rem .7rem .55rem .55rem; border: 1.5px dashed rgba(31, 27, 22, .6); border-radius: .25rem;
  background: rgba(246, 240, 226, .28);
}
html.aya .mf-pick img { width: 3.3rem; height: 3.3rem; flex: none; object-fit: cover; border: .18rem solid #FBF8F0; box-shadow: 0 .15rem .4rem rgba(0, 0, 0, .25); }
html.aya .mf-pick-text { display: grid; min-width: 0; line-height: 1.3; }
html.aya .mf-pick-text small { font-size: .74rem; color: var(--red); letter-spacing: .08em; }
html.aya .mf-pick-text b, html.aya .mf-pick-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.aya .mf-pick-text b { font-size: 1rem; }
html.aya .mf-pick-text span { font-size: .8rem; color: var(--olive); }
html.aya .mf-actions { grid-area: actions; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
html.aya .mf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem; cursor: pointer;
  padding: .65rem .8rem; border-radius: .25rem; font-size: .95rem; border: 1.5px solid var(--red);
  background: var(--red); color: var(--paper); text-shadow: none; box-shadow: .18rem .18rem 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
html.aya .mf-btn:active { transform: translate(.15rem, .15rem); box-shadow: 0 0 0 var(--ink); }
html.aya .mf-btn-ghost { background: rgba(246, 240, 226, .7); color: var(--ink); border-color: var(--ink); }

/* ============================================================
   竖屏（折叠外屏 / 展开内屏）：第一屏完整露出壁纸和文，报头钉在天空上；
   内容从屏幕底部往上滑出来
   ============================================================ */
@media (orientation: portrait) {
  html.aya body { overflow-y: auto; }
  html.aya .page {
    position: relative; display: flex; flex-direction: column; gap: 1.6rem;
    margin: 0 auto; max-width: 34rem;
    padding: calc(100svh - 4.4rem) 1rem calc(2.2rem + var(--sab));
  }
  /* 报头印在第一屏的天空上，跟着内容一起滑走，不钉在顶部挡画面 */
  html.aya .aya-mast { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding-top: calc(.5rem + var(--sat)); }
  /* 滑下去以后：迷你报头躲到灵动岛两边（紧贴灵动岛，给系统的时间和电量留出位置） */
  html.aya .aya-island {
    position: fixed; top: 0; left: 0; right: 0; height: max(var(--sat), 2.4rem); z-index: 4;
    grid-template-columns: 1fr var(--island-w) 1fr; column-gap: .45rem; align-items: center;
  }
  html.aya .ai-a { justify-self: end; }
  html.aya .ai-b { justify-self: start; grid-column: 3; }
  html.aya body.scrolled .aya-island { opacity: 1; transform: none; }
  html.aya.aya-outer .aya-island { font-size: .85rem; column-gap: .35rem; letter-spacing: .04em; }
  html.aya .aya-cue {
    display: flex; flex-direction: column; align-items: center; gap: .1rem; margin: -1.1rem auto -.6rem;
    font-size: .82rem; color: var(--ink); letter-spacing: .12em;
    padding: .25rem .9rem .35rem; border-radius: 999px; background: rgba(244, 238, 223, .55);
    box-shadow: 0 .2rem .6rem rgba(31, 27, 22, .15); text-shadow: none;
    transition: opacity .3s ease;
  }
  html.aya .ac-arrow { color: var(--red); font-size: .9rem; line-height: 1; animation: ac-bob 1.6s ease-in-out infinite; }
  @keyframes ac-bob { 50% { transform: translateY(-.3rem); } }
  html.aya body.scrolled .aya-cue { opacity: 0; }
}
/* 展开内屏竖屏：版面宽一些，资料两栏，拍立得更大 */
@media (orientation: portrait) {
  html.aya.aya-inner .page { max-width: 40rem; padding-left: 1.4rem; padding-right: 1.4rem; }
  html.aya.aya-inner .facts { grid-template-columns: 1fr 1fr; }
  html.aya.aya-inner .facts div { grid-template-columns: 1fr; gap: .1rem; }
  html.aya.aya-inner .avatar-wrap { width: 7.2rem; height: 7.2rem; }
  html.aya.aya-inner .profile h1 { font-size: 2.6rem; }
  html.aya.aya-inner .music-feature { grid-template-columns: 8rem minmax(0, 1fr); grid-template-areas: "covers body" "covers pick" "actions actions"; }
  html.aya.aya-inner .am-title { font-size: 2.5rem; }
}

/* ============================================================
   横屏：左侧一列报纸版面（可上下滑），文和她伸出去的腿留在右下方
   ============================================================ */
@media (orientation: landscape) {
  html.aya body { overflow: hidden; }
  html.aya .page {
    position: fixed; top: 0; left: 0; bottom: 25vh; width: 47vw; z-index: 1;
    display: flex; flex-direction: column; gap: 1.5rem;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
    padding: var(--sat) 1rem calc(1.6rem + var(--sab)) max(1rem, var(--sal));
    -webkit-mask-image: linear-gradient(#000 calc(100% - 1.4rem), transparent);
            mask-image: linear-gradient(#000 calc(100% - 1.4rem), transparent);
  }
  html.aya .page::-webkit-scrollbar { display: none; }
  html.aya .aya-mast {
    position: relative; z-index: 3; margin: 0 -1rem 0 calc(-1 * max(1rem, var(--sal)));
    padding-left: max(1rem, var(--sal));
  }
  html.aya .aya-cue { display: none; }
  /* 横屏灵动岛在左边：迷你报头竖排，分在灵动岛上下（横屏 iPhone 不显示状态栏，这条边是空的） */
  html.aya .aya-island {
    position: fixed; top: 0; bottom: 0; left: 0; width: max(var(--sal), 2.4rem); z-index: 4;
    grid-template-rows: 1fr var(--island-w) 1fr; row-gap: .5rem; justify-items: center; letter-spacing: .12em;
  }
  html.aya .aya-island span { writing-mode: vertical-rl; }
  html.aya .ai-a { align-self: end; }
  html.aya .ai-b { align-self: start; grid-row: 3; }
  html.aya body.page-scrolled .aya-island { opacity: 1; transform: none; }
  html.aya .profile { margin-top: .4rem; }
  /* 横屏版面窄而矮：拍立得的照片部分改成 4:3，少滑几下 */
  html.aya .chip { aspect-ratio: 4 / 3; }
  html.aya .chip svg { width: 38%; height: 38%; }
}
/* 折叠外屏横屏：屏幕只有 466px 高，版面加宽、部件收紧 */
@media (orientation: landscape) {
  html.aya.aya-outer .page { width: 54vw; bottom: 16vh; gap: 1.3rem; }
  html.aya.aya-outer .am-meta { display: none; }
  html.aya.aya-outer .am-title { font-size: 1.7rem; }
  html.aya.aya-outer .avatar-wrap { width: 5.4rem; height: 5.4rem; }
  html.aya.aya-outer .profile h1 { font-size: 2rem; }
  html.aya.aya-outer .links ul { gap: .8rem .7rem; }
}

/* ============================================================
   翻书加载：《文々。新聞》号外 —— 手（橄榄棕开衫 + 红格纹袖口）翻开头版，露出「特集」内页
   ============================================================ */
html.aya .hand { --sleeve: #6B604C; --cuff: #B8352B; }
html.aya .cv:not(.cv-aya), html.aya .fly:not(.fly-aya) { display: none !important; }
html.aya .cv-aya, html.aya .fly-aya { display: block !important; }
html.aya .cv-aya {
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(31, 27, 22, .08) 50%, transparent 50.4%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 100% at 50% 50%, #F6F0E1 60%, #E6DCC4 100%);
}
html.aya .np { position: absolute; inset: calc(4vmin + var(--sat)) calc(5vmin + var(--sar)) calc(4vmin + var(--sab)) calc(5vmin + var(--sal)); display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); gap: 2.2vmin; }
html.aya .np-mast { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 2vmin; }
html.aya .np-title { font-size: 12vmin; line-height: 1; letter-spacing: .12em; }
html.aya .np-meta { font-size: 2.3vmin; color: var(--ink-2); letter-spacing: .08em; padding-bottom: 1vmin; }
html.aya .np-date { text-align: right; }
html.aya .np-rule { height: 1.3vmin; border-top: .55vmin solid var(--ink); border-bottom: .22vmin solid var(--ink); }
html.aya .np-head { display: flex; align-items: center; gap: 3vmin; }
html.aya .np-extra {
  flex: none; font-size: 6.5vmin; color: var(--red); border: .7vmin solid var(--red); padding: .4vmin 2.2vmin;
  letter-spacing: .15em; transform: rotate(-8deg); border-radius: .6vmin;
  box-shadow: inset 0 0 0 .35vmin rgba(184, 53, 43, .25); opacity: .92;
}
html.aya .np-headline { font-size: 6.4vmin; line-height: 1.2; }
html.aya .np-body { display: grid; gap: 3vmin; min-height: 0; grid-template-rows: minmax(0, 1.15fr) minmax(0, 1fr); }
html.aya .np-photo { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1vmin; min-height: 0; }
html.aya .np-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border: .45vmin solid var(--ink); filter: grayscale(.85) sepia(.25) contrast(1.12); }
html.aya .np-photo figcaption { font-size: 2.4vmin; color: var(--ink-2); }
html.aya .np-cols { position: relative; min-height: 0; overflow: hidden; columns: 2; column-gap: 4vmin; column-rule: .2vmin solid rgba(31, 27, 22, .35); }
html.aya .np-lead { margin: 0 0 1.5vmin; font-size: 3.1vmin; line-height: 1.65; }
html.aya .np-lead::first-letter { float: left; font-size: 2.6em; line-height: .9; margin: .05em .12em 0 0; color: var(--red); }
html.aya .np-lines {
  display: block; height: 60vmin;
  background: repeating-linear-gradient(transparent 0 3.6vmin, rgba(31, 27, 22, .22) 3.6vmin 4.1vmin);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 88%, transparent 88% 100%); mask: repeating-linear-gradient(90deg, #000 0 88%, transparent 88% 100%);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
/* 竖屏报头：标题独占一行，期号和日期放在下面两端 */
@media (orientation: portrait) {
  html.aya .np-mast { grid-template-columns: 1fr 1fr; grid-template-areas: "title title" "issue date"; justify-items: start; }
  html.aya .np-title { grid-area: title; justify-self: center; }
  html.aya .np-mast .np-meta:first-child { grid-area: issue; }
  html.aya .np-date { grid-area: date; justify-self: end; }
}
html.aya .np-maple { position: absolute; left: -1vmin; bottom: -1vmin; width: 13vmin; height: 13vmin; color: var(--red); opacity: .85; transform: rotate(18deg); }
@media (orientation: landscape) {
  html.aya .np-title { font-size: 10vmin; }
  html.aya .np-body { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  html.aya .np-headline { font-size: 5.6vmin; }
  html.aya .np-maple { left: auto; right: 1vmin; bottom: 9vmin; }
}

html.aya .fly-aya {
  color: var(--ink); text-align: center;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(33.3% - 1px), rgba(31, 27, 22, .08) calc(33.3% - 1px) 33.3%),
    radial-gradient(120% 100% at 50% 45%, #FBF7EC 55%, #ECE3CD 100%);
}
html.aya .fly-aya > * { position: relative; }
html.aya .fly-aya { display: grid !important; place-content: center; justify-items: center; gap: 2.4vmin; }
html.aya .fa-kicker { font-size: 3vmin; letter-spacing: .3em; padding: .8vmin 2.6vmin; background: var(--red); color: var(--paper); box-shadow: .5vmin .5vmin 0 var(--ink); }
html.aya .fa-photo { position: relative; width: 30vmin; height: 30vmin; padding: 1.2vmin; background: #FFFDF6; box-shadow: 0 1.2vmin 3vmin rgba(31, 27, 22, .3); transform: rotate(-3deg); }
html.aya .fa-photo .fly-avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
html.aya .fa-corners {
  position: absolute; inset: -2.4vmin; color: var(--red);
  background:
    linear-gradient(currentColor, currentColor) left top / 4vmin .6vmin no-repeat, linear-gradient(currentColor, currentColor) left top / .6vmin 4vmin no-repeat,
    linear-gradient(currentColor, currentColor) right top / 4vmin .6vmin no-repeat, linear-gradient(currentColor, currentColor) right top / .6vmin 4vmin no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 4vmin .6vmin no-repeat, linear-gradient(currentColor, currentColor) left bottom / .6vmin 4vmin no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 4vmin .6vmin no-repeat, linear-gradient(currentColor, currentColor) right bottom / .6vmin 4vmin no-repeat;
}
html.aya .fly-aya .fly-name { font-size: 9vmin; line-height: 1; margin-top: 2vmin; }
html.aya .fly-aya .fly-line { font-size: 2.8vmin; color: var(--ink-2); letter-spacing: .15em; }
html.aya .fa-feather { position: absolute !important; right: 9vmin; bottom: 8vmin; width: 6vmin; height: 18vmin; transform: rotate(28deg); opacity: .9; }
html.aya .skip { border-color: var(--ink); background: rgba(244, 238, 223, .85); color: var(--ink); }
