/* ============================================================
   永恒传说工具箱 · 全站通用样式 (common.css)
   该文件集中放置所有页面共用的变量、动画与工具类，
   实际页面只保留各自独有的样式，实现“内容/风格不变，代码更精简”。
   ============================================================ */

:root {
    --mc-green: #5d9c41;
    --mc-dark-green: #3d6e29;
    --mc-brown: #8b5a2b;
    --mc-dirt: #866043;
    --mc-stone: #7f7f7f;
    --mc-gold: #ffaa00;
    --mc-diamond: #55ffff;
    --mc-red: #ff5555;
    --mc-blue: #5555ff;
    --mc-dark: #1a1a2e;
    --mc-darkest: #0f0f1a;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #ffffff;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(85, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 170, 0, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(85, 85, 255, 0.3), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 85, 85, 0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(93, 156, 65, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@keyframes sparkle {
    0%   { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-200px) rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

.fade-in         { animation: fadeIn 0.7s ease-out; }
.fade-in-delay-1 { animation: fadeIn 0.7s ease-out 0.1s both; }
.fade-in-delay-2 { animation: fadeIn 0.7s ease-out 0.2s both; }
.fade-in-delay-3 { animation: fadeIn 0.7s ease-out 0.3s both; }
.fade-in-delay-4 { animation: fadeIn 0.7s ease-out 0.4s both; }
.fade-in-delay-5 { animation: fadeIn 0.7s ease-out 0.5s both; }
.fade-in-delay-6 { animation: fadeIn 0.7s ease-out 0.6s both; }
.fade-in-delay-7 { animation: fadeIn 0.7s ease-out 0.7s both; }

/* 通用返回按钮 (子页面如有需要可继续覆盖细节) */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(85, 85, 255, 0.3), rgba(85, 255, 255, 0.2));
    border: 2px solid rgba(85, 255, 255, 0.4);
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.back-btn:hover {
    background: linear-gradient(135deg, rgba(85, 85, 255, 0.4), rgba(85, 255, 255, 0.3));
    border-color: var(--mc-diamond);
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(85, 255, 255, 0.3);
}

/* 通用页脚 */
.page-foot {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(170, 200, 255, 0.6);
    margin-top: 40px;
    padding: 15px 0;
    border-top: 1px solid rgba(85, 255, 255, 0.2);
}
