/* ============================================================
   装饰层 + 各主题的平台链接造型（覆盖 home.css 的同名规则）
     雨夜：注连绳与纸垂、星月时钟、卯酉东海道车票式链接
     绘梨衣：手写涂鸦、贴纸式链接（白边 + 卷角）
     幽香：飘落的花瓣、叶子、园艺挂牌式链接
   ============================================================ */

.shimenawa, .doodle, .starclock, .petals, .quick { display: none; }
.duo { display: contents; } /* 只有雨夜横屏把歌单入口和时钟排成一行 */

@media (max-aspect-ratio: 3/5), (pointer: fine) and (max-aspect-ratio: 6/5) {
  .tags { flex-wrap: nowrap; gap: .3rem; }
  .tags li { font-size: .8rem; padding: .15rem .55rem; white-space: nowrap; }
}

/* ============================== 雨夜 ============================== */
@media (min-aspect-ratio: 17/10), (pointer: fine) and (min-aspect-ratio: 6/5) {
  .page { grid-template-rows: auto auto auto 1fr; }
  .starclock { grid-column: 1; grid-row: 3; }

  /* 注连绳 + 纸垂（博丽神社） */
  .profile { padding-top: 3.1rem; }
  .shimenawa { display: block; position: absolute; left: 1.4rem; right: 1.4rem; top: -.45rem; height: 3rem; pointer-events: none; }
  .shimenawa .rope {
    position: absolute; left: 0; right: 0; top: 0; height: .8rem; border-radius: .5rem;
    background: repeating-linear-gradient(115deg, #E6D8B4 0 .38rem, #B8A473 .38rem .5rem, #D7C79C .5rem .76rem);
    box-shadow: 0 .2rem .4rem rgba(0, 0, 0, .45), inset 0 -.15rem .2rem rgba(0, 0, 0, .25);
  }
  .shimenawa i {
    position: absolute; top: .55rem; width: 1.15rem; height: 2.6rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 50'%3E%3Cpath d='M1 0H11V12H19V25H11V37H19V50H7V40H1V28H7V15H1Z' fill='%23FAF7EE' stroke='%23C9C2B0' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 .15rem .2rem rgba(0, 0, 0, .35));
    transform-origin: top center; animation: sway 4s ease-in-out infinite;
  }
  .shimenawa i:nth-of-type(1) { left: 34%; }
  .shimenawa i:nth-of-type(2) { left: 50%; animation-delay: -1s; }
  .shimenawa i:nth-of-type(3) { left: 66%; animation-delay: -2s; }
  .shimenawa i:nth-of-type(4) { left: 82%; animation-delay: -3s; }
  @keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
  .profile-head .lang-switch { margin-top: .2rem; }

  /* 卡片上的雨滴 */
  .profile::after, .starclock::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .55;
    background:
      radial-gradient(.18rem .26rem at 12% 78%, rgba(255, 255, 255, .55), transparent 70%),
      radial-gradient(.14rem .2rem at 27% 90%, rgba(255, 255, 255, .45), transparent 70%),
      radial-gradient(.22rem .3rem at 88% 70%, rgba(255, 255, 255, .5), transparent 70%),
      radial-gradient(.12rem .18rem at 72% 94%, rgba(255, 255, 255, .45), transparent 70%),
      radial-gradient(.16rem .22rem at 56% 84%, rgba(255, 255, 255, .4), transparent 70%);
  }

  /* 星月时钟（宇佐见莲子：看星星就知道时间） */
  .starclock { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.2rem; overflow: hidden; }
  .sc-sky {
    position: absolute; inset: 0; border-radius: inherit; opacity: .8; pointer-events: none;
    background:
      radial-gradient(1px 1px at 8% 30%, #fff, transparent), radial-gradient(1px 1px at 22% 70%, #fff, transparent),
      radial-gradient(1.5px 1.5px at 35% 20%, #FCEFC8, transparent), radial-gradient(1px 1px at 47% 60%, #fff, transparent),
      radial-gradient(1px 1px at 61% 28%, #fff, transparent), radial-gradient(1.5px 1.5px at 74% 75%, #FCEFC8, transparent),
      radial-gradient(1px 1px at 86% 40%, #fff, transparent), radial-gradient(1px 1px at 93% 82%, #fff, transparent),
      radial-gradient(1px 1px at 15% 88%, #fff, transparent), radial-gradient(1px 1px at 55% 92%, #fff, transparent);
    animation: twinkle 5s ease-in-out infinite alternate;
  }
  @keyframes twinkle { from { opacity: .45; } to { opacity: .9; } }
  .sc-main { position: relative; display: grid; flex: 1; line-height: 1.1; }
  .sc-label { font-size: .7rem; color: var(--muted); letter-spacing: .2em; }
  .sc-time { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 2.5rem; color: var(--accent); text-shadow: 0 0 1rem rgba(242, 196, 109, .35); font-variant-numeric: tabular-nums; }
  .sc-date { font-size: .78rem; color: var(--muted); }
  .sc-moon { position: relative; display: grid; justify-items: center; gap: .3rem; }
  .sc-moon-disc {
    position: relative; width: 2.6rem; height: 2.6rem; border-radius: 50%; overflow: hidden;
    background: radial-gradient(circle at 35% 35%, #FFF6D8, #E8D7A6 70%);
    box-shadow: 0 0 1.2rem rgba(255, 240, 200, .35);
  }
  .sc-moon-disc::after {
    content: ""; position: absolute; inset: -1px; border-radius: 50%; background: rgba(14, 16, 26, .92);
    transform: translateX(var(--moon-x, 0%));
  }
  .sc-moon-name { font-size: .7rem; color: var(--muted); white-space: nowrap; }

  /* 车票式链接（卯酉东海道） */
  .links ul { counter-reset: tk; gap: .55rem; }
  .link {
    position: relative; padding: .55rem 2.6rem .55rem .55rem; gap: .9rem; border-radius: .55rem;
    background: linear-gradient(100deg, rgba(42, 36, 30, .14), rgba(18, 18, 28, .05));
    border: 1px solid rgba(242, 196, 109, .28);
    -webkit-mask: radial-gradient(circle .42rem at 3.05rem 0, transparent 98%, #000) top / 100% 51% no-repeat,
                  radial-gradient(circle .42rem at 3.05rem 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
            mask: radial-gradient(circle .42rem at 3.05rem 0, transparent 98%, #000) top / 100% 51% no-repeat,
                  radial-gradient(circle .42rem at 3.05rem 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  }
  .link::before { /* 撕票线 */
    content: ""; position: absolute; left: 3.05rem; top: .5rem; bottom: .5rem; border-left: 1.5px dashed rgba(242, 196, 109, .5);
  }
  .link::after { /* 票号 */
    counter-increment: tk; content: "No." counter(tk, decimal-leading-zero);
    position: absolute; right: .7rem; top: 50%; transform: translateY(-50%) rotate(90deg);
    font-family: var(--serif); font-style: italic; font-size: .72rem; color: rgba(242, 196, 109, .8); letter-spacing: .05em;
  }
  .chip {
    width: 2.05rem; height: 2.05rem; border-radius: 50%; border: 0; color: #fff;
    background: color-mix(in srgb, var(--brand) 82%, transparent);
    outline: 1px dashed rgba(242, 196, 109, .65); outline-offset: .14rem;
  }
  .chip svg { width: 1.12rem; height: 1.12rem; }
  .link-text b { font-size: .92rem; }
  .link-text small { font-family: var(--serif); font-style: italic; font-size: .82rem; letter-spacing: .02em; }
  .link:hover { transform: translateX(-.3rem); background: linear-gradient(100deg, rgba(90, 70, 40, .38), rgba(30, 24, 18, .2)); border-color: rgba(242, 196, 109, .7); box-shadow: none; }
  .link:hover .chip { background: var(--brand); }
}

/* ============================== 绘梨衣 ============================== */
@media (pointer: coarse) and (min-aspect-ratio: 3/5) and (max-aspect-ratio: 17/10) {
  .doodle { display: block; position: absolute; font-family: var(--hand); color: var(--accent); line-height: 1; pointer-events: none; }
  .doodle-hi { top: 2.6rem; right: .9rem; font-size: 1.35rem; transform: rotate(-8deg); }
  .profile-head .lang-switch { margin-right: 4.8rem; }
  .doodle-tap { position: static; margin-left: auto; font-size: 1.3rem; transform: rotate(-5deg); }
  .links-title { padding-right: .5rem; }

  /* 贴纸式链接：白色描边 + 黑线 + 卷角 */
  .link {
    position: relative; padding: .6rem .8rem; gap: .7rem;
    background: rgba(255, 255, 255, .14);
    border: .26rem solid #fff; border-radius: .9rem;
    box-shadow: 0 0 0 2px #111, .3rem .35rem 0 2px #111;
  }
  .link::after { /* 卷角 */
    content: ""; position: absolute; right: -.26rem; top: -.26rem; width: 1.2rem; height: 1.2rem;
    background: linear-gradient(225deg, var(--page-bg) 49%, #fff 50%, #E9E6E2 100%);
    border-bottom-left-radius: .5rem; box-shadow: -.12rem .12rem .2rem rgba(0, 0, 0, .25);
  }
  .chip { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: #fff; border: 2px solid #111; }
  .link-text small { font-family: var(--hand); font-size: 1rem; color: #333; letter-spacing: .01em; }
  .links li:nth-child(odd) .link { transform: rotate(-.8deg); }
  .links li:nth-child(even) .link { transform: rotate(.7deg); }
  .link:hover { transform: rotate(0) translate(-.15rem, -.2rem) scale(1.02); box-shadow: 0 0 0 2px #111, .45rem .5rem 0 2px var(--accent); }

  /* 第一枚标签用红笔圈出来 */
  .tags li:first-child { position: relative; }
  .tags li:first-child::after {
    content: ""; position: absolute; inset: -.4rem -.5rem; border: 2px solid var(--accent); border-radius: 50%;
    transform: rotate(-4deg); pointer-events: none;
  }
}

/* ============================== 幽香 ============================== */
@media (max-aspect-ratio: 3/5), (pointer: fine) and (max-aspect-ratio: 6/5) {
  /* 飘落的向日葵花瓣 */
  .petals { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
  .petals i {
    position: absolute; top: -6%; width: .7rem; height: 1.15rem; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
    background: linear-gradient(160deg, #FFD45C, #F0A800); opacity: .85;
    animation: fall linear infinite;
  }
  .petals i:nth-child(1)  { left: 6%;  animation-duration: 11s; animation-delay: -2s; }
  .petals i:nth-child(2)  { left: 18%; animation-duration: 14s; animation-delay: -9s; transform: scale(.7); }
  .petals i:nth-child(3)  { left: 29%; animation-duration: 12s; animation-delay: -5s; }
  .petals i:nth-child(4)  { left: 41%; animation-duration: 16s; animation-delay: -12s; }
  .petals i:nth-child(5)  { left: 52%; animation-duration: 13s; animation-delay: -1s; }
  .petals i:nth-child(6)  { left: 63%; animation-duration: 15s; animation-delay: -7s; }
  .petals i:nth-child(7)  { left: 72%; animation-duration: 12s; animation-delay: -10s; }
  .petals i:nth-child(8)  { left: 81%; animation-duration: 17s; animation-delay: -4s; }
  .petals i:nth-child(9)  { left: 90%; animation-duration: 13s; animation-delay: -8s; }
  .petals i:nth-child(10) { left: 96%; animation-duration: 15s; animation-delay: -13s; }
  .petals i:nth-child(3n) { background: linear-gradient(160deg, #9CC56B, #4E7D31); height: .9rem; border-radius: 0 100% 0 100%; }
  @keyframes fall {
    0%   { transform: translate(0, 0) rotate(0); }
    25%  { transform: translate(2.5rem, 28vh) rotate(120deg); }
    50%  { transform: translate(-1.5rem, 56vh) rotate(260deg); }
    75%  { transform: translate(2rem, 84vh) rotate(380deg); }
    100% { transform: translate(-.5rem, 112vh) rotate(520deg); }
  }

  /* 卡片角上的叶子 */
  .profile::before, .music-entry::before {
    content: ""; position: absolute; width: 2.6rem; height: 1.3rem; border-radius: 0 100% 0 100%;
    background: linear-gradient(135deg, #8DBA5B, #4E7D31); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  }
  .profile::before { left: 1.4rem; top: -.65rem; transform: rotate(-18deg); }
  .music-entry::before { right: 2.2rem; top: -.55rem; width: 1.9rem; height: 1rem; transform: rotate(14deg); }

  /* 园艺挂牌式链接：左侧斜角 + 穿绳孔 */
  .links li { position: relative; }
  .link {
    position: relative; padding: .55rem .65rem .55rem 1.45rem; gap: .55rem; border: 0; border-radius: .9rem;
    background: linear-gradient(135deg, rgba(255, 246, 214, .16), rgba(245, 225, 170, .07));
    clip-path: polygon(.95rem 0, 100% 0, 100% 100%, .95rem 100%, 0 50%);
    box-shadow: none;
  }
  .link::before { /* 穿绳孔 */
    content: ""; position: absolute; left: .45rem; top: 50%; width: .42rem; height: .42rem; margin-top: -.21rem; border-radius: 50%;
    background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 .12rem #C9962A;
  }
  .links li::before { /* 麻绳 */
    content: ""; position: absolute; left: -.35rem; top: calc(50% - .9rem); width: 1.1rem; height: 1rem;
    border: 1.5px solid #B0884A; border-right: 0; border-radius: 1rem 0 0 1rem; z-index: 1; pointer-events: none;
  }
  .links li:nth-child(2n)::before { display: none; }
  .chip { box-shadow: 0 0 0 .14rem #F5B82E, 0 0 0 .32rem rgba(245, 184, 46, .3); }
}

/* ============================================================
   全透明方框：所有画幅的卡片 / 链接都不填底色、不做毛玻璃，只留边框；
   可读性靠文字的描边光晕（亮色主题白色光晕，雨夜深色光晕）
   ============================================================ */
.card, .link, .lang-switch, .tags li:not(:first-child), .nametag, .links-title, .credit, .lt-text {
  background: transparent !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}

/* ---------- 文字颜色与描边：每张壁纸各取最清楚的组合 ----------
   描边 = 8 个方向的细阴影（各浏览器都支持）+ 外圈柔光；--halo 是描边色，--glow 是柔光色 */
body { --halo: transparent; --glow: transparent; }
.page, .nametag, .starclock {
  text-shadow:
    1px 0 0 var(--halo), -1px 0 0 var(--halo), 0 1px 0 var(--halo), 0 -1px 0 var(--halo),
    1px 1px 0 var(--halo), -1px -1px 0 var(--halo), 1px -1px 0 var(--halo), -1px 1px 0 var(--halo),
    0 0 .4rem var(--glow), 0 0 .9rem var(--glow);
}
/* 实底色块上的字不需要描边 */
.tags li:first-child, .lang-switch button[aria-pressed="true"], .chip, .music-covers { text-shadow: none !important; }

/* 雨夜：象牙白正文、琥珀色标签，深夜蓝描边 */
@media (min-aspect-ratio: 17/10), (pointer: fine) and (min-aspect-ratio: 6/5) {
  body { --halo: rgba(9, 13, 26, .92); --glow: rgba(9, 13, 26, .7); text-shadow: none; }
  :root { --text: #FBF5EA; --muted: #EDE3D2; --accent: #FFD27A; }
  .profile h1, .lt-deco, .sc-time { color: #FFE3A3; }
  .card, .link { box-shadow: 0 0 0 1px rgba(9, 13, 26, .35); }
  .card { border-color: rgba(255, 255, 255, .45); }
  .link { border-color: rgba(255, 210, 122, .65); }
  .facts div { border-top-color: rgba(255, 255, 255, .25); }
}

/* 绘梨衣：纯黑正文（这张壁纸上黑色最清楚）、红发的红做标签，白色描边 */
@media (pointer: coarse) and (min-aspect-ratio: 3/5) and (max-aspect-ratio: 17/10) {
  body { --halo: #fff; --glow: rgba(255, 255, 255, .9); }
  :root { --text: #050505; --muted: #1C1C1C; --accent: #C8102E; }
  .facts dd, .credit, .lt-text, .link-text small { color: #1C1C1C; }
  .link::after { display: none; } /* 透明后卷角不再需要底色 */
}
/* 竖屏绘梨衣：壁纸上满是黑色大字，描边和柔光再加厚 */
@media (pointer: coarse) and (min-aspect-ratio: 3/5) and (max-aspect-ratio: 6/5) {
  .page {
    text-shadow:
      1.5px 0 0 #fff, -1.5px 0 0 #fff, 0 1.5px 0 #fff, 0 -1.5px 0 #fff,
      1.5px 1.5px 0 #fff, -1.5px -1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px 1.5px 0 #fff,
      0 0 .5rem #fff, 0 0 1.1rem rgba(255, 255, 255, .95);
  }
}

/* 幽香：深棕正文、叶绿标签，奶油色描边（压得住黄色花田、白外套和红格裙） */
@media (max-aspect-ratio: 3/5), (pointer: fine) and (max-aspect-ratio: 6/5) {
  body { --halo: #FFF9E6; --glow: rgba(255, 249, 230, .9); }
  :root { --text: #22170A; --muted: #3A2C14; --accent: #1F5214; }
  .profile h1 { color: #183A10; }
  .tagline, .facts dt, .lt-text { color: #1F5214; }
  .card { border: 1.5px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 1px rgba(120, 80, 0, .25); }
  .link {
    clip-path: none; border-radius: 1rem;
    border: 1.5px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 1px rgba(120, 80, 0, .25);
  }
  .nametag { border-color: rgba(255, 255, 255, .95); box-shadow: 0 0 0 1px rgba(120, 80, 0, .25); }
}

/* ============================================================
   例外：这两处全透明读起来吃力，改回半透明的「纸」
   - 幽香：花田颜色太跳，卡片垫一层奶油色毛玻璃，字就不用再描边
   - 绘梨衣竖屏：壁纸满是黑色大字，透明时会和正文串在一起；
     模糊能把底下的字糊成灰影，配合白纸底色，黑字依然最清楚
   ============================================================ */
/* 整张卡只给很轻的模糊（随滚动 / 触摸动态加深，--read 由 home.js 写入）；
   真正的遮挡只放在文字后面：羽化边缘的局部模糊块，壁纸大部分仍然看得见 */
@media (max-aspect-ratio: 6/5) {
  .card, .link { transition: backdrop-filter .35s ease, -webkit-backdrop-filter .35s ease, background-color .35s ease; }
  .card:hover, .card:focus-within, .link:hover, .link:focus-visible, .link:active { --read: 1; }
  /* 大卡片本身不做 backdrop-filter（否则它会变成"模糊的取样边界"，里面的局部模糊就糊不到壁纸），
     模糊全部交给文字后面的羽化块；小的链接卡片整块轻模糊即可 */
  .card { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .profile-id, .bio, .facts, .music-text { position: relative; }
  .profile-id::before, .bio::before, .facts::before, .music-text::before {
    content: ""; position: absolute; inset: -.3rem -.55rem; z-index: -1; border-radius: .8rem; pointer-events: none;
    background: var(--patch);
    -webkit-backdrop-filter: blur(calc(1.5px + 2.5px * var(--read, 0))); backdrop-filter: blur(calc(1.5px + 2.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;
    transition: backdrop-filter .35s ease, -webkit-backdrop-filter .35s ease;
  }
}
@media (max-aspect-ratio: 3/5), (pointer: fine) and (max-aspect-ratio: 6/5) {
  body { --patch: rgba(255, 251, 236, .3); }
  .card, .link {
    background: linear-gradient(160deg, rgba(255, 252, 238, calc(.18 + .14 * var(--read, 0))), rgba(255, 246, 222, calc(.1 + .12 * var(--read, 0)))) !important;
    border-color: rgba(255, 255, 255, .9);
    box-shadow: 0 .5rem 1.4rem rgba(120, 80, 0, .12);
  }
  .link { -webkit-backdrop-filter: blur(calc(1px + 2.5px * var(--read, 0))) saturate(1.2) !important; backdrop-filter: blur(calc(1px + 2.5px * var(--read, 0))) saturate(1.2) !important; }
  .link { clip-path: polygon(.95rem 0, 100% 0, 100% 100%, .95rem 100%, 0 50%); border: 0; border-radius: .9rem; box-shadow: none; }
  .lang-switch, .nametag, .links-title .lt-text, .credit, .tags li:not(:first-child) {
    background: rgba(255, 252, 238, .72) !important;
    -webkit-backdrop-filter: blur(10px) !important; backdrop-filter: blur(10px) !important;
  }
  body { --halo: rgba(255, 252, 238, .55); --glow: transparent; }
  .page, .nametag { text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
}
@media (pointer: coarse) and (min-aspect-ratio: 3/5) and (max-aspect-ratio: 6/5) {
  body { --patch: rgba(255, 255, 255, .48); }
  .card, .link {
    background: rgba(255, 255, 255, calc(.22 + .18 * var(--read, 0))) !important;
  }
  .link { -webkit-backdrop-filter: blur(calc(1.5px + 2.5px * var(--read, 0))) !important; backdrop-filter: blur(calc(1.5px + 2.5px * var(--read, 0))) !important; }
  .lang-switch, .nametag, .links-title, .credit, .tags li:not(:first-child) {
    background: rgba(255, 255, 255, .85) !important;
    -webkit-backdrop-filter: blur(8px) !important; backdrop-filter: blur(8px) !important;
  }
  .link::after { display: block; } /* 有了纸底，卷角又能用了 */
  .page { text-shadow: none; }
}

/* ============================================================
   雨夜横屏（含所有电脑横向窗口）：放大各部件，填满左右两栏
   左栏到画师署名上方为止，右栏车票纵向铺开
   ============================================================ */
@media (min-aspect-ratio: 17/10), (pointer: fine) and (min-aspect-ratio: 6/5) {
  .profile { padding: 3.1rem 1.7rem 1.5rem; }
  .avatar { width: 5.6rem; height: 5.6rem; }
  .profile h1 { font-size: 3.6rem; }
  .tagline { font-size: 1rem; }
  .tags { gap: .5rem; margin-top: 1.1rem; }
  .tags li { font-size: .95rem; padding: .22rem .85rem; }
  .bio { font-size: 1.1rem; margin-top: 1rem; }
  .facts { font-size: 1.02rem; gap: .5rem; margin-top: 1rem; }

  /* 歌单入口和星月时钟并排一行，左栏整体停在画师署名上方 */
  .duo { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: stretch; }
  .duo > .music-entry, .duo > .starclock { grid-column: auto; grid-row: auto; }
  .music-entry { padding: 1rem 1.1rem 1rem 1rem; gap: .9rem; }
  .music-covers img { width: 3.2rem; height: 3.2rem; margin-left: -1.3rem; }
  .music-covers img:nth-child(n+4) { display: none; }
  .music-text b { font-size: 1.12rem; }
  .music-text small { font-size: .85rem; }

  .starclock { padding: .9rem 1.2rem; gap: .9rem; }
  .sc-time { font-size: 2.6rem; }
  .sc-label, .sc-date, .sc-moon-name { font-size: .8rem; }
  .sc-moon-disc { width: 2.6rem; height: 2.6rem; }

  .lt-deco { font-size: 2.4rem; }
  .lt-text { font-size: .88rem; }
  .links ul { gap: .7rem; }
  .link {
    padding: .85rem 2.8rem .85rem .65rem; gap: 1.1rem;
    -webkit-mask: radial-gradient(circle .45rem at 3.5rem 0, transparent 98%, #000) top / 100% 51% no-repeat,
                  radial-gradient(circle .45rem at 3.5rem 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
            mask: radial-gradient(circle .45rem at 3.5rem 0, transparent 98%, #000) top / 100% 51% no-repeat,
                  radial-gradient(circle .45rem at 3.5rem 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  }
  .link::before { left: 3.5rem; }
  .chip { width: 2.5rem; height: 2.5rem; }
  .chip svg { width: 1.35rem; height: 1.35rem; }
  .link-text b { font-size: 1.08rem; }
  .link-text small { font-size: .95rem; }
  .link::after { font-size: .8rem; }
}
/* 横屏但不够高（1366×768 笔记本等）：收掉星月时钟、压缩间距，保证一屏放下 */
@media (min-aspect-ratio: 17/10) and (max-height: 760px), (pointer: fine) and (min-aspect-ratio: 6/5) and (max-height: 760px) {
  .starclock { display: none; }
  .profile { padding-top: 2.8rem; padding-bottom: 1.1rem; }
  .avatar { width: 4.6rem; height: 4.6rem; }
  .profile h1 { font-size: 3rem; }
  .facts { gap: .3rem; margin-top: .7rem; }
  .bio { margin-top: .7rem; }
  .links ul { gap: .45rem; }
  .link { padding-top: .55rem; padding-bottom: .55rem; }
  .chip { width: 2.2rem; height: 2.2rem; }
}

