/* ============================================
   电商运营数据分析知识网页 - 基础样式
   包含：CSS变量、基础重置、打印样式
   ============================================ */

/* CSS 变量定义 */
:root {
    /* 主色调 - 深蓝色系 */
    --primary-color: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0f2744;
    
    /* 强调色 - 橙色系 */
    --accent-color: #ed8936;
    --accent-light: #fbd38d;
    --accent-dark: #c05621;
    
    /* 中性色 - 暖灰调 */
    --bg-color: #f8f8f6;
    --bg-card: #ffffff;
    --bg-dark: #1a202c;
    
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;
    
    /* 边框和阴影 */
    --border-color: #e5e5e0;
    --border-light: #f0eeeb;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
    
    /* 间距 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* 字体 */
    --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ============================================
   基础重置
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(ellipse at 0% 50%, rgba(195, 225, 195, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 0%, rgba(185, 215, 240, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(185, 215, 240, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 100%, rgba(240, 210, 200, 0.2) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input {
    font-family: inherit;
}

/* ============================================
   打印样式
   ============================================ */
@media print {
    .navbar,
    .formula-nav,
    .formula-calculator,
    .related-section,
    .footer {
        display: none;
    }
    
    .formula-body {
        grid-template-columns: 1fr;
    }
    
    .formula-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

