/*
Theme Name: istar 顶流星 · 奶油风
Theme URI: https://istar.top
Author: istar
Author URI: https://istar.top
Description: 奶油风瀑布流相册主题。焦糖奶油底 + 软糖雾面色 + 布丁鼓包质感，安静、治愈、圆滚滚。把「多巴胺」的欢快音量拧小一档：降饱和、加奶、去硬影，保留点赞按钮 / 点赞数 / 每日精选等全部社区语义。与「多巴胺」「鎏金东方」共用同一套模板，仅配色与质感不同，后台一键切换。
Version: 1.2.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: istar
Tags: blog, photography, portfolio, grid-layout, two-columns, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready
*/

/* =============================================================
   0. 设计令牌（奶油风 Cream Sugar）
   —— 焦糖奶油为底，软糖雾面为色，布丁鼓包为质感，深咖为字
   ============================================================= */
:root {
  /* 软糖主色（低饱和奶感） */
  --pop-yellow: #E9C98F;   /* 焦糖奶黄 */
  --pop-orange: #DBA47E;   /* 烤杏仁 */
  --pop-pink:   #E8B4A8;   /* 蜜桃奶 */
  --pop-red:    #CD8B72;   /* 陶土奶咖 */
  --pop-purple: #B9A0C9;   /* 芋泥 */
  --pop-blue:   #9FB8C9;   /* 雾蓝奶 */
  --pop-mint:   #AEC9B0;   /* 抹茶奶 */
  --pop-lime:   #D6D9B8;   /* 奶蓟（仅点缀） */

  /* 奶油中性色 */
  --cream:   #FAF3E9;
  --cream-2: #F3E7D7;
  --card:    #FFFDF8;
  --card-2:  #F6EDE0;
  --glass:   rgba(250,243,233,.88);
  --line:    #EBD9C3;
  --line-2:  #DEC9AC;

  /* 深咖三阶字（奶油风禁纯黑） */
  --ink:   #4A3B32;
  --ink-2: #8A776A;
  --ink-3: #B7A99A;

  /* 深字补丁（渐变上小字的对比度色） */
  --on-gold:  #5A4326;
  --on-pink:  #4A3B32;

  --radius: 24px;
  --gap: 16px;

  /* 圆体优先字体栈：断网也圆润 */
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Yuanti SC", "YouYuan", "幼圆",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --round: "Yuanti SC", "YouYuan", "幼圆", "LXGW WenKai Screen", "PingFang SC",
           "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* 奶感渐变（同色系深浅） */
  --g-yellow:  linear-gradient(135deg, #F2E2C4 0%, #E9C98F 100%);
  --g-pink:    linear-gradient(135deg, #F3D7CD 0%, #E8B4A8 100%);
  --g-orange:  linear-gradient(135deg, #EFCBA8 0%, #DBA47E 100%);
  --g-purple:  linear-gradient(135deg, #D9C9E4 0%, #B9A0C9 100%);
  --g-blue:    linear-gradient(135deg, #CBD9E2 0%, #9FB8C9 100%);
  --g-mint:    linear-gradient(135deg, #D3E2D4 0%, #AEC9B0 100%);
  --g-caramel: linear-gradient(120deg, #E9C98F 0%, #DBA47E 50%, #CD8B72 100%);
  --g-chain:   linear-gradient(100deg, #F2E2C4 0%, #EFCBA8 22%, #E8B4A8 45%,
                                       #D9C9E4 68%, #CBD9E2 88%, #F2E2C4 100%);

  /* 布丁鼓包阴影（暖棕，禁黑禁紫墨） */
  --sh-1: 0 2px 10px rgba(122,94,72,.06);
  --sh-2: 0 10px 26px rgba(122,94,72,.09);
  --sh-3: 0 18px 44px rgba(122,94,72,.13);
  --sh-warm: 0 8px 22px rgba(219,164,126,.28);
  --sh-pop: 0 6px 0 rgba(122,94,72,.08), 0 14px 26px rgba(219,164,126,.22);
  --more-accent: var(--pop-orange);
  --sort-on-bg: var(--g-yellow);   /* 排序选中底 */
  --sort-on-fg: var(--on-gold);    /* 排序选中字 */
  --hover-soft: rgba(90,67,38,.06);
}

@keyframes caramelFlow {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}
@keyframes dotPop {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.18); opacity: .72; }
}
@keyframes topPop {
  0%   { transform: translateY(0) scale(1) rotate(0); }
  45%  { transform: translateY(-7px) scale(1.30) rotate(10deg); }
  100% { transform: translateY(0) scale(1) rotate(0); }
}

/* =============================================================
   1. 基础
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
  background: var(--cream);
  background-image:
    radial-gradient(720px 400px at 8% -6%, rgba(233,201,143,.26), transparent 70%),
    radial-gradient(640px 380px at 94% 2%, rgba(159,184,201,.16), transparent 72%),
    radial-gradient(820px 460px at 58% 100%, rgba(232,180,168,.14), transparent 74%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* 奶盖细泡底纹（比糖果点更细更密更淡） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(4px 4px at 8% 18%,  rgba(233,201,143,.20), transparent),
    radial-gradient(3px 3px at 30% 62%, rgba(232,180,168,.16), transparent),
    radial-gradient(4px 4px at 52% 30%, rgba(159,184,201,.15), transparent),
    radial-gradient(3px 3px at 74% 78%, rgba(185,160,201,.15), transparent),
    radial-gradient(4px 4px at 92% 46%, rgba(174,201,176,.16), transparent),
    radial-gradient(3px 3px at 16% 88%, rgba(233,201,143,.15), transparent);
  background-repeat: no-repeat;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pop-orange); text-decoration: none; }
a:hover { color: var(--pop-red); }
h1, h2, h3, h4 {
  margin: 0 0 10px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 800;
}
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--ink); }
::selection { background: rgba(233,201,143,.40); }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.site-main { min-height: 60vh; padding-bottom: 10px; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px;
  width: auto; height: auto; clip: auto;
  background: var(--card); padding: 8px 14px; border-radius: 999px;
  border: 2px solid var(--line);
  box-shadow: var(--sh-2); z-index: 99; color: var(--ink);
}

/* =============================================================
   2. 顶栏
   ============================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--glass);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid rgba(235,217,195,.7);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--g-chain);
  background-size: 220% 100%;
  animation: caramelFlow 12s linear infinite;
  opacity: .9;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
}

/* LOGO：奶油星 + 圆体字标 */
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; }
.logo-ico {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 16px;
  background: var(--g-chain);
  background-size: 220% 100%;
  display: grid;
  place-items: center;
  padding: 6px;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 6px 16px rgba(219,164,126,.30);
  transition: transform .3s cubic-bezier(.34,1.5,.64,1);
}
.logo:hover .logo-ico {
  transform: rotate(-7deg) scale(1.07);
  animation: caramelFlow 12s linear infinite;
}
.logo-mark { height: 28px; width: auto; object-fit: contain; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.word-cn {
  display: flex; gap: 2px;
  font-family: var(--round);
  font-size: 23px; font-weight: 800; letter-spacing: .04em;
}
.word-cn i {
  font-style: normal;
  -webkit-text-stroke: 1.4px var(--ink);
  paint-order: stroke fill;
  transition: transform .3s cubic-bezier(.34,1.5,.64,1);
}
.word-cn i:nth-child(1) { color: var(--pop-red);    transform: rotate(-4deg); }
.word-cn i:nth-child(2) { color: var(--pop-blue);   transform: rotate(3deg) translateY(-1px); }
.word-cn i:nth-child(3) { color: var(--pop-orange); transform: rotate(-3deg); }
.logo:hover .word-cn i:nth-child(1) { transform: rotate(-9deg) translateY(-2px); }
.logo:hover .word-cn i:nth-child(2) { transform: rotate(6deg) translateY(-4px); }
.logo:hover .word-cn i:nth-child(3) { transform: rotate(-7deg) translateY(-1px); }
.word-en {
  margin-top: 4px;
  font-size: 9px; font-weight: 700; letter-spacing: .26em;
  color: var(--ink-3);
}

.topnav { flex: 1; min-width: 0; }
.navlist { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.navlist::-webkit-scrollbar { display: none; }
.navlist li { position: relative; flex: none; }
.navlist a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14.5px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
  white-space: nowrap;
}
.navlist a:hover { background: var(--cream-2); color: var(--ink); }
.navlist .current-menu-item > a,
.navlist a.on {
  background: var(--g-pink);
  color: var(--on-pink);
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(232,180,168,.38);
  transform: translateY(-1px);
}
.navlist .sub-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 168px;
  padding: 8px;
  margin: 6px 0 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--sh-3);
  z-index: 20;
}
.navlist li:hover > .sub-menu { display: block; }

.top-search {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 2px 4px 2px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--sh-1);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.top-search:focus-within {
  border-color: var(--pop-orange);
  box-shadow: var(--sh-warm);
}
.top-search input {
  width: 122px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 7px 0;
  font-size: 13.5px;
}
.top-search input::placeholder { color: var(--ink-3); }
.top-search button {
  border: 0; background: transparent;
  color: var(--ink-2); font-weight: 700;
  padding: 7px 10px;
  transition: color .25s ease;
}
.top-search button:hover { color: var(--pop-red); }

.top-post {
  flex: none;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--g-caramel);
  color: #FFFDF8;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: .04em;
  box-shadow: var(--sh-pop);
  transition: transform .22s cubic-bezier(.34,1.5,.64,1), box-shadow .22s ease;
}
.top-post:hover {
  transform: translateY(-2px);
  color: #FFFDF8;
  box-shadow: 0 10px 0 rgba(122,94,72,.08), 0 18px 30px rgba(219,164,126,.30);
}
.top-post:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(122,94,72,.08); }

/* 顶栏右侧会员入口（退出 / 次要按钮，描边款，不抢「投稿」主按钮） */
.top-account {
  flex: none;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}
.top-account:hover {
  color: var(--more-accent);
  border-color: var(--more-accent);
  transform: translateY(-2px);
}

/* =============================================================
   3. 页头
   ============================================================= */
.pagehead { padding: 36px 0 20px; }
.pagehead h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.4px;
  margin: 0 0 8px;
}
.pagehead h1 .hl {
  background: var(--g-chain);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: caramelFlow 12s linear infinite;
}
.pagehead p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.pagehead .tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  color: #8A6A45;
  font-size: 12.5px;
  font-weight: 700;
}

/* 奶油标语胶囊 */
.slogan {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 9px 19px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--sh-warm);
}
.slogan b { color: var(--pop-red); font-weight: 800; }
.slogan .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--g-caramel);
  box-shadow: 0 0 0 3px rgba(219,164,126,.18);
  animation: dotPop 2.2s ease-in-out infinite;
}

/* =============================================================
   4. 分类胶囊条
   ============================================================= */
.chipbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 18px;
  margin: 0 -4px;
  scrollbar-width: none;
}
.chipbar::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--card);
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--sh-1);
  transition: transform .22s cubic-bezier(.34,1.4,.64,1), box-shadow .22s ease, color .22s ease;
}
.chip small { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.chip:hover { transform: translateY(-2px); color: var(--ink); box-shadow: var(--sh-2); }
.chip.on {
  background: var(--g-yellow);
  border-color: transparent;
  color: var(--on-gold);
  box-shadow: 0 6px 16px rgba(233,201,143,.45);
}
.chip.on small { color: #7A6242; }

/* =============================================================
   5. 排行榜
   ============================================================= */
.rank {
  margin-bottom: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(235,217,195,.8);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.rank-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--g-chain);
  background-size: 220% 100%;
  animation: caramelFlow 14s linear infinite;
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.rank-head small {
  margin-left: auto;
  font-weight: 600;
  font-size: 11.5px;
  color: #6E5844;
  opacity: .85;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
  transition: background .25s ease;
}
.rank-item:last-child { border-bottom: 0; }
.rank-item:hover { background: var(--cream); }
.rank-no {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  background: var(--cream-2);
  color: var(--ink-2);
}
.rank-item:nth-child(2) .rank-no { background: var(--g-caramel); color: #FFFDF8; }
.rank-item:nth-child(3) .rank-no { background: var(--g-blue);    color: #FFFDF8; }
.rank-item:nth-child(4) .rank-no { background: var(--g-purple);  color: #FFFDF8; }
.rank-thumb {
  width: 54px; height: 54px;
  flex: none;
  border-radius: 16px;
  object-fit: cover;
  background: var(--cream-2);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.rank-thumb-ph { background: var(--g-chain); background-size: 220% 100%; opacity: .4; }
.rank-main { flex: 1; min-width: 0; }
.rank-name {
  display: block;
  font-weight: 800;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}
.rank-sub { display: block; font-size: 11.5px; color: var(--ink-3); }
.rank-sub .dot { margin: 0 5px; opacity: .5; }
.rank-right { text-align: right; flex: none; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.rank-trend {
  font-size: 11px;
  font-weight: 800;
  color: #7FA184;
  /* ▲(U+25B2) 属 emoji 范围，钉住符号字体避免被渲染成彩色 emoji */
  font-family: "Segoe UI Symbol", "Apple Symbols", "Segoe UI", Arial, sans-serif;
  font-variant-emoji: text;
}

/* =============================================================
   6. 瀑布流卡片
   ============================================================= */
.grid { column-count: 3; column-gap: var(--gap); }
.grid > * { break-inside: avoid; margin: 0 0 var(--gap); display: inline-block; width: 100%; }

.card {
  position: relative;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(235,217,195,.8);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: transform .26s cubic-bezier(.34,1.4,.64,1), box-shadow .26s ease;
}
.card:hover {
  transform: translateY(-6px) rotate(-.5deg);
  box-shadow: 0 18px 38px rgba(219,164,126,.22), 0 6px 14px rgba(122,94,72,.06);
}
.card-pic {
  display: block;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--cream-2);
  /* 统一 4:3 视窗：不管正文首图是 16:9 横图还是 9:16 竖图，
   * 都按同一比例居中裁切，瀑布流不会因图片比例而高矮乱跳。 */
  aspect-ratio: 4 / 3;
}
.card-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* 铺满并裁切，不拉伸变形 */
  object-position: center 38%; /* 偏上取景：竖构图/人像优先保住主体 */
  display: block;
  transition: transform .5s cubic-bezier(.34,1.3,.64,1);
}
.card:hover .card-pic img { transform: scale(1.06); }
.card-ph {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--g-chain);
  background-size: 220% 100%;
  opacity: .85;
}
.card-ph img { width: 42%; opacity: .85; }

.card-body { padding: 15px 16px 17px; }
.card-title { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--pop-red); }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--ink-3); }
.card-meta .tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  color: #8A6A45;
  font-weight: 700;
  font-size: 11.5px;
}
.card-meta .dot { opacity: .45; }
.card-meta b { color: var(--ink-2); }
.card-excerpt { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.card-more { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--pop-orange); }

.card.is-top {
  border-color: rgba(233,201,143,.9);
  box-shadow: 0 0 0 2px var(--pop-yellow), var(--sh-2);
}
.card.is-top .card-pic { position: relative; }
.card.is-top .card-pic::after {
  content: "每日精选";
  position: absolute;
  left: 10px; top: 10px;
  background: var(--g-caramel);
  color: #FFFDF8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(205,139,114,.35);
}

/* =============================================================
   7. 点赞 / 收藏
   ============================================================= */
.btn-top, .btn-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--sh-1);
  transition: transform .22s cubic-bezier(.34,1.5,.64,1), box-shadow .22s ease,
              color .22s ease, border-color .22s ease, background .22s ease;
}
.btn-top .ico, .btn-save .ico {
  /* 用 CSS 三角形替代 ▲ 字符：避免不同平台把三角符号回退成彩色 emoji 字形 */
  font-size: 0;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid currentColor;
  overflow: hidden;
  flex: none;
}
.btn-top:hover, .btn-save:hover {
  color: var(--pop-red);
  border-color: rgba(205,139,114,.55);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232,180,168,.38);
}
.btn-top:active, .btn-save:active { transform: translateY(0) scale(.96); }
.btn-top.on, .btn-save.on {
  background: var(--g-pink);
  border-color: transparent;
  color: var(--on-pink);
  box-shadow: 0 6px 16px rgba(232,180,168,.42);
}
.btn-top.on .ico { animation: topPop .5s cubic-bezier(.34,1.5,.64,1); }
.btn-top.loading { opacity: .6; pointer-events: none; }

.top-value {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--g-yellow);
  color: var(--on-gold);
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 3px 10px rgba(233,201,143,.42);
  white-space: nowrap;
  flex: none;
}
.top-value b { font-weight: 800; font-size: 13px; color: #5A4326; }

/* =============================================================
   8. 详情页
   ============================================================= */
.article { position: relative; }
.article-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.article-meta .dot { opacity: .45; }
.article-meta b { color: var(--ink-2); }
.player {
  margin: 6px 0 24px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
}
.player img { width: 100%; }
.prose { font-size: 16.5px; line-height: 1.9; color: var(--ink-2); }
.prose > * { margin-top: 0; }
.prose strong { color: var(--pop-red); font-weight: 700; }
.prose h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  margin: 32px 0 12px;
}
.prose h2::before {
  content: "";
  width: 11px; height: 11px;
  border-radius: 50% 50% 50% 0;
  background: var(--g-caramel);
  transform: rotate(-45deg);
  flex: none;
}
.prose h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  padding-left: 11px;
  border-left: 4px solid var(--pop-mint);
}
.prose blockquote {
  margin: 18px 0;
  padding: 13px 16px;
  background: var(--cream-2);
  border-radius: 16px;
  border-left: 5px solid var(--pop-orange);
  color: #6E5844;
}
.prose ul li::marker, .prose ol li::marker { color: var(--pop-orange); }
.prose img, .prose iframe { border-radius: 16px; }
.prose a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(219,164,126,.7); }
.prose code {
  background: var(--cream-2);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 14px;
  color: #8A6A45;
}
.prose pre {
  background: #463A30;
  color: #F6EBDD;
  padding: 14px 16px;
  border-radius: 16px;
  overflow: auto;
}
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--ink); font-weight: 800; }

.article-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 30px 0 4px; }
.top-hint { color: var(--ink-3); font-size: 13px; }
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}
.post-nav span { flex: 1 1 240px; }
.pn-next { text-align: right; }
.back-link { color: var(--pop-orange); font-weight: 700; }
.back-link:hover { color: var(--pop-red); }

/* =============================================================
   9. 关于我 / 单页面
   ============================================================= */
.about-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 26px;
  border-radius: 28px;
  background: var(--g-chain);
  background-size: 220% 100%;
  animation: caramelFlow 14s linear infinite;
  overflow: hidden;
  margin: 26px 0;
  box-shadow: 0 14px 34px rgba(219,164,126,.28);
}
.about-avatar {
  width: 86px; height: 86px;
  flex: none;
  border-radius: 26px;
  object-fit: cover;
  border: 3px solid rgba(255,253,248,.9);
  box-shadow: 0 8px 18px rgba(122,94,72,.22);
}
.about-hero-txt { position: relative; min-width: 0; }
.about-hero-txt h1 {
  font-size: 27px;
  font-weight: 800;
  color: #FFFDF8;
  -webkit-text-stroke: 1.2px rgba(74,59,50,.35);
  paint-order: stroke fill;
  margin: 0 0 6px;
}
.about-slogan { color: #FFFDF8; font-weight: 700; font-size: 15px; }
.about-slogan .hl { color: #FFF3DC; }
.about-en { color: rgba(255,253,248,.88); letter-spacing: .12em; font-size: 11.5px; }
.about .prose { max-width: 760px; }
.about-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

.ab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--g-caramel);
  color: #FFFDF8;
  font-weight: 800;
  box-shadow: var(--sh-pop);
  transition: transform .2s cubic-bezier(.34,1.5,.64,1), box-shadow .2s ease;
}
.ab-btn:hover {
  transform: translateY(-3px);
  color: #FFFDF8;
  box-shadow: 0 10px 0 rgba(122,94,72,.08), 0 20px 34px rgba(219,164,126,.30);
}
.ab-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(122,94,72,.08); }
.ab-btn.ghost {
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: 0 5px 0 rgba(122,94,72,.06);
}

/* =============================================================
   10. 评论
   ============================================================= */
.comments {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 2px dashed var(--line);
}
.cmt-title { font-size: 17px; font-weight: 800; margin: 0 0 14px; }
.cmt-list { list-style: none; margin: 0 0 20px; padding: 0; }
.cmt-list .children { list-style: none; margin: 12px 0 0 18px; padding: 0; }
.cmt-item {
  padding: 13px 15px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid rgba(235,217,195,.7);
  border-radius: 18px;
  box-shadow: var(--sh-1);
}
.cmt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cmt-name { font-weight: 800; color: var(--ink); }
.cmt-date { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.cmt-body { color: var(--ink-2); font-size: 14.5px; }
.cmt-body p { margin: 0 0 8px; }
.cmt-foot { margin-top: 6px; }
.cmt-reply { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.cmt-reply:hover { color: var(--pop-pink); }
.cmt-closed { color: var(--ink-3); font-size: 13.5px; }

.comment-form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.comment-form .cmt-code { display: inline-block; width: calc(33.333% - 8px); margin: 0 10px 12px 0; vertical-align: top; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 13px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  outline: 0;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--pop-purple);
  box-shadow: 0 0 0 3px rgba(185,160,201,.18);
}
.cmt-submit {
  padding: 11px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--g-purple);
  color: #FFFDF8;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(185,160,201,.40);
  transition: transform .22s cubic-bezier(.34,1.5,.64,1);
}
.cmt-submit:hover { transform: translateY(-2px); }
.cmt-submit:active { transform: translateY(0) scale(.97); }
.comment-form .submit { padding: 0; }
.comment-form .form-submit { margin: 0; }
.comment-respond { margin-top: 8px; }
.comment-reply-title small { font-size: 12.5px; font-weight: 500; }

/* =============================================================
   11. 分页 / 空状态
   ============================================================= */
.pager, .pagination, .navigation.pagination { margin: 30px 0 10px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.nav-links .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  font-weight: 700;
  box-shadow: var(--sh-1);
  transition: transform .22s ease, box-shadow .22s ease, color .22s ease;
}
.nav-links .page-numbers:hover {
  transform: translateY(-2px);
  color: var(--pop-orange);
  border-color: var(--pop-orange);
}
.nav-links .page-numbers.current {
  background: var(--g-caramel);
  border-color: transparent;
  color: #FFFDF8;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(205,139,114,.4);
}

.empty { text-align: center; padding: 46px 20px 30px; color: var(--ink-3); }
.empty::before {
  content: "";
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 8px;
  background: url("assets/img/istar-mascot.png") center / contain no-repeat;
  opacity: .97;
  filter: drop-shadow(0 12px 22px rgba(219,164,126,.30));
}
.empty p { margin: 0 0 10px; }
.empty .empty-t { font-size: 19px; font-weight: 800; color: var(--ink); }
.empty .ab-btn { margin-top: 6px; }

/* =============================================================
   12. 页脚 + 手机底栏
   ============================================================= */
.footer {
  margin-top: 48px;
  background: #F5EBDD;
  color: var(--ink-2);
  padding: 24px 0 20px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--g-chain);
  background-size: 220% 100%;
  animation: caramelFlow 12s linear infinite;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.foot-l1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.foot-tagline { font-size: 13px; font-weight: 800; color: var(--ink); }
.foot-tagline .sep {
  background: var(--g-caramel);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 2px;
}
.foot-domain { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #C9A97C; }
.foot-l2 { font-size: 11.5px; color: var(--ink-3); }
.foot-l2 .dot { opacity: .5; margin: 0 4px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--pop-red); }

.tabbar { display: none; }

.to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--g-caramel);
  color: #FFFDF8;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(205,139,114,.40);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 40;
}
.to-top.on { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { transform: translateY(-2px); }

.istar-toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 12px);
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFDF8;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--sh-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 60;
}
.istar-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* =============================================================
   13. 响应式
   ============================================================= */
@media (max-width: 980px) {
  .grid { column-count: 2; }
  .top-search input { width: 90px; }
}
@media (max-width: 640px) {
  .topbar-inner { min-height: 60px; gap: 10px; }
  .top-search { display: none; }
  /* 顶栏只留 4 个入口，手机端让出整行，不再挤字 */
  .topbar-inner { flex-wrap: wrap; }
  .topnav { order: 3; flex: 1 0 100%; margin: 0 -4px -4px; padding-bottom: 4px; }
  .navlist { flex-wrap: wrap; overflow: visible; gap: 2px; }
  .navlist a { padding: 7px 11px; font-size: 13px; }
  .top-post { margin-left: auto; padding: 8px 16px; font-size: 13px; }
  .top-account { padding: 8px 13px; font-size: 13px; }
  .logo-ico { width: 38px; height: 38px; border-radius: 14px; padding: 5px; }
  .logo-mark { height: 25px; }
  .word-cn { font-size: 21px; }
  .word-en { display: none; }

  .pagehead { padding: 26px 0 14px; }
  .pagehead h1 { font-size: 24px; }
  .grid { column-count: 2; column-gap: 12px; }
  .grid > * { margin-bottom: 12px; }
  .card-body { padding: 12px 13px 14px; }
  .card-title { font-size: 15px; }
  .card-excerpt, .card-more, .card-meta .views { display: none; }
  .card-foot { gap: 8px; padding-top: 10px; }
  .btn-top, .btn-save { padding: 6px 11px; font-size: 12.5px; }
  .top-value { padding: 3px 8px; font-size: 11px; }

  .card:hover { transform: none; box-shadow: var(--sh-2); }
  .card:hover .card-pic img { transform: none; }

  .rank-thumb { width: 44px; height: 44px; border-radius: 13px; }
  .rank-item { gap: 10px; padding: 10px 12px; }
  .rank-head { font-size: 14px; padding: 11px 14px; }
  .rank-trend { display: none; }

  .about-hero { gap: 14px; padding: 20px 18px; border-radius: 22px; }
  .about-avatar { width: 66px; height: 66px; border-radius: 20px; }
  .about-hero-txt h1 { font-size: 21px; }

  .comment-form .cmt-code { display: block; width: 100%; margin-right: 0; }

  .footer { padding-bottom: 74px; }
  .tabbar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(235,217,195,.8);
    box-shadow: 0 -3px 16px rgba(219,164,126,.16);
  }
  .tabbar::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: var(--g-chain);
    background-size: 220% 100%;
  }
  .tabbar ul { display: flex; list-style: none; margin: 0; padding: 0; }
  .tabbar li { flex: 1; }
  .tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 0 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-3);
  }
  .tabbar a .ico {
    font-size: 15px; line-height: 1;
    /* ◆ ★ ⌕ ☺ 中 ☺(U+263A) 属 emoji 范围，钉住符号字体避免彩色 emoji */
    font-family: "Segoe UI Symbol", "Apple Symbols", "Segoe UI", Arial, sans-serif;
    font-variant-emoji: text;
  }
  .tabbar a.on { color: var(--pop-red); font-weight: 800; }
  .tabbar a.on .ico { animation: dotPop 2s ease-in-out infinite; }
  .to-top { bottom: 76px; right: 14px; }
  .istar-toast { bottom: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar::after, .footer::before, .tabbar::before,
  .pagehead h1 .hl, .about-hero, .logo-ico, .rank-head, .slogan .dot, .tabbar a.on .ico {
    animation: none !important;
  }
  .logo:hover .logo-ico, .logo:hover .word-cn i,
  .card:hover, .ab-btn:hover, .btn-top:hover, .btn-save:hover, .chip:hover,
  .to-top:hover {
    transform: none !important;
  }
  .rank-thumb-ph, .card-ph { background-size: 100% 100%; }
  html { scroll-behavior: auto; }
}

/* =============================================================
   14. 手机端搜索条（只在 <=640px 显示）
   ============================================================= */
.mobile-search { display: none; }
@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 20px 2px;
    position: relative;
    z-index: 1;
  }
  .mobile-search input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 15px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    font-size: 14px;
    outline: none;
    box-shadow: var(--sh-1);
  }
  .mobile-search input::placeholder { color: var(--ink-3); }
  .mobile-search input:focus {
    border-color: var(--pop-orange);
    box-shadow: 0 0 0 3px rgba(219,164,126,.18);
  }
  .mobile-search button {
    flex: none;
    height: 38px;
    padding: 0 17px;
    border: 0;
    border-radius: 999px;
    background: var(--g-orange);
    color: #FFFDF8;
    font-size: 14px;
    font-weight: 800;
    box-shadow: var(--sh-warm);
  }
}

/* =============================================================
   15. 优化与规范对齐补充（无障碍 / 锚点 / 平滑滚动）
   ============================================================= */
:focus-visible {
  outline: 2px solid var(--pop-orange);
  outline-offset: 2px;
}
html {
  scroll-padding-top: 84px;
  scroll-behavior: smooth;
}
.rank { scroll-margin-top: 84px; }
.pagehead h1, .card-title, .rank-name,
.about-hero-txt h1, .empty .empty-t { text-wrap: balance; }


/* --------------------------------------------------------------
 * 16. 作品集文章的媒体呈现（固定比例 · 不放大 · 播放器 · 轮播 · 全屏）
 *     —— 三个皮肤共用，切主题行为一致
 * ------------------------------------------------------------ */

/* 视频卡：抖音官方嵌入播放器是「固定像素」布局 —— 实测其内容恒为
 *   播放器容器 324×672、video 324×624，无论 iframe 视口多宽多高都不缩放。
 * 所以这里也按它的真实尺寸取值，不去猜比例：
 *   容器 324×672  → 正好等于播放器本体，底部多余的 48px 被裁掉
 *   iframe 324×720 → 视口高度 ≥ 内容高度(720)，内部彻底没有溢出，滚动条不可能出现
 * 宽高都用固定值而非百分比/比例，避免任何亚像素差再顶出滚动条。 */
.dy-media { margin: 0 0 1.6em; display: flex; justify-content: center; }
.dy-embed {
  width: 324px;
  max-width: 100%;
  height: 672px;
  border-radius: 14px;
  overflow: hidden;            /* 兜底裁切：任何残余滚动条都会被挡在外面 */
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  line-height: 0;              /* 消除行内基线空隙 */
  font-size: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.dy-embed::-webkit-scrollbar { width: 0; height: 0; display: none; }
.dy-embed iframe {
  display: block;
  width: 324px;
  max-width: none;
  height: 720px;
  border: 0;
  margin: 0;
  vertical-align: bottom;
  overflow: hidden;
  scrollbar-width: none;
}
.dy-embed iframe::-webkit-scrollbar { display: none; }

/* 单图：固定比例、居中、模糊感靠"不放大"消除 */
.dy-figure {
  margin: 0 0 1.6em;
  display: flex;
  justify-content: center;
}
.dy-figure img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* 「观看完整视频」按钮（不再是"在抖音观看"） */
.dy-cta { margin: 0 0 1.8em; }
.dy-cta a {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .62em 1.35em;
  border-radius: 999px;
  background: var(--gold, #C9A227);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.dy-cta a:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201, 162, 39, .35); }

/* 小红书式多图轮播（纯 JS 翻页，无需插件） */
.dy-gallery { margin: 0 0 1.8em; max-width: 720px; margin-left: auto; margin-right: auto; }
.dy-track-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.dy-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dy-track::-webkit-scrollbar { display: none; }
.dy-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  padding: 12px;
  box-sizing: border-box;
}
.dy-slide img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.dy-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .42);
  color: #fff; font-size: 18px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  transition: background .15s ease;
}
.dy-nav:hover { background: rgba(0, 0, 0, .62); }
.dy-prev { left: 10px; }
.dy-next { right: 10px; }
.dy-count {
  position: absolute;
  right: 12px; bottom: 12px;
  padding: .18em .7em;
  border-radius: 999px;
  background: rgba(0, 0, 0, .5);
  color: #fff; font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.dy-dots { display: flex; gap: 6px; justify-content: center; margin-top: .8em; }
.dy-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(0, 0, 0, .18); cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.dy-dots span.on { background: var(--gold, #C9A227); transform: scale(1.25); }

/* 小红书式：点击图片 → 全屏放大查看 */
.dy-slide img { cursor: zoom-in; -webkit-user-drag: none; user-select: none; }
.dy-zoom-hint {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: .22em .75em;
  border-radius: 999px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.dy-track-wrap:hover .dy-zoom-hint { opacity: 1; }
@media (hover: none) { .dy-zoom-hint { opacity: .9; } }

/* 全屏灯箱 */
.dy-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, .95);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.dy-lightbox.open { opacity: 1; pointer-events: auto; }
.dy-lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 6px;
  color: #fff;
}
.dy-lb-count { font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .06em; opacity: .9; }
.dy-lb-close,
.dy-lb-nav {
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.dy-lb-close { width: 36px; height: 36px; font-size: 17px; line-height: 1; }
.dy-lb-close:hover, .dy-lb-nav:hover { background: rgba(255, 255, 255, .26); }
.dy-lb-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
}
.dy-lb-track {
  display: flex;
  height: 100%;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.dy-lb-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  box-sizing: border-box;
}
.dy-lb-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transform-origin: 0 0;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform .18s ease;
  cursor: zoom-in;
}
.dy-lightbox.zoomed .dy-lb-slide img { cursor: grab; }
.dy-lb-stage.panning .dy-lb-slide img { transition: none; cursor: grabbing; }
.dy-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  font-size: 22px; line-height: 1;
}
.dy-lb-nav[disabled] { opacity: .22; cursor: default; background: rgba(255, 255, 255, .08); }
.dy-lb-prev { left: 14px; }
.dy-lb-next { right: 14px; }
.dy-lb-bottom { padding: 10px 16px 22px; }
.dy-lb-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.dy-lb-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.dy-lb-dots span.on { background: var(--gold, #C9A227); transform: scale(1.3); }
body.dy-lb-lock { overflow: hidden; }
@media (max-width: 640px) {
  .dy-lb-nav { width: 36px; height: 36px; font-size: 18px; }
  .dy-lb-prev { left: 8px; }
  .dy-lb-next { right: 8px; }
  .dy-lb-bottom { padding-bottom: 16px; }
}

/* 来源说明 */
.dy-source {
  margin: 2em 0 0;
  padding-top: 1.2em;
  border-top: 1px solid var(--line, rgba(0, 0, 0, .08));
  font-size: .9em;
  opacity: .68;
}

@media (max-width: 640px) {
  /* 注意：手机端不要缩小 .dy-embed —— 抖音播放器内容固定 324 宽，
     容器一旦窄于 324 就会出现横向滚动条；保持 324，靠 max-width:100% 兜底 */
  .dy-figure img { max-width: 300px; }
}
/* 特色图在「抖音搬运」文章里作为海报显示：固定比例、居中、不放大 */
.player.is-dy {
  display: flex;
  justify-content: center;
  margin: 0 0 1.6em;
}
.player.is-dy img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
@media (max-width: 640px) {
  .player.is-dy img { max-width: 300px; }
}


/* =============================================================
 * 17. 文章列表：小红书式无限下拉
 * =========================================================== */
.istar-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 26px auto 6px;
	padding: 8px 0 4px;
	text-align: center;
}
.istar-more[hidden] {
	display: none;
}
.istar-more-status {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--ink-3);
}
.istar-more.is-loading .istar-more-status::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	vertical-align: -2px;
	border: 2px solid var(--line);
	border-top-color: var(--more-accent);
	border-radius: 50%;
	animation: istarSpin .7s linear infinite;
}
@keyframes istarSpin {
	to { transform: rotate(360deg); }
}
.istar-more-btn {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--line);
	background: var(--card);
	color: var(--ink);
	font: inherit;
	font-size: 14px;
	padding: 9px 24px;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: var(--sh-1);
	transition: transform .18s ease, box-shadow .18s ease;
}
.istar-more-btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--sh-2);
}
.istar-more-btn:focus-visible {
	outline: 2px solid var(--more-accent);
	outline-offset: 3px;
}
.istar-more.is-done .istar-more-status {
	color: var(--ink-3);
}
@media (prefers-reduced-motion: reduce) {
	.istar-more.is-loading .istar-more-status::before {
		animation: none;
	}
	.istar-more-btn {
		transition: none;
	}
}

/* =============================================================
   14. 顶栏「类目」下拉 ＋ 列表排序栏
   ============================================================= */

/* 下拉小三角 */
.caret {
  display: inline-block;
  width: 0; height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .55;
  transition: transform .22s ease;
}
[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* —— 顶栏「类目」下拉 —— */
.navlist .istar-nav-cats > a { cursor: pointer; }
.navlist .istar-nav-cats .sub-menu {
  min-width: 198px;
  max-height: 64vh;
  overflow-y: auto;
  padding: 6px;
  -webkit-overflow-scrolling: touch;
}
.navlist .istar-nav-cats .sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
}
.navlist .istar-nav-cats .sub-menu a small {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
}
.navlist .istar-nav-cats .sub-menu a:hover {
  background: var(--hover-soft);
  color: var(--ink);
}
.navlist .istar-nav-cats .sub-menu a.on {
  background: var(--sort-on-bg);
  color: var(--sort-on-fg);
  font-weight: 700;
}
.navlist .istar-nav-cats .sub-menu a.on small { color: inherit; opacity: .72; }
/* 触屏没有 hover，改由 app.js 加 .is-open 展开 */
.istar-nav-cats.is-open > .sub-menu,
.navlist li.menu-item-has-children.is-open > .sub-menu { display: block; }

/* —— 列表排序栏 —— */
.istar-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 0 16px;
}
.istar-sort-item {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--card);
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--sh-1);
  transition: transform .22s cubic-bezier(.34,1.4,.64,1), box-shadow .22s ease, color .22s ease;
}
.istar-sort-item:hover { transform: translateY(-2px); color: var(--ink); box-shadow: var(--sh-2); }
.istar-sort-item:focus-visible { outline: 2px solid var(--more-accent); outline-offset: 3px; }
.istar-sort-item.on {
  background: var(--sort-on-bg);
  border-color: transparent;
  color: var(--sort-on-fg);
  font-weight: 700;
  box-shadow: var(--sh-2);
}

/* 类型下拉：全部 / 视频 / 图文 */
.istar-sort-drop { position: relative; flex: none; }
.istar-sort-drop-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--card);
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--sh-1);
  transition: transform .22s ease, box-shadow .22s ease, color .22s ease;
}
.istar-sort-drop-btn:hover { transform: translateY(-2px); color: var(--ink); box-shadow: var(--sh-2); }
.istar-sort-drop-btn:focus-visible { outline: 2px solid var(--more-accent); outline-offset: 3px; }
.istar-sort-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--sh-3);
  z-index: 25;
}
.istar-sort-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 11px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
}
.istar-sort-menu a:hover { background: var(--hover-soft); color: var(--ink); }
.istar-sort-menu a.on { background: var(--sort-on-bg); color: var(--sort-on-fg); font-weight: 700; }
.istar-sort-drop.is-open .istar-sort-menu { display: block; }
.istar-sort-drop.is-open .istar-sort-drop-btn { color: var(--ink); box-shadow: var(--sh-2); }

@media (hover: hover) {
  .istar-sort-drop:hover .istar-sort-menu { display: block; }
}

@media (max-width: 640px) {
  .istar-sort { gap: 7px; padding-bottom: 14px; }
  .istar-sort-item, .istar-sort-drop-btn { padding: 6px 12px; font-size: 12.5px; }
  .istar-sort-menu { right: auto; left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .caret, .istar-sort-item, .istar-sort-drop-btn { transition: none; }
  .istar-sort-item:hover, .istar-sort-drop-btn:hover { transform: none; }
}

/* --------------------------------------------------------------
 * 留言板卡片墙（仅 guestbook 页面：istar 原生评论 + 卡片皮肤）
 * ------------------------------------------------------------ */
.comments.is-guestbook .cmt-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--gap);
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}
.comments.is-guestbook .cmt-item {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px 16px;
	box-shadow: var(--sh-1);
}
.comments.is-guestbook .cmt-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}
.comments.is-guestbook .cmt-name {
	font-weight: 700;
	color: var(--ink);
}
.comments.is-guestbook .cmt-name a { color: inherit; }
.comments.is-guestbook .cmt-date {
	font-size: 12px;
	color: var(--ink-3);
}
.comments.is-guestbook .cmt-body {
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.7;
	word-break: break-word;
}
.comments.is-guestbook .cmt-foot { margin-top: 8px; }
.comments.is-guestbook .comment-reply-link {
	font-size: 12px;
	color: var(--more-accent);
}

/* ===== 站内评论通知铃铛（方案 D） ===== */
.istar-bell { position: relative; }
.istar-bell-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; padding: 0; border: none; background: transparent;
	color: var(--ink); cursor: pointer; border-radius: var(--radius); position: relative;
}
.istar-bell-btn:hover { background: var(--card); }
.istar-bell-btn svg { width: 20px; height: 20px; }
.istar-bell-badge {
	position: absolute; top: 1px; right: 1px; min-width: 16px; height: 16px;
	padding: 0 4px; border-radius: 9px; background: #e5484d; color: #fff;
	font-size: 11px; line-height: 16px; text-align: center; font-weight: 600;
}
.istar-bell-panel {
	position: absolute; right: 0; top: calc(100% + 6px); z-index: 999;
	width: 320px; max-width: 86vw; background: var(--card);
	border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--sh-1); display: none; overflow: hidden;
}
.istar-bell-panel.is-open { display: block; }
.istar-bell-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 10px 12px; border-bottom: 1px solid var(--line);
	font-size: 13px; font-weight: 600; color: var(--ink);
}
.istar-bell-mark { font-weight: 500; color: var(--more-accent); font-size: 12px; }
.istar-bell-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.istar-note { border-bottom: 1px solid var(--line); }
.istar-note a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink-2); }
.istar-note.is-unread { background: rgba(0,0,0,0.025); }
.istar-note.is-unread a { color: var(--ink); }
.istar-note-author { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.istar-note-text {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden; font-size: 12px; color: var(--ink-2); margin-bottom: 4px;
}
.istar-note-meta { display: block; font-size: 11px; color: var(--ink-3); }
.istar-note-empty { padding: 16px 12px; font-size: 13px; color: var(--ink-3); text-align: center; }

/* 16. 会员注册 / 登录 / 投稿 */
.istar-member .istar-msg { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; border: 1px solid var(--line); }
.istar-member .istar-msg.err { color: #c0392b; background: rgba(192,57,43,.06); border-color: rgba(192,57,43,.25); }
.istar-member .istar-msg.ok { color: #2f7d4f; background: rgba(47,125,79,.07); border-color: rgba(47,125,79,.25); }
.istar-member-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.istar-member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.istar-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--sh-1); }
.istar-card-title { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.istar-card-tip { margin: 0 0 12px; font-size: 12px; color: var(--ink-3); }
.istar-form .cmt-form { margin: 0 0 12px; }
.istar-form label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 5px; }
.istar-form input[type="text"],
.istar-form input[type="email"],
.istar-form input[type="password"],
.istar-form textarea,
.istar-form select.istar-cat { width: 100%; box-sizing: border-box; padding: 9px 10px; font-size: 14px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.istar-form textarea { line-height: 1.7; resize: vertical; }
.istar-cap-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.istar-cap-img { border: 1px solid var(--line); border-radius: 6px; display: block; }
.istar-cap-math { font-size: 16px; font-weight: 600; color: var(--ink); padding: 8px 12px; border: 1px dashed var(--line); border-radius: 6px; }
.istar-cap-row input { flex: 1 1 110px; min-width: 100px; }
.istar-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (max-width: 640px) {
	.istar-member-grid { grid-template-columns: 1fr; }
}
.istar-form-tip { margin: -2px 0 0; font-size: 12px; color: var(--ink-3); }
.istar-form-tip a { color: var(--more-accent); }
