﻿@import url("data:text/css,");

:root {
    --paper: #f4efe5;
    --paper2: #e9e1d2;
    --ink: #202826;
    --muted: #66706a;
    --red: #8f3933;
    --red2: #b55245;
    --gold: #b88c52;
    --wood: #795744;
    --line: rgba(32, 40, 38, .16);
    --serif: "Noto Serif SC", "Songti SC", serif;
    --sans: "Microsoft YaHei", sans-serif
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    line-height: 1.7
}

button,
a,
select {
    font: inherit
}

button,
a {
    cursor: pointer
}

a {
    color: inherit;
    text-decoration: none
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 99;
    background: #fff;
    padding: .7rem 1rem
}

.skip-link:focus {
    top: 1rem
}

.site-header {
    height: 78px;
    padding: 0 clamp(20px, 5vw, 78px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 239, 229, .9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 40
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand-seal {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--red);
    color: #f8e9d2;
    font-family: var(--serif);
    font-size: 24px
}

.brand strong,
.brand small {
    display: block
}

.brand small {
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--muted)
}

.main-nav {
    display: flex;
    gap: 36px;
    font-size: 14px
}

.main-nav a {
    position: relative
}

.main-nav a:after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -7px;
    height: 2px;
    background: var(--red);
    transition: .25s
}

.main-nav a:hover:after {
    right: 0
}

.install-button,
.outline-button {
    border: 1px solid var(--ink);
    background: transparent;
    padding: 9px 17px
}

.section {
    padding: 110px clamp(22px, 7vw, 110px)
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .24em;
    color: var(--red);
    text-transform: uppercase
}

.hero {
    min-height: calc(100vh - 78px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 60px clamp(22px, 7vw, 110px);
    position: relative;
    overflow: hidden
}

.hero h1,
.section h2 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.22;
    margin: .35em 0
}

.hero h1 {
    font-size: clamp(44px, 6vw, 86px);
    letter-spacing: -.04em
}

.hero-intro {
    max-width: 610px;
    color: var(--muted);
    font-size: 17px
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 34px 0
}

.primary-button {
    display: inline-block;
    border: 0;
    background: var(--red);
    color: white;
    padding: 13px 25px;
    box-shadow: 7px 7px 0 rgba(143, 57, 51, .15)
}

.text-button {
    border: 0;
    background: none;
    border-bottom: 1px solid var(--ink);
    padding: 5px
}

.hero-meta {
    display: flex;
    gap: 35px;
    padding: 0;
    margin: 45px 0 0;
    list-style: none
}

.hero-meta li {
    display: flex;
    align-items: center;
    gap: 9px
}

.hero-meta strong {
    font: 32px var(--serif);
    color: var(--red)
}

.hero-meta span {
    font-size: 12px;
    color: var(--muted);
    max-width: 58px
}

.hero-visual {
    height: min(660px, 68vw);
    position: relative
}

.sun-disc {
    width: 34%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--red2);
    opacity: .72;
    position: absolute;
    right: 10%;
    top: 8%
}

.mountain {
    position: absolute;
    inset: auto 0 10% 0;
    height: 52%;
    background: #929c94;
    clip-path: polygon(0 70%, 20% 25%, 34% 57%, 48% 10%, 64% 62%, 80% 29%, 100% 73%, 100% 100%, 0 100%);
    opacity: .35
}

.mountain.front {
    transform: translateY(70px);
    background: #59655e
}

.ink-building {
    position: absolute;
    left: 9%;
    right: 12%;
    bottom: 7%;
    height: 52%;
    background: #e8e2d6;
    border: 7px solid var(--ink);
    box-shadow: 15px 18px 0 rgba(32, 40, 38, .1)
}

.ink-building i {
    position: absolute;
    background: var(--ink)
}

.ink-building i:nth-child(1) {
    width: 44%;
    height: 18px;
    left: -8%;
    top: -22px;
    transform: skewX(-30deg)
}

.ink-building i:nth-child(2) {
    width: 37%;
    height: 18px;
    right: -4%;
    top: 28%;
    transform: skewX(-30deg)
}

.ink-building i:nth-child(3) {
    width: 18%;
    height: 44%;
    left: 41%;
    bottom: 0;
    background: var(--wood)
}

.vertical-note {
    position: absolute;
    right: 0;
    top: 36%;
    writing-mode: vertical-rl;
    letter-spacing: .35em;
    font: 16px var(--serif)
}

.scroll-cue {
    position: absolute;
    bottom: 24px;
    left: 50%;
    font-size: 11px;
    letter-spacing: .15em;
    color: var(--muted)
}

.scroll-cue span {
    display: block;
    width: 1px;
    height: 42px;
    background: var(--red);
    margin: auto auto 7px
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 46px
}

.section-heading h2 {
    font-size: clamp(32px, 4vw, 58px)
}

.section-heading>p {
    max-width: 420px;
    color: var(--muted)
}

.module-tabs {
    display: flex;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px
}

.module-tab {
    padding: 16px 26px;
    border: 0;
    background: none;
    color: var(--muted)
}

.module-tab span {
    font-family: var(--serif);
    margin-right: 7px
}

.module-tab.active {
    color: var(--red);
    border-bottom: 3px solid var(--red)
}

.interactive-card {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
    background: #ded8ca;
    min-height: 520px
}

.building-stage {
    position: relative;
    overflow: hidden
}

.building-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.stage-label {
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: rgba(244, 239, 229, .9);
    padding: 7px 12px;
    font-size: 12px
}

.hotspot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    border: 0;
    background: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translate(-50%, -50%)
}

.hotspot span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--red);
    border: 5px solid rgba(255, 255, 255, .55);
    box-shadow: 0 0 0 8px rgba(143, 57, 51, .2);
    font-style: normal;
    animation: pulse 2s infinite
}

.hotspot i {
    font-style: normal;
    background: rgba(32, 40, 38, .82);
    padding: 3px 8px;
    font-size: 12px
}

.module-copy {
    background: #f7f3e9;
    padding: 58px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.module-index {
    font-size: 11px;
    letter-spacing: .2em;
    color: var(--red)
}

.module-copy h3 {
    font: 32px/1.35 var(--serif);
    margin: 10px 0
}

.module-copy>p {
    color: var(--muted)
}

.knowledge-tags {
    display: flex;
    gap: 7px;
    margin: 20px 0
}

.knowledge-tags span {
    padding: 5px 11px;
    border: 1px solid var(--line);
    font-size: 12px
}

.outline-button {
    align-self: flex-start;
    margin-top: 20px
}

.ai-section {
    background: var(--ink);
    color: #eee8dc
}

.light .eyebrow {
    color: #df9a86
}

.light>p {
    color: #aeb6b0
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .14)
}

.process-grid li {
    padding: 32px;
    border-right: 1px solid rgba(255, 255, 255, .14)
}

.process-grid li:last-child {
    border: 0
}

.process-grid span {
    color: #c27563;
    font: 24px var(--serif)
}

.process-grid strong {
    display: block;
    font: 22px var(--serif);
    margin: 22px 0 10px
}

.process-grid p {
    color: #aeb6b0;
    font-size: 14px
}

.correction-case {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 22px 28px;
    margin-top: 25px;
    background: rgba(255, 255, 255, .07)
}

.correction-case b {
    background: var(--red);
    padding: 4px 10px
}

.correction-case p {
    margin: 0
}

.seal-section {
    background: #ede4d5
}

.seal-layout {
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: 9vw;
    align-items: center
}

.seal-copy h2 {
    font-size: clamp(36px, 4vw, 58px)
}

.seal-copy>p {
    color: var(--muted)
}

.compare-list {
    margin: 35px 0
}

.compare-item {
    width: 100%;
    display: grid;
    grid-template-columns: 48px 95px 1fr;
    align-items: center;
    text-align: left;
    border: 0;
    border-top: 1px solid var(--line);
    background: none;
    padding: 16px 4px
}

.compare-item span {
    font: 22px var(--serif);
    color: var(--red)
}

.compare-item small {
    color: var(--muted)
}

.compare-item.active {
    background: rgba(143, 57, 51, .07);
    padding-left: 14px
}

.source-warning {
    font-size: 12px;
    border-left: 3px solid var(--gold);
    padding-left: 12px
}

.seal-frame {
    width: min(450px, 100%);
    aspect-ratio: 1;
    margin: auto;
    position: relative;
    box-shadow: 24px 24px 0 rgba(143, 57, 51, .12)
}

.seal-frame img {
    width: 100%;
    height: 100%
}

.seal-frame i {
    position: absolute;
    background: #ffe7bd;
    opacity: .75;
    transition: .3s
}

.guide-v {
    top: 0;
    bottom: 0;
    width: 2px;
    left: 50%
}

.guide-h {
    left: 0;
    right: 0;
    height: 2px;
    top: 50%
}

.seal-viewer[data-view=line] .guide-v {
    left: 35%;
    width: 4px
}

.seal-viewer[data-view=space] .guide-h {
    top: 70%;
    height: 25%;
    opacity: .3
}

.seal-viewer>p {
    text-align: center;
    color: var(--muted);
    margin-top: 34px
}

.workshop-section {
    background: #f7f2e8
}

.workshop-grid {
    display: grid;
    grid-template-columns: .72fr 1.35fr .85fr;
    gap: 22px
}

.workshop-grid>div {
    background: white;
    padding: 28px
}

.step-label {
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--red)
}

.pattern-options {
    display: grid;
    gap: 10px
}

.pattern-option {
    border: 1px solid var(--line);
    background: white;
    padding: 15px;
    text-align: left
}

.pattern-option.active {
    background: var(--ink);
    color: white
}

.pattern-canvas {
    aspect-ratio: 1.5;
    background: #efe8dc;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    padding: 13%;
    overflow: hidden
}

.pattern-canvas span {
    width: 76px;
    height: 76px;
    border: 10px solid var(--red);
    transition: .35s
}

.pattern-canvas[data-pattern=horse] span {
    clip-path: polygon(0 100%, 0 55%, 30% 55%, 30% 25%, 60% 25%, 60% 0, 100% 0, 100% 100%)
}

.pattern-canvas[data-pattern=flower] span {
    border-radius: 50% 0 50% 50%;
    transform: rotate(45deg)
}

.pattern-canvas[data-pattern=lattice] span {
    transform: rotate(45deg);
    background: transparent
}

.pattern-canvas[data-arrangement=repeat] {
    grid-template-columns: repeat(4, 1fr);
    padding: 8%
}

.pattern-canvas[data-arrangement=repeat] span {
    width: 52px;
    height: 52px
}

.pattern-canvas[data-arrangement=rotate] span:nth-child(2) {
    transform: rotate(90deg)
}

.pattern-canvas[data-arrangement=rotate] span:nth-child(3) {
    transform: rotate(180deg)
}

.pattern-canvas[data-arrangement=rotate] span:nth-child(4) {
    transform: rotate(270deg)
}

.pattern-canvas[data-color=ink] span {
    border-color: var(--ink)
}

.pattern-canvas[data-color=ochre] span {
    border-color: var(--wood)
}

.canvas-controls {
    display: flex;
    gap: 18px;
    margin-top: 16px
}

.canvas-controls label {
    flex: 1;
    font-size: 12px
}

.canvas-controls select {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 8px;
    border: 1px solid var(--line);
    background: white
}

.task-card h3 {
    font: 30px var(--serif)
}

.task-card ol {
    padding-left: 20px;
    color: var(--muted)
}

.classroom-section {
    padding-top: 30px
}

.classroom-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--red);
    color: white;
    padding: 42px 55px
}

.classroom-card h2 {
    font-size: 34px
}

.classroom-card p {
    margin-bottom: 0
}

.light-button {
    background: #f4e5cf;
    color: var(--red);
    white-space: nowrap
}

.site-footer {
    text-align: center;
    padding: 70px 20px;
    background: #171d1b;
    color: #abb4ad;
    font-size: 13px
}

.footer-mark {
    font: 32px var(--serif);
    color: #eee8dc
}

.site-footer a {
    display: inline-block;
    margin-top: 20px;
    color: #eee8dc
}

.knowledge-dialog {
    max-width: 560px;
    border: 0;
    padding: 42px;
    background: #f8f2e7;
    color: var(--ink);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .35)
}

.knowledge-dialog::backdrop {
    background: rgba(20, 27, 25, .72);
    backdrop-filter: blur(5px)
}

.dialog-close {
    position: absolute;
    right: 15px;
    top: 10px;
    border: 0;
    background: none;
    font-size: 28px
}

.dialog-kicker {
    color: var(--red);
    font-size: 12px;
    letter-spacing: .18em
}

.knowledge-dialog h2,
.animation-panel h2 {
    font: 34px var(--serif)
}

.dialog-observe {
    margin-top: 25px;
    padding: 18px;
    background: #ebe1d0
}

.dialog-observe p {
    margin-bottom: 0
}

.animation-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    background: rgba(20, 27, 25, .8);
    opacity: 0;
    transition: .22s
}

.animation-overlay.visible {
    opacity: 1
}

.animation-panel {
    width: min(620px, 90vw);
    background: var(--paper);
    padding: 40px;
    position: relative;
    text-align: center
}

.layer-animation {
    height: 280px;
    position: relative;
    margin: 25px 0;
    perspective: 700px
}

.layer-animation i {
    position: absolute;
    inset: 25px 18%;
    border: 8px solid var(--red);
    background: rgba(181, 82, 69, .1);
    animation: layerFloat 2.4s infinite alternate
}

.layer-animation i:nth-child(2) {
    transform: translate(35px, 35px);
    border-color: var(--gold);
    animation-delay: .3s
}

.layer-animation i:nth-child(3) {
    transform: translate(70px, 70px);
    border-color: var(--ink);
    animation-delay: .6s
}

.animation-overlay[data-animation=window] .layer-animation i {
    border-radius: 50% 0 50% 50%;
    inset: 45px 28%
}

.presentation-bar {
    position: fixed;
    z-index: 90;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: #171d1b;
    color: white;
    padding: 10px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    white-space: nowrap
}

.presentation-bar button {
    border: 1px solid #56615d;
    background: transparent;
    color: white;
    padding: 6px 12px;
    margin-left: 8px
}

.presentation-bar strong {
    margin-left: 10px
}

.presentation-mode {
    font-size: 110%
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: .7s ease
}

.reveal.shown {
    opacity: 1;
    transform: none
}

@keyframes pulse {
    50% {
        box-shadow: 0 0 0 14px rgba(143, 57, 51, 0)
    }
}

@keyframes layerFloat {
    to {
        transform: translate3d(15px, -12px, 50px) rotate(2deg)
    }
}

@media(max-width:900px) {
    .site-header {
        height: 68px
    }

    .main-nav {
        display: none
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 70px
    }

    .hero-visual {
        height: 520px;
        margin-top: 30px
    }

    .scroll-cue {
        display: none
    }

    .section {
        padding: 80px 24px
    }

    .section-heading {
        display: block
    }

    .interactive-card,
    .seal-layout,
    .workshop-grid {
        grid-template-columns: 1fr
    }

    .building-stage {
        min-height: 430px
    }

    .process-grid {
        grid-template-columns: 1fr 1fr
    }

    .process-grid li:nth-child(2) {
        border-right: 0
    }

    .workshop-grid {
        gap: 14px
    }

    .classroom-card {
        align-items: flex-start;
        gap: 25px
    }

    .correction-case {
        align-items: flex-start;
        flex-wrap: wrap
    }
}

@media(max-width:560px) {
    .brand small {
        display: none
    }

    .install-button {
        padding: 7px 10px
    }

    .hero {
        padding: 48px 20px
    }

    .hero h1 {
        font-size: 43px
    }

    .hero-visual {
        height: 390px
    }

    .hero-actions,
    .hero-meta {
        align-items: flex-start;
        flex-direction: column
    }

    .hero-meta {
        gap: 8px
    }

    .hero-meta li {
        width: 100%
    }

    .section {
        padding: 65px 18px
    }

    .section-heading h2 {
        font-size: 35px
    }

    .module-tabs {
        overflow: auto
    }

    .module-tab {
        white-space: nowrap;
        padding: 12px
    }

    .interactive-card {
        min-height: 0
    }

    .building-stage {
        min-height: 330px
    }

    .module-copy {
        padding: 35px 24px
    }

    .hotspot i {
        display: none
    }

    .process-grid {
        grid-template-columns: 1fr
    }

    .process-grid li {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .14)
    }

    .compare-item {
        grid-template-columns: 40px 80px 1fr
    }

    .workshop-grid>div {
        padding: 20px
    }

    .pattern-canvas span {
        width: 52px;
        height: 52px
    }

    .canvas-controls,
    .classroom-card {
        flex-direction: column
    }

    .classroom-card {
        padding: 30px 24px
    }

    .presentation-bar span {
        display: none
    }

    .presentation-bar {
        width: calc(100% - 18px);
        text-align: center
    }

    .presentation-bar button {
        padding: 5px 8px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important
    }

    .reveal {
        opacity: 1;
        transform: none
    }
}

@media print {

    body>*:not(main),
    main>section:not(#create) {
        display: none !important
    }

    #create {
        padding: 0
    }

    .section-heading,
    .pattern-picker,
    .pattern-canvas-wrap {
        display: none
    }

    .workshop-grid {
        display: block
    }

    .task-card {
        min-height: 90vh;
        border: 4px solid #222
    }

    .task-card .primary-button {
        display: none
    }
}

.knowledge-dialog.fallback-open {
    display: block;
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 85;
    width: min(560px, 90vw);
    max-height: 85vh;
    overflow: auto
}

.knowledge-dialog.fallback-open:before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(20, 27, 25, .72);
    z-index: -1
}

.animation-overlay[hidden],
.presentation-bar[hidden] {
    display: none !important
}

.print-copyright {
    display: none
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm
    }

    html,
    body {
        width: auto;
        height: auto;
        background: #fff !important
    }

    body>*:not(main),
    main>section:not(#create),
    main>.site-footer {
        display: none !important
    }

    #create {
        display: block !important;
        padding: 0 !important;
        background: #fff !important
    }

    #create .section-heading {
        display: block !important;
        margin: 0 0 8mm !important;
        border-bottom: 1px solid #bbb;
        padding-bottom: 5mm
    }

    #create .section-heading h2 {
        font-size: 24pt !important;
        margin: 0 !important
    }

    #create .section-heading>p {
        font-size: 10pt !important;
        margin: 0 !important
    }

    .workshop-grid {
        display: grid !important;
        grid-template-columns: 34% 1fr !important;
        gap: 6mm !important
    }

    .workshop-grid>div {
        box-shadow: none !important;
        border: 1px solid #bbb !important;
        padding: 6mm !important
    }

    .pattern-picker,
    .pattern-canvas-wrap {
        display: block !important;
        break-inside: avoid !important
    }

    .pattern-canvas {
        max-height: 120mm !important;
        aspect-ratio: 1.45 !important
    }

    .pattern-canvas span {
        width: 18mm !important;
        height: 18mm !important
    }

    .task-card {
        grid-column: 1/-1 !important;
        break-before: page !important;
        page-break-before: always !important;
        min-height: 250mm !important;
        position: relative !important;
        padding: 14mm !important;
        border: 2px solid #222 !important
    }

    .task-card ol:after {
        content: "作品名称：______________________________\A\A设计说明：____________________________________________________________\A\A______________________________________________________________________";
        white-space: pre;
        display: block;
        margin-top: 14mm;
        font-size: 13pt;
        color: #222;
        border-top: 1px dashed #999;
        padding-top: 10mm
    }

    .task-card .primary-button {
        display: none !important
    }

    .print-copyright {
        display: block !important;
        position: absolute;
        left: 14mm;
        right: 14mm;
        bottom: 10mm;
        border-top: 1px solid #bbb;
        padding-top: 4mm;
        text-align: center;
        font-size: 9pt;
        color: #666
    }
}

@media print {
    .reveal {
        opacity: 1 !important;
        transform: none !important
    }
}

.gallery-section {
    background: #ded8ca
}

.gallery-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px
}

.gallery-filters button {
    border: 1px solid rgba(32, 40, 38, .25);
    background: transparent;
    padding: 8px 17px
}

.gallery-filters button.active {
    background: var(--ink);
    color: #fff
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px
}

.gallery-card {
    grid-column: span 4;
    border: 0;
    padding: 0;
    background: #f7f3e9;
    color: var(--ink);
    text-align: left;
    overflow: hidden
}

.gallery-card:nth-child(1),
.gallery-card:nth-child(4) {
    grid-column: span 7
}

.gallery-card:nth-child(2),
.gallery-card:nth-child(3) {
    grid-column: span 5
}

.gallery-card[hidden] {
    display: none !important
}

.gallery-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.35;
    background: #bbb3a5
}

.gallery-card:nth-child(1) .gallery-image,
.gallery-card:nth-child(4) .gallery-image {
    aspect-ratio: 1.8
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s, filter .45s
}

.gallery-image i {
    position: absolute;
    right: 14px;
    bottom: 12px;
    background: rgba(32, 40, 38, .78);
    color: white;
    padding: 5px 9px;
    font-size: 11px;
    font-style: normal;
    opacity: 0;
    transform: translateY(8px);
    transition: .3s
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.035);
    filter: saturate(1.1)
}

.gallery-card:hover .gallery-image i {
    opacity: 1;
    transform: none
}

.gallery-info {
    display: flex;
    flex-direction: column;
    padding: 20px 22px
}

.gallery-info small {
    color: var(--red);
    font-size: 10px;
    letter-spacing: .1em
}

.gallery-info strong {
    font: 24px var(--serif);
    margin: 7px 0
}

.gallery-info em {
    font-style: normal;
    color: var(--muted);
    font-size: 13px
}

.gallery-note {
    margin-top: 28px;
    padding: 18px 22px;
    border-left: 4px solid var(--red);
    background: rgba(255, 255, 255, .42);
    display: flex;
    gap: 28px
}

.gallery-note p {
    margin: 0;
    color: var(--muted)
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 20, 19, .92);
    display: grid;
    place-items: center;
    opacity: 0;
    transition: .22s
}

.gallery-lightbox[hidden] {
    display: none !important
}

.gallery-lightbox.visible {
    opacity: 1
}

.gallery-lightbox figure {
    width: min(1050px, 82vw);
    max-height: 88vh;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    background: #f4efe5
}

.gallery-lightbox figure img {
    width: 100%;
    height: 100%;
    max-height: 88vh;
    object-fit: contain;
    background: #171d1b
}

.gallery-lightbox figcaption {
    padding: 35px;
    align-self: center
}

.gallery-lightbox figcaption small {
    color: var(--red)
}

.gallery-lightbox figcaption h3 {
    font: 30px var(--serif);
    margin: 10px 0
}

.gallery-lightbox figcaption p,
.gallery-lightbox figcaption time {
    color: var(--muted);
    font-size: 13px
}

.gallery-close,
.gallery-nav {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(0, 0, 0, .25);
    color: #fff
}

.gallery-close {
    right: 25px;
    top: 20px;
    width: 44px;
    height: 44px;
    font-size: 28px
}

.gallery-nav {
    top: 50%;
    width: 48px;
    height: 64px;
    font-size: 40px;
    transform: translateY(-50%)
}

.gallery-nav.previous {
    left: 22px
}

.gallery-nav.next {
    right: 22px
}

.lightbox-open {
    overflow: hidden
}

@media(max-width:800px) {

    .gallery-card,
    .gallery-card:nth-child(n) {
        grid-column: span 6
    }

    .gallery-lightbox figure {
        grid-template-columns: 1fr;
        width: 86vw;
        max-height: 84vh;
        overflow: auto
    }

    .gallery-lightbox figure img {
        max-height: 58vh
    }

    .gallery-lightbox figcaption {
        padding: 22px
    }

    .gallery-nav {
        width: 38px
    }

    .gallery-nav.previous {
        left: 4px
    }

    .gallery-nav.next {
        right: 4px
    }
}

@media(max-width:520px) {

    .gallery-card,
    .gallery-card:nth-child(n) {
        grid-column: 1/-1
    }

    .gallery-note {
        display: block
    }

    .gallery-lightbox figure {
        width: 88vw
    }

    .gallery-close {
        right: 8px;
        top: 8px
    }

    .gallery-nav {
        top: auto;
        bottom: 8px;
        transform: none
    }

    .gallery-nav.previous {
        left: 30%
    }

    .gallery-nav.next {
        right: 30%
    }
}

.gallery-scroll-shell {
    position: relative
}

.gallery-grid {
    height: min(68vh, 720px);
    min-height: 480px;
    overflow-y: auto;
    overscroll-behavior: contain;
    align-content: start;
    padding: 0 12px 22px 0;
    scrollbar-gutter: stable;
    scroll-behavior: smooth
}

.gallery-grid:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 5px
}

.gallery-grid::-webkit-scrollbar {
    width: 9px
}

.gallery-grid::-webkit-scrollbar-track {
    background: rgba(32, 40, 38, .08)
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: rgba(32, 40, 38, .42);
    border: 2px solid #ded8ca
}

.gallery-scroll-hint {
    position: absolute;
    right: 24px;
    bottom: 16px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    background: rgba(32, 40, 38, .82);
    color: #fff;
    font-size: 11px;
    pointer-events: none;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .16)
}

.gallery-scroll-hint i {
    font-style: normal;
    animation: galleryScrollHint 1.3s infinite alternate
}

.gallery-scroll-shell:focus-within .gallery-scroll-hint {
    opacity: .35
}

@keyframes galleryScrollHint {
    to {
        transform: translateY(4px)
    }
}

@media(max-width:800px) {
    .gallery-grid {
        height: 64vh;
        min-height: 430px;
        padding-right: 8px
    }

    .gallery-scroll-hint {
        right: 18px
    }
}

@media(max-width:520px) {
    .gallery-grid {
        height: 62vh;
        min-height: 390px
    }

    .gallery-scroll-hint {
        right: 12px;
        bottom: 12px
    }

    .gallery-scroll-hint span {
        display: none
    }
}

@media print {
    .gallery-grid {
        height: auto !important;
        overflow: visible !important
    }

    .gallery-scroll-hint {
        display: none !important
    }
}

.gallery-scroll-shell:not(.is-scrollable) .gallery-scroll-hint {
    display: none
}

.gallery-scroll-shell.has-scrolled .gallery-scroll-hint {
    opacity: 0;
    transform: translateY(8px);
    transition: .25s
}

.gallery-viewport {
    height: 440px;
    overflow: hidden;
    position: relative;
    touch-action: pan-y
}

.gallery-track {
    display: flex;
    width: max-content;
    height: 100%;
    will-change: transform;
    animation: galleryMarquee 72s linear infinite
}

.gallery-group {
    display: flex;
    flex: none;
    justify-content: space-evenly;
    gap: 18px;
    min-width: 100vw;
    height: 100%;
    padding-right: 18px
}

.gallery-group .gallery-card {
    flex: 0 0 360px;
    width: 360px;
    height: 100%;
    display: flex;
    flex-direction: column
}

.gallery-group .gallery-card[data-category=overview] {
    flex-basis: 500px;
    width: 500px
}

.gallery-group .gallery-image,
.gallery-group .gallery-card:nth-child(n) .gallery-image {
    height: 292px;
    aspect-ratio: auto
}

.gallery-group .gallery-info {
    flex: 1
}

.gallery-viewport:hover .gallery-track,
.gallery-viewport:focus-within .gallery-track {
    animation-play-state: paused
}

@keyframes galleryMarquee {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

.gallery-scroll-shell,
.gallery-scroll-hint {
    display: none !important
}

@media(max-width:800px) {
    .gallery-viewport {
        height: 390px
    }

    .gallery-group {
        min-width: 100vw;
        gap: 14px;
        padding-right: 14px
    }

    .gallery-group .gallery-card,
    .gallery-group .gallery-card[data-category=overview] {
        flex-basis: 310px;
        width: 310px
    }

    .gallery-group .gallery-image,
    .gallery-group .gallery-card:nth-child(n) .gallery-image {
        height: 235px
    }

    .gallery-track {
        animation-duration: 60s
    }
}

@media(max-width:520px) {
    .gallery-viewport {
        height: 350px;
        margin-left: -18px;
        margin-right: -18px
    }

    .gallery-group .gallery-card,
    .gallery-group .gallery-card[data-category=overview] {
        flex-basis: 278px;
        width: 278px
    }

    .gallery-group .gallery-image,
    .gallery-group .gallery-card:nth-child(n) .gallery-image {
        height: 205px
    }

    .gallery-track {
        animation-duration: 52s
    }
}

@media(prefers-reduced-motion:reduce) {
    .gallery-track {
        animation: none !important;
        transform: none !important
    }

    .gallery-group[aria-hidden=true] {
        display: none
    }
}

.seal-observe-task {
    margin: 22px 0;
    padding: 16px 18px;
    background: rgba(143, 57, 51, .08);
    border-left: 3px solid var(--red)
}

.seal-observe-task strong {
    font: 18px var(--serif)
}

.seal-observe-task p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px
}

.seal-frame.reference-seal {
    width: min(330px, 100%);
    aspect-ratio: 1012/1224;
    background: #fff;
    overflow: hidden;
    box-shadow: 24px 24px 0 rgba(143, 57, 51, .12)
}

.reference-seal img {
    object-fit: contain;
    transition: transform .35s, filter .35s
}

.reference-seal .guide-v {
    left: 43%;
    top: 5%;
    bottom: 6%;
    background: rgba(248, 202, 84, .9)
}

.reference-seal .guide-h {
    top: 48%;
    left: 7%;
    right: 7%;
    background: rgba(248, 202, 84, .9)
}

.seal-zone {
    position: absolute;
    display: grid;
    place-items: center;
    border: 2px dashed rgba(255, 226, 135, .95);
    background: rgba(143, 57, 51, .13);
    color: #6f211e;
    font: 20px var(--serif);
    opacity: 0;
    transition: .3s;
    pointer-events: none
}

.zone-one {
    left: 45%;
    top: 8%;
    width: 43%;
    height: 44%
}

.zone-two {
    left: 45%;
    top: 55%;
    width: 43%;
    height: 34%
}

.zone-three {
    left: 8%;
    top: 9%;
    width: 32%;
    height: 80%
}

.seal-viewer[data-view=characters] .seal-zone {
    opacity: 1
}

.seal-viewer[data-view=density] .seal-zone {
    opacity: 1;
    color: transparent;
    border: 0
}

.seal-viewer[data-view=density] .zone-one {
    background: rgba(143, 57, 51, .28)
}

.seal-viewer[data-view=density] .zone-two {
    background: rgba(184, 140, 82, .2)
}

.seal-viewer[data-view=density] .zone-three {
    background: rgba(143, 57, 51, .1)
}

.seal-viewer[data-view=density] .guide-v,
.seal-viewer[data-view=density] .guide-h {
    opacity: 0
}

.seal-viewer[data-view=line] .seal-zone,
.seal-viewer[data-view=line] .guide-v,
.seal-viewer[data-view=line] .guide-h {
    opacity: 0
}

.seal-viewer[data-view=line] .reference-seal img {
    transform: scale(1.055);
    filter: saturate(1.2) contrast(1.08)
}

@media(max-width:560px) {
    .seal-frame.reference-seal {
        width: min(280px, 100%)
    }
}

.hero-visual .ink-building {
    left: 4%;
    right: -2%;
    bottom: 0;
    height: 72%;
    background: none;
    border: 0;
    box-shadow: none
}

.hero-visual .ink-building img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(16px 20px 0 rgba(32, 40, 38, .10))
}

.hero-visual .ink-building i {
    display: none
}

@media(max-width:560px) {
    .hero-visual .ink-building {
        left: -8%;
        right: -10%;
        height: 78%
    }
}