/* ============================================================
   刘大厨 ty-liudachu 主题样式
   - 与静态首页 index.html 一致
   - 含归档页 / 首页导语 / 分类导航条 / 文章详情 / 分页
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary: #c47a3d;
    --primary-dark: #a8622c;
    --primary-light: #fdf6ef;
    --accent: #e67e22;
    --dark: #2e241f;
    --gray: #6c5743;
    --bg: #fefaf5;
    --card-bg: #ffffff;
    --border: #f0e2d4;
    --shadow: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-hover: 0 16px 32px rgba(0,0,0,0.1);
    --radius: 24px;
    --radius-lg: 40px;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 导航栏 ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(254, 250, 245, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.logo-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    overflow: hidden;
}
.logo-text h1 { font-size: 1.4rem; font-weight: 700; color: var(--dark); line-height: 1.2; }
.logo-text p { font-size: 0.7rem; color: var(--primary); letter-spacing: 1px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links .active { color: var(--primary); font-weight: 600; }
.mobile-auth { display: none; }
.btn {
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(196, 122, 61, 0.3);
}
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.mobile-menu-btn { display: none; }

/* ===== 搜索栏 ===== */
.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 60px;
    padding: 6px 6px 6px 24px;
    border: 1px solid var(--border);
    max-width: 620px;
    margin: 32px auto 8px;
    box-shadow: var(--shadow);
}
.search-bar i { color: var(--gray); margin-right: 12px; }
.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    background: transparent;
    font-family: inherit;
    color: var(--dark);
}
.search-bar input::placeholder { color: #b8a89a; }

/* ===== Hero区域（主站首页用，/cook/ 首页不用） ===== */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
    padding: 40px 0 64px;
}
.hero-content { flex: 1; min-width: 300px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fdebd0;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.8rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-content h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}
.hero-content h2 span { color: var(--primary); }
.hero-desc {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.6;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 40px; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.stat-label { font-size: 0.8rem; color: var(--gray); }
.hero-visual {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.visual-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
}
.visual-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.visual-card i { font-size: 2.2rem; color: var(--primary); margin-bottom: 12px; }
.visual-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.visual-card p { font-size: 0.75rem; color: var(--gray); }

/* ===== 通用板块标题 ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); }
.section-title span { color: var(--primary); }
.section-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.section-more:hover { text-decoration: underline; }

/* ===== 今日推荐（主站首页用，/cook/ 首页不用） ===== */
.daily-recommend {
    background: linear-gradient(135deg, #fff8f0, #fdf2e6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 56px;
}
.daily-badge {
    background: var(--primary);
    color: white;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}
.daily-recommend h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.daily-recommend p { color: var(--gray); max-width: 500px; }

/* ===== 招牌菜卡片 / 文章列表 ===== */
.dish-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}
.dish-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.dish-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.dish-img {
    height: 180px;
    background: linear-gradient(135deg, #f5ede4, #ede0d3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
    position: relative;
    background-size: cover;
    background-position: center;
}
.dish-level {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.92);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-dark);
    z-index: 2;
}
.dish-play {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 2;
}
.dish-info { padding: 20px; }
.dish-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--dark);
}
.dish-price { font-size: 0.7rem; padding: 2px 10px; border-radius: 20px; font-weight: 600; }
.dish-price.free { background: #e8f5e9; color: #2e7d32; }
.dish-price.paid { background: #fff3e0; color: #e65100; }
.dish-info p { font-size: 0.85rem; color: var(--gray); margin-bottom: 10px; line-height: 1.4; }
.dish-tags {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.dish-tags span { display: inline-flex; align-items: center; gap: 4px; }
.dish-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--gray);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.dish-difficulty { color: var(--primary); font-weight: 600; }
.btn-mini {
    background: var(--primary);
    color: white;
    border: none;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

/* ===== 学习路径 ===== */
.path-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}
.path-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid var(--border);
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.path-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.path-step {
    position: absolute;
    top: -14px;
    left: 28px;
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.path-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; margin-top: 8px; }
.path-card p { font-size: 0.9rem; color: var(--gray); margin-bottom: 16px; }
.path-list { list-style: none; font-size: 0.85rem; color: var(--gray); flex: 1; }
.path-list li { padding: 6px 0; display: flex; align-items: center; gap: 8px; }
.path-list li i { color: var(--primary); font-size: 0.7rem; }
.path-card .btn { width: 100%; justify-content: center; margin-top: 16px; }

/* ===== 视频网格 ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}
.video-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.video-thumb {
    height: 160px;
    background: linear-gradient(135deg, #2e241f, #4a3727);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: 0.2s;
}
.video-thumb:hover { opacity: 0.92; }
.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    z-index: 3;
}
.video-thumb i.fa-play-circle {
    z-index: 1;
    position: relative;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.video-info { padding: 16px 20px 20px; }
.video-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.video-info p { font-size: 0.8rem; color: var(--gray); }

/* ===== 关于大厨 ===== */
.about-section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-bottom: 64px;
    border: 1px solid var(--border);
}
.about-avatar { flex: 0 0 200px; text-align: center; }
.about-avatar .avatar-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5ede4, #ede0d3);
    margin: 0 auto;
    border: 4px solid white;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: 0.2s;
    background-size: cover;
    background-position: center;
}
.about-avatar .avatar-placeholder:hover { transform: scale(1.02); }
.about-content { flex: 1; }
.about-content h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.about-content p { color: var(--gray); margin-bottom: 16px; line-height: 1.7; }
.about-highlight {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--dark);
    margin-bottom: 20px;
}
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.about-tags span {
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    color: var(--primary-dark);
    font-weight: 500;
}
.about-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== 合作CTA ===== */
.cooperate-section {
    background: linear-gradient(135deg, #2e241f, #4a3727);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    color: white;
    margin-bottom: 64px;
}
.cooperate-section h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.cooperate-section p { color: #c4b5a5; max-width: 600px; margin: 0 auto 24px; }
.cooperate-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cooperate-section .btn-primary { background: var(--primary); }
.cooperate-section .btn-outline { border-color: rgba(255,255,255,0.3); color: white; }
.cooperate-section .btn-outline:hover { background: white; color: var(--dark); border-color: white; }

/* ===== 底部 ===== */
.footer {
    text-align: center;
    padding: 40px 0 32px;
    border-top: 1px solid var(--border);
    color: var(--gray);
    font-size: 0.85rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.footer-links a { color: var(--gray); text-decoration: none; transition: 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer .beian { font-size: 0.7rem; color: #b8a89a; margin-top: 12px; }
.footer .beian a { color: #b8a89a; text-decoration: none; }

/* ============================================================
   ★ 博客首页导语（替代主站 Hero，避免与主站重复）
   ============================================================ */
.archive-hero {
    text-align: center;
    padding: 48px 24px 40px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #fff8f0, #fdf2e6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.archive-hero .hero-badge {
    margin-bottom: 16px;
}
.archive-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 14px;
}
.archive-title span { color: var(--primary); }
.archive-desc {
    font-size: 1rem;
    color: var(--gray);
    max-width: 620px;
    margin: 0 auto 20px;
    line-height: 1.8;
    word-break: break-word;
}
.archive-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--gray);
    background: white;
    padding: 6px 18px;
    border-radius: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.archive-count strong {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.15rem;
    margin: 0 2px;
}

/* ============================================================
   ★ 博客首页分类快捷导航条
   ============================================================ */
.cat-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 36px;
    padding-bottom: 4px;
}
.cat-quick-nav a {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 40px;
    background: white;
    border: 1px solid var(--border);
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
}
.cat-quick-nav a:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}
.cat-quick-nav a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
}

/* ============================================================
   分页（Typecho pageNav）
   ============================================================ */
.page-nav { text-align: center; margin: 40px 0 64px; }
.page-nav-inner {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.page-nav-inner a,
.page-nav-inner span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 40px;
    border: 1px solid var(--border);
    background: white;
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}
.page-nav-inner a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.page-nav-inner .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 700;
}

/* ============================================================
   文章详情页 / 独立页面
   ============================================================ */
.post-single {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 48px;
    margin: 40px 0 64px;
}
.post-single h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 16px;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-content {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--dark);
}
.post-content p { margin-bottom: 16px; }
.post-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 32px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
    color: var(--dark);
}
.post-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--primary-dark);
}
.post-content ul, .post-content ol { margin: 12px 0 20px 24px; }
.post-content li { margin-bottom: 8px; line-height: 1.8; }
.post-content img {
    display: block;
    max-width: 520px !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 16px;
    margin: 20px auto;
    box-shadow: var(--shadow);
    object-fit: contain;
}
.post-content blockquote {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    color: var(--gray);
    font-style: italic;
    margin: 20px 0;
}
.post-content code {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9em;
}
.post-content pre {
    background: #2e241f;
    color: #f0e2d4;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
}
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.post-content th, .post-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.post-content th { background: var(--primary-light); font-weight: 700; }

/* 标签 */
.post-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.post-tags a {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}
.post-tags a:hover { background: var(--primary); color: white; }

/* 上下篇 */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 48px;
}
.post-nav a {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    text-decoration: none;
    color: var(--dark);
    transition: 0.2s;
    display: block;
}
.post-nav a:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.post-nav .label { font-size: 0.75rem; color: var(--gray); display: block; margin-bottom: 6px; }
.post-nav .title { font-size: 0.95rem; font-weight: 600; color: var(--dark); }
.post-nav .next { text-align: right; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        gap: 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: rgba(254, 250, 245, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        margin: 0 -14px;
        width: calc(100% + 28px);
    }
    .logo-icon { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
    .logo-text h1 { font-size: 1.05rem; }
    .logo-text p { font-size: 0.6rem; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 14px;
        right: 14px;
        background: white;
        flex-direction: column;
        padding: 16px 20px;
        gap: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        border-radius: 0 0 20px 20px;
        z-index: 999;
        align-items: flex-start;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        font-size: 0.95rem;
        padding: 8px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        text-align: left;
    }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links .mobile-auth {
        display: flex;
        gap: 10px;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
        width: 100%;
    }
    .nav-links .mobile-auth .btn {
        flex: 1;
        justify-content: center;
        padding: 8px 0;
        font-size: 0.85rem;
    }
    .desktop-auth { display: none !important; }
    .mobile-menu-btn {
        display: flex;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: var(--primary-light);
        color: var(--primary);
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        border: none;
        cursor: pointer;
    }
    .search-bar { margin: 16px auto 8px; padding: 4px 4px 4px 16px; }
    .search-bar input { font-size: 0.85rem; }
    .hero { padding: 16px 0 32px; gap: 24px; }
    .hero-content h2 { font-size: 1.6rem; }
    .hero-desc { font-size: 0.9rem; margin-bottom: 20px; }
    .hero-actions .btn { padding: 8px 16px; font-size: 0.8rem; }
    .hero-stats { gap: 20px; }
    .stat-number { font-size: 1.3rem; }
    .section-title { font-size: 1.4rem; }
    .daily-recommend { padding: 20px; flex-direction: column; text-align: center; gap: 16px; }
    .dish-grid, .video-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .path-grid { grid-template-columns: 1fr; gap: 20px; }
    .about-section { padding: 24px; flex-direction: column; text-align: center; }
    .about-avatar .avatar-placeholder { width: 120px; height: 120px; }
    .about-highlight {
        border-left: none;
        border-top: 4px solid var(--primary);
        border-radius: 0 0 12px 12px;
        padding: 14px;
        font-size: 0.9rem;
    }
    .about-tags { justify-content: center; }
    .about-cta { justify-content: center; }
    .cooperate-section { padding: 28px 20px; }
    .cooperate-section h3 { font-size: 1.3rem; }

    /* 首页导语移动端 */
    .archive-hero {
        padding: 28px 18px 24px;
        margin-bottom: 28px;
        border-radius: 24px;
    }
    .archive-title { font-size: 1.5rem; }
    .archive-desc { font-size: 0.9rem; }
    .archive-count { font-size: 0.8rem; padding: 5px 14px; }
    .archive-count strong { font-size: 1rem; }

    /* 分类快捷导航条移动端：横向滚动 */
    .cat-quick-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        margin: 16px -14px 24px;
        padding: 0 14px 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .cat-quick-nav::-webkit-scrollbar { display: none; }
    .cat-quick-nav a { flex: 0 0 auto; font-size: 0.8rem; padding: 7px 16px; }
    .archive-hero { padding: 24px 20px !important; }
    .archive-hero .archive-title { font-size: 1.4rem !important; }
    .archive-hero .archive-desc { font-size: 0.9rem; }

    /* 文章详情页移动端 */
    .post-single { padding: 28px 20px; margin: 24px 0 48px; }
    .post-single h1 { font-size: 1.5rem; }
    .post-content { font-size: 0.95rem; line-height: 1.8; }
    .post-content h2 { font-size: 1.2rem; }
    .post-content h3 { font-size: 1.05rem; }
    .post-nav { grid-template-columns: 1fr; }

    /* 页脚移动端精简 */
    .footer {
        padding: 28px 14px 24px;
        font-size: 0.8rem;
        line-height: 1.7;
    }
    .footer-links {
        gap: 14px 20px;
        margin-bottom: 14px;
        justify-content: center;
    }
    .footer-links a { font-size: 0.85rem; color: var(--gray); }
    .footer > p { margin: 4px 0; }
    .footer .beian { margin-top: 10px; font-size: 0.7rem; color: #b8a89a; }

    /* 分页移动端 */
    .page-nav-inner a,
    .page-nav-inner span {
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .hero-content h2 { font-size: 1.4rem; }
    .hero-visual { display: none; }
    .dish-grid, .video-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.25rem; }

    /* 超小屏页脚进一步收紧 */
    .footer { padding: 24px 12px 20px; font-size: 0.75rem; }
    .footer-links { gap: 12px 16px; margin-bottom: 12px; }
    .footer-links a { font-size: 0.8rem; }
}
/* ===== 评论区 ===== */
.post-comments { margin-top: 48px; }

/* 评论列表 */
.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}
.comment-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 14px;
}
.comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.comment-author {
    color: var(--primary-dark);
    font-weight: 700;
}
.comment-date {
    font-size: 0.75rem;
    color: var(--gray);
}
.comment-body {
    color: var(--dark);
    line-height: 1.7;
    word-break: break-word;
}

/* 分页 */
.comment-pager {
    text-align: center;
    margin-bottom: 32px;
}

/* 表单区 */
.respond {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
}
.respond-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}
.respond-title i {
    color: var(--primary);
    margin-right: 6px;
}
.comment-logged-in {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 12px;
}
.comment-logged-in a {
    color: var(--primary);
    margin-left: 10px;
    text-decoration: none;
}

/* 昵称 / 邮箱：两列（桌面） → 单列（移动） */
.comment-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.comment-input,
.comment-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--dark);
    outline: none;
    transition: 0.2s;
}
.comment-input:focus,
.comment-textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(196, 122, 61, 0.1);
}
.comment-textarea {
    resize: vertical;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* ===== 移动端：单列 ===== */
@media (max-width: 768px) {
    .comment-fields {
        grid-template-columns: 1fr;
    }
    .respond {
        padding: 20px;
        border-radius: 20px;
    }
    .comment-item {
        padding: 16px;
    }
}
/* ===== 404 页面 ===== */
.error-404 {
    text-align: center;
    padding: 80px 20px 100px;
    max-width: 640px;
    margin: 0 auto;
}
.error-code {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -4px;
}
.error-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}
.error-desc {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 24px;
}
.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .error-404 { padding: 48px 14px 64px; }
    .error-code { font-size: 5rem; letter-spacing: -2px; }
    .error-title { font-size: 1.4rem; }
    .error-desc { font-size: 0.9rem; }
    .error-actions .btn { padding: 8px 16px; font-size: 0.8rem; }
}
.related-posts {
    padding-top: 32px;
    border-top: 1px dashed var(--border);
}
/* ============================================================
   菜谱详情页专用样式（recipe-single）
   覆盖原来的 .post-content img 规则
   ============================================================ */

/* 文章容器 */
.recipe-single {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 40px 48px;
    margin: 32px 0 64px;
}

/* 面包屑 */
.recipe-single .post-breadcrumb {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 16px;
}
.recipe-single .post-breadcrumb a {
    color: var(--gray);
    text-decoration: none;
}
.recipe-single .post-breadcrumb a:hover {
    color: var(--primary);
}
.recipe-single .post-breadcrumb span {
    margin: 0 6px;
    color: #c9b8a5;
}

/* 标题 */
.recipe-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 16px;
}

/* 元信息 */
.recipe-single .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--gray);
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.recipe-single .post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
/* 难度/等级 徽章 */
.recipe-level-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem !important;
}

/* ============================================================
   成品大图（全宽，不裁剪，圆角，带阴影）
   ============================================================ */
.recipe-hero {
    margin: 8px 0 32px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.recipe-hero img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
}

/* ============================================================
   正文样式
   ============================================================ */
.recipe-content {
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--dark);
}
.recipe-content p {
    margin-bottom: 18px;
}

/* 章节标题（h2） */
.recipe-content h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
    margin: 40px 0 20px;
    padding-left: 16px;
    border-left: 5px solid var(--primary);
    line-height: 1.3;
}

/* 步骤标题（h3）：左侧圆形序号 */
.recipe-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 28px 0 12px;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.recipe-content h3::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* ============================================================
   正文图片：默认窄一点 + 居中
   ============================================================ */
.recipe-content img {
    display: block;
    max-width: 640px !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 16px;
    margin: 24px auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    object-fit: contain;
}

/* ============================================================
   图片并排（连续两张图）
   ============================================================ */
.recipe-content .img-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}
.recipe-content .img-row img {
    max-width: 100% !important;
    margin: 0;
    border-radius: 16px;
}

/* ============================================================
   用料表：卡片式美化
   ============================================================ */
.recipe-content .ingredients-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0 32px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: white;
}
.recipe-content .ingredients-table thead {
    background: var(--primary-light);
}
.recipe-content .ingredients-table th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-dark);
    border-bottom: 1px solid var(--border);
}
.recipe-content .ingredients-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--dark);
}
.recipe-content .ingredients-table tr:last-child td {
    border-bottom: none;
}
.recipe-content .ingredients-table tr:hover td {
    background: #fffaf4;
}

/* ============================================================
   视频嵌入
   ============================================================ */
.recipe-content .video-embed {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 24px auto;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.recipe-content .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================
   标签
   ============================================================ */
.recipe-single .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px dashed var(--border);
}
.recipe-single .post-tags > span:first-child {
    font-size: 0.8rem;
    color: var(--gray);
    margin-right: 4px;
}
.recipe-single .post-tags a {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 5px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}
.recipe-single .post-tags a:hover {
    background: var(--primary);
    color: white;
}

/* ============================================================
   移动端优化
   ============================================================ */
@media (max-width: 768px) {
    .recipe-single {
        padding: 24px 18px;
        margin: 16px 0 48px;
        border-radius: 24px;
    }
    .recipe-title {
        font-size: 1.5rem;
    }
    .recipe-hero {
        margin: 8px -18px 24px;
        border-radius: 0;
        box-shadow: none;
    }
    .recipe-content {
        font-size: 0.95rem;
        line-height: 1.85;
    }
    .recipe-content h2 {
        font-size: 1.2rem;
        margin: 32px 0 16px;
    }
    .recipe-content h3 {
        font-size: 1.05rem;
        margin: 24px 0 10px;
    }
    .recipe-content img {
        max-width: 100% !important;
        border-radius: 12px;
        margin: 16px auto;
    }
    .recipe-content .img-row {
        gap: 8px;
        margin: 16px 0;
    }
    .recipe-content .img-row img {
        border-radius: 10px;
    }
    .recipe-content .ingredients-table th,
    .recipe-content .ingredients-table td {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}