/*
Theme Name: Flavor Starter
Theme URI: https://example.com/flavor-starter
Author: Your Name
Author URI: https://example.com
Description: 一个现代化的 WordPress 个人博客主题，参考 Begin 主题风格设计。支持博客和杂志布局、文章统计、用户系统、响应式设计和 SEO 优化。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor-starter
Tags: blog, one-column, two-columns, right-sidebar, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready

Flavor Starter 是一个功能丰富的现代化 WordPress 主题，专为个人博客设计。
*/

/* ==========================================================================
   CSS 变量和基础设置
   ========================================================================== */

:root {
    /* 主题色彩 */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-secondary: #64748b;
    --color-accent: #f59e0b;
    
    /* 文本颜色 */
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-text-muted: #94a3b8;
    
    /* 背景颜色 */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #1e293b;
    
    /* 边框颜色 */
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    
    /* 字体 */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
    --font-mono: "SF Mono", Monaco, "Cascadia Code", monospace;
    
    /* 字体大小 */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* 间距 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* 圆角 */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    
    /* 过渡 */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    
    /* 布局 */
    --container-max: 1200px;
    --sidebar-width: 300px;
}

/* ==========================================================================
   重置和基础样式
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--spacing-md);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin: 0 0 var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin: 0 0 var(--spacing-md);
    padding-left: var(--spacing-xl);
}

/* ==========================================================================
   布局容器
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    padding: var(--spacing-xl) 0;
}

/* ==========================================================================
   主布局 - CSS Grid
   ========================================================================== */

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr var(--sidebar-width);
    }
}

.main-content {
    min-width: 0;
}

.sidebar {
    display: none;
}

@media (min-width: 768px) {
    .sidebar {
        display: block;
    }
}
