/* ============================================
   修行网站设计升级 - 专属样式 v2.0
   设计灵魂：空寂·淡雅·禅意
   配色：米白#FAFAF8 + 墨灰#3A3A3A + 青竹绿#8B9D83
   ============================================ */

/* ---------- CSS变量定义 ---------- */
:root {
    /* 禅意配色 */
    --zen-bg-paper: #FAFAF8;
    --zen-bg-warm: #F5F0E8;
    --zen-text-ink: #3A3A3A;
    --zen-text-light: #7A7A7A;
    --zen-accent-green: #8B9D83;
    --zen-accent-bamboo: #6B8E6B;
    --zen-accent-gold: #C4A77D;
    --zen-accent-sandal: #9B8B7A;
    
    /* 渐变配色 */
    --zen-gradient-start: #F5F0E8;
    --zen-gradient-mid: #E8D5B5;
    --zen-gradient-end: #D4C4A0;
    
    /* 玻璃态配色 */
    --glass-paper: rgba(250, 250, 248, 0.9);
    --glass-ink: rgba(58, 58, 58, 0.08);
    --glass-border: rgba(58, 58, 58, 0.1);
    
    /* 文字颜色 */
    --text-primary: #3A3A3A;
    --text-secondary: #7A7A7A;
    --text-muted: #A0A0A0;
}

/* ---------- 特殊动画：禅意效果 ---------- */
@keyframes ink-spread {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

@keyframes mist-flow {
    0%, 100% {
        transform: translateX(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateX(20px) scale(1.05);
        opacity: 0.5;
    }
}

@keyframes breathe-zen {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.6;
    }
}

@keyframes ripple-water {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes slow-drift {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(1deg);
    }
    75% {
        transform: translateY(5px) rotate(-1deg);
    }
}

@keyframes fade-in-zen {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- 禅意动画类 ---------- */
.animate-ink-spread {
    animation: ink-spread 3s ease-out infinite;
}

.animate-mist-flow {
    animation: mist-flow 8s ease-in-out infinite;
}

.animate-breathe-zen {
    animation: breathe-zen 4s ease-in-out infinite;
}

.animate-ripple-water {
    animation: ripple-water 2s ease-out infinite;
}

.animate-slow-drift {
    animation: slow-drift 6s ease-in-out infinite;
}

.animate-fade-in-zen {
    animation: fade-in-zen 1.2s ease-out forwards;
}

.animate-delay-zen-1 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-zen-2 { animation-delay: 0.4s; opacity: 0; }
.animate-delay-zen-3 { animation-delay: 0.6s; opacity: 0; }
.animate-delay-zen-4 { animation-delay: 0.8s; opacity: 0; }
.animate-delay-zen-5 { animation-delay: 1s; opacity: 0; }

/* ---------- 禅意Hero背景 ---------- */
.hero-zen {
    background: linear-gradient(180deg, 
        var(--zen-bg-paper) 0%, 
        var(--zen-bg-warm) 100%);
    position: relative;
    overflow: hidden;
}

/* 水墨纹理背景 */
.hero-zen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(139, 157, 131, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(196, 167, 125, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(107, 142, 107, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* 宣纸纹理 */
.hero-zen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
}

/* 装饰性水墨云雾 */
.hero-zen .ink-mist {
    position: absolute;
    width: 300px;
    height: 150px;
    background: radial-gradient(ellipse, rgba(58, 58, 58, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    animation: mist-flow 10s ease-in-out infinite;
}

.hero-zen .ink-mist:nth-child(1) { top: 20%; left: 5%; animation-delay: 0s; }
.hero-zen .ink-mist:nth-child(2) { top: 50%; right: 10%; animation-delay: 3s; }
.hero-zen .ink-mist:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 6s; }

/* ---------- 禅意玻璃态 ---------- */
.glass-zen {
    background: var(--glass-paper);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(58, 58, 58, 0.05);
}

.glass-zen-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 157, 131, 0.2);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(58, 58, 58, 0.06);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-zen-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 48px rgba(58, 58, 58, 0.1);
    border-color: rgba(139, 157, 131, 0.3);
}

/* ---------- 禅意交互效果 ---------- */
.card-zen-interactive {
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-zen-interactive:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(58, 58, 58, 0.08);
}

.card-zen-interactive::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--zen-accent-green) 50%,
        transparent 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.card-zen-interactive:hover::after {
    transform: scaleX(1);
}

/* ---------- 按钮样式 ---------- */
.btn-zen-primary {
    background: linear-gradient(135deg, var(--zen-accent-green) 0%, var(--zen-accent-bamboo) 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(139, 157, 131, 0.3);
}

.btn-zen-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-zen-primary:hover::before {
    opacity: 1;
}

.btn-zen-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 157, 131, 0.4);
}

.btn-zen-secondary {
    background: transparent;
    color: var(--zen-text-ink);
    padding: 14px 32px;
    border: 1px solid var(--zen-text-light);
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
}

.btn-zen-secondary:hover {
    border-color: var(--zen-accent-green);
    color: var(--zen-accent-green);
    background: rgba(139, 157, 131, 0.05);
}

/* ---------- 阴影系统 ---------- */
.shadow-zen-soft { box-shadow: 0 2px 8px rgba(58, 58, 58, 0.04); }
.shadow-zen-card { box-shadow: 0 4px 12px rgba(58, 58, 58, 0.06); }
.shadow-zen-hover { box-shadow: 0 8px 24px rgba(58, 58, 58, 0.08); }
.shadow-zen-float { box-shadow: 0 12px 36px rgba(58, 58, 58, 0.1); }
.shadow-zen-green { box-shadow: 0 8px 24px rgba(139, 157, 131, 0.2); }

/* ---------- 装饰元素 ---------- */
.zen-decoration-lotus {
    width: 80px;
    height: 80px;
    opacity: 0.15;
    position: relative;
}

.zen-decoration-lotus::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: var(--zen-accent-green);
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.zen-decoration-branch {
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, var(--zen-accent-green), transparent);
    opacity: 0.2;
}

.zen-decoration-circle {
    width: 120px;
    height: 120px;
    border: 1px solid var(--zen-accent-green);
    border-radius: 50%;
    opacity: 0.1;
}

/* ---------- 修行门类卡片 ---------- */
.school-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 4/3;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.school-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(58, 58, 58, 0.1) 0%,
        rgba(58, 58, 58, 0.7) 100%);
    z-index: 1;
}

.school-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(58, 58, 58, 0.15);
}

.school-card .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.school-card:hover .card-bg {
    transform: scale(1.05);
}

.school-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    color: white;
}

/* ---------- 图片悬浮效果 ---------- */
.img-zoom-zen {
    overflow: hidden;
    border-radius: 16px;
}

.img-zoom-zen img {
    transition: transform 0.8s ease;
}

.img-zoom-zen:hover img {
    transform: scale(1.05);
}

/* ---------- 滚动触发动画 ---------- */
.scroll-reveal-zen {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-zen.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Logo样式 ---------- */
.logo-zen-container {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--zen-accent-green), var(--zen-accent-bamboo));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 157, 131, 0.3);
}

/* ---------- 文字样式 ---------- */
.text-zen-title {
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    font-weight: 700;
    color: var(--zen-text-ink);
    letter-spacing: 0.1em;
}

.text-zen-body {
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    font-weight: 400;
    line-height: 1.9;
    color: var(--zen-text-ink);
    letter-spacing: 0.05em;
}

.text-zen-quote {
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    font-style: italic;
    color: var(--zen-text-light);
}

/* ---------- 背景装饰 ---------- */
.zen-paper-bg {
    background-color: var(--zen-bg-paper);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(139, 157, 131, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(196, 167, 125, 0.03) 0%, transparent 30%);
}

/* ---------- 涟漪效果（鼠标交互） ---------- */
.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(139, 157, 131, 0.2);
    transform: scale(0);
    animation: ripple-water 1s ease-out;
    pointer-events: none;
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar-zen {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-zen-track {
    background: var(--zen-bg-warm);
    border-radius: 3px;
}

::-webkit-scrollbar-zen-thumb {
    background: var(--zen-accent-green);
    border-radius: 3px;
    opacity: 0.5;
}

::-webkit-scrollbar-zen-thumb:hover {
    background: var(--zen-accent-bamboo);
}

/* ---------- 修行内容分类标签 ---------- */
.school-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(139, 157, 131, 0.1);
    border: 1px solid rgba(139, 157, 131, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--zen-accent-green);
    transition: all 0.3s ease;
}

.school-tag:hover {
    background: rgba(139, 157, 131, 0.2);
    border-color: rgba(139, 157, 131, 0.4);
}

/* ---------- 圣贤人物卡片 ---------- */
.sage-card {
    text-align: center;
    padding: 24px;
    transition: all 0.5s ease;
}

.sage-card:hover {
    transform: translateY(-6px);
}

.sage-card .avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(139, 157, 131, 0.3);
    transition: border-color 0.3s ease;
}

.sage-card:hover .avatar {
    border-color: var(--zen-accent-green);
}

.sage-card .name {
    font-family: "Noto Serif SC", serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--zen-text-ink);
    margin-bottom: 4px;
}

.sage-card .title {
    font-size: 13px;
    color: var(--zen-text-light);
}
