/**
 * 梦幻AI动漫创作系统 - 基础样式
 * Base styles: reset, typography, colors
 */

/* CSS Variables - Design Tokens */
:root {
    /* Colors */
    --color-bg-primary: #0a0c12;
    --color-bg-secondary: #0f172a;
    --color-bg-tertiary: #1e293b;
    --color-bg-card: #111827;
    
    --color-border-default: #1e293b;
    --color-border-muted: #334155;
    --color-border-accent: #3b82f6;
    
    --color-text-primary: #f1f5f9;
    --color-text-secondary: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-text-hint: #64748b;
    
    --color-accent-blue: #3b82f6;
    --color-accent-blue-light: #60a5fa;
    --color-accent-purple: #a855f7;
    --color-accent-green: #10b981;
    --color-accent-amber: #f59e0b;
    --color-accent-red: #ef4444;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 10px 25px rgba(59, 130, 246, 0.3);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Font */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--color-bg-primary);
    font-family: var(--font-sans);
    color: var(--color-text-secondary);
    line-height: 1.5;
    padding: 1.5rem 1rem;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-primary);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--color-text-secondary);
}

a {
    color: var(--color-accent-blue-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-blue);
}

/* Form Elements */
input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Scrollbar - Custom */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--color-border-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-muted) transparent;
}

/* Selection */
::selection {
    background: var(--color-accent-blue);
    color: white;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 1450px) {
    .container {
        max-width: 95%;
        padding: 0 20px;
    }
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
