/* =========================================================
   时光会把你雕刻成你应有的样子 —— 暖纸光影 · 楷书感悟页
   ========================================================= */

:root {
    --paper: #f6f0e3;      /* 暖纸底 */
    --ink: #3a3228;        /* 暖墨色 */
    --ink-soft: #7a6b58;   /* 浅墨 */
    --gold: #b07a3c;       /* 暖金点缀 */
    --font-kai: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "Noto Serif SC", "Songti SC", serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-kai);
    line-height: 2;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* ---------------- 光影氛围 ---------------- */

/* 纸张颗粒 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.055;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 边缘暗角 */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(90, 66, 34, 0.10) 100%);
}

.light {
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.light-a {
    width: 520px;
    height: 520px;
    top: -140px;
    left: -140px;
    background: rgba(214, 168, 96, 0.22);
    animation: drift-a 24s ease-in-out infinite alternate;
}

.light-b {
    width: 460px;
    height: 460px;
    bottom: -160px;
    right: -120px;
    background: rgba(160, 95, 44, 0.13);
    animation: drift-b 28s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(70px, 50px) scale(1.12); }
}

@keyframes drift-b {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-60px, -40px) scale(1.15); }
}

main {
    position: relative;
    z-index: 1;
}

/* ---------------- 装饰 ---------------- */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 40px;
}

.ornament .line {
    width: 44px;
    height: 1px;
    background: var(--gold);
    opacity: 0.7;
}

.ornament .diamond {
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* ---------------- 首屏 ---------------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
}

.hero-slogan {
    font-size: clamp(32px, 6vw, 60px);
    font-weight: 700;
    line-height: 1.75;
    letter-spacing: 6px;
    animation: breathe 7s ease-in-out infinite;
}

.hero-sub {
    margin-top: 34px;
    font-size: clamp(14px, 2vw, 17px);
    letter-spacing: 4px;
    color: var(--ink-soft);
}

@keyframes breathe {
    0%, 100% { text-shadow: 0 2px 26px rgba(160, 95, 44, 0.10); }
    50%      { text-shadow: 0 2px 40px rgba(160, 95, 44, 0.30); }
}

/* ---------------- 感悟段 ---------------- */
.verse {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 26px;
    padding: 90px 24px;
}

.verse-main {
    font-size: clamp(26px, 4.5vw, 40px);
    letter-spacing: 4px;
    line-height: 1.9;
}

.verse-sub {
    font-size: clamp(14px, 2vw, 17px);
    letter-spacing: 3px;
    color: var(--ink-soft);
}

/* ---------------- 页脚 ---------------- */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 44px 24px 56px;
    text-align: center;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--ink-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-line {
    font-size: 13px;
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.site-footer a:hover {
    color: var(--gold);
}

/* ---------------- 滚动渐显 ---------------- */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(8px);
    transition: opacity 1.3s ease, transform 1.3s ease, filter 1.3s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
    .hero-slogan { animation: none; }
    .light { animation: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 640px) {
    .verse {
        min-height: 75vh;
        padding: 60px 20px;
    }

    .hero-slogan {
        letter-spacing: 3px;
    }

    .verse-main {
        letter-spacing: 2px;
    }
}
