:root {
  --ink: #252825;
  --muted: #716f67;
  --line: #d9d2c3;
  --paper: #f5f1e8;
  --paper-deep: #ebe4d5;
  --card: #faf7ef;
  --forest: #1a3b32;
  --forest-light: #e3e9e2;
  --coral: #c83c23;
  --coral-light: #f1ddd5;
  --gold: #b08a45;
  --shadow: 0 18px 46px rgba(45, 38, 25, .12);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; color: var(--ink); background-color: var(--paper); background-image: linear-gradient(180deg, rgba(245,241,232,.32), rgba(218,228,220,.2) 56%, rgba(245,241,232,.76)), radial-gradient(rgba(81, 71, 50, .08) .55px, transparent .65px), radial-gradient(rgba(255, 255, 255, .55) .65px, transparent .8px); background-position: 0 0, 0 0, 7px 9px; background-size: 100% 100%, 11px 11px, 13px 13px; font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: 17px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.scene-depth { position: fixed; inset: 88px 0 0; z-index: 0; overflow: hidden; pointer-events: none; contain: paint; }
.scene-layer { position: absolute; inset: -7%; background-repeat: no-repeat; will-change: transform, opacity; transform: translate3d(0, 0, 0); }
.scene-far { background-image: linear-gradient(rgba(245,241,232,.7), rgba(245,241,232,.5)), url("/assets/scene-far-mountains.jpg"); background-position: center, center top; background-size: cover, cover; opacity: .4; filter: saturate(.55) contrast(.78) blur(2px); animation: far-mountain-drift 52s ease-in-out infinite alternate; }
.scene-mid { background-image: url("/assets/scene-mid-mountains.png"); background-position: center 20%; background-size: max(1260px, 105vw) auto; opacity: .14; filter: saturate(.58) contrast(.8) blur(.8px); animation: mid-mountain-breathe 29s ease-in-out infinite alternate; }
.scene-near { inset: -4% -3% -8%; background-image: url("/assets/scene-bamboo.png"); background-position: center top; background-size: max(1180px, 104vw) auto; opacity: .23; filter: saturate(.62) contrast(.86); transform-origin: 50% 0; animation: bamboo-sway 13s ease-in-out infinite alternate; }
.ambient-mist { position: fixed; inset: -18%; z-index: 1; overflow: hidden; pointer-events: none; opacity: .54; }
.ambient-mist::before, .ambient-mist::after { content: ""; position: absolute; left: -16%; width: 132%; height: 34%; background: linear-gradient(105deg, transparent 8%, rgba(150,178,164,.08) 22%, rgba(236,241,228,.58) 42%, rgba(130,165,151,.1) 61%, transparent 82%); filter: blur(24px); }
.ambient-mist::before { top: 22%; animation: mist-drift 24s ease-in-out infinite alternate; }
.ambient-mist::after { top: 58%; opacity: .7; background-image: url("/assets/scene-clouds.png"); background-position: center; background-size: cover; animation: cloud-drift 38s ease-in-out infinite alternate; }
#bamboo-canvas { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
main, .site-bulletin, .usage-warning, .site-footer { position: relative; z-index: 2; }

.desktop-pet { width: 180px; height: 250px; position: fixed; left: 0; top: 0; z-index: 40; touch-action: none; cursor: grab; user-select: none; will-change: transform; }
.desktop-pet[hidden] { display: none; }
.desktop-pet-body { width: 100%; height: 100%; display: grid; place-items: end center; position: relative; transform-origin: 50% 100%; animation: pet-idle-float 4.2s ease-in-out infinite; }
.desktop-pet-body::after { content: ""; width: 68%; height: 14px; position: absolute; left: 16%; bottom: 2px; z-index: -1; background: radial-gradient(ellipse, rgba(29,42,37,.28), transparent 70%); filter: blur(4px); animation: pet-shadow-breathe 4.2s ease-in-out infinite; }
.desktop-pet img { max-width: 100%; max-height: 100%; display: block; object-fit: contain; pointer-events: none; filter: drop-shadow(0 10px 9px rgba(34,31,27,.2)); -webkit-user-drag: none; }
.desktop-pet:hover .desktop-pet-body { filter: brightness(1.025); }
.desktop-pet.is-dragging { cursor: grabbing; }
.desktop-pet.is-dragging .desktop-pet-body { transform-origin: 74% 6%; animation: pet-drag-sway .5s ease-in-out infinite alternate; }
.desktop-pet.is-dragging .desktop-pet-body::after { opacity: .25; }
.desktop-pet.is-reacting .desktop-pet-body { transform-origin: 50% 100%; animation: pet-react-bounce .38s cubic-bezier(.2,.8,.28,1) 4 alternate; }
.desktop-pet-bubble { max-width: 230px; min-width: 116px; padding: 10px 13px; position: absolute; right: 76%; bottom: 70%; z-index: 2; opacity: 0; color: #fffaf0; background: rgba(24,55,47,.94); border: 1px solid rgba(176,138,69,.72); box-shadow: 0 10px 28px rgba(32,35,29,.2); font-family: KaiTi, STKaiti, "Noto Serif SC", serif; font-size: 16px; line-height: 1.5; text-align: center; pointer-events: none; transform: translate3d(8px, 8px, 0) scale(.94); transition: opacity .2s ease, transform .24s ease; }
.desktop-pet-bubble::after { content: ""; width: 12px; height: 12px; position: absolute; right: -7px; bottom: 17px; background: rgba(24,55,47,.94); border-top: 1px solid rgba(176,138,69,.72); border-right: 1px solid rgba(176,138,69,.72); transform: rotate(45deg); }
.desktop-pet.has-bubble .desktop-pet-bubble { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.desktop-pet-spark { position: absolute; right: 9px; top: 26px; z-index: 3; opacity: 0; color: #c83c23; font-size: 30px; pointer-events: none; }
.desktop-pet.is-reacting .desktop-pet-spark { animation: pet-spark-pop .6s ease-out 3; }

.site-header { height: 88px; padding: 0 max(22px, calc((100vw - 1160px) / 2)); display: flex; align-items: center; gap: 26px; background: rgba(245, 241, 232, .94); border-bottom: 1px solid rgba(176, 138, 69, .35); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand-avatar { width: 50px; height: 50px; display: block; object-fit: cover; border: 1px solid rgba(176,138,69,.72); box-shadow: 0 5px 14px rgba(43,49,39,.12), inset 0 0 0 2px #fff; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand-copy strong { font-family: KaiTi, STKaiti, serif; font-size: 26px; letter-spacing: 0; }
.brand-copy small { color: var(--muted); font-size: 14px; letter-spacing: 0; }
.qq-join { padding: 9px 12px; display: inline-flex; align-items: baseline; gap: 8px; color: var(--forest); background: rgba(250,247,239,.78); border: 1px solid rgba(200,60,35,.42); box-shadow: inset 3px 0 0 var(--coral); font-size: 14px; white-space: nowrap; }
.qq-join:hover { color: #fff8ec; background: var(--forest); border-color: var(--forest); }
.qq-join b { color: var(--coral); font-size: 15px; }
.qq-join:hover b { color: #ffe1c0; }
.main-nav { display: flex; gap: 32px; color: var(--muted); font-size: 17px; }
.nav-link { padding: 32px 0 28px; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link.active { color: var(--forest); border-color: var(--coral); }
.admin-trigger { min-height: 45px; border: 1px solid var(--line); color: var(--forest); background: var(--card); padding: 11px 16px; cursor: pointer; border-radius: 3px; font-size: 17px; white-space: nowrap; }
.admin-trigger:hover { border-color: var(--forest); background: var(--forest-light); }

.site-bulletin { max-width: 1160px; margin: 22px auto 0; padding: 0 10px 20px; border-bottom: 1px solid rgba(176,138,69,.28); }
.update-log { min-width: 0; background: rgba(250,247,239,.74); border: 1px solid rgba(176,138,69,.38); box-shadow: inset 3px 0 0 var(--coral); font-family: KaiTi, STKaiti, "Noto Serif SC", SimSun, serif; }
.update-log summary { min-height: 76px; padding: 14px 18px; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 8px 14px; cursor: pointer; list-style: none; }
.update-log summary::-webkit-details-marker { display: none; }
.update-log summary::after { content: "展开"; grid-column: 3; justify-self: end; color: var(--muted); font-size: 12px; }
.update-log[open] summary::after { content: "收起"; }
.update-log summary > span { color: #b53e29; font-size: 18px; font-weight: 700; }
.update-log summary time { color: #8a6d3f; font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: 13px; white-space: nowrap; }
.update-log summary strong { grid-column: 1 / -1; overflow: hidden; color: #67402f; font-size: 19px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.update-list { max-height: 280px; margin: 0 18px 16px; padding: 14px 8px 0 0; display: grid; gap: 13px; overflow-y: auto; border-top: 1px solid rgba(176,138,69,.3); list-style: none; scrollbar-color: rgba(181,62,41,.58) rgba(176,138,69,.1); scrollbar-width: thin; }
.update-list li { display: grid; grid-template-columns: 142px minmax(0, 1fr); gap: 12px; }
.update-list time { color: var(--muted); font-size: 13px; }
.update-list p { margin: 0; color: #664235; font-size: 16px; line-height: 1.7; }
.update-list::-webkit-scrollbar { width: 7px; }
.update-list::-webkit-scrollbar-track { background: rgba(176,138,69,.1); }
.update-list::-webkit-scrollbar-thumb { background: rgba(181,62,41,.58); }

main { max-width: 1320px; margin: 0 auto; }
.intro { min-height: 535px; padding: 118px 80px 94px; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 80px; align-items: end; position: relative; overflow: hidden; isolation: isolate; }
.intro::before { content: ""; position: absolute; inset: 4% -3% -4% 26%; z-index: -2; background: url("/assets/scene-aura.png") right center / min(920px, 78vw) auto no-repeat; opacity: .2; filter: saturate(.48) blur(.4px); will-change: transform, opacity; animation: aura-current 18s ease-in-out infinite alternate; }
.intro::after { content: ""; position: absolute; left: 80px; right: 80px; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(67, 70, 59, .45) 15%, rgba(200, 60, 35, .55) 50%, rgba(67, 70, 59, .25) 84%, transparent); }
.intro-copy, .intro-aside { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 20px; color: var(--coral); font-size: 13px; font-weight: 700; letter-spacing: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 28px; font-family: STXingkai, KaiTi, STKaiti, serif; font-size: 74px; line-height: 1.14; letter-spacing: 0; font-weight: 500; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
h1 em { color: var(--forest); font-style: normal; }
.intro-text { max-width: 560px; color: #5e6059; font-size: 18px; line-height: 2; }
.scroll-cue { display: inline-flex; gap: 9px; align-items: center; margin-top: 38px; color: var(--forest); font-size: 16px; font-weight: 700; }
.scroll-cue span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--forest); border-radius: 50%; font-size: 16px; }
.hero-seal { position: absolute; left: min(720px, 78%); top: 42px; width: 34px; padding: 6px 0; color: var(--coral); border: 2px solid currentColor; box-shadow: inset 0 0 0 2px rgba(200,60,35,.18); font-family: KaiTi, STKaiti, serif; font-size: 12px; line-height: 1.15; text-align: center; transform: rotate(3deg); opacity: .9; animation: seal-breath 4.8s ease-in-out infinite; }
.hero-orbit { width: 510px; height: 510px; position: absolute; right: 100px; top: 14px; z-index: -1; border-radius: 50%; pointer-events: none; opacity: .72; filter: drop-shadow(0 0 20px rgba(176,138,69,.08)); }
.hero-orbit::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(245,241,232,.1) 0 26%, rgba(157,183,168,.14) 48%, rgba(176,138,69,.08) 62%, transparent 73%); filter: blur(12px); animation: orbit-glow 10s ease-in-out infinite; }
.orbit-ring, .orbit-ticks { position: absolute; left: 50%; top: 50%; border-radius: 50%; will-change: transform; }
.orbit-ring { border: 1px solid rgba(40,70,58,.2); }
.orbit-ring::before, .orbit-ring::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(176,138,69,.58); }
.orbit-ring-outer { width: 490px; height: 490px; margin: -245px; border-style: dashed; animation: spin-clockwise 82s linear infinite; }
.orbit-ring-outer::before { left: 52px; top: 52px; }
.orbit-ring-outer::after { right: 52px; bottom: 52px; }
.orbit-ring-middle { width: 382px; height: 382px; margin: -191px; border-color: rgba(176,138,69,.22); border-style: dotted; animation: spin-counter 112s linear infinite; }
.orbit-ring-middle::before { left: 50%; top: -4px; }
.orbit-ring-middle::after { left: 50%; bottom: -4px; }
.orbit-ring-inner { width: 270px; height: 270px; margin: -135px; border-color: rgba(200,60,35,.18); animation: spin-clockwise 145s linear infinite; }
.orbit-ring-inner::before { right: 16px; top: 48px; background: var(--coral); }
.orbit-ring-inner::after { left: 16px; bottom: 48px; }
.orbit-ticks { width: 434px; height: 434px; margin: -217px; background: repeating-conic-gradient(rgba(40,70,58,.18) 0 .4deg, transparent .4deg 14deg); mask: radial-gradient(circle, transparent 0 76%, #000 76.5% 78%, transparent 78.5%); animation: spin-counter 96s linear infinite; }
.orbit-rune { position: absolute; color: rgba(31,59,49,.18); font-family: KaiTi, STKaiti, serif; font-size: 24px; animation: rune-float 7s ease-in-out infinite alternate; }
.rune-one { left: 36px; top: 230px; }
.rune-two { right: 48px; top: 92px; animation-delay: -2s; }
.rune-three { right: 28px; bottom: 112px; animation-delay: -4s; }
.rune-four { left: 86px; bottom: 42px; animation-delay: -5.5s; }
.orbit-spark { width: 6px; height: 6px; position: absolute; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px 3px rgba(176,138,69,.35); animation: spark-pulse 3.8s ease-in-out infinite; }
.spark-one { left: 88px; top: 92px; }
.spark-two { right: 106px; bottom: 62px; animation-delay: -1.3s; }
.spark-three { right: 44px; top: 258px; animation-delay: -2.6s; }
.intro-aside { align-self: center; padding: 26px 24px; color: var(--muted); background: rgba(245,241,232,.76); border: 1px solid rgba(200,60,35,.55); box-shadow: inset 0 0 0 4px rgba(245,241,232,.9), inset 0 0 0 5px rgba(200,60,35,.18); font-size: 15px; }
.aside-rule { width: 42px; height: 2px; margin-bottom: 20px; background: var(--coral); }
.intro-aside p { margin-bottom: 8px; }
.intro-aside strong { display: block; color: var(--forest); font-size: 54px; line-height: 1; letter-spacing: 0; }
.intro-aside span { display: block; margin-top: 7px; }
.aside-note { margin-top: 28px; padding-top: 18px; display: grid; gap: 9px; border-top: 1px solid rgba(200,60,35,.35); line-height: 1.8; }
.aside-note div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.aside-note small { color: var(--muted); font-size: 13px; }
.aside-note b { color: var(--coral); font-size: 21px; font-weight: 700; }

.gallery-section { padding: 84px 80px 120px; position: relative; isolation: isolate; }
.gallery-section::before { content: ""; position: absolute; inset: -40px -10vw 0; z-index: -1; background: linear-gradient(180deg, rgba(245,241,232,.92), rgba(245,241,232,.56) 30%, rgba(224,232,224,.46) 72%, rgba(245,241,232,.92)), url("/assets/scene-clouds.png") center bottom / min(1500px, 118vw) auto no-repeat; opacity: .56; filter: saturate(.58) contrast(.82) blur(.5px); pointer-events: none; animation: landscape-breathe 18s ease-in-out infinite alternate; }
.section-heading { display: grid; grid-template-columns: auto minmax(420px, 760px) auto; align-items: end; gap: 32px; margin-bottom: 35px; }
.section-heading .eyebrow { margin-bottom: 12px; }
h2 { margin-bottom: 0; color: var(--forest); font-family: STXingkai, KaiTi, STKaiti, serif; font-size: 46px; font-weight: 500; letter-spacing: 0; }
.section-count { color: var(--muted); font-size: 15px; }
.gallery-controls { min-width: 0; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(170px, 210px); align-items: end; gap: 18px; }
.gallery-search, .gallery-sort { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.gallery-search input { width: 100%; padding: 12px 14px; color: var(--ink); background: rgba(250,247,239,.82); border: 0; border-bottom: 1px solid rgba(26,59,50,.5); outline: none; font: inherit; font-size: 16px; }
.gallery-search input:focus { border-color: var(--coral); box-shadow: 0 3px 0 rgba(200,60,35,.16); }
.gallery-search input::placeholder { color: #928f86; }
.gallery-sort select { width: 100%; min-height: 45px; padding: 10px 34px 10px 12px; color: var(--forest); background: rgba(250,247,239,.88); border: 1px solid rgba(176,138,69,.45); outline: none; font: inherit; font-size: 15px; cursor: pointer; }
.gallery-sort select:focus { border-color: var(--coral); box-shadow: 0 0 0 2px rgba(200,60,35,.12); }
.category-tabs { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 34px; border-bottom: 1px solid rgba(176,138,69,.32); }
.category-tab { position: relative; padding: 10px 2px 13px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: 17px; }
.category-tab::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 5px; background: var(--coral); opacity: .72; transform: skewX(-15deg) rotate(-1deg); transition: right .22s ease; }
.category-tab:hover, .category-tab.selected { color: var(--forest); }
.category-tab:hover::after, .category-tab.selected::after { right: 0; }
.tag-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -18px 0 32px; }
.tag-filter { padding: 8px 12px; color: var(--muted); background: rgba(250,247,239,.72); border: 1px solid rgba(176,138,69,.32); cursor: pointer; font-size: 14px; }
.tag-filter:hover, .tag-filter.selected { color: #fff8ec; background: var(--forest); border-color: var(--forest); }
.gallery-scroll { height: clamp(620px, calc(100vh - 150px), 980px); padding: 2px 18px 24px 2px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; outline: none; border-bottom: 1px solid rgba(176,138,69,.28); }
.gallery-scroll:focus-visible { box-shadow: 0 0 0 2px rgba(200,60,35,.28); }
.gallery-scroll::-webkit-scrollbar { width: 10px; }
.gallery-scroll::-webkit-scrollbar-track { background: rgba(176,138,69,.1); border-left: 1px solid rgba(176,138,69,.16); }
.gallery-scroll::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(26,59,50,.72), rgba(176,138,69,.72)); border: 2px solid rgba(245,241,232,.82); }
.gallery-scroll { scrollbar-color: rgba(26,59,50,.72) rgba(176,138,69,.1); scrollbar-width: thin; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gallery-card { min-width: 0; padding: 6px; position: relative; z-index: 1; background: var(--card); border: 1px solid rgba(176,138,69,.62); box-shadow: inset 0 0 0 2px rgba(176,138,69,.12); transition: transform .25s ease, box-shadow .25s ease; }
.gallery-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.album-card::before, .album-card::after { content: ""; position: absolute; z-index: -1; background: var(--paper-deep); border: 1px solid rgba(176,138,69,.48); transition: transform .25s ease; }
.album-card::before { inset: 5px -6px -6px 7px; transform: rotate(1.2deg); }
.album-card::after { inset: 8px -10px -10px 11px; transform: rotate(2deg); opacity: .72; }
.album-card:hover::before { transform: translate(3px, 2px) rotate(2.1deg); }
.album-card:hover::after { transform: translate(6px, 4px) rotate(3.2deg); }
.art-button { width: 100%; padding: 0; position: relative; border: 0; background: #dfe7e5; cursor: zoom-in; display: block; aspect-ratio: 1.12 / 1; overflow: hidden; }
.art-button img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .4s ease; }
.gallery-card:hover .art-button img { transform: scale(1.04); }
.mask-blur > img, .mask-both > img, .mask-blur .draft-image-preview > img, .mask-both .draft-image-preview > img { filter: blur(16px) saturate(.68) brightness(.92) !important; transform: scale(1.12) !important; }
.gallery-card:hover .art-button.mask-blur img, .gallery-card:hover .art-button.mask-both img { transform: scale(1.15) !important; }
.watermark-grid { position: absolute; inset: -10%; z-index: 5; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: center; justify-items: center; gap: 8px 12px; overflow: hidden; color: rgba(255,255,255,.7); background: rgba(18,38,32,.04); pointer-events: none; transform: rotate(-12deg) scale(1.12); transform-origin: center; }
.watermark-grid[hidden] { display: none; }
.watermark-grid i { font-family: KaiTi, STKaiti, serif; font-size: clamp(12px, 1.2vw, 19px); font-style: normal; font-weight: 700; line-height: 1; white-space: nowrap; text-shadow: 0 1px 3px rgba(10,22,18,.7); }
.image-frame > .watermark-grid { inset: 3% 5%; grid-template-columns: repeat(5, minmax(0, 1fr)); color: rgba(255,255,255,.54); transform: rotate(-12deg) scale(1.03); }
.album-badge { position: absolute; top: 10px; right: 10px; padding: 7px 10px; color: #fff7e8; background: rgba(184,48,30,.94); border: 1px solid rgba(255,245,220,.45); box-shadow: 0 4px 12px rgba(53,24,18,.25); font-family: KaiTi, STKaiti, serif; font-size: 12px; }
.card-info { padding: 17px 13px 15px; display: flex; gap: 12px; justify-content: space-between; align-items: end; }
.card-main { min-width: 0; }
.card-info h3 { margin: 0 0 7px; font-size: 22px; font-weight: 700; }
.card-info p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.card-tags span { color: var(--forest); font-size: 13px; }
.card-tags span + span::before { content: "·"; margin-right: 5px; color: var(--gold); }
.card-meta { flex: none; display: grid; justify-items: end; gap: 9px; }
.card-meta small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.card-tag { flex: none; padding: 6px 8px; color: var(--coral); background: transparent; border: 1px solid rgba(200,60,35,.55); font-family: KaiTi, STKaiti, serif; font-size: 14px; white-space: nowrap; transform: rotate(-1deg); }
.empty-state { padding: 74px 20px; text-align: center; border: 1px dashed #becbc7; color: var(--muted); }
.empty-mark { display: block; color: var(--coral); font-size: 30px; }
.empty-state h3 { margin: 15px 0 8px; color: var(--forest); font-size: 17px; }
.empty-state p { margin: 0; font-size: 12px; }
.usage-warning { max-width: 1160px; margin: 0 auto 36px; padding: 34px 80px; display: flex; align-items: center; gap: 28px; color: #ded8ca; background-color: var(--forest); background-image: linear-gradient(90deg, rgba(8,28,24,.94), rgba(26,59,50,.84), rgba(8,28,24,.94)), url("/assets/ink-mountains.svg"); background-position: center, center 62%; background-size: cover, 88% auto; border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); box-shadow: 0 18px 48px rgba(26,42,36,.15); }
.usage-warning .eyebrow { margin-bottom: 8px; color: #dfb960; }
.usage-warning h2 { margin-bottom: 10px; color: #fff8ec; font-size: 28px; }
.usage-warning p:last-child { max-width: 820px; margin: 0; color: #d8d2c5; font-size: 15px; line-height: 1.85; }
.warning-seal { flex: none; width: 42px; padding: 7px 0; color: #f4d9ce; border: 2px solid var(--coral); box-shadow: inset 0 0 0 2px rgba(200,60,35,.25); font-family: KaiTi, STKaiti, serif; font-size: 13px; line-height: 1.15; text-align: center; transform: rotate(-2deg); }
.site-footer { max-width: 1320px; margin: 0 auto; padding: 34px 80px 46px; display: grid; grid-template-columns: auto minmax(280px, 1fr) auto; align-items: start; gap: 32px 48px; color: var(--muted); border-top: 1px solid rgba(176,138,69,.35); font-size: 15px; line-height: 1.7; }
.site-footer > div { display: grid; gap: 10px; }
.site-footer strong { color: var(--forest); font-size: 19px; }
.site-footer .footer-disclaimer { max-width: 650px; gap: 5px; }
.site-footer .footer-disclaimer strong { color: #a63b2c; font-family: KaiTi, STKaiti, "Noto Serif SC", SimSun, serif; font-size: 18px; }
.footer-disclaimer p { margin: 0; color: #68645b; font-size: 13px; line-height: 1.8; }
.footer-mark { padding-top: 2px; white-space: nowrap; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-contact b { color: var(--coral); font-size: 16px; font-weight: 700; }
.footer-contact a { color: inherit; }
.footer-contact a:hover { color: var(--forest); text-decoration: underline; }

.ink-transition { position: fixed; inset: 0; z-index: 65; pointer-events: none; background-color: rgba(12,24,21,.92); background-image: radial-gradient(circle at 50% 45%, rgba(82,112,99,.34), transparent 38%), radial-gradient(circle at 18% 30%, rgba(0,0,0,.72), transparent 28%), radial-gradient(circle at 78% 72%, rgba(0,0,0,.72), transparent 30%); backdrop-filter: blur(4px); }
.portal-clone { position: fixed; inset: 0; z-index: 66; width: 100vw; height: 100vh; object-fit: contain; pointer-events: none; filter: drop-shadow(0 28px 48px rgba(0,0,0,.48)); }
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 60; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background-color: rgba(15, 28, 26, .88); background-image: radial-gradient(circle at 50% 52%, rgba(67,104,91,.24), transparent 42%), linear-gradient(180deg, rgba(9,19,18,.32), rgba(9,19,18,.72)); cursor: default; backdrop-filter: blur(3px); }
.entry-notice { z-index: 90; }
.entry-notice-panel { position: relative; z-index: 1; width: min(700px, 92vw); max-height: 92vh; overflow: hidden; padding: 28px 38px 32px; display: flex; flex-direction: column; color: var(--ink); background-color: var(--paper); background-image: radial-gradient(rgba(81,71,50,.08) .55px, transparent .65px); background-size: 11px 11px; border: 1px solid rgba(176,138,69,.72); box-shadow: 0 30px 90px rgba(0,0,0,.46), inset 0 0 0 4px rgba(255,255,255,.38); text-align: center; }
.entry-notice-panel img { width: min(150px, 36vw); aspect-ratio: 1; display: block; margin: 0 auto 12px; object-fit: cover; border: 1px solid rgba(176,138,69,.55); box-shadow: 0 14px 32px rgba(42,49,39,.15); }
.entry-notice-panel .eyebrow { color: var(--coral); }
.entry-notice-panel h2 { margin-bottom: 14px; font-size: 34px; }
.entry-notice-scroll { min-height: 150px; max-height: 38vh; overflow-y: auto; padding: 18px 22px 24px; border-top: 1px solid rgba(176,138,69,.42); border-bottom: 1px solid rgba(176,138,69,.42); text-align: left; scrollbar-color: rgba(181,62,41,.62) rgba(176,138,69,.12); scrollbar-width: thin; }
.entry-notice-scroll::-webkit-scrollbar { width: 8px; }
.entry-notice-scroll::-webkit-scrollbar-track { background: rgba(176,138,69,.12); }
.entry-notice-scroll::-webkit-scrollbar-thumb { background: rgba(181,62,41,.62); }
.entry-notice-copy { color: #283f38; font-family: KaiTi, STKaiti, "Noto Serif SC", SimSun, serif; font-size: 18px; line-height: 1.9; overflow-wrap: anywhere; }
.entry-notice-progress { margin: 10px 0; color: #8b593f; font-size: 14px; }
.entry-notice-panel .primary-button { width: 100%; }
.entry-notice-panel .primary-button:disabled { cursor: not-allowed; background: #8a918b; opacity: .72; }
.album-modal { padding: 48px; }
.scroll-sheet { position: relative; z-index: 1; width: min(1180px, 92vw); min-height: min(720px, 84vh); max-height: 90vh; padding: 48px 74px 38px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; color: var(--ink); background-color: #f3ead6; background-image: radial-gradient(rgba(77,58,32,.09) .65px, transparent .75px), linear-gradient(90deg, rgba(133,95,50,.1), transparent 10%, transparent 90%, rgba(133,95,50,.11)), linear-gradient(180deg, rgba(255,251,237,.88), rgba(226,232,218,.55)); background-size: 10px 10px, 100% 100%, 100% 100%; border-top: 4px solid #a0783f; border-bottom: 4px solid #a0783f; box-shadow: 0 34px 100px rgba(0,0,0,.52), inset 0 0 58px rgba(88,72,42,.14), inset 0 0 0 1px rgba(181,151,94,.48); transform-origin: center; animation: scroll-open .62s cubic-bezier(.2,.75,.2,1) both; }
.scroll-landscape { position: absolute; inset: 82px 0 0; z-index: 0; overflow: hidden; background: linear-gradient(180deg, transparent 12%, rgba(235,239,225,.08) 38%, rgba(166,191,177,.2) 72%, rgba(119,156,141,.24)), url("/assets/ink-mountains.svg") center 72% / 112% auto no-repeat; opacity: .72; filter: saturate(.65) contrast(.88); pointer-events: none; }
.scroll-landscape::before { content: ""; position: absolute; left: -8%; right: -8%; bottom: 8%; height: 34%; background: radial-gradient(ellipse at center, rgba(255,252,236,.78), rgba(217,229,218,.3) 48%, transparent 73%); filter: blur(12px); }
.scroll-landscape::after { content: ""; position: absolute; inset: 8% 7% auto auto; width: 160px; height: 160px; border: 1px solid rgba(176,138,69,.18); border-radius: 50%; box-shadow: inset 0 0 30px rgba(176,138,69,.08), 0 0 34px rgba(255,246,206,.14); }
.scroll-sheet > :not(.scroll-landscape, .scroll-rod) { position: relative; z-index: 2; }
.scroll-sheet::before, .scroll-sheet::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18px; background: linear-gradient(90deg, #70491f, #c49a5b 46%, #70491f); box-shadow: 0 0 0 2px #4c3118, 0 8px 22px rgba(0,0,0,.38); }
.scroll-sheet::before { left: -14px; }
.scroll-sheet::after { right: -14px; }
.scroll-rod { position: absolute; top: -18px; bottom: -18px; width: 26px; border-radius: 50%; background: linear-gradient(90deg, #513117, #bd8e4f 48%, #4a2b13); box-shadow: 0 5px 24px rgba(0,0,0,.45); }
.scroll-rod::before, .scroll-rod::after { content: ""; position: absolute; left: -7px; width: 40px; height: 13px; border-radius: 50%; background: #8b612d; border: 2px solid #4d3016; }
.scroll-rod::before { top: -4px; }
.scroll-rod::after { bottom: -4px; }
.scroll-rod-left { left: -18px; }
.scroll-rod-right { right: -18px; }
.scroll-sheet .close-button { position: absolute; top: 18px; right: 24px; color: var(--forest); }
.album-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(140,98,46,.38); }
.album-heading .eyebrow { margin-bottom: 7px; }
.album-heading h2 { font-size: 40px; }
.album-count { color: var(--coral); font-family: KaiTi, STKaiti, serif; font-size: 15px; }
.album-stage { min-width: 0; padding: 26px 4px 18px; display: flex; align-items: center; justify-content: center; gap: 20px; overflow-x: auto; overflow-y: hidden; scrollbar-color: rgba(176,138,69,.6) transparent; }
.floating-art { flex: 0 1 230px; min-width: 130px; height: min(52vh, 480px); padding: 0; position: relative; color: var(--forest); background: transparent; border: 0; cursor: zoom-in; opacity: 0; animation: art-rise .65s ease both, art-float 4.8s ease-in-out 1s infinite; }
.floating-art img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 19px 16px rgba(41,33,23,.27)); }
.floating-art > small { position: absolute; left: 8px; right: 36px; bottom: 5px; z-index: 6; overflow: hidden; padding: 5px 8px; color: #fff8ec; background: rgba(17,45,37,.82); font-family: KaiTi, STKaiti, serif; font-size: 14px; line-height: 1.15; text-align: left; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.floating-art > span { position: absolute; right: 4px; bottom: 4px; z-index: 6; width: 24px; height: 24px; display: grid; place-items: center; color: #fff8ec; background: var(--coral); border: 1px solid #9e2f1d; font-size: 10px; }
.mode-framed { min-height: min(53vh, 500px); position: relative; overflow: visible; perspective: 1200px; }
.mode-framed::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 4px; height: 42px; z-index: 0; background: radial-gradient(ellipse, rgba(47,64,57,.24), transparent 68%); filter: blur(9px); }
.mode-framed .floating-art { --fan-x: 0px; --fan-y: 0px; --fan-rotate: 0deg; --fan-scale: 1; width: clamp(190px, 20vw, 260px); min-width: 0; height: min(45vh, 430px); padding: 8px; position: absolute; left: 50%; bottom: 18px; z-index: 5; background: linear-gradient(145deg, rgba(255,253,242,.96), rgba(225,235,226,.92)); border: 1px solid rgba(145,112,55,.7); outline: 1px solid rgba(244,224,166,.35); outline-offset: -5px; box-shadow: 0 21px 42px rgba(27,45,39,.22), inset 0 0 0 2px rgba(255,251,229,.7); transform: translateX(calc(-50% + var(--fan-x))) translateY(var(--fan-y)) rotate(var(--fan-rotate)) scale(var(--fan-scale)); transform-origin: 50% 105%; animation: fan-reveal .68s cubic-bezier(.2,.78,.2,1) both; transition: transform .28s ease, box-shadow .28s ease, filter .28s ease; }
.mode-framed .floating-art:hover { z-index: 20; filter: brightness(1.04); box-shadow: 0 30px 60px rgba(19,39,34,.33), 0 0 0 1px rgba(197,159,86,.55), inset 0 0 0 2px rgba(255,251,229,.78); transform: translateX(calc(-50% + var(--fan-x))) translateY(calc(var(--fan-y) - 18px)) rotate(var(--fan-rotate)) scale(var(--fan-scale)); }
.mode-framed .floating-art img { object-fit: cover; filter: saturate(.92) contrast(1.02); }
.mode-framed [data-fan-position="-4"] { --fan-x: -420px; --fan-y: 62px; --fan-rotate: -19deg; --fan-scale: .8; z-index: 1; }
.mode-framed [data-fan-position="-3"] { --fan-x: -355px; --fan-y: 46px; --fan-rotate: -15deg; --fan-scale: .85; z-index: 2; }
.mode-framed [data-fan-position="-2"] { --fan-x: -285px; --fan-y: 30px; --fan-rotate: -11deg; --fan-scale: .9; z-index: 3; }
.mode-framed [data-fan-position="-1"] { --fan-x: -195px; --fan-y: 14px; --fan-rotate: -7deg; --fan-scale: .96; z-index: 4; }
.mode-framed [data-fan-position="0"] { --fan-x: 0px; --fan-y: -6px; --fan-rotate: 0deg; --fan-scale: 1.04; z-index: 8; }
.mode-framed [data-fan-position="1"] { --fan-x: 195px; --fan-y: 14px; --fan-rotate: 7deg; --fan-scale: .96; z-index: 4; }
.mode-framed [data-fan-position="2"] { --fan-x: 285px; --fan-y: 30px; --fan-rotate: 11deg; --fan-scale: .9; z-index: 3; }
.mode-framed [data-fan-position="3"] { --fan-x: 355px; --fan-y: 46px; --fan-rotate: 15deg; --fan-scale: .85; z-index: 2; }
.mode-framed [data-fan-position="4"] { --fan-x: 420px; --fan-y: 62px; --fan-rotate: 19deg; --fan-scale: .8; z-index: 1; }
.mode-framed .float-delay-1 { animation-delay: .08s; }
.mode-framed .float-delay-2 { animation-delay: .16s; }
.mode-framed .float-delay-3 { animation-delay: .24s; }
.mode-framed .float-delay-4 { animation-delay: .32s; }
.mode-cutout { gap: 8px; }
.mode-cutout .floating-art { flex-basis: 270px; max-width: 300px; }
.mode-cutout .floating-art img { filter: drop-shadow(0 24px 18px rgba(31,26,19,.34)); }
.float-delay-1 { animation-delay: .1s, 1.2s; }
.float-delay-2 { animation-delay: .2s, 1.4s; }
.float-delay-3 { animation-delay: .3s, 1.6s; }
.float-delay-4 { animation-delay: .4s, 1.8s; }
.album-footer { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-top: 18px; border-top: 1px solid rgba(140,98,46,.32); }
.album-footer strong { color: var(--forest); font-size: 17px; }
.album-footer p { margin: 7px 0 0; color: var(--muted); font-size: 15px; }
.album-tags { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.album-tags span { padding: 5px 8px; color: var(--coral); border: 1px solid rgba(200,60,35,.42); font-size: 13px; }
.image-modal { z-index: 70; }
.image-modal-content { position: relative; z-index: 1; width: min(1260px, 96vw); max-height: 92vh; display: grid; grid-template-columns: 52px minmax(0, 1fr) 210px 52px; grid-template-rows: minmax(0, 1fr); gap: 16px; place-items: center; }
.image-frame { grid-column: 2; grid-row: 1; width: 100%; height: 82vh; position: relative; display: grid; place-items: center; }
.image-modal-content img { display: block; max-width: 100%; max-height: 79vh; object-fit: contain; box-shadow: 0 30px 90px rgba(0, 0, 0, .35); background: #101715; }
.preview-watermark { position: absolute; left: 50%; bottom: 28px; padding: 6px 10px; color: rgba(255,255,255,.38); background: rgba(15,27,24,.18); font-size: 13px; pointer-events: none; transform: translateX(-50%); white-space: nowrap; }
.image-nav { width: 42px; height: 58px; display: grid; place-items: center; color: #fff; background: rgba(13,31,27,.45); border: 1px solid rgba(255,255,255,.38); cursor: pointer; font-size: 38px; }
.image-nav:hover { color: #ffe9c1; border-color: #ffe9c1; }
.image-previous { grid-column: 1; grid-row: 1; }
.image-next { grid-column: 4; grid-row: 1; }
.modal-caption { grid-column: 3; grid-row: 1; align-self: end; justify-self: stretch; width: 100%; min-height: 136px; display: flex; flex-direction: column; align-items: start; justify-content: space-between; gap: 22px; margin-bottom: 24px; padding: 18px 16px; color: #fff; background: rgba(9,25,21,.68); border-left: 2px solid rgba(200,60,35,.88); box-shadow: 0 14px 35px rgba(0,0,0,.16); font-size: 15px; }
.modal-caption div { display: grid; gap: 4px; }
.modal-caption span { color: #b8d2c9; }
.modal-caption strong { font-size: 18px; }
.image-return-album { padding: 7px 11px; color: #d9e8df; background: rgba(255,255,255,.06); border: 1px solid rgba(216,238,225,.35); cursor: pointer; font-family: inherit; font-size: 13px; }
.image-return-album:hover { color: #ffe9c1; border-color: #ffe9c1; background: rgba(255,255,255,.12); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid currentColor; background: transparent; cursor: pointer; border-radius: 50%; }
.close-button { position: absolute; top: -52px; right: 0; z-index: 2; color: #fff; font-size: 25px; line-height: 1; }
.admin-panel { position: relative; z-index: 1; width: min(900px, 94vw); max-height: 92vh; overflow: auto; padding: 48px; background-color: var(--paper); background-image: radial-gradient(rgba(81,71,50,.08) .55px, transparent .65px); background-size: 11px 11px; border: 1px solid rgba(176,138,69,.7); box-shadow: var(--shadow); font-size: 17px; }
.admin-panel .close-button { top: 20px; right: 20px; color: var(--forest); }
.panel-copy { margin: 12px 0 28px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.stack-form, .upload-form { display: grid; gap: 16px; }
.stack-form label, .upload-form label { color: var(--forest); font-size: 17px; font-weight: 700; }
.stack-form input, .upload-form input, .upload-form select { width: 100%; margin-top: 8px; padding: 14px 15px; color: var(--ink); background: #fff; border: 1px solid var(--line); outline: none; font-size: 16px; }
.stack-form input:focus, .upload-form input:focus, .upload-form select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-light); }
.primary-button { padding: 13px 16px; color: #fff; background: var(--forest); border: 0; cursor: pointer; font-weight: 700; }
.primary-button:hover { background: #153b35; }
.primary-button:disabled { cursor: wait; opacity: .58; }
.form-error { min-height: 20px; margin: 0; color: #b23d35; font-size: 15px; }
.form-message { min-height: 20px; margin: 0; color: var(--forest); font-size: 15px; }
.admin-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 28px; }
.admin-heading .eyebrow { margin-bottom: 10px; }
.admin-heading h2 { font-size: 32px; }
.admin-actions { display: flex; gap: 16px; padding-right: 42px; }
.text-button { padding: 4px 0; color: var(--coral); background: transparent; border: 0; cursor: pointer; font-size: 16px; }
.file-picker { display: block; padding: 13px; border: 1px dashed #bdcbc6; cursor: pointer; }
.file-picker input { display: none; }
.file-picker span { display: block; margin-top: 9px; color: var(--muted); font-weight: 400; }
.tag-editor { margin: 0; padding: 13px; border: 1px solid var(--line); }
.tag-editor legend { padding: 0 6px; color: var(--forest); font-size: 16px; font-weight: 700; }
.tag-group { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; gap: 10px; padding: 7px 0; }
.tag-group strong { padding-top: 6px; color: var(--muted); font-size: 14px; }
.tag-group > div { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-group label { cursor: pointer; }
.tag-group input { width: 1px; height: 1px; margin: 0; padding: 0; position: absolute; overflow: hidden; opacity: 0; pointer-events: none; }
.tag-group span { display: block; padding: 7px 10px; color: var(--muted); background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 400; }
.tag-group input:checked + span { color: #fff8ec; background: var(--forest); border-color: var(--forest); }
.config-manager { margin-bottom: 28px; padding: 20px; background: rgba(231,237,227,.54); border: 1px solid rgba(176,138,69,.42); box-shadow: inset 0 0 0 3px rgba(255,255,255,.34); }
.config-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(176,138,69,.28); }
.config-heading .eyebrow { margin-bottom: 5px; }
.config-heading h3 { margin: 0; color: var(--forest); font-size: 23px; }
.secondary-button { padding: 10px 14px; color: var(--forest); background: var(--card); border: 1px solid var(--forest); cursor: pointer; font-size: 15px; font-weight: 700; }
.secondary-button:hover { color: #fff; background: var(--forest); }
.secondary-button:disabled { opacity: .55; cursor: wait; }
.config-tag-groups { display: grid; gap: 14px; margin-top: 16px; }
.config-block > strong { display: block; margin-bottom: 9px; color: var(--forest); font-size: 15px; }
.config-chips { display: flex; flex-wrap: wrap; gap: 7px; min-height: 29px; }
.config-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 8px 7px 11px; color: var(--forest); background: rgba(255,255,255,.82); border: 1px solid var(--line); font-size: 14px; }
.config-chip button { width: 19px; height: 19px; padding: 0; display: grid; place-items: center; color: var(--coral); background: transparent; border: 0; cursor: pointer; font-size: 16px; line-height: 1; }
.config-add { display: flex; gap: 7px; margin-top: 9px; }
.config-add input { width: auto; min-width: 0; flex: 1; margin-top: 0; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); outline: none; font-size: 15px; }
.config-add input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-light); }
.config-add button { width: 38px; flex: none; color: #fff; background: var(--forest); border: 0; cursor: pointer; font-size: 20px; }
.site-content-editor { margin-top: 22px; padding-top: 20px; display: grid; gap: 16px; border-top: 1px solid rgba(176,138,69,.35); }
.content-editor-heading h4 { margin: 0; color: var(--forest); font-size: 21px; }
.markup-help { margin: -3px 0 0; padding: 11px 12px; color: #5e5a50; background: rgba(255,255,255,.58); border-left: 3px solid var(--gold); font-size: 13px; line-height: 1.9; }
.markup-help strong { color: var(--forest); }
.markup-help code { color: #9d3b29; font-family: Consolas, monospace; white-space: nowrap; }
.site-content-editor label { display: grid; gap: 7px; color: var(--forest); font-size: 15px; font-weight: 700; }
.site-content-editor input, .site-content-editor textarea { width: 100%; padding: 11px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); outline: none; resize: vertical; font: inherit; font-size: 15px; font-weight: 400; line-height: 1.6; }
.site-content-editor input:focus, .site-content-editor textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-light); }
.setting-toggle { padding: 13px 14px; display: flex !important; align-items: center; justify-content: space-between; gap: 16px; background: rgba(255,255,255,.66); border: 1px solid var(--line); cursor: pointer; }
.setting-toggle span { min-width: 0; display: grid; gap: 4px; }
.setting-toggle strong { color: var(--forest); font-size: 17px; }
.setting-toggle small { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.5; }
.site-content-editor .setting-toggle input { width: 50px; height: 27px; flex: none; margin: 0; padding: 0; position: relative; appearance: none; background: #c9c7bf; border: 0; border-radius: 16px; box-shadow: inset 0 1px 3px rgba(0,0,0,.18); cursor: pointer; transition: background .2s ease; }
.site-content-editor .setting-toggle input::after { content: ""; width: 21px; height: 21px; position: absolute; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: transform .2s ease; }
.site-content-editor .setting-toggle input:checked { background: var(--forest); }
.site-content-editor .setting-toggle input:checked::after { transform: translateX(23px); }
.pet-phrase-editor { padding: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; background: rgba(255,255,255,.45); border: 1px solid var(--line); }
.pet-phrase-editor .markup-help { grid-column: 1 / -1; }
.pet-phrase-editor textarea { min-height: 112px; }
.update-composer { padding: 14px; display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; align-items: end; gap: 12px; background: rgba(255,255,255,.54); border: 1px solid var(--line); }
.update-composer .secondary-button { align-self: end; }
.published-updates { display: grid; gap: 8px; }
.published-update { padding: 11px; display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; align-items: end; gap: 10px; background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.published-update button { padding: 10px; color: #b23d35; background: transparent; border: 0; cursor: pointer; font-size: 14px; }
.draft-images { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.draft-image { min-width: 0; padding: 5px; position: relative; background: #fff; border: 1px solid var(--line); }
.draft-image.is-cover { border-color: var(--coral); box-shadow: inset 0 0 0 1px var(--coral); }
.draft-image-preview { position: relative; overflow: hidden; background: #e8e4db; }
.draft-image img { width: 100%; display: block; aspect-ratio: .82 / 1; object-fit: cover; }
.draft-cover { position: absolute; top: 8px; left: 8px; z-index: 7; padding: 4px 6px; color: #fff; background: rgba(26,59,50,.88); border: 0; cursor: pointer; font-size: 9px; }
.draft-mask-controls { margin-top: 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.draft-mask-controls button { min-width: 0; padding: 6px 2px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); cursor: pointer; font-size: 12px; line-height: 1.15; }
.draft-mask-controls button:hover, .draft-mask-controls button.selected { color: #fff8ec; background: var(--forest); border-color: var(--forest); }
.draft-region-edit { width: 100%; margin-top: 5px; padding: 7px; color: #fff8ec; background: #7b3329; border: 1px solid #57231d; cursor: pointer; font-size: 12px; }
.region-blur-preview { position: absolute; z-index: 5; background: rgba(236,229,216,.2); border: 1px dashed rgba(200,60,35,.9); backdrop-filter: blur(12px); pointer-events: none; }
.draft-image-name { margin-top: 6px; display: grid; gap: 3px; }
.draft-image-name span { color: var(--muted); font-size: 11px; }
.draft-image-name input { width: 100%; min-width: 0; height: 30px; padding: 4px 7px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); font: inherit; font-size: 12px; }
.draft-image-name input:focus { border-color: var(--forest); outline: 1px solid rgba(26,59,50,.2); }
.draft-order-controls { display: flex; align-items: center; justify-content: end; gap: 3px; padding-top: 5px; }
.draft-order-controls span { margin-right: auto; color: var(--muted); font-size: 9px; }
.draft-order-controls button { width: 24px; height: 24px; padding: 0; color: var(--forest); background: var(--paper); border: 1px solid var(--line); cursor: pointer; }
.draft-order-controls button:disabled { opacity: .3; cursor: default; }
.upload-notice { margin: -2px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
#upload-progress { width: 100%; height: 8px; overflow: hidden; border: 0; accent-color: var(--coral); }
#upload-progress::-webkit-progress-bar { background: var(--paper-deep); }
#upload-progress::-webkit-progress-value { background: var(--coral); }
.admin-items { min-width: 0; display: grid; gap: 8px; margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.admin-item { width: 100%; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 9px; background: #fff; border: 1px solid var(--line); }
.admin-item img { width: 45px; height: 45px; object-fit: cover; }
.admin-item-copy { min-width: 0; flex: 1; }
.admin-item-copy strong, .admin-item-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-item-copy strong { font-size: 16px; }
.admin-item-copy small { margin-top: 4px; color: var(--muted); font-size: 14px; }
.delete-button, .edit-button { background: transparent; border: 0; cursor: pointer; font-size: 15px; }
.delete-button { color: #b23d35; }
.edit-button { color: var(--forest); }

.blur-editor-modal { z-index: 88; padding: 22px; }
.blur-editor-panel { width: min(980px, 95vw); max-height: 94vh; padding: 28px; position: relative; z-index: 1; overflow: auto; color: var(--ink); background: var(--paper); border: 1px solid rgba(176,138,69,.7); box-shadow: 0 28px 80px rgba(0,0,0,.34); }
.blur-editor-panel .close-button { top: 20px; right: 20px; color: var(--forest); }
.blur-editor-panel h2 { margin-bottom: 18px; color: var(--forest); font-family: KaiTi, STKaiti, serif; font-size: 30px; }
.blur-editor-stage { width: fit-content; max-width: 100%; margin: 0 auto; position: relative; overflow: hidden; background: #d8d4ca; border: 1px solid var(--gold); cursor: crosshair; touch-action: none; user-select: none; }
.blur-editor-stage > img { max-width: 100%; max-height: 62vh; display: block; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.blur-editor-regions { position: absolute; inset: 0; pointer-events: none; }
.blur-editor-regions > i { position: absolute; display: grid; place-items: start end; overflow: hidden; background: rgba(236,229,216,.22); border: 2px solid #c83c23; outline: 1px solid rgba(255,255,255,.8); backdrop-filter: blur(14px); }
.blur-editor-regions > i.is-draft { border-style: dashed; }
.blur-editor-regions > i span { min-width: 23px; height: 23px; display: grid; place-items: center; color: #fff; background: #c83c23; font-style: normal; font-size: 12px; }
.blur-editor-actions { margin-top: 16px; display: flex; align-items: center; justify-content: end; gap: 10px; }
.blur-editor-actions > span { margin-right: auto; color: var(--forest); font-weight: 700; }
.blur-editor-actions .secondary-button { margin: 0; }
.irreversible-warning { margin: 14px 0 0; padding: 10px 12px; color: #842f25; background: rgba(200,60,35,.08); border-left: 3px solid var(--coral); font-size: 14px; line-height: 1.7; }

@keyframes scroll-open { from { opacity: 0; transform: scaleX(.1) scaleY(.92); } 58% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
@keyframes art-rise { from { opacity: 0; transform: translateY(24px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes art-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes fan-reveal { from { opacity: 0; clip-path: inset(100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes scroll-close { to { opacity: 0; transform: scaleX(.16) scaleY(.9); } }
@keyframes viewer-close { to { opacity: 0; transform: scale(.94); } }
@keyframes backdrop-close { to { opacity: 0; } }
@keyframes mist-drift { from { transform: translate3d(-5%, -2%, 0) scale(1); } to { transform: translate3d(7%, 5%, 0) scale(1.08); } }
@keyframes mist-drift-reverse { from { transform: translate3d(5%, 3%, 0) scaleX(-1); } to { transform: translate3d(-8%, -4%, 0) scale(-1.08, 1.08); } }
@keyframes cloud-drift { from { transform: translate3d(-4%, -2%, 0) scale(1.06); } to { transform: translate3d(8%, 3%, 0) scale(1.12); } }
@keyframes landscape-breathe { from { opacity: .42; filter: saturate(.52) contrast(.78) blur(.8px); } to { opacity: .58; filter: saturate(.62) contrast(.84) blur(.4px); } }
@keyframes far-mountain-drift { from { transform: translate3d(-1.6%, 0, 0) scale(1.075); opacity: .36; } to { transform: translate3d(1.6%, -1%, 0) scale(1.095); opacity: .44; } }
@keyframes mid-mountain-breathe { from { transform: translate3d(-1.2%, 1%, 0) scale(1.035); opacity: .1; } to { transform: translate3d(1.4%, -1.2%, 0) scale(1.065); opacity: .17; } }
@keyframes bamboo-sway { 0% { transform: translate3d(-.4%, 0, 0) rotate(-.25deg) scale(1.035); } 50% { transform: translate3d(.3%, -.3%, 0) rotate(.18deg) scale(1.045); } 100% { transform: translate3d(.7%, 0, 0) rotate(.42deg) scale(1.04); } }
@keyframes aura-current { from { transform: translate3d(-1.5%, 1%, 0) scale(.98); opacity: .14; } to { transform: translate3d(2%, -1.5%, 0) scale(1.04); opacity: .26; } }
@keyframes spin-clockwise { to { transform: rotate(360deg); } }
@keyframes spin-counter { to { transform: rotate(-360deg); } }
@keyframes orbit-glow { 0%, 100% { opacity: .48; transform: scale(.94); } 50% { opacity: .92; transform: scale(1.06); } }
@keyframes rune-float { from { transform: translate3d(0, -5px, 0); opacity: .1; } to { transform: translate3d(0, 7px, 0); opacity: .3; } }
@keyframes spark-pulse { 0%, 100% { opacity: .28; transform: scale(.7); } 50% { opacity: .9; transform: scale(1.22); } }
@keyframes seal-breath { 0%, 100% { transform: rotate(3deg) scale(.96); box-shadow: inset 0 0 0 2px rgba(200,60,35,.18), 0 0 0 rgba(200,60,35,0); } 50% { transform: rotate(-1deg) scale(1.06); box-shadow: inset 0 0 0 2px rgba(200,60,35,.28), 0 0 18px rgba(200,60,35,.22); } }
@keyframes pet-idle-float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-.7deg); } 48% { transform: translate3d(0, -7px, 0) rotate(.9deg); } 72% { transform: translate3d(0, -4px, 0) rotate(.2deg); } }
@keyframes pet-shadow-breathe { 0%, 100% { opacity: .45; transform: scaleX(1); } 50% { opacity: .26; transform: scaleX(.84); } }
@keyframes pet-drag-sway { from { transform: rotate(-4deg) translate3d(-2px, 0, 0); } to { transform: rotate(4deg) translate3d(2px, 4px, 0); } }
@keyframes pet-react-bounce { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(0, -12px, 0) scale(1.035); } }
@keyframes pet-spark-pop { 0% { opacity: 0; transform: scale(.3) rotate(-18deg); } 35% { opacity: 1; transform: scale(1.1) rotate(4deg); } 100% { opacity: 0; transform: scale(1.45) rotate(16deg); } }
.modal.is-closing .scroll-sheet { animation: scroll-close .28s ease-in both; }
.modal.is-closing .image-modal-content { animation: viewer-close .25s ease-in both; }
.modal.is-closing .modal-backdrop { animation: backdrop-close .28s ease-in both; }

@media (max-width: 1120px) and (min-width: 721px) {
  .site-header { gap: 14px; }
  .main-nav { gap: 18px; }
  .qq-join { padding-left: 9px; padding-right: 9px; }
  .qq-join b { display: none; }
  .admin-trigger { padding-left: 11px; padding-right: 11px; font-size: 15px; }
}

@media (max-width: 980px) {
  .image-modal-content { width: 96vw; grid-template-columns: 46px minmax(0, 1fr) 46px; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; }
  .image-frame { grid-column: 2; grid-row: 1; height: 76vh; }
  .image-previous { grid-column: 1; grid-row: 1; }
  .image-next { grid-column: 3; grid-row: 1; }
  .modal-caption { grid-column: 2; grid-row: 2; min-height: 0; flex-direction: row; align-items: end; gap: 14px; margin: 0; padding: 12px 14px; border-left-width: 1px; }
}

@media (max-width: 720px) {
  .desktop-pet { width: 118px; height: 172px; }
  .desktop-pet-bubble { max-width: 170px; min-width: 104px; right: 70%; bottom: 68%; padding: 8px 10px; font-size: 14px; }
  .site-header { height: 72px; gap: 12px; padding: 0 18px; }
  .scene-depth { top: 72px; }
  .scene-far { opacity: .34; }
  .scene-mid { opacity: .1; background-size: auto 84vh; }
  .scene-near { opacity: .14; background-size: auto 82vh; }
  .hero-orbit { width: 360px; height: 360px; right: -115px; top: 26px; opacity: .46; transform: scale(.82); transform-origin: center; }
  .orbit-ring-outer { width: 350px; height: 350px; margin: -175px; }
  .orbit-ring-middle { width: 278px; height: 278px; margin: -139px; }
  .orbit-ring-inner { width: 198px; height: 198px; margin: -99px; }
  .orbit-ticks { width: 318px; height: 318px; margin: -159px; }
  .orbit-rune, .orbit-spark { display: none; }
  .brand { gap: 9px; }
  .brand-avatar { width: 43px; height: 43px; }
  .brand-copy strong { font-size: 21px; }
  .brand-copy small { display: none; }
  .qq-join { margin-left: auto; padding: 8px 9px; font-size: 13px; }
  .qq-join b { display: none; }
  .main-nav { display: none; }
  .admin-trigger { padding: 8px 10px; font-size: 14px; }
  .intro { min-height: 0; padding: 70px 20px 62px; display: block; }
  .intro::before { inset: 24px -90px auto 15%; height: 320px; opacity: .5; }
  .intro::after { left: 20px; right: 20px; }
  h1 { font-size: 44px; }
  .hero-seal { display: none; }
  .intro-aside { margin-top: 52px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
  .aside-rule { grid-column: 1 / -1; }
  .intro-aside p { margin: 0; }
  .intro-aside strong { font-size: 38px; }
  .aside-note { grid-column: 1 / -1; margin-top: 20px; }
  .gallery-section { padding: 60px 20px 80px; }
  .section-heading { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 18px 12px; }
  .gallery-controls { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery-scroll { height: min(760px, 72vh); padding-right: 10px; }
  .entry-notice-panel { padding: 26px 22px 28px; }
  .entry-notice-panel h2 { font-size: 30px; }
  .entry-notice-panel img { width: 112px; }
  .entry-notice-scroll { max-height: 42vh; padding: 14px 12px 18px; }
  .entry-notice-copy { font-size: 16px; }
  .card-info { display: block; padding: 12px; }
  .card-info h3 { font-size: 18px; }
  .card-info p { font-size: 14px; }
  .card-meta { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; }
  .card-tag { display: inline-block; }
  .tag-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .tag-filter { flex: none; }
  .album-modal { padding: 18px 10px; }
  .blur-editor-modal { padding: 10px; }
  .blur-editor-panel { padding: 24px 14px 18px; }
  .blur-editor-panel h2 { padding-right: 44px; font-size: 25px; }
  .blur-editor-stage > img { max-height: 58vh; }
  .blur-editor-actions { flex-wrap: wrap; }
  .blur-editor-actions > span { width: 100%; margin: 0; }
  .blur-editor-actions .primary-button { flex: 1 1 100%; }
  .scroll-sheet { width: calc(100vw - 38px); min-height: 76vh; padding: 44px 22px 28px; }
  .scroll-sheet::before { left: -9px; }
  .scroll-sheet::after { right: -9px; }
  .scroll-rod { display: none; }
  .scroll-sheet .close-button { top: 12px; right: 14px; }
  .album-heading { align-items: start; }
  .album-heading h2 { font-size: 27px; }
  .album-stage { justify-content: start; margin: 0 -8px; padding: 24px 8px; scroll-snap-type: x mandatory; }
  .floating-art, .mode-cutout .floating-art { flex: 0 0 72vw; min-width: 0; max-width: none; height: 48vh; scroll-snap-align: center; }
  .mode-framed { min-height: 0; display: flex; position: relative; overflow-x: auto; perspective: none; }
  .mode-framed::after { display: none; }
  .mode-framed .floating-art, .mode-framed .floating-art:hover { flex: 0 0 68vw; width: 68vw; min-width: 0; max-width: none; height: 46vh; position: relative; left: auto; bottom: auto; z-index: 1; transform: none; scroll-snap-align: center; }
  .album-footer { display: block; }
  .album-tags { justify-content: start; margin-top: 13px; }
  .image-modal-content { width: 96vw; grid-template-columns: 42px minmax(0, 1fr) 42px; }
  .image-frame, .image-modal-content img { max-height: 72vh; height: 72vh; }
  .image-nav { width: 36px; height: 48px; font-size: 31px; }
  .modal-caption { font-size: 13px; }
  .admin-panel { padding: 38px 22px 26px; font-size: 16px; }
  .admin-item { display: grid; grid-template-columns: 45px minmax(0, 1fr) auto auto; gap: 8px; }
  .admin-item .edit-button, .admin-item .delete-button { padding: 0; font-size: 13px; }
  .config-manager { margin-left: -4px; margin-right: -4px; padding: 15px; }
  .config-heading { display: block; }
  .secondary-button { margin-top: 12px; }
  .update-composer, .published-update, .pet-phrase-editor { grid-template-columns: 1fr; }
  .pet-phrase-editor .markup-help { grid-column: 1; }
  .site-bulletin { margin-top: 14px; padding: 0 20px 14px; }
  .update-log summary { grid-template-columns: auto 1fr; }
  .update-log summary::after { grid-column: 2; }
  .update-list li { grid-template-columns: 1fr; gap: 4px; }
  .draft-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-warning { margin: 0 20px 26px; padding: 28px 20px; align-items: flex-start; }
  .usage-warning h2 { font-size: 23px; }
  .site-footer { display: grid; grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px; font-size: 14px; line-height: 1.9; }
  .site-footer .footer-disclaimer { max-width: none; }
  .footer-mark { margin-top: 0; white-space: normal; }
  .footer-contact { display: grid; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro::before { transform: none; }
  .ambient-mist, #bamboo-canvas { display: none; }
  .scene-layer, .hero-orbit *, .hero-seal, .gallery-section::before, .intro::before, .desktop-pet-body, .desktop-pet-body::after, .desktop-pet-spark { animation: none !important; }
  .scene-far { transform: scale(1.07); }
  .scene-mid, .scene-near { transform: scale(1.04); }
  .gallery-card, .art-button img, .category-tab::after, .album-card::before, .album-card::after { transition: none; }
  .scroll-sheet, .floating-art, .modal.is-closing .scroll-sheet, .modal.is-closing .image-modal-content, .modal.is-closing .modal-backdrop { animation: none; opacity: 1; }
}
