/* ============================================
   Wuthering Waves Guides - Global Stylesheet
   Version: 2.0
   Mobile-First, SEO-Friendly
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-hover: #252540;
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b8a;
    --border-color: #2a2a45;
    --accent-gold: #d4a853;
    --accent-gold-light: #e8c87a;
    --element-spectro: #f0e68c;
    --element-aero: #7fffd4;
    --element-havoc: #da70d6;
    --element-glacio: #87ceeb;
    --element-fusion: #ff6b6b;
    --element-electro: #9370db;
    --tier-ss: #ff6b6b;
    --tier-s: #ffa500;
    --tier-a: #7fff00;
    --tier-b: #87ceeb;
    --tier-c: #a0a0b8;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.hidden { display: none !important; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile: default */
/* Tablet: 768px+ */
/* Desktop: 1024px+ */

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}
/* ============================================
   BUILD GUIDE LINK COMPONENTS
   Added: 2026-06-02
   ============================================ */

/* 角色页顶部的 Build Guide 横幅 */
    .build-guide-banner {
        margin: 1.5rem 0;
        padding: 1rem 1.25rem;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-left: 3px solid var(--accent-gold);
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .build-guide-banner .banner-label {
        font-size: 0.75rem;
        color: var(--accent-gold);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.25rem;
    }
    
    .build-guide-banner .banner-text {
        font-size: 0.9375rem;
        color: var(--text-primary);
        font-weight: 500;
    }
    
    .build-guide-banner .btn-guide {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.625rem 1.25rem;
        background: var(--accent-gold);
        color: var(--bg-primary);
        text-decoration: none;
        border-radius: var(--radius-sm);
        font-weight: 600;
        font-size: 0.875rem;
        transition: all 0.2s ease;
        white-space: nowrap;
    }
    
    .build-guide-banner .btn-guide:hover {
        background: var(--accent-gold-light);
        color: var(--bg-primary);
        transform: translateY(-1px);
    }
    
    .build-guide-banner .btn-guide svg {
        width: 1rem;
        height: 1rem;
    }
    
    /* Build Guide 页返回链接 */
    .back-link {
        margin-bottom: 1.25rem;
    }
    
    .back-link a {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        color: var(--text-muted);
        font-size: 0.875rem;
        transition: color 0.2s;
    }
    
    .back-link a:hover {
        color: var(--accent-gold);
    }
    
    .back-link svg {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    /* 响应式：移动端横幅堆叠 */
    @media (max-width: 480px) {
        .build-guide-banner {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .build-guide-banner .btn-guide {
            width: 100%;
            justify-content: center;
        }
    }