/* Mewgenics Wiki - 游戏风格样式表 */

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

body {
    font-family: 'Courier New', 'Monaco', monospace;
    line-height: 1.6;
    color: #2c2c2c;
    background: linear-gradient(45deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100vh;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* 纸质纹理背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, #f0f0f0 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, #e5e5e5 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

/* Header */
.header {
    background: rgba(240, 240, 240, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #d0d0d0;
    min-height: 80px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 0px #fff;
    font-family: 'Courier New', monospace;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid #333;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    color: #333;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: nowrap;
}

/* 全局链接样式 - 无下划线，契合主题颜色 */
a {
    text-decoration: none !important;
    color: #444;
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: #222;
    border-bottom: 1px solid #666;
}

/* 导航菜单链接 */
.nav-menu a {
    text-decoration: none !important;
    color: #444;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid transparent;
    border-bottom: 1px solid transparent !important;
    white-space: nowrap;
    font-size: 1rem;
}

.nav-menu a:hover {
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #ccc !important;
}

/* 内容区域的链接 */
.content-card a, .game-info a, .hero a {
    color: #333;
    font-weight: 700;
}

.content-card a:hover, .game-info a:hover, .hero a:hover {
    color: #000;
    border-bottom: 2px solid #333;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Card-like design inspired by game's inventory */
.card-base {
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 
        2px 2px 0px #ddd,
        4px 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* 减少动画时间，让页面更快显示，并移除可能导致元素掉落的动画 */
* {
    /* 移除所有动画，避免元素掉落 */
    animation: none !important;
    transition: none !important;
}

/* 只保留必要的hover效果，但移除transform */
.content-card:hover, .card-base:hover {
    box-shadow: 
        3px 3px 0px #ccc,
        6px 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    box-shadow: 3px 3px 0px #bbb;
}

.btn:active {
    box-shadow: 1px 1px 0px #bbb;
}

/* Hero Section - inspired by game's house view */
.hero {
    background: #fff;
    border: 3px solid #999;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 
        4px 4px 0px #ccc,
        8px 8px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 400px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.02) 10px,
        rgba(0, 0, 0, 0.02) 20px
    );
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: #333;
    font-family: 'Courier New', monospace;
    text-shadow: 2px 2px 0px #ddd;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    max-width: 100%;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-family: 'Courier New', monospace;
    position: relative;
    z-index: 1;
}

/* Video Container - 官方宣传视频样式 */
.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    background: #f5f5f5;
    border: 3px solid #999;
    border-radius: 12px;
    box-shadow: 4px 4px 0px #bbb, inset 2px 2px 0px rgba(255,255,255,0.3);
    overflow: hidden;
    z-index: 1;
    /* 16:9 响应式视频比例 */
    aspect-ratio: 16 / 9;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

.btn {
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #999;
    box-shadow: 2px 2px 0px #bbb;
}

.btn-primary {
    background: #555 !important;
    color: white !important;
    border: 2px solid #777 !important;
}

.btn-primary:hover {
    background: #666 !important;
    border: 2px solid #888 !important;
}

.btn-secondary {
    background: #f8f8f8 !important;
    color: #333 !important;
    border: 2px solid #ccc !important;
}

.btn-secondary:hover {
    background: #e8e8e8 !important;
    border: 2px solid #999 !important;
}

/* Content Grid - inspired by game's inventory grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.content-card {
    background: #fff;
    border: 2px solid #aaa;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 
        2px 2px 0px #ccc,
        4px 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #ddd;
    border-radius: 50%;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.content-card h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: 'Courier New', monospace;
    text-shadow: 1px 1px 0px #eee;
}

.content-card p {
    color: #555;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.content-card ul {
    color: #555;
    margin-left: 1.5rem;
    font-family: 'Courier New', monospace;
}

.content-card li {
    margin-bottom: 0.5rem;
}

/* Game Info Section - inspired by game's room layout */
.game-info {
    background: #fafafa;
    border: 2px solid #999;
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 
        3px 3px 0px #ccc,
        6px 6px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.game-info::after {
    content: '🐱';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    opacity: 0.7;
}

.game-info h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
    font-family: 'Courier New', monospace;
    text-shadow: 1px 1px 0px #ddd;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-item {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border: 2px solid #bbb;
    border-radius: 8px;
    box-shadow: 2px 2px 0px #ddd;
}

.info-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

/* Footer */
.footer {
    background: #f0f0f0;
    border-top: 2px solid #ccc;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a, .footer-links span {
    color: #555;
    text-decoration: none !important;
    font-family: 'Courier New', monospace;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    border-bottom: 1px solid #ddd !important;
}

.footer-links a:hover {
    background: #f8f8f8;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #ccc !important;
    color: #333;
}

/* Breadcrumb */
.breadcrumb {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    border-radius: 6px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
    font-family: 'Courier New', monospace;
}

.breadcrumb a {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 600;
    border-bottom: 1px solid transparent !important;
}

.breadcrumb a:hover {
    color: #000 !important;
    border-bottom: 1px solid #333 !important;
}

.breadcrumb span {
    color: #666;
    margin: 0 0.5rem;
}

.wiki-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: #f8f8f8;
    color: #555;
    padding: 0.25rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    display: inline-block;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* FAQ特殊样式 */
details {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-shadow: 2px 2px 0px #eee;
}

summary {
    font-weight: bold;
    color: #333;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    padding: 0.5rem;
    border-radius: 4px;
}

summary:hover {
    background: #f8f8f8;
}

details p {
    margin-top: 0.5rem;
    color: #555;
    font-family: 'Courier New', monospace;
    padding: 0.5rem;
}

/* 页面加载完成后的显示动画 */
html.loaded {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Responsive */
/* 中等屏幕优化 */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 0.8rem;
        font-size: 0.95rem;
    }
    
    .logo {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 1.5rem;
        margin: 0 0.5rem 2rem 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .video-container {
        margin: 1.5rem 0.5rem;
        max-width: calc(100% - 1rem);
        border-width: 2px;
        box-shadow: 2px 2px 0px #bbb, inset 1px 1px 0px rgba(255,255,255,0.3);
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(240, 240, 240, 0.98);
        padding: 1rem 2rem;
        border-top: 2px solid #d0d0d0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-menu a {
        padding: 0.8rem 1rem;
        text-align: center;
        border: 1px solid #ddd;
        background: #fff;
        margin-bottom: 0.5rem;
        border-radius: 6px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0 0.5rem;
    }

    .content-card {
        margin: 0;
        padding: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .container {
        padding: 0 0.5rem;
    }

    .nav-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem;
        margin: 0 0.25rem 1.5rem 0.25rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .video-container {
        margin: 1rem 0.25rem;
        max-width: calc(100% - 0.5rem);
        border-width: 2px;
        border-radius: 8px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
