/*
Theme Name: PowerCore
Theme URI: https://diypowersystem.com
Author: Gemini Architect
Description: A minimalist, high-end professional tech theme. Zero jQuery, high performance.
Version: 1.2.0
License: GNU General Public License v2 or later
Text Domain: powercore
*/

:root {
    /* TechLight Palette */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F9F9F9;
    --color-panel: #FFFFFF;
    --color-accent: #111111;
    --color-text-main: #111111;
    --color-text-muted: #666666;
    --color-border: #EEEEEE;
    --color-success: #28a745;
    --color-warning: #ffc107;

    /* Typography - Clean Sans-Serif Stack */
    --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;

    /* Spacing System */
    --space-unit: 8px;
    --space-xs: calc(var(--space-unit) * 1);
    --space-sm: calc(var(--space-unit) * 2);
    --space-md: calc(var(--space-unit) * 4);
    --space-lg: calc(var(--space-unit) * 8);

    /* Shadow System */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.site {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
}

.site-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.site-title a {
    color: var(--color-text-main);
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.main-navigation a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.main-navigation a:hover {
    color: var(--color-text-muted);
}

/* Hero / Featured */
.entry-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

/* Card Grid - Masonry style feel */
.borderless-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.card {
    background: var(--color-panel);
    border: 0;
    padding: 0;
    transition: var(--transition-fast);
}

.card:hover {
    transform: translateY(-4px);
}

.post-thumbnail {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--color-bg-alt);
    margin-bottom: var(--space-sm);
    object-fit: cover;
    border-radius: 4px;
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.card h2 a {
    color: var(--color-text-main);
    text-decoration: none;
}

/* Content Area */
.entry-content {
    font-size: 1.125rem;
    color: var(--color-text-main);
}

/* AIO Snapshot Refined */
.aio-snapshot {
    background: var(--color-bg-alt);
    border-radius: 8px;
    padding: var(--space-md);
    margin: var(--space-lg) 0;
    border: 1px solid var(--color-border);
}

.snapshot-header {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    letter-spacing: 0.1em;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.snapshot-item .label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.snapshot-item .value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
}

/* Single Post Area */
.technical-article {
    max-width: 900px;
    margin-bottom: var(--space-lg);
}

.post-thumbnail-large {
    width: 100%;
    margin-bottom: var(--space-lg);
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail-large img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sidebar Box */
.sidebar-box {
    background: var(--color-bg-alt);
    padding: var(--space-md);
    border-radius: 8px;
}

.sidebar-box h3 {
    font-size: 0.875rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

/* System Status - Cleaned Up */
.system-status {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-success);
    border-radius: 50%;
}

/* Responsive Desktop Layout */
@media (min-width: 1024px) {
    .site-main {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: var(--space-lg);
    }

    .breadcrumb-nav {
        grid-column: 1 / -1; /* 让面包屑横跨两栏 */
        margin-bottom: var(--space-md);
    }
}

/* Breadcrumb Styling Fix */
.breadcrumbs-list {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
}

.breadcrumbs-list .separator {
    margin: 0 var(--space-xs);
}

.breadcrumbs-list a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.breadcrumbs-list a:hover {
    color: var(--color-text-main);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: var(--space-lg) 0;
    margin-top: var(--space-lg);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.site-info {
    display: flex;
    justify-content: space-between;
}
