/*
Theme Name: 索兮二手机
Theme URI: https://example.com
Description: 索兮二手机 - 简洁的二手手机展示主题
Version: 1.0.0
Author: 索兮
Author URI: https://example.com
License: GPL v2 or later
Text Domain: suoxi-used-phones
*/

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 15px;
    color: #333;
    background: #f5f5f5;
    line-height: 1.7;
}

a {
    color: #e44d26;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.site-header {
    background: #1a1a2e;
    color: #fff;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-branding a {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
}

.site-branding .tagline {
    color: #aaa;
    font-size: 12px;
    margin-top: 2px;
}

/* Nav */
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.site-nav a {
    color: #ddd;
    font-size: 14px;
    padding: 4px 0;
    transition: color .2s;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
    color: #e44d26;
    text-decoration: none;
}

/* Main content */
.site-main {
    max-width: 1200px;
    margin: 28px auto;
    padding: 0 16px;
}

/* Posts / Pages */
.entry {
    background: #fff;
    border-radius: 6px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.entry-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.entry-title a {
    color: #1a1a2e;
}

.entry-meta {
    color: #888;
    font-size: 13px;
    margin-bottom: 16px;
}

.entry-content {
    line-height: 1.9;
}

/* Pagination */
.navigation {
    margin: 24px 0;
    text-align: center;
}

.navigation .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 2px;
    color: #333;
    font-size: 14px;
}

.navigation .page-numbers.current,
.navigation .page-numbers:hover {
    background: #e44d26;
    border-color: #e44d26;
    color: #fff;
    text-decoration: none;
}

/* Sidebar */
.content-area {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.primary {
    flex: 1;
    min-width: 0;
}

.widget-area {
    width: 280px;
    flex-shrink: 0;
}

.widget {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e44d26;
}

/* Footer */
.site-footer {
    background: #1a1a2e;
    color: #aaa;
    text-align: center;
    padding: 24px 16px;
    font-size: 13px;
    margin-top: 40px;
}

.site-footer a {
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .content-area {
        flex-direction: column;
    }
    .widget-area {
        width: 100%;
    }
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 12px 16px;
        gap: 10px;
    }
    .site-nav ul {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }
}
