:root {
    /* 唐卡风格配色 */
    --thangka-red: #8B2323;
    --thangka-gold: #DAA520;
    --thangka-blue: #1E3A5F;
    --thangka-turquoise: #40E0D0;
    --thangka-coral: #FF6B4A;
    --thangka-ochre: #CC7722;
    --thangka-cream: #F5E6D3;
    --thangka-dark: #1a0a0a;
    --thangka-paper: #2d1810;
    
    /* 保留旧变量兼容性 */
    --persian-blue: var(--thangka-blue);
    --deep-teal: #0d4d4d;
    --royal-purple: #4a1942;
    --gold: var(--thangka-gold);
    --gold-light: #f0d58c;
    --turquoise: var(--thangka-turquoise);
    --ruby: var(--thangka-red);
    --cream: var(--thangka-cream);
    --dark-bg: var(--thangka-dark);
    --card-bg: rgba(139, 35, 35, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimSun", "STSong", serif;
    background: transparent;
    color: var(--cream);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.light-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* 唐卡风格背景 - 手绘质感 */
.mosaic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(139, 35, 35, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(30, 58, 95, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(218, 165, 32, 0.05) 0%, transparent 70%),
        var(--thangka-dark);
    z-index: -1;
}

/* 手绘纸张纹理 */
.mosaic-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(139, 35, 35, 0.02) 3px,
            rgba(139, 35, 35, 0.02) 6px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3px,
            rgba(218, 165, 32, 0.02) 3px,
            rgba(218, 165, 32, 0.02) 6px
        );
    opacity: 0.8;
}

/* 角落曼陀罗装饰 */
.mosaic-bg::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: 
        radial-gradient(circle, transparent 30%, rgba(218, 165, 32, 0.1) 30%, rgba(218, 165, 32, 0.1) 35%, transparent 35%),
        radial-gradient(circle, transparent 50%, rgba(218, 165, 32, 0.1) 50%, rgba(218, 165, 32, 0.1) 55%, transparent 55%);
    border-radius: 50%;
}

/* 上方浮动天体 */
.celestial-bodies {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.celestial {
    position: absolute;
    font-size: 2rem;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px currentColor;
    animation: celestialFloat 15s ease-in-out infinite;
}

.celestial:hover {
    transform: scale(1.5);
    filter: drop-shadow(0 0 30px currentColor) drop-shadow(0 0 60px currentColor);
}

.celestial.sun {
    top: 8%;
    left: 15%;
    color: #FFD700;
    animation-delay: 0s;
    animation-duration: 20s;
}

.celestial.moon {
    top: 12%;
    right: 20%;
    color: #C0C0C0;
    animation-delay: -5s;
    animation-duration: 18s;
}

.celestial.star {
    top: 5%;
    left: 45%;
    color: #DAA520;
    animation-delay: -3s;
    animation-duration: 12s;
}

.celestial.star2 {
    top: 15%;
    left: 70%;
    color: #FFD700;
    animation-delay: -8s;
    animation-duration: 14s;
}

.celestial.star3 {
    top: 6%;
    right: 10%;
    color: #FFA500;
    animation-delay: -2s;
    animation-duration: 16s;
}

.celestial::after {
    content: attr(data-name);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--thangka-gold);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    font-family: "Microsoft YaHei", "SimSun", serif;
}

.celestial:hover::after {
    opacity: 1;
}

@keyframes celestialFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -15px) rotate(5deg); }
    50% { transform: translate(-20px, -25px) rotate(-3deg); }
    75% { transform: translate(15px, -10px) rotate(2deg); }
}

/* 四个吉祥动物 */
.auspicious-animals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}

.auspicious-animal {
    position: absolute;
    width: 120px;
    height: 120px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.85;
}

.auspicious-animal:hover {
    transform: scale(1.15);
    opacity: 1;
    filter: drop-shadow(0 0 20px currentColor) drop-shadow(0 0 40px currentColor);
}

.auspicious-animal::after {
    content: attr(data-name);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--thangka-gold);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    font-family: "Microsoft YaHei", "SimSun", serif;
    letter-spacing: 2px;
}

.auspicious-animal:hover::after {
    opacity: 1;
}

.auspicious-animal svg {
    width: 100%;
    height: 100%;
}

/* 唐卡风格动物 - 左上金雀 */
.thangka-sparrow {
    top: 70px;
    left: 80px;
    width: 130px;
    height: 130px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    animation: animalBreath 6s ease-in-out infinite;
}

.thangka-sparrow:hover {
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 80px rgba(255, 215, 0, 0.7));
}

/* 唐卡风格动物 - 右上白象 */
.thangka-elephant {
    top: 70px;
    right: 100px;
    width: 130px;
    height: 130px;
    filter: drop-shadow(0 0 20px rgba(255, 250, 240, 0.5));
    animation: animalBreath 6s ease-in-out infinite;
    animation-delay: -1.5s;
}

.thangka-elephant:hover {
    filter: drop-shadow(0 0 40px rgba(255, 250, 240, 0.9)) drop-shadow(0 0 80px rgba(255, 250, 240, 0.7));
}

/* 唐卡风格动物 - 左下金麒麟 */
.thangka-kylin {
    bottom: 70px;
    left: 80px;
    width: 130px;
    height: 130px;
    filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.5));
    animation: animalBreath 6s ease-in-out infinite;
    animation-delay: -3s;
}

.thangka-kylin:hover {
    filter: drop-shadow(0 0 40px rgba(255, 165, 0, 0.9)) drop-shadow(0 0 80px rgba(255, 165, 0, 0.7));
}

/* 唐卡风格动物 - 右下红兔 */
.thangka-rabbit {
    bottom: 70px;
    right: 100px;
    width: 130px;
    height: 130px;
    filter: drop-shadow(0 0 20px rgba(220, 20, 60, 0.5));
    animation: animalBreath 6s ease-in-out infinite;
    animation-delay: -4.5s;
}

.thangka-rabbit:hover {
    filter: drop-shadow(0 0 40px rgba(220, 20, 60, 0.9)) drop-shadow(0 0 80px rgba(220, 20, 60, 0.7));
}

@keyframes animalBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* 页面切换过渡效果 */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        rgba(26, 10, 10, 0.95) 0%, 
        rgba(26, 10, 10, 1) 70%);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
}

/* 四叶草容器过渡样式 */
.clover-container {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 20px auto;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 页面进入动画 - 从模糊到清晰 */
.page-enter {
    animation: blurToClear 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes blurToClear {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: scale(1.1);
    }
    30% {
        opacity: 0.3;
        filter: blur(15px);
        transform: scale(1.05);
    }
    60% {
        opacity: 0.7;
        filter: blur(5px);
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

/* 页面内容依次淡入效果 */
.page-enter .page-header {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    opacity: 0;
}

.page-enter .novel-card:nth-child(1) {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    opacity: 0;
}

.page-enter .novel-card:nth-child(2) {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
    opacity: 0;
}

.page-enter .novel-card:nth-child(3) {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* 四叶草叶片悬停效果增强 */
.clover-leaf {
    position: absolute;
    width: 250px;
    height: 250px;
    text-decoration: none;
    color: var(--thangka-cream);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.clover-leaf:hover {
    filter: drop-shadow(0 0 30px rgba(218, 165, 32, 0.5));
    transform: scale(1.05);
}

.clover-leaf:hover .leaf-svg path {
    stroke-width: 3;
}

.main-header, .page-header {
    text-align: center;
    padding: 40px 20px 30px;
    position: relative;
}

.ornament-top, .ornament-bottom {
    height: 40px;
    margin: 15px auto;
    position: relative;
    max-width: 500px;
}

.ornament-top::before,
.ornament-bottom::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--thangka-gold), transparent);
    border-radius: 2px;
}

.ornament-top::after,
.ornament-bottom::after {
    content: '☸';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--thangka-gold);
    font-size: 24px;
    text-shadow: 0 0 20px rgba(218, 165, 32, 0.5);
}

.main-title, .page-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--thangka-gold), var(--thangka-coral), var(--thangka-turquoise));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    display: inline-block;
    letter-spacing: 8px;
}

.title-ornament {
    color: var(--thangka-gold);
    font-size: 1.5rem;
    margin: 0 15px;
    display: inline-block;
    opacity: 0.8;
}

.subtitle, .page-subtitle {
    font-size: 1rem;
    color: var(--thangka-cream);
    opacity: 0.8;
    margin-top: 10px;
    letter-spacing: 4px;
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 四叶草容器 */
.clover-container {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 20px auto;
}

/* 外层金色曼陀罗装饰环 */
.outer-mandala-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 1;
}

.mandala-ring-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(218, 165, 32, 0.3));
}

.auspicious-symbols g {
    animation: symbolGlow 4s ease-in-out infinite;
}

.auspicious-symbols g:nth-child(1) { animation-delay: 0s; }
.auspicious-symbols g:nth-child(2) { animation-delay: 0.5s; }
.auspicious-symbols g:nth-child(3) { animation-delay: 1s; }
.auspicious-symbols g:nth-child(4) { animation-delay: 1.5s; }
.auspicious-symbols g:nth-child(5) { animation-delay: 2s; }
.auspicious-symbols g:nth-child(6) { animation-delay: 2.5s; }
.auspicious-symbols g:nth-child(7) { animation-delay: 3s; }
.auspicious-symbols g:nth-child(8) { animation-delay: 3.5s; }

@keyframes symbolGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* 中心曼陀罗 - 手绘风格 */
.center-mandala {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    z-index: 10;
}

.mandala-svg {
    width: 100%;
    height: 100%;
    animation: rotateSlow 120s linear infinite;
    filter: drop-shadow(0 0 15px rgba(218, 165, 32, 0.4));
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 四叶草轮盘 */
.clover-wheel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 四叶草叶片定位 */
.leaf-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.leaf-right {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.leaf-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.leaf-left {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.clover-leaf:hover.leaf-top { transform: translateX(-50%) scale(1.05); }
.clover-leaf:hover.leaf-right { transform: translateY(-50%) scale(1.05); }
.clover-leaf:hover.leaf-bottom { transform: translateX(-50%) scale(1.05); }
.clover-leaf:hover.leaf-left { transform: translateY(-50%) scale(1.05); }

.leaf-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
}

.leaf-svg path {
    transition: all 0.3s ease;
}

.leaf-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    pointer-events: none;
}

.leaf-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    color: var(--thangka-gold);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.icon-svg {
    width: 100%;
    height: 100%;
}

.leaf-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--thangka-gold);
    margin-bottom: 5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 3px;
}

.leaf-desc {
    font-size: 0.85rem;
    opacity: 0.9;
    color: var(--thangka-cream);
    letter-spacing: 2px;
}

/* 滚动提示 */
.scroll-hint {
    text-align: center;
    margin-top: 30px;
    color: var(--thangka-gold);
    opacity: 0.7;
}

.scroll-hint p {
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.scroll-icon {
    font-size: 2rem;
}

/* 小说页面样式 */
.category-nav, .novel-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 20px;
}

.category-card, .novel-card {
    position: relative;
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 40px 30px;
    text-decoration: none;
    color: var(--thangka-cream);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.category-card::before, .novel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, var(--thangka-gold), var(--thangka-turquoise), var(--thangka-red), var(--thangka-gold));
    background-size: 300% 300%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.5s;
    animation: borderGlow 6s ease infinite;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.category-card:hover::before, .novel-card:hover::before {
    opacity: 1;
}

.category-card:hover, .novel-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(218, 165, 32, 0.2),
        0 0 100px rgba(64, 224, 208, 0.15);
}

.card-ornament {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: linear-gradient(90deg, transparent, var(--thangka-gold), transparent);
    opacity: 0.5;
}

.card-icon, .card-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 20px auto;
    position: relative;
}

.icon-svg, .novel-icon {
    width: 100%;
    height: 100%;
    color: var(--thangka-gold);
    filter: drop-shadow(0 0 10px rgba(218, 165, 32, 0.4));
    transition: all 0.5s;
}

.category-card:hover .icon-svg,
.novel-card:hover .novel-icon {
    color: var(--thangka-turquoise);
    filter: drop-shadow(0 0 20px rgba(64, 224, 208, 0.6));
    transform: scale(1.1);
}

.card-title, .novel-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 20px 0 15px;
    color: var(--thangka-gold);
    position: relative;
    z-index: 2;
}

.card-desc, .novel-desc {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.tile-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    opacity: 0.1;
    background: 
        linear-gradient(45deg, var(--thangka-gold) 25%, transparent 25%),
        linear-gradient(-45deg, var(--thangka-gold) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--thangka-gold) 75%),
        linear-gradient(-45deg, transparent 75%, var(--thangka-gold) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 0, 10px -10px, 0 10px;
}

.tile-pattern.dark {
    background: 
        linear-gradient(45deg, var(--thangka-red) 25%, transparent 25%),
        linear-gradient(-45deg, var(--thangka-red) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--thangka-red) 75%),
        linear-gradient(-45deg, transparent 75%, var(--thangka-red) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 0, 10px -10px, 0 10px;
}

.tile-pattern.grotesque {
    background: 
        linear-gradient(45deg, var(--thangka-turquoise) 25%, transparent 25%),
        linear-gradient(-45deg, var(--thangka-turquoise) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--thangka-turquoise) 75%),
        linear-gradient(-45deg, transparent 75%, var(--thangka-turquoise) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 0, 10px -10px, 0 10px;
}

.tile-pattern.sun {
    background: 
        linear-gradient(45deg, var(--thangka-gold) 25%, transparent 25%),
        linear-gradient(-45deg, var(--thangka-gold) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--thangka-gold) 75%),
        linear-gradient(-45deg, transparent 75%, var(--thangka-gold) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 0, 10px -10px, 0 10px;
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(218, 165, 32, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.novel-card:hover .card-glow {
    opacity: 1;
}

.card-ornament-frame {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    pointer-events: none;
}

.ornament-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--thangka-gold);
    opacity: 0.4;
    transition: all 0.5s;
}

.ornament-corner.tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-radius: 10px 0 0 0;
}

.ornament-corner.tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    border-radius: 0 10px 0 0;
}

.ornament-corner.bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 10px;
}

.ornament-corner.br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-radius: 0 0 10px 0;
}

.novel-card:hover .ornament-corner {
    opacity: 1;
    border-color: var(--thangka-turquoise);
}

.novel-card.dark-fantasy {
    background: linear-gradient(135deg, rgba(45, 24, 16, 0.6), rgba(26, 10, 10, 0.6));
}

.novel-card.grotesque {
    background: linear-gradient(135deg, rgba(13, 77, 77, 0.5), rgba(30, 58, 95, 0.5));
}

.novel-card.sun-world {
    background: linear-gradient(135deg, rgba(74, 25, 66, 0.5), rgba(139, 35, 35, 0.3));
}

.back-link {
    position: absolute;
    top: 20px;
    left: 30px;
    color: var(--thangka-gold);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--thangka-gold);
    border-radius: 25px;
    transition: all 0.3s;
    opacity: 0.8;
}

.back-link:hover {
    opacity: 1;
    background: rgba(218, 165, 32, 0.1);
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.3);
}

.back-arrow {
    font-size: 1.2rem;
}

.main-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    position: relative;
}

.footer-ornament {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--thangka-gold), transparent);
    margin: 0 auto 20px;
}

.main-footer p {
    color: var(--thangka-cream);
    opacity: 0.6;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .main-title, .page-title {
        font-size: 2rem;
        letter-spacing: 4px;
    }
    
    .title-ornament {
        display: block;
        margin: 10px auto;
    }
    
    .clover-container {
        width: 320px;
        height: 320px;
    }
    
    .outer-mandala-ring {
        width: 320px;
        height: 320px;
    }
    
    .clover-leaf {
        width: 160px;
        height: 160px;
    }
    
    .center-mandala {
        width: 80px;
        height: 80px;
    }
    
    .leaf-title {
        font-size: 1.1rem;
    }
    
    .leaf-desc {
        font-size: 0.7rem;
    }
    
    .leaf-icon {
        width: 35px;
        height: 35px;
    }
    
    .auspicious-animal {
        width: 80px;
        height: 80px;
    }
    
    .auspicious-animal::after {
        font-size: 0.7rem;
        bottom: -15px;
    }
    
    .thangka-sparrow, .thangka-elephant {
        top: 50px;
    }
    
    .thangka-sparrow, .thangka-kylin {
        left: 10px;
    }
    
    .thangka-elephant, .thangka-rabbit {
        right: 10px;
    }
    
    .thangka-kylin, .thangka-rabbit {
        bottom: 50px;
    }
    
    .celestial {
        font-size: 1.3rem;
    }
    
    .celestial::after {
        font-size: 0.6rem;
        bottom: -18px;
    }
    
    .category-nav, .novel-nav {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .back-link {
        position: relative;
        top: 0;
        left: 0;
        display: inline-block;
        margin-bottom: 20px;
    }
    
    .page-header {
        padding-top: 20px;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.sun-rays {
    transform-origin: center;
    animation: rotateSlow 20s linear infinite;
}
