@layer utilities {
    .text-shadow {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    .text-shadow-lg {
        text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    }
    .ink-border {
        border-image: url('../images/ink-border.png') 30 stretch;
    }
    .scroll-reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .scroll-reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
    .ink-button {
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    .ink-button::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }
    .ink-button:hover::after {
        width: 300px;
        height: 300px;
    }
    .ink-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
    .chinese-pattern {
        background-image: 
            radial-gradient(circle at 10% 20%, rgba(139, 69, 19, 0.1) 0%, transparent 20%),
            radial-gradient(circle at 90% 80%, rgba(139, 69, 19, 0.1) 0%, transparent 20%),
            radial-gradient(circle at 50% 50%, rgba(139, 69, 19, 0.05) 0%, transparent 30%);
    }
}

/* 自定义字体 */
@font-face {
    font-family: '马善钟';
    src: url('https://font.16px.cn/mashan/mashan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: '思源黑体';
    src: url('https://font.16px.cn/source-han-sans/source-han-sans-cn-regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: '思源宋体';
    src: url('https://font.16px.cn/source-han-serif/source-han-serif-cn-regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* 全局样式 */
body {
    background-color: #F5F5DC;
    background-attachment: fixed;
    color: #2D2926;
    font-family: '思源宋体', serif;
}

/* 水墨效果导航栏 */
.ink-nav {
    background-color: rgba(245, 245, 220, 0.9);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(139, 69, 19, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 水墨按钮样式 */
.ink-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #8B4513;
    color: #F5F5DC;
    border: 1px solid #8B4513;
    border-radius: 2px;
    padding: 0.75rem 1.5rem;
    font-family: '马善钟', serif;
    font-size: 1.25rem;
    cursor: pointer;
}

.ink-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.ink-btn:hover::after {
    width: 300px;
    height: 300px;
}

.ink-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 水墨边框卡片 */
.ink-card {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(139, 69, 19, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ink-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/ink-border.png');
    background-size: 200px;
    opacity: 0.05;
    z-index: -1;
}

.ink-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 水墨描边文字 */
.ink-text {
    position: relative;
    display: inline-block;
}

.ink-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(139, 69, 19, 0.4) 50%, 
        transparent 100%
    );
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: background-position 0.6s ease;
}

.ink-text:hover::after {
    background-position: -100% 0;
}

/* 水墨动画效果 */
@keyframes inkFlow {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ink-animate {
    animation: inkFlow 1s ease-out forwards;
}

/* 延迟动画 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* 游戏特色图标 */
.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(139, 69, 19, 0.1);
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: rgba(139, 69, 19, 0.2);
}

/* 角色卡片 */
.character-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.character-card:hover .character-info {
    opacity: 1;
    transform: translateY(0);
}

.character-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* 截图轮播 */
.screenshot-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
}

/* 预约表单 */
.form-input {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(139, 69, 19, 0.3);
    padding: 0.75rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.2);
}

/* 页脚 */
.footer {
    background-color: rgba(45, 41, 38, 0.9);
    color: #F5F5DC;
    padding: 3rem 0;
}

.footer-link {
    color: #D2B48C;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #F5F5DC;
    text-decoration: underline;
}

/* 水墨效果背景 */
.ink-bg {
    position: relative;
    overflow: hidden;
}

.ink-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/ink-border.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu.active {
        display: flex;
    }
}