:root {
    --paper: #F9F7F2;    /* 宣纸白 */
    --ink: #2A2A2A;      /* 墨色 */
    --cinnabar: #A61D24;  /* 经典朱砂红 */
    --silk: #E6E2D3;     /* 绢丝色 */
}

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    overflow-x: hidden;
}

h1, h2 {
    font-family: 'Bodoni Moda', serif;
}

/* 动态背景：水墨晕染效果 */
.ink-blob {
    position: fixed;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.3;
    border-radius: 50%;
    background: radial-gradient(circle, var(--silk) 0%, transparent 70%);
    animation: float 20s infinite alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 5vh) scale(1.2); }
}

/* 背景纹样：传统窗棂纹 */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='none' stroke='%23A61D24' stroke-width='1'/%3E%3C/svg%3E");
}

/* 印章样式 */
.seal {
    display: inline-block;
    background-color: var(--cinnabar);
    color: white;
    width: 0.6em;
    height: 0.6em;
    line-height: 0.5em;
    vertical-align: middle;
    margin: 0 0.1em;
    position: relative;
    top: -0.1em;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
    animation: stamp 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes stamp {
    0% { transform: scale(3) rotate(15deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* 侧边垂直文字 */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    letter-spacing: 0.5em;
    color: var(--cinnabar);
    opacity: 0.6;
}

.fade-in {
    animation: fadeIn 2s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-oriental {
    position: relative;
    padding: 0.75rem 2rem;
    border: 1px solid var(--ink);
    overflow: hidden;
    transition: all 0.5s ease;
}

.btn-oriental:hover {
    color: white;
    border-color: var(--cinnabar);
}

.btn-oriental::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cinnabar);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-oriental:hover::before {
    top: 0;
}

/* 水墨互动 Canvas 样式 */
#ink-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
