/* * Theme: Modern Bakery / Artisan / Warm
 * Designed for: 烘焙有限公司
 */

:root {
    /* --- 烘焙色盘 --- */
    --c-primary: #d37a42;       /* 主色：焦糖烤面包色 */
    --c-primary-dark: #a85826;  /* 悬停：深焦糖色 */
    --c-secondary: #8d6e63;     /* 辅助：肉桂粉/浅咖色 */
    --c-accent: #f4a261;        /* 强调：金黄麦穗色 */
    
    /* --- 背景与文字 --- */
    --bg-body: #fdfbf7;         /* 极淡的奶油米色背景，比纯白更温馨 */
    --bg-white: #ffffff;        /* 纯白 */
    --bg-light-warm: #f5efe6;   /* 暖灰/燕麦色块 */
    
    --text-main: #4a3b32;       /* 正文：深浓缩咖啡色 (代替纯黑) */
    --text-light: #79685f;      /* 次要：牛奶巧克力色 */
    --text-lighter: #bcaaa4;    /* 淡色 */
    --border-color: #efebe9;    /* 边框：极淡的暖灰 */

    /* --- 布局风格 --- */
    --radius-sm: 8px;
    --radius-md: 16px;          /* 更大的圆角，显得柔和 */
    --radius-lg: 24px;
    --header-height: 80px;      /* 稍微加高，增加呼吸感 */
    --max-width: 1200px;
    
    /* --- 阴影效果 (更柔和飘逸) --- */
    --shadow-card: 0 10px 30px -10px rgba(74, 59, 50, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(74, 59, 50, 0.15);
}

/* === 全局重置与排版 === */
* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    background-color: var(--bg-body);
    color: var(--text-light);
    /* 标题使用衬线体(Georgia/Songti)体现工匠感，正文使用无衬线体保证阅读 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Georgia", "Times New Roman", "Songti SC", serif; /* 烘焙风的关键 */
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul, li { list-style: none; }
img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* === 容器 === */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === 头部导航 (像高级餐厅的菜单栏) === */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-family: "Georgia", serif;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: -0.5px;
}

.desktop-nav { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.desktop-nav a {
    font-size: 0.95rem; 
    font-weight: 600;
    color: var(--text-main);
    padding: 8px 0;
    position: relative;
}

/* 导航悬停效果：底部出现精致线条 */
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-primary);
    transition: width 0.3s;
}

.desktop-nav a:hover, 
.desktop-nav a.active { 
    color: var(--c-primary); 
}
.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

/* 移动端菜单开关 */
.mobile-menu-trigger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }
.mobile-menu-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-body); z-index: 9999;
    flex-direction: column; padding: 40px;
}
.mobile-menu-header { display: flex; justify-content: space-between; width: 100%; margin-bottom: 40px; }
.logo-mobile { font-family: "Georgia", serif; font-weight: bold; font-size: 1.6rem; color: var(--c-primary); }
.close-btn { font-size: 2.2rem; cursor: pointer; color: var(--text-main); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 25px; text-align: center; }
.mobile-nav-links a { font-size: 1.3rem; color: var(--text-main); font-weight: 600; font-family: "Georgia", serif; }

/* === Hero Section (温馨大图) === */
.hero-section {
    /* 使用深暖色渐变，模拟烤箱里的暖光或咖啡色调 */
    background: linear-gradient(120deg, #4a3b32 0%, #8d6e63 100%);
    position: relative;
    color: #fff;
    padding: 140px 0 100px; /* 上方留更多空间 */
    text-align: center;
    margin-bottom: 80px;
    border-radius: 0 0 50% 50% / 20px; /* 底部微妙的弧线，增加柔和感 */
    overflow: hidden;
}

/* 增加一点纹理感（模拟纸质或面粉） */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.hero-content { position: relative; z-index: 2; }
.hero-content h1 { 
    font-size: 3.5rem; 
    margin-bottom: 25px; 
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero-subtitle { 
    font-size: 1.25rem; 
    margin-bottom: 50px; 
    opacity: 0.9; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto;
    font-weight: 300;
    color: #efebe9;
}

.hero-buttons { display: flex; justify-content: center; gap: 20px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 36px; font-size: 1rem;
    border-radius: 50px; /* 胶囊形按钮，更现代 */
    font-weight: 600; cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.primary-btn { 
    background: #fff; 
    color: var(--c-primary-dark); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.primary-btn:hover { 
    background: #fff; 
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.secondary-btn { 
    background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.4); 
    color: #fff; 
}
.secondary-btn:hover { 
    background: rgba(255,255,255,0.2); 
    border-color: #fff; 
}

/* === Info Section (核心价值) === */
.info-section { margin-bottom: 80px; }
.center-header { text-align: center; margin-bottom: 60px; position: relative; }
.center-header h2 { 
    font-size: 2.2rem; 
    color: var(--text-main); 
    margin-bottom: 15px; 
}
/* 装饰性下划线 */
.center-header h2::after {
    content: "✦"; /* 甚至可以用小麦符号或星号 */
    display: block;
    font-size: 1.2rem;
    color: var(--c-primary);
    margin-top: 10px;
    opacity: 0.6;
}
.center-header p { 
    color: var(--c-secondary); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 0.85rem; 
    font-weight: 600;
}

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.info-card {
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: all 0.4s;
    border: 1px solid transparent;
    text-align: center;
}
.info-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover); 
    border-color: var(--c-primary);
}
.info-card .icon { 
    font-size: 3rem; 
    margin-bottom: 25px; 
    display: inline-block;
    padding: 15px;
    background: var(--bg-light-warm);
    border-radius: 50%;
    color: var(--c-primary);
}
.info-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.info-card p { color: var(--text-light); margin-bottom: 25px; font-size: 1rem; }
.read-more { 
    color: var(--c-primary); 
    font-weight: 700; 
    font-size: 0.9rem; 
    text-decoration: underline;
    text-decoration-color: rgba(211, 122, 66, 0.3);
    text-underline-offset: 4px;
}
.read-more:hover { text-decoration-color: var(--c-primary); }

/* === Main Content Area === */
.main-content-area { min-height: 400px; margin-bottom: 100px; }
.section-header { 
    margin-bottom: 40px; 
    border-left: 0; /* 移除原来的左边框 */
    text-align: center; /* 居中标题更像菜单 */
}
.section-header h2 { font-size: 2rem; color: var(--text-main); display: inline-block; position: relative; }
.section-header h2::before {
    content: ""; display: block; width: 40px; height: 3px; background: var(--c-primary); margin: 0 auto 10px;
}
.cat-desc { margin-top: 10px; color: var(--text-light); font-size: 1rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* === Post Grid (类似展示柜) === */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; }
.grid-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: flex; flex-direction: column;
}
.grid-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

/* 封面图处理 */
.card-cover-wrapper {
    display: block;
    width: 100%;
    height: 240px; /* 加高图片展示区域 */
    background: var(--bg-light-warm);
    overflow: hidden;
    position: relative;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.6s;
}
.grid-card:hover .card-img { transform: scale(1.08); }

/* 无图时的占位 - 改为温馨风格 */
.card-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f5efe6 0%, #e0d4c6 100%);
    color: #a1887f; font-weight: 700; font-size: 1.4rem; font-family: "Georgia", serif;
}

.card-body { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.card-meta { 
    display: flex; justify-content: space-between; font-size: 0.8rem; 
    color: #999; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px;
}
.cat-tag { color: var(--c-primary); font-weight: 700; }
.grid-card h3 { 
    font-size: 1.35rem; margin-bottom: 12px; line-height: 1.4; color: var(--text-main);
}
.grid-card h3 a:hover { color: var(--c-primary); }
.excerpt { font-size: 0.95rem; color: var(--text-light); flex-grow: 1; margin-bottom: 20px; line-height: 1.6; }

.card-tags { margin-top: auto; padding-top: 15px; border-top: 1px dashed var(--border-color); }
.tag-badge { 
    font-size: 0.75rem; color: var(--c-secondary); margin-right: 8px; 
    background: var(--bg-light-warm); padding: 4px 10px; border-radius: 20px;
}
.tag-badge:hover { background: var(--c-primary); color: white; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 15px; margin-top: 60px; }
.page-btn {
    width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-color); border-radius: 50%; color: var(--text-main);
    background: var(--bg-white); transition: 0.3s;
}
.page-btn:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); transform: scale(1.1); }
.page-current { display: flex; align-items: center; padding: 0 15px; font-weight: bold; color: var(--c-primary); font-family: "Georgia", serif; font-size: 1.1rem; }

/* === 文章详情页 (像阅读一本精美的杂志) === */
.single-post { 
    background: var(--bg-white); 
    padding: 60px; 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-card); 
}
.single-header { border-bottom: 1px solid var(--border-color); padding-bottom: 30px; margin-bottom: 40px; text-align: center; }
.breadcrumb { font-size: 0.85rem; color: #aaa; margin-bottom: 20px; text-transform: uppercase; }
.single-header h1 { font-size: 2.5rem; color: var(--text-main); margin-bottom: 20px; line-height: 1.25; }
.meta-line { 
    font-size: 0.9rem; color: #888; display: flex; justify-content: center; gap: 30px; 
    font-family: -apple-system, sans-serif;
}

/* Markdown 内容样式 */
.markdown-body { color: var(--text-main); font-size: 1.1rem; line-height: 1.9; max-width: 800px; margin: 0 auto; }

.markdown-body h2 { 
    font-size: 1.8rem; 
    color: var(--c-primary-dark); 
    margin: 2em 0 1em; 
    border-bottom: 2px solid var(--bg-light-warm); 
    padding-bottom: 15px; 
    text-align: center;
}

.markdown-body p { margin-bottom: 1.8em; }

/* HR 样式 */
.markdown-body hr {
    margin: 3em auto;
    width: 50%;
    height: 1px;
    border: none;
    border-top: 2px dashed var(--border-color);
}

.markdown-body img { 
    max-width: 100%; 
    border-radius: var(--radius-md); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    margin: 30px 0; 
}

.markdown-body a { 
    color: var(--c-primary); 
    border-bottom: 1px solid rgba(211, 122, 66, 0.4); 
    font-weight: 500;
}
.markdown-body a:hover { border-bottom-color: var(--c-primary); background: rgba(211, 122, 66, 0.05); }

.markdown-body blockquote { 
    border-left: 4px solid var(--c-primary); 
    background: var(--bg-light-warm); 
    padding: 25px 35px; 
    color: var(--text-light); 
    margin: 30px 0; 
    font-style: italic;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-tags-container { 
    margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--border-color); 
    text-align: center;
}
.tags-label { font-weight: bold; margin-right: 10px; color: var(--text-main); font-family: "Georgia", serif; }
.tag-pill { 
    display: inline-block; background: var(--bg-light-warm); 
    padding: 6px 16px; font-size: 0.9rem; color: var(--text-light); 
    border-radius: 50px; margin-right: 10px; transition: 0.2s;
}
.tag-pill:hover { background: var(--c-primary); color: #fff; }

/* === 重要的 CTA 修改 (满足要求：非深色背景) === */
.post-cta {
    margin-top: 60px; 
    background: #fff8e1; /* 浅奶油黄/香草色 */
    padding: 40px; 
    text-align: center; 
    border-radius: var(--radius-md);
    border: 2px dashed #ffe0b2; /* 像是烘焙包装纸的虚线 */
    color: var(--text-main); /* 确保文字清晰 */
}
.post-cta p { 
    font-family: "Georgia", serif;
    font-weight: 700; 
    font-size: 1.3rem; 
    color: var(--c-primary-dark); 
    margin-bottom: 20px; 
}
.small-btn { 
    font-size: 1rem; padding: 10px 30px; 
    background: var(--c-primary); color: white; 
    border-radius: 50px; box-shadow: 0 4px 10px rgba(211, 122, 66, 0.3);
}
.small-btn:hover { background: var(--c-primary-dark); }

.post-navigation { display: flex; justify-content: space-between; margin-top: 50px; padding-top: 30px; border-top: 1px solid #eee; }
.nav-prev, .nav-next { display: flex; flex-direction: column; max-width: 45%; padding: 15px; border-radius: var(--radius-sm); transition: 0.2s; }
.nav-prev:hover, .nav-next:hover { background: var(--bg-light-warm); }
.nav-prev small, .nav-next small { color: #aaa; margin-bottom: 8px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-prev span, .nav-next span { color: var(--text-main); font-weight: 600; font-family: "Georgia", serif; }

/* === FAQ & Footer === */
.faq-section { background: var(--bg-white); padding: 80px 0; border-top: 1px solid var(--border-color); }
.faq-item { border-bottom: 1px solid #eee; }
.faq-question { padding: 25px 0; cursor: pointer; display: flex; justify-content: space-between; font-weight: 600; color: var(--text-main); font-size: 1.1rem; }
.faq-question:hover { color: var(--c-primary); }
.faq-answer p { padding-bottom: 25px; color: var(--text-light); line-height: 1.8; }
.arrow { color: var(--c-accent); font-weight: bold; }

/* 底部 - 深咖啡色，沉稳 */
.site-footer { 
    background: #3e2723; /* 深咖啡/黑巧色 */
    color: #d7ccc8; 
    padding: 80px 0 40px; 
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 60px; }
.footer-col h4 { color: #fff; margin-bottom: 25px; font-size: 1.25rem; font-family: "Georgia", serif; }
.footer-col p { margin-bottom: 12px; font-size: 0.95rem; opacity: 0.8; }
.footer-col a { display: block; margin-bottom: 12px; font-size: 0.95rem; transition: color 0.2s; color: #d7ccc8; }
.footer-col a:hover { color: var(--c-accent); padding-left: 5px; }
.footer-bottom { 
    text-align: center; 
    padding-top: 30px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    font-size: 0.85rem; 
    opacity: 0.6; 
}

/* === 响应式 === */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-trigger { display: block; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-section { padding: 80px 0 60px; border-radius: 0 0 30px 30px; }
    .single-post { padding: 30px 20px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col a:hover { padding-left: 0; }
    .info-grid { gap: 20px; }
    .info-card { padding: 30px 20px; }
    .grid-card:hover { transform: none; }
}