/*
Theme Name: Chipzel
Theme URI: https://ftaoo.cn/
Description: just 4 fun
Version: 1.0
Author: FTaoo
Author URI: https://ftaoo.cn/
*/

/* 定义 */
:root {
    --primary: #E9D8A6;
    --primary-light: #F0E6C4;
    --primary-dark: #D9C895;
    --secondary: #A8B7C7;
    --text: #5A5A5A;
    --text-light: #777777;
    --light: #F8F6F1;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.05);
    --radius: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text);
    background-color: var(--light);
    line-height: 1.7;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* 容器布局 */
.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    padding: 40px 0 30px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-brand {
    display: flex;
    align-items: center;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 3px 10px var(--shadow);
    margin-right: 20px;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 5px;
    color: var(--text);
}

.site-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 导航菜单 */
.main-nav {
    background-color: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 5px var(--shadow);
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    padding: 18px 20px;
}

.nav-menu li a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    color: var(--text-light);
}

.nav-menu li a:hover {
    color: var(--text);
}

.nav-menu li.active a {
    color: var(--text);
}

.nav-menu li.active a:after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-dark);
}

/* 主内容 */
.main-content {
    padding: 40px 0;
}

/* 文章卡片 */
.post-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow);
}

.post-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.post-meta span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.post-excerpt {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 0.98rem;
}

.read-more {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text);
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px;
}

.page-numbers {
    display: flex;
    list-style: none;
}

.page-numbers li {
    margin: 0 5px;
}

.page-numbers a,
.page-numbers span {
    display: block;
    padding: 8px 15px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 5px var(--shadow);
}

.page-numbers a:hover {
    background: var(--primary);
}

.page-numbers .current {
    background: var(--primary);
    color: var(--text);
    font-weight: 500;
}

/* 页脚 */
.footer {
    background-color: var(--primary);
    padding: 30px 0;
    text-align: center;
    color: var(--text);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer a {
    color: var(--text);
    font-weight: 500;
}

.footer a:hover {
    color: var(--white);
}

/* 响应式 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-brand {
        margin-bottom: 20px;
    }

    .nav-menu {
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 10px;
    }

    .nav-menu li {
        padding: 15px 10px;
    }

    .post-card {
        padding: 20px;
    }
}