/* youcai-pump 公开门户样式
 * 简洁响应式，移动优先，深蓝 + 银灰
 */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
    color: #1a2540;
    background: #f7f8fa;
    line-height: 1.65;
    font-size: 16px;
}
a { color: #154e8e; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.chufan-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.chufan-header {
    background: linear-gradient(180deg, #0c2e5c 0%, #154e8e 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.chufan-header-inner {
    display: flex;
    align-items: center;
    min-height: 60px;
    gap: 24px;
    flex-wrap: wrap;
}
.chufan-logo { color: #fff; font-size: 20px; font-weight: 700; }
.chufan-logo:hover { text-decoration: none; }
.chufan-nav {
    display: flex;
    gap: 18px;
    flex: 1;
    flex-wrap: wrap;
}
.chufan-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
}
.chufan-nav a:hover,
.chufan-nav a.active {
    color: #fff;
    text-decoration: none;
    border-bottom-color: #ffd54f;
}
.chufan-lang-switcher { font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.chufan-lang-switcher a { color: rgba(255, 255, 255, 0.85); padding: 0 4px; }
.chufan-lang-switcher a.active { color: #ffd54f; font-weight: 600; }

/* Main */
.chufan-main { padding: 32px 20px; min-height: calc(100vh - 200px); }

/* Hero */
.chufan-hero {
    text-align: center;
    padding: 48px 20px 40px;
    background: linear-gradient(180deg, #fff 0%, #eef3fb 100%);
    border-radius: 8px;
    margin-bottom: 0;
}
/* 搜索框与首个栏目区之间只留适当间隔（其余区块间距仍走 .chufan-section 的 48px） */
.chufan-hero + .chufan-section { margin-top: 24px; }
.chufan-hero h1 { font-size: 36px; color: #0c2e5c; margin: 0 0 12px; }
.chufan-hero p { font-size: 18px; color: #4a5872; max-width: 720px; margin: 0 auto 24px; }
.chufan-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #154e8e;
    color: #fff;
    border-radius: 4px;
    transition: background 0.15s;
}
.chufan-btn:hover { background: #0c2e5c; text-decoration: none; }

/* Section */
.chufan-section { margin: 48px 0; }
.chufan-section h2 {
    font-size: 26px;
    color: #0c2e5c;
    margin: 0 0 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ffd54f;
}
.chufan-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.chufan-section-head h2 { margin: 0; }
.chufan-link-more { font-size: 14px; }

/* Grid & Cards */
.chufan-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
.chufan-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
    .chufan-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .chufan-grid-3, .chufan-grid { grid-template-columns: 1fr; }
}

/* 首页免费工具区：4 轨道网格、每卡占两栏 → 两卡一行 */
.chufan-grid-tools { grid-template-columns: repeat(4, 1fr); }
.chufan-grid-tools .chufan-card { grid-column: span 2; }
@media (max-width: 900px) {
    .chufan-grid-tools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .chufan-grid-tools { grid-template-columns: 1fr; }
    .chufan-grid-tools .chufan-card { grid-column: auto; }
}

.chufan-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s, box-shadow 0.15s;
    color: #1a2540;
    display: block;
    padding: 20px;
}
.chufan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 46, 92, 0.12);
    text-decoration: none;
}
.chufan-card h3 { color: #0c2e5c; margin: 0 0 8px; font-size: 18px; }
.chufan-card p { color: #4a5872; font-size: 14px; margin: 0; }
.chufan-article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin: -20px -20px 12px;
    width: calc(100% + 40px); border-radius: 0; }
.chufan-card-body { padding: 0; }
.chufan-meta { display: block; color: #8b95a7; font-size: 12px; margin-bottom: 4px; }

/* Article detail */
.chufan-article-detail { max-width: 820px; }
.chufan-breadcrumb {
    font-size: 13px;
    color: #8b95a7;
    margin-bottom: 20px;
}
.chufan-breadcrumb a { color: #6b7689; }
.chufan-breadcrumb span { margin: 0 6px; }

.chufan-article-head h1 { color: #0c2e5c; font-size: 32px; margin: 0 0 8px; line-height: 1.3; }
.chufan-article-subtitle { color: #4a5872; font-size: 18px; margin: 0 0 12px; }
.chufan-article-meta {
    color: #8b95a7;
    font-size: 14px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e9f0;
}
.chufan-article-cover { width: 100%; border-radius: 6px; margin-bottom: 24px; }
.chufan-article-content { font-size: 17px; color: #2a3550; }
.chufan-article-content :where(h1,h2,h3,h4) { color: #0c2e5c; margin-top: 1.5em; }
.chufan-article-content :where(p,ul,ol,blockquote) { margin: 0 0 1em; }
.chufan-article-content :where(pre) { background: #f1f3f7; padding: 12px; border-radius: 4px; overflow-x: auto; }
.chufan-article-content :where(img) { border-radius: 4px; }
.chufan-article-content :where(a) { color: #154e8e; }

.chufan-related {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e5e9f0;
}
.chufan-related h2 { color: #0c2e5c; font-size: 20px; margin: 0 0 12px; }
.chufan-related ul { padding-left: 20px; }

.chufan-empty { color: #8b95a7; padding: 40px 0; text-align: center; }

/* Pagination */
.chufan-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    font-size: 14px;
}
.chufan-pagination a {
    padding: 6px 14px;
    border: 1px solid #d6dbe5;
    border-radius: 4px;
    color: #154e8e;
}
.chufan-pagination a:hover { background: #eef3fb; text-decoration: none; }

/* Links list */
.chufan-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chufan-links li a {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #d6dbe5;
    border-radius: 16px;
    font-size: 14px;
}

/* Category head */
.chufan-category-head h1 { color: #0c2e5c; margin: 0 0 8px; }
.chufan-category-head p { color: #4a5872; margin: 0 0 24px; }

/* 404 */
.chufan-404 { text-align: center; padding: 80px 20px; }
.chufan-404 h1 { font-size: 72px; color: #0c2e5c; margin: 0; }
.chufan-404 p { color: #4a5872; margin: 12px 0 24px; }

/* Footer */
.chufan-footer {
    background: #0c2e5c;
    color: rgba(255, 255, 255, 0.85);
    padding: 40px 0 16px;
    margin-top: 60px;
}
.chufan-footer h3, .chufan-footer h4 { color: #fff; margin: 0 0 12px; }
.chufan-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
@media (max-width: 600px) {
    .chufan-footer-grid { grid-template-columns: 1fr; }
}
.chufan-footer-grid ul { list-style: none; padding: 0; margin: 0; }
.chufan-footer-grid li { margin: 6px 0; }
.chufan-footer-grid a { color: rgba(255, 255, 255, 0.85); font-size: 14px; }
.chufan-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 16px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.chufan-footer-bottom a { color: rgba(255, 255, 255, 0.85); }

/* ====== 首页扩展（厨房宝改版追加） ====== */

/* Hero 搜索框 */
.chufan-hero-search {
    display: flex;
    max-width: 560px;
    margin: 0 auto 20px;
    gap: 8px;
}
.chufan-hero-search input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid #c5cfdc;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
}
.chufan-hero-search input:focus { border-color: #154e8e; }
.chufan-hero-search button {
    padding: 0 22px;
    background: #154e8e;
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s;
}
.chufan-hero-search button:hover { background: #0c2e5c; }
@media (max-width: 600px) {
    .chufan-hero-search { flex-direction: column; }
    .chufan-hero-search button { padding: 10px; }
}

/* 栏目快捷入口（4-7 列响应式） */
.chufan-grid-quick {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) {
    .chufan-grid-quick { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .chufan-grid-quick { grid-template-columns: repeat(2, 1fr); }
}
.chufan-quick-card {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    padding: 20px 12px;
    text-align: center;
    color: #1a2540;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    display: block;
}
.chufan-quick-card:hover {
    border-color: #154e8e;
    box-shadow: 0 4px 14px rgba(12, 46, 92, 0.10);
    transform: translateY(-2px);
    text-decoration: none;
}
.chufan-quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #154e8e 0%, #0c2e5c 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
}
.chufan-quick-card h3 { margin: 0 0 4px; font-size: 16px; color: #0c2e5c; }
.chufan-quick-card p { margin: 0; font-size: 12px; color: #8b95a7; line-height: 1.4; }

/* 热门问答列表 */
.chufan-qa-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.chufan-qa-list li { border-bottom: 1px solid #eef1f6; }
.chufan-qa-list li:last-child { border-bottom: 0; }
.chufan-qa-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: #1a2540;
    font-size: 15px;
}
.chufan-qa-list a:hover { background: #f7f9fc; text-decoration: none; }
.chufan-qa-q {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #ffd54f;
    color: #0c2e5c;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

/* 单页正文（与文章详情共用容器规范） */
.chufan-page-detail { max-width: 820px; }
.chufan-page-detail h1 { color: #0c2e5c; margin: 0 0 16px; }

/* ===== HTML 网站地图页 ===== */
.sitemap-block { margin: 32px 0; }
.sitemap-block > h2 {
    font-size: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 16px;
}
.sitemap-lang-switch { margin-top: 4px; }
.sitemap-lang-switch a { color: #2563eb; }
.sitemap-link-list,
.sitemap-article-list { list-style: none; margin: 0; padding: 0; }
.sitemap-link-list li { padding: 6px 0; }
.sitemap-section { margin-bottom: 20px; }
.sitemap-section h3 { font-size: 16px; margin: 12px 0 6px; }
.sitemap-section h3 a { color: inherit; }
.sitemap-count { color: #999; font-size: 13px; font-weight: normal; margin-left: 4px; }
.sitemap-depth-1 { margin-left: 24px; }
.sitemap-depth-2 { margin-left: 48px; }
.sitemap-depth-3 { margin-left: 72px; }
.sitemap-cat-desc { color: #777; font-size: 13px; margin: 0 0 4px; }
.sitemap-article-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}
.sitemap-article-list a { color: #2563eb; }
.sitemap-date { color: #999; font-size: 13px; white-space: nowrap; }
@media (max-width: 640px) {
    .sitemap-article-list li { flex-direction: column; gap: 2px; }
}

