/* =====================================================
   胶膜资讯 - 博客风首页/文章页样式 (SEO友好版)
   无框架 / 无JS依赖 / 移动端自适应 / 百度爬虫友好
   ===================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font: 14px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    background: #f5f6f8;
}
a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; text-decoration: underline; }
img { max-width: 100%; height: auto; border: 0; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部导航栏 ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; height: 60px; gap: 24px; }
.site-brand { flex-shrink: 0; }
.brand-link { display: block; }
.brand-logo { font-size: 20px; font-weight: 700; color: #1f2937; }
.site-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.site-nav::-webkit-scrollbar { display: none; }
.nav-item {
    padding: 8px 12px; font-size: 15px; color: #374151;
    border-radius: 6px; white-space: nowrap;
}
.nav-item:hover { color: #2563eb; text-decoration: none; background: #eff6ff; }
.nav-item.active { color: #2563eb; font-weight: 600; }
.header-search form { display: flex; gap: 6px; }
.header-search input {
    width: 180px; height: 34px; padding: 0 10px;
    border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 13px; outline: none;
}
.header-search input:focus { border-color: #2563eb; }
.header-search button {
    height: 34px; padding: 0 14px; border: 0; border-radius: 6px;
    background: #2563eb; color: #fff; font-size: 13px; cursor: pointer;
}

/* ---------- Hero 网站简介(唯一H1) ---------- */
.hero {
    background: linear-gradient(180deg, #fff 0%, #f0f6ff 100%);
    border-bottom: 1px solid #e8eef7;
    padding: 34px 0 26px;
}
.hero-inner { text-align: center; }
.hero-h1 { font-size: 26px; line-height: 1.5; color: #111827; font-weight: 700; }
.hero-desc { max-width: 860px; margin: 10px auto 0; font-size: 14px; color: #4b5563; }

/* ---------- 极简原料报价条(文字, 无图表) ---------- */
.hero-quotes { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-quote {
    display: flex; align-items: baseline; gap: 6px;
    padding: 8px 14px; background: #fff;
    border: 1px solid #e5e7eb; border-radius: 8px;
    font-size: 13px; color: #374151;
}
.hero-quote:hover { border-color: #2563eb; text-decoration: none; }
.hq-name { font-weight: 600; color: #1f2937; }
.hq-price { color: #b45309; font-weight: 700; }
.hq-unit { color: #9ca3af; font-size: 12px; }
.hq-change.up { color: #dc2626; }
.hq-change.down { color: #16a34a; }

/* ---------- 区块标题(H2) ---------- */
.section-title {
    font-size: 20px; color: #111827; line-height: 1.4;
    margin: 0 0 18px; padding-left: 12px; border-left: 4px solid #2563eb;
}

/* ---------- 栏目列表页 H1 ---------- */
.list-h1 {
    font-size: 24px; color: #111827; line-height: 1.5;
    margin: 0 0 20px; padding-bottom: 10px; border-bottom: 1px solid #eef0f3;
}

/* ---------- 头条重点文章(置顶1篇) ---------- */
.featured { padding: 30px 0 6px; }
.featured-card {
    display: flex; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.featured-thumb { display: block; flex: 0 0 46%; max-width: 46%; }
.featured-thumb img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.featured-body { flex: 1; padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; }
.featured-cat {
    display: inline-block; width: fit-content; padding: 2px 10px;
    border-radius: 4px; background: #eff6ff; color: #2563eb; font-size: 12px;
}
.featured-title { font-size: 22px; line-height: 1.5; margin: 10px 0 8px; }
.featured-title a { color: #111827; }
.featured-title a:hover { color: #2563eb; text-decoration: none; }
.featured-desc { font-size: 14px; color: #4b5563; margin-bottom: 14px; }
.featured-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: #9ca3af; }
.read-more { margin-left: auto; color: #2563eb; font-weight: 600; }

/* ---------- 主区域布局(左侧列表 + 右侧边栏) ---------- */
.main-layout { display: flex; gap: 26px; align-items: flex-start; padding: 26px 16px 40px; }
.main-content { flex: 1; min-width: 0; }
/* ---------- 文章卡片列表(仿WordPress博客列表) ---------- */
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.post-card {
    display: flex; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 10px; overflow: hidden; transition: box-shadow .2s;
}
.post-card:hover { box-shadow: 0 4px 14px rgba(37, 99, 235, .10); }
.post-thumb { display: block; flex: 0 0 42%; max-width: 42%; }
.post-thumb img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.post-body { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; }
.post-title { font-size: 16px; line-height: 1.5; }
.post-title a { color: #111827; }
.post-title a:hover { color: #2563eb; text-decoration: none; }
.post-desc {
    font-size: 13px; color: #6b7280; margin: 8px 0 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 12px; color: #9ca3af; }
.post-cat { color: #2563eb; padding: 1px 8px; border-radius: 4px; background: #eff6ff; }
.post-cat:hover { text-decoration: none; background: #dbeafe; }

/* ---------- 分页 ---------- */
.pagination { margin-top: 26px; }
.page-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.page-btn {
    min-width: 34px; height: 34px; padding: 0 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 13px; color: #374151;
}
.page-btn:hover { border-color: #2563eb; color: #2563eb; text-decoration: none; }
.page-btn.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.page-btn.disabled { color: #c4c9d1; cursor: not-allowed; }
.page-btn.dots { border: 0; }
.page-info { margin-left: 8px; font-size: 12px; color: #9ca3af; }

/* ---------- 侧边栏 ---------- */
.sidebar { width: 300px; flex-shrink: 0; }
.widget {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 18px; margin-bottom: 18px;
}
.widget h3 {
    font-size: 16px; color: #111827; margin-bottom: 12px;
    padding-bottom: 8px; border-bottom: 1px solid #eef0f3;
}
.widget-list li { padding: 6px 0; border-bottom: 1px dashed #f0f2f5; }
.widget-list li:last-child { border-bottom: 0; }
.widget-list a {
    font-size: 13px; color: #374151; display: inline-block; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
}
.widget-list a:hover { color: #2563eb; }
.widget-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    display: inline-block; padding: 3px 10px; background: #f3f4f6;
    border-radius: 4px; font-size: 12px; color: #4b5563;
}
.tag:hover { background: #eff6ff; color: #2563eb; text-decoration: none; }
.cat-item { display: flex; justify-content: space-between; align-items: center; }
.cat-count { font-size: 12px; color: #9ca3af; background: #f3f4f6; border-radius: 10px; padding: 1px 8px; }

/* ---------- 文章详情页 ---------- */
.article-layout { display: flex; gap: 26px; align-items: flex-start; padding: 26px 16px 40px; }
.article-main {
    flex: 1; min-width: 0; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 10px; padding: 28px 32px;
}
.breadcrumb { font-size: 13px; color: #9ca3af; margin-bottom: 16px; }
.breadcrumb a { color: #6b7280; }
.breadcrumb a:hover { color: #2563eb; }
.article-title { font-size: 26px; line-height: 1.5; color: #111827; margin-bottom: 12px; }
.article-meta {
    display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: #9ca3af;
    padding-bottom: 16px; border-bottom: 1px solid #eef0f3; margin-bottom: 18px;
}
.article-cover img { width: 100%; border-radius: 8px; margin-bottom: 18px; }
.article-content { font-size: 15px; line-height: 1.9; color: #374151; word-wrap: break-word; }
.article-content p { margin-bottom: 16px; }
.article-content img { margin: 12px 0; }
.article-content h2, .article-content h3 { margin: 22px 0 10px; color: #111827; }
.article-content a { color: #2563eb; }
.article-tags {
    margin-top: 22px; padding-top: 14px; border-top: 1px solid #eef0f3;
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: #6b7280;
}
.article-prevnext {
    display: flex; flex-direction: column; gap: 8px; margin-top: 20px;
    padding: 14px 0; border-top: 1px solid #eef0f3; font-size: 14px;
}
.article-prevnext a {
    color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.article-prevnext a:hover { color: #2563eb; }
.related { margin-top: 10px; }
.related h2 { font-size: 18px; color: #111827; margin-bottom: 12px; padding-left: 10px; border-left: 3px solid #2563eb; }
.related-list li { padding: 6px 0; }
.related-list a { font-size: 14px; color: #374151; }
.related-list a:hover { color: #2563eb; }
/* ---------- 底部 ---------- */
.site-footer { background: #111827; color: #9ca3af; font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; padding: 36px 0 26px; }
.site-footer h4 { font-size: 15px; color: #f9fafb; margin-bottom: 12px; }
.footer-about p { line-height: 1.8; }
.footer-col ul li { padding: 4px 0; }
.footer-col ul a { color: #9ca3af; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #1f2937; padding: 16px 0;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
}
.footer-bottom a { color: #9ca3af; }
.footer-bottom a:hover { color: #fff; }
.footer-icp { color: #6b7280; }

/* ---------- 响应式(移动端自适应) ---------- */
@media (max-width: 992px) {
    .main-layout { flex-direction: column; }
    .sidebar { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
    .site-nav { order: 3; width: 100%; }
    .header-search { margin-left: auto; }
    .header-search input { width: 130px; }
    .hero { padding: 24px 0 18px; }
    .hero-h1 { font-size: 20px; }
    .hero-quotes { gap: 8px; }
    .featured-card { flex-direction: column; }
    .featured-thumb { flex: none; max-width: 100%; }
    .featured-thumb img { min-height: 0; }
    .post-list { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; gap: 20px; }
    .article-main { padding: 18px; }
    .article-title { font-size: 20px; }
    .sidebar { display: block; }
}
@media (max-width: 480px) {
    .post-card { flex-direction: column; }
    .post-thumb { flex: none; max-width: 100%; }
    .post-thumb img { min-height: 0; height: auto; }
    .featured-body { padding: 18px; }
}

/* ---------- 简单内容页(关于/免责声明/法律声明, 博客布局) ---------- */
.about-page {
    max-width: 900px; margin: 30px auto 50px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 34px 40px;
}
.page-header h1 { font-size: 24px; color: #111827; margin-bottom: 10px; }
.page-desc { font-size: 13px; color: #9ca3af; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid #eef0f3; }
.about-section h2 {
    font-size: 18px; color: #111827; line-height: 1.5;
    margin: 24px 0 10px; padding-left: 10px; border-left: 3px solid #2563eb;
}
.about-section p { font-size: 14px; line-height: 1.9; color: #4b5563; margin-bottom: 12px; }
.about-section ul { padding-left: 18px; }
.about-section ul li { list-style: disc; font-size: 14px; line-height: 1.9; color: #4b5563; margin-bottom: 8px; }
.legal-list li { list-style: disc; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 10px; }
.service-item { border: 1px solid #eef0f3; border-radius: 8px; padding: 14px; }
.service-item h3 { font-size: 15px; color: #111827; margin-bottom: 6px; }
.service-item p { font-size: 13px; color: #6b7280; margin: 0; }
.contact-info p { margin-bottom: 6px; }
@media (max-width: 640px) {
    .about-page { padding: 22px 18px; }
    .service-list { grid-template-columns: 1fr; }
}

/* ---------- 原料行情报价条(导航下方一行, 采集数据) ---------- */
.quote-ticker { background: #f8fafc; border-bottom: 1px solid #e5e7eb; }
.quote-ticker-inner { display: flex; align-items: center; gap: 18px; height: 40px; }
.quote-ticker-title { flex-shrink: 0; font-size: 13px; font-weight: 700; color: #2563eb; }
.quote-ticker-list {
    display: flex; align-items: center; gap: 24px; flex: 1;
    overflow-x: auto; white-space: nowrap;
}
.quote-ticker-list::-webkit-scrollbar { display: none; }
.quote-item { display: inline-flex; align-items: baseline; gap: 5px; font-size: 13px; color: #374151; }
.quote-item:hover { text-decoration: none; }
.qi-name { color: #1f2937; font-weight: 600; }
.qi-price { color: #b45309; font-weight: 700; }
.qi-unit { color: #9ca3af; font-size: 12px; }
.qi-change.up { color: #dc2626; }
.qi-change.down { color: #16a34a; }
@media (max-width: 768px) {
    .quote-ticker-inner { height: auto; padding: 8px 0; gap: 10px; }
    .quote-ticker-title { display: none; }
    .quote-ticker-list { gap: 16px; }
}

/* =====================================================
   顶部“今日全部行情”按钮(布局 header 右侧, 全站可见)
   ===================================================== */
.jm-market-nav-btn{
    display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;
    background:#D0021B;color:#fff!important;text-decoration:none!important;
    border-radius:8px;padding:8px 14px;font-size:13px;font-weight:700;
    box-shadow:0 5px 14px rgba(208,2,27,.18);flex-shrink:0;
}
.jm-market-nav-btn:hover{background:#ad0016;color:#fff!important}
@media(max-width:1100px){.jm-market-nav-btn{display:none}}




/* ================= 列表页栏目头图 ================= */
.cat-header{display:flex;gap:18px;align-items:stretch;margin-bottom:18px}
.cat-header-img{width:320px;max-width:100%;height:auto;max-height:180px;object-fit:cover;border-radius:8px;border:1px solid #eee}
.cat-header-info{display:flex;flex-direction:column;justify-content:center;flex:1;min-width:0}
.cat-header-info .list-h1{margin:0 0 8px}
.cat-header-desc{margin:0;font-size:14px;color:#6b7280;line-height:1.7}
@media (max-width:768px){
  .cat-header{flex-direction:column;gap:12px}
  .cat-header-img{width:100%;max-height:140px}
}

