/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局链接样式 - 去掉下划线 */
a {
    text-decoration: none;
}

:root {
    /* 颜色变量 */
    --color-primary: #0071e3;
    --color-secondary: #7f8c8d;
    --color-success: #27ae60;
    --color-danger: #e74c3c;
    --color-warning: #f39c12;
    --color-dark: #2c3e50;
    --color-light: #f8f9fa;
    --color-gray: #95a5a6;
    --color-info: #3498db;
    
    /* 间距变量 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* 字体变量 */
    --font-size-sm: 0.8rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.5rem;
    
    /* 其他常用变量 */
    --border-radius: 8px;
    --border-radius-sm: 6px;
    --border-radius-lg: 12px;
    --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    --box-shadow-lg: 0 5px 30px rgba(0, 0, 0, 0.2);
}

body {
    font-family: -apple-system, Microsoft YaHei UI,BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: var(--color-light);
    font-size: var(--font-size-base);
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 移动端适配 - 基础样式在小屏幕上的优化 */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .page-container {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
}

/* 移动端适配 - 基础样式在极小屏幕上的优化 */
@media (max-width: 480px) {
    body {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    :root {
        --font-size-sm: 0.75rem;
        --font-size-base: 0.9rem;
        --font-size-lg: 1rem;
        --font-size-xl: 1.3rem;
        
        --spacing-xs: 0.2rem;
        --spacing-sm: 0.4rem;
        --spacing-md: 0.8rem;
        --spacing-lg: 1.2rem;
        --spacing-xl: 1.6rem;
    }
}