/* ========================================
   怪物猎人：荒野 Wiki 专属样式
   ======================================== */

/* ===== 主题变量 ===== */
:root {
    /* 主色调 */
    --mh-primary: #ff6b35;        /* 猎人橙 */
    --mh-secondary: #2ec4b6;      /* 翔虫青 */
    --mh-accent: #ffd166;         /* 强调金 */
    
    /* 属性颜色 */
    --mh-fire: #ff4d4d;           /* 火属性 */
    --mh-water: #4da6ff;          /* 水属性 */
    --mh-thunder: #ffd700;        /* 雷属性 */
    --mh-ice: #87ceeb;            /* 冰属性 */
    --mh-dragon: #9b59b6;         /* 龙属性 */
    
    /* 怪物稀有度 */
    --mh-low-rank: #4a90d9;       /* 下位 */
    --mh-high-rank: #ffa500;      /* 上位 */
    --mh-master-rank: #ff4757;    /* 大师位 */
    
    /* 武器类型颜色 */
    --mh-melee: #e74c3c;          /* 近战 */
    --mh-ranged: #3498db;         /* 远程 */
    
    /* 背景色 */
    --mh-bg-dark: #0d1117;
    --mh-bg-darker: #080c10;
    --mh-bg-card: rgba(20, 30, 40, 0.8);
    
    /* 文字色 */
    --mh-text-primary: #ffffff;
    --mh-text-secondary: #b0b8c4;
    --mh-text-muted: #6b7280;
    
    /* 边框 */
    --mh-border: rgba(255, 107, 53, 0.3);
    --mh-border-hover: rgba(255, 107, 53, 0.6);
}

/* ===== 基础样式 ===== */
body {
    background: linear-gradient(135deg, var(--mh-bg-dark) 0%, var(--mh-bg-darker) 100%);
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    color: var(--mh-text-primary);
}

/* 确保所有文字可见 */
* {
    color: inherit;
}

p, li, td, th, span, div {
    color: var(--mh-text-secondary);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--mh-text-primary);
}

a {
    color: var(--mh-primary);
}

a:hover {
    color: var(--mh-accent);
}

/* ===== 导航栏 ===== */
.mh-navbar {
    background: rgba(13, 17, 23, 0.95);
    border-bottom: 2px solid var(--mh-primary);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

.mh-logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--mh-primary), var(--mh-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

/* ===== 英雄区域 ===== */
.mh-hero {
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
                linear-gradient(135deg, var(--mh-bg-dark) 0%, var(--mh-bg-darker) 100%);
    position: relative;
    overflow: hidden;
}

.mh-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(46, 196, 182, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.mh-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--mh-primary) 0%, var(--mh-accent) 50%, var(--mh-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255, 107, 53, 0.4);
    margin-bottom: 1rem;
}

.mh-version-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--mh-primary), #ff8c5a);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* ===== 卡片样式 ===== */
.mh-card {
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mh-card:hover {
    border-color: var(--mh-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.2);
}

.mh-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mh-border);
}

.mh-card-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.1));
    border-radius: 10px;
    border: 1px solid var(--mh-border);
}

.mh-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mh-text-primary);
}

.mh-card-desc {
    color: var(--mh-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== 导航卡片 ===== */
.mh-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.mh-nav-card {
    display: block;
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mh-nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--mh-primary), var(--mh-secondary));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mh-nav-card:hover::before {
    transform: scaleY(1);
}

.mh-nav-card:hover {
    border-color: var(--mh-primary);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.15);
}

/* ===== 武器卡片 ===== */
.mh-weapon-card {
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.mh-weapon-card:hover {
    border-color: var(--mh-primary);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
}

.mh-weapon-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.mh-weapon-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mh-text-primary);
    margin-bottom: 0.25rem;
}

.mh-weapon-type {
    font-size: 0.75rem;
    color: var(--mh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== 怪物卡片 ===== */
.mh-monster-card {
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mh-monster-card:hover {
    border-color: var(--mh-dragon);
    box-shadow: 0 0 30px rgba(155, 89, 182, 0.3);
}

.mh-monster-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(255, 107, 53, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.mh-monster-info {
    padding: 1rem;
}

.mh-monster-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mh-text-primary);
    margin-bottom: 0.5rem;
}

.mh-monster-type {
    font-size: 0.75rem;
    color: var(--mh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mh-weakness-icons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.mh-weakness-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.mh-weakness-fire { background: var(--mh-fire); color: white; }
.mh-weakness-water { background: var(--mh-water); color: white; }
.mh-weakness-thunder { background: var(--mh-thunder); color: #333; }
.mh-weakness-ice { background: var(--mh-ice); color: #333; }
.mh-weakness-dragon { background: var(--mh-dragon); color: white; }

/* ===== 属性标签 ===== */
.mh-attribute {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.mh-attr-fire { background: rgba(255, 77, 77, 0.2); color: var(--mh-fire); }
.mh-attr-water { background: rgba(77, 166, 255, 0.2); color: var(--mh-water); }
.mh-attr-thunder { background: rgba(255, 215, 0, 0.2); color: var(--mh-thunder); }
.mh-attr-ice { background: rgba(135, 206, 235, 0.2); color: var(--mh-ice); }
.mh-attr-dragon { background: rgba(155, 89, 182, 0.2); color: var(--mh-dragon); }

/* ===== 按钮样式 ===== */
.mh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.mh-btn-primary {
    background: linear-gradient(135deg, var(--mh-primary), #ff8c5a);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.mh-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.mh-btn-secondary {
    background: transparent;
    border: 2px solid var(--mh-primary);
    color: var(--mh-primary);
}

.mh-btn-secondary:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* ===== 面包屑导航 ===== */
.mh-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--mh-text-muted);
}

.mh-breadcrumb a {
    color: var(--mh-text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.mh-breadcrumb a:hover {
    color: var(--mh-primary);
}

.mh-breadcrumb span {
    color: var(--mh-text-primary);
}

/* ===== 特色功能 ===== */
.mh-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--mh-bg-card);
    border: 1px solid var(--mh-border);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.mh-feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(46, 196, 182, 0.2), rgba(46, 196, 182, 0.1));
    border-radius: 10px;
    flex-shrink: 0;
}

.mh-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mh-text-primary);
    margin-bottom: 0.5rem;
}

.mh-feature-desc {
    font-size: 0.9rem;
    color: var(--mh-text-secondary);
    line-height: 1.6;
}

/* ===== 表格样式 ===== */
.mh-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--mh-bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.mh-table th {
    background: rgba(255, 107, 53, 0.1);
    color: var(--mh-primary);
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--mh-border);
}

.mh-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--mh-border);
    color: var(--mh-text-secondary);
}

.mh-table tr:hover td {
    background: rgba(255, 107, 53, 0.05);
}

/* ===== 等级徽章 ===== */
.mh-rank-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.mh-rank-low { background: var(--mh-low-rank); color: white; }
.mh-rank-high { background: var(--mh-high-rank); color: #333; }
.mh-rank-master { background: var(--mh-master-rank); color: white; }

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .mh-hero-title {
        font-size: 2rem;
    }
    
    .mh-nav-grid {
        grid-template-columns: 1fr;
    }
    
    .mh-card {
        padding: 1rem;
    }
}

/* ===== 动画效果 ===== */
@keyframes mh-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 53, 0.6);
    }
}

.mh-glow {
    animation: mh-glow 2s ease-in-out infinite;
}

@keyframes mh-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.mh-float {
    animation: mh-float 3s ease-in-out infinite;
}
