/* ============================================================
   Micookie · Minecraft 服务器宣传站
   风格：清透玻璃拟态 / 大圆角 / 柔和蓝调（参考 natfrp 观感）
   滚动：全屏板块 + scroll-snap + 淡入淡出切换
   ============================================================ */

:root {
    /* 主题色 */
    --blue-1: #2f7bf6;
    --blue-2: #5aa8ff;
    --violet: #7b6cff;
    --accent-grad: linear-gradient(135deg, var(--blue-1) 0%, var(--violet) 100%);

    /* 文字 */
    --ink: #1c2b46;
    --ink-2: #4c5f80;
    --ink-3: #7d8ea8;

    /* 玻璃 / 边框 */
    --glass-bg: rgba(255, 255, 255, 0.66);
    --glass-bg-strong: rgba(255, 255, 255, 0.82);
    --glass-brd: rgba(255, 255, 255, 0.62);
    --hairline: rgba(255, 255, 255, 0.75);

    /* 圆角 / 阴影 */
    --r-lg: 24px;
    --r-md: 16px;
    --r-sm: 12px;
    --shadow-soft: 0 18px 50px -20px rgba(46, 90, 160, 0.35);
    --shadow-card: 0 14px 34px -16px rgba(40, 80, 150, 0.32);

    /* 背景图片（静态根下的绝对路径） */
    --bg-image: url("/images/background.webp");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: #dce9f7;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* ---------- 全局固定背景（同一张图，轻微模糊，避免过度虚化） ---------- */
body::before {
    content: "";
    position: fixed;
    inset: -4%;
    z-index: -2;
    background: var(--bg-image) center center / cover no-repeat;
    filter: blur(5px) saturate(112%) brightness(1.05);
    transform: scale(1.01);
}

/* ---------- 全屏滚动容器 ---------- */
.scroller {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(80, 130, 210, 0.45) transparent;
}

.scroller::-webkit-scrollbar {
    width: 8px;
}
.scroller::-webkit-scrollbar-thumb {
    background: rgba(80, 130, 210, 0.4);
    border-radius: 8px;
}

/* ---------- 板块 ---------- */
.panel {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 88px 24px 56px;
}

/* 每个板块的色罩（同一张背景图上叠加不同颜色，更通透避免过重） */
.panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--tint, rgba(235, 243, 252, 0.42));
    pointer-events: none;
}
#hero        { --tint: rgba(224, 236, 250, 0.5); }
#servers     { --tint: rgba(232, 241, 252, 0.55); }
#gallery     { --tint: rgba(225, 239, 250, 0.52); }
#guestbook   { --tint: rgba(233, 240, 251, 0.6); }

/* 淡入淡出切换：默认内容淡出，激活板块淡入 */
.panel-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(34px);
    filter: blur(6px);
    transition: opacity 0.75s cubic-bezier(0.22, 0.8, 0.26, 1),
        transform 0.75s cubic-bezier(0.22, 0.8, 0.26, 1),
        filter 0.75s ease;
}
.panel.active .panel-inner {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ---------- 玻璃卡片 ---------- */
.glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid var(--glass-brd);
    box-shadow: var(--shadow-soft);
}
.glass-strong {
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-soft);
}

/* ---------- 顶部导航 ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    border: 0;
    border-bottom: 1px solid var(--hairline);
}
.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: 0.02em;
    flex: none;
}
.brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(90, 60, 20, 0.35));
}
.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 0.8, 0.26, 1);
}
.nav-links a {
    color: var(--ink-2);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover {
    color: var(--blue-1);
    background: rgba(47, 123, 246, 0.1);
}

/* 折叠模式：导航链接隐藏为下拉面板，汉堡按钮显示 */
.nav-toggle {
    display: none;
    flex: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(47, 123, 246, 0.1);
    cursor: pointer;
    transition: background 0.2s ease;
}
.nav-toggle:hover {
    background: rgba(47, 123, 246, 0.18);
}
.nav-toggle .bar {
    display: block;
    width: 20px;
    height: 2.4px;
    border-radius: 3px;
    background: var(--blue-1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(7.4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-7.4px) rotate(-45deg);
}

.nav-collapsed .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 14px;
    right: 14px;
    z-index: 59;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    visibility: hidden;
}
.nav-collapsed .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}
.nav-collapsed .nav-links a {
    display: block;
    padding: 12px 18px;
    border-radius: var(--r-sm);
}
.nav-collapsed .nav-toggle {
    display: inline-flex;
}

/* ---------- 右侧圆点导航 ---------- */
.page-dots {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 49;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(40, 80, 150, 0.28);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease,
        box-shadow 0.25s ease;
}
.dot:hover {
    background: rgba(47, 123, 246, 0.55);
}
.dot.active {
    background: var(--blue-1);
    transform: scale(1.45);
    box-shadow: 0 0 0 4px rgba(47, 123, 246, 0.18);
}

/* ---------- 通用标题 ---------- */
.section-head {
    text-align: center;
    margin-bottom: 36px;
}
.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--ink);
}
.section-sub {
    margin-top: 10px;
    color: var(--ink-3);
    font-size: 1rem;
}

/* ============================================================
   1. HERO
   ============================================================ */
#hero .panel-inner {
    text-align: center;
}
.hero-kicker {
    font-size: 0.86rem;
    letter-spacing: 0.42em;
    color: var(--blue-1);
    font-weight: 700;
    text-transform: uppercase;
}
.hero-title {
    margin-top: 14px;
    font-size: clamp(3rem, 9vw, 5.6rem);
    font-weight: 900;
    line-height: 1.04;
    background: linear-gradient(120deg, #1d5fd8 0%, #4a94ff 45%, #7b6cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 12px 40px rgba(60, 120, 220, 0.25);
}
.hero-announcement {
    margin: 22px auto 0;
    max-width: 640px;
    color: var(--ink-2);
    font-size: 1.06rem;
    line-height: 1.8;
}

/* QQ 群卡片 */
.qq-card {
    margin: 30px auto 0;
    max-width: 660px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 22px;
    text-align: left;
    border-radius: var(--r-lg);
}
.qq-card-info {
    flex: 1;
    min-width: 0;
}
.qq-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent-grad);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
}
.qq-card-name {
    font-size: 1.24rem;
    font-weight: 800;
    color: var(--ink);
}
.qq-card-desc {
    margin-top: 8px;
    color: var(--ink-3);
    font-size: 0.9rem;
    line-height: 1.7;
}
.qq-card-meta {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.qq-number {
    font-family: "Cascadia Code", Consolas, monospace;
    font-weight: 700;
    color: var(--blue-1);
    font-size: 1.02rem;
}
.qq-qr {
    width: 108px;
    height: 108px;
    flex: none;
    object-fit: cover;
    border-radius: var(--r-sm);
    background: #fff;
    padding: 6px;
    box-shadow: 0 8px 22px -10px rgba(40, 80, 150, 0.45);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.qq-qr:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 26px -10px rgba(47, 123, 246, 0.5);
}
.qq-qr-hint {
    margin-top: 10px;
    text-align: center;
    font-size: 0.74rem;
    color: var(--ink-3);
}
/* 点击二维码后出现的保存选项 */
.qq-save-pop {
    position: absolute;
    z-index: 5;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 34, 60, 0.88);
    color: #fff;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.84rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}
.qq-save-pop.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.qq-save-pop button {
    border: 0;
    background: var(--blue-1);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 5px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: filter 0.2s ease;
}
.qq-save-pop button:hover {
    filter: brightness(1.1);
}
.qq-qr-box {
    position: relative;
    flex: none;
}

/* 向下滚动提示 */
.scroll-cue {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border: 0;
    background: transparent;
    color: var(--ink-2);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.2s ease;
}
.scroll-cue:hover {
    color: var(--blue-1);
}
.cue-arrow {
    animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
    0%, 100% { transform: translateY(0); opacity: 0.85; }
    50%      { transform: translateY(7px); opacity: 1; }
}

/* ============================================================
   2. 服务器
   ============================================================ */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 26px;
}
.server-card {
    border-radius: var(--r-lg);
    padding: 26px 26px 24px;
    transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.26, 1),
        box-shadow 0.35s ease;
}
.server-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -22px rgba(46, 90, 160, 0.5);
}
.server-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.server-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
}
.version-pill {
    flex: none;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent-grad);
    padding: 5px 14px;
    border-radius: 999px;
}
.server-since {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--ink-3);
}
.server-desc {
    margin-top: 12px;
    color: var(--ink-2);
    font-size: 0.96rem;
    line-height: 1.75;
}
/* 服务器级提示（如“需在 QQ 群获取客户端整合包”） */
.server-note {
    margin-top: 14px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #8a5a00;
    background: linear-gradient(90deg, rgba(255, 190, 60, 0.28), rgba(255, 190, 60, 0.1));
    border: 1px solid rgba(255, 170, 40, 0.4);
    border-radius: 10px;
    padding: 8px 12px;
    line-height: 1.7;
}
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}
.chip {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2b5fc4;
    background: rgba(47, 123, 246, 0.12);
    border: 1px solid rgba(47, 123, 246, 0.18);
    padding: 4px 12px;
    border-radius: 999px;
}
.conn-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink-3);
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}
.conn-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.conn-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--r-sm);
    padding: 8px 12px;
    font-size: 0.86rem;
}
.conn-type {
    font-weight: 600;
    color: var(--ink-2);
    flex: none;
}
.conn-addr {
    font-family: "Cascadia Code", Consolas, monospace;
    color: #2c5fc4;
    font-weight: 600;
    word-break: break-all;
}
.conn-note {
    width: 100%;
    font-size: 0.76rem;
    color: #a06a00;
    background: rgba(255, 200, 90, 0.18);
    border-radius: 8px;
    padding: 4px 10px;
    line-height: 1.6;
}

/* ============================================================
   3. 画廊（居中大图轮播：左右窥视邻图 + 边缘淡出淡入）
   ============================================================ */
.gallery-carousel {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
}
.gallery-viewport {
    position: relative;
    height: clamp(300px, 62vh, 560px);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: rgba(18, 32, 58, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow-card);
    touch-action: pan-y;
}
/* 舞台：每张图一个全尺寸图层，绝对居中定位后由 transform 摆放 */
.gallery-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.gslide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* 仅中央图片可点击 */
    transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.26, 1),
        opacity 0.55s ease;
    will-change: transform, opacity;
}
.gslide img {
    max-width: 60%;
    max-height: 82%;
    object-fit: contain;
    border-radius: var(--r-md);
    box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    cursor: zoom-in;
    -webkit-user-drag: none;
    user-select: none;
}
.gslide.is-center img {
    pointer-events: auto;
}
.gslide-cap {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    background: rgba(12, 22, 42, 0.55);
    color: #fff;
    font-size: 0.82rem;
    padding: 5px 16px;
    border-radius: 999px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    pointer-events: none;
    white-space: nowrap;
}
/* 视口左右边缘的淡出淡入（未完全显示部分过渡） */
.gallery-viewport::before,
.gallery-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 90px;
    z-index: 4;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.gallery-viewport::before {
    left: 0;
    background: linear-gradient(90deg,
        rgba(232, 241, 252, 0.92) 0%,
        rgba(232, 241, 252, 0.55) 35%,
        transparent 100%);
}
.gallery-viewport::after {
    right: 0;
    background: linear-gradient(270deg,
        rgba(232, 241, 252, 0.92) 0%,
        rgba(232, 241, 252, 0.55) 35%,
        transparent 100%);
}
/* 控制条 */
.gallery-ctrl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 16px;
}
.gallery-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}
.gal-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(40, 80, 150, 0.3);
    cursor: pointer;
    transition: all 0.25s ease;
}
.gal-dot:hover {
    background: rgba(47, 123, 246, 0.55);
}
.gal-dot.active {
    background: var(--blue-1);
    width: 26px;
    border-radius: 999px;
}
.gallery-counter {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}
.gal-hint {
    margin-top: 12px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--ink-3);
}

/* ============================================================
   4. 留言板
   ============================================================ */
.guestbook-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: start;
}
.msg-form {
    border-radius: var(--r-lg);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-2);
    margin-bottom: 8px;
}
.field input,
.field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    font-size: 0.95rem;
    color: var(--ink);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
        background 0.2s ease;
}
.field textarea {
    resize: vertical;
    min-height: 120px;
}
.field input:focus,
.field textarea:focus {
    border-color: var(--blue-2);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(47, 123, 246, 0.16);
}
.form-error {
    font-size: 0.84rem;
    color: #d64545;
}

.btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.25s ease,
        opacity 0.2s ease, filter 0.2s ease;
}
.btn-primary {
    color: #fff;
    background: var(--accent-grad);
    padding: 13px 20px;
    font-size: 0.98rem;
    letter-spacing: 0.06em;
    box-shadow: 0 14px 26px -12px rgba(47, 123, 246, 0.75);
}
.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 18px 32px -12px rgba(47, 123, 246, 0.85);
}
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.btn-copy {
    margin-left: auto;
    flex: none;
    background: rgba(47, 123, 246, 0.12);
    color: #2b5fc4;
    border: 1px solid rgba(47, 123, 246, 0.22);
    padding: 4px 12px;
    font-size: 0.78rem;
    border-radius: 999px;
}
.btn-copy:hover {
    background: var(--blue-1);
    color: #fff;
}
.btn-copy.done {
    background: #22a06b;
    color: #fff;
    border-color: #22a06b;
}

.msg-list {
    border-radius: var(--r-lg);
    padding: 22px 24px;
    max-height: 62vh;
    display: flex;
    flex-direction: column;
}
.msg-list-head {
    font-weight: 800;
    color: var(--ink);
    font-size: 1.02rem;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(60, 110, 180, 0.15);
    margin-bottom: 12px;
}
.msg-items {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-right: 4px;
}
.msg-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--r-sm);
    padding: 12px 16px;
    animation: msgIn 0.4s ease both;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
.msg-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}
.msg-nick {
    font-weight: 800;
    color: var(--ink);
    font-size: 0.92rem;
}
.msg-time {
    font-size: 0.74rem;
    color: var(--ink-3);
}
.msg-content {
    font-size: 0.92rem;
    color: var(--ink-2);
    line-height: 1.7;
    word-break: break-word;
    white-space: pre-wrap;
}

.empty-hint {
    text-align: center;
    color: var(--ink-3);
    font-size: 0.9rem;
    padding: 18px 0;
}

/* ---------- 进入视口淡入（由 IntersectionObserver 添加 .in） ---------- */
.reveal-on-load {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.26, 1);
}
.reveal-on-load.in {
    opacity: 1;
    transform: none;
}

.site-foot {
    text-align: center;
    padding: 26px 16px 34px;
    font-size: 0.82rem;
    color: var(--ink-3);
    scroll-snap-align: end;
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 42px;
    transform: translate(-50%, 20px);
    z-index: 99;
    background: rgba(24, 40, 66, 0.9);
    color: #fff;
    font-size: 0.9rem;
    padding: 11px 22px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}
.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- 无障碍 / 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001s !important;
        transition-duration: 0.001s !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
    .guestbook-layout {
        grid-template-columns: 1fr;
    }
    .panel {
        padding: 84px 18px 44px;
    }
    .qq-save-pop {
        bottom: 2px;
    }
}

@media (max-width: 700px) {
    .page-dots {
        right: 12px;
    }
    .scroller {
        scroll-snap-type: y proximity; /* 移动端内容可长于视口，避免强制吸附困住滚动 */
    }
    .qq-card {
        flex-direction: column-reverse;
        text-align: center;
    }
    .qq-card-meta {
        justify-content: center;
    }
    .server-grid {
        grid-template-columns: 1fr;
    }
    .msg-list {
        max-height: none;
    }
    .gal-hint {
        font-size: 0.74rem;
    }
    .gallery-viewport {
        height: clamp(220px, 50vh, 400px);
    }
    .gslide img {
        max-width: 74%;
        max-height: 78%;
    }
    .gallery-viewport::before,
    .gallery-viewport::after {
        width: 36px;
    }
    body::before {
        /* 移动端固定背景性能/兼容：改用普通滚动定位 */
        background-attachment: scroll;
    }
}

@media (max-height: 640px) and (min-width: 701px) {
    .scroller {
        scroll-snap-type: y proximity;
    }
}
