:root {
    --smzdm-red: #E1251B;
    --boss-green: #00BEBD;
    --bg-gray: #F5F7F8;
    --text-dark: #222222;
    --text-gray: #777777;
    --max-width: 1184px; /* 严格符合 1184px 黄金布局宽度 */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg-gray); color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }

/* ================= 顶部全响应式导航栏 ================= */
header { 
    background: #ffffff; 
    border-bottom: 1px solid #EAEAEA; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.header-box { display: flex; align-items: center; height: 64px; justify-content: space-between; }
.logo-area { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo { font-size: 22px; font-weight: bold; color: var(--text-dark); }
.logo span { color: var(--boss-green); }
.logo-tagline { font-size: 12px; color: var(--text-gray); border-left: 1px solid #DDD; padding-left: 10px; }

.nav-menu { display: flex; list-style: none; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-item a { padding: 8px 0; transition: color 0.2s; position: relative; }
.nav-item a:hover, .nav-item.active a { color: var(--boss-green); }
.nav-item.active a::after, .nav-item a:hover::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--boss-green);
}

/* ================= 面包屑导航 ================= */
.breadcrumb { margin-top: 16px; font-size: 13px; color: var(--text-gray); display: flex; gap: 6px; align-items: center; }
.breadcrumb a:hover { color: var(--boss-green); }

/* ================= 核心：左右双栏布局 ================= */
.main-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; margin-top: 14px; margin-bottom: 40px; }

/* ================= 左侧：技术文章攻略流 ================= */
.left-article-flow { display: flex; flex-direction: column; gap: 16px; }

/* 深度图文资讯卡片 */
.article-card { background: #ffffff; border-radius: 8px; padding: 20px; display: flex; gap: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.art-img-box { width: 180px; height: 120px; background: #FAFAFA; border-radius: 6px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.art-img-box img { width: 100%; height: 100%; object-fit: cover; }

.art-details { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.art-title { font-size: 18px; font-weight: bold; color: #111111; line-height: 1.4; margin-bottom: 6px; }
.art-title:hover { color: var(--boss-green); }
.art-desc { font-size: 14px; color: #666666; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }

/* 去除死板数字，保留纯粹的发布属性 */
.art-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-gray); align-items: center; }
.art-tag { background: #E6FAFA; color: var(--boss-green); padding: 2px 8px; border-radius: 4px; font-weight: bold; }

/* 分页适配 */
.epages { margin-top: 24px; text-align: center; font-size: 14px; padding: 10px 0; }
.epages a, .epages span { display: inline-block; padding: 6px 12px; margin: 0 3px; border-radius: 4px; background: #fff; border: 1px solid #EAEAEA; }
.epages span { background: var(--boss-green); color: #fff; border-color: var(--boss-green); font-weight: bold; }
.epages a:hover { border-color: var(--boss-green); color: var(--boss-green); }

/* ================= 右侧：高转化电商耗材带货流 ================= */
.right-info-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: #ffffff; border-radius: 8px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.widget-title { font-size: 15px; font-weight: bold; border-left: 4px solid var(--boss-green); padding-left: 8px; margin-bottom: 14px; }

/* 侧边栏迷你商品卡片 */
.side-prod-list { display: flex; flex-direction: column; gap: 14px; list-style: none; }
.side-prod-item { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px dashed #EAEAEA; }
.side-prod-item:last-child { border-bottom: none; padding-bottom: 0; }
.side-prod-img { width: 60px; height: 60px; background: #FAFAFA; border-radius: 4px; flex-shrink: 0; }
.side-prod-name { font-size: 13px; font-weight: 500; color: #333; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-prod-name:hover { color: var(--smzdm-red); }
.side-prod-price { font-size: 13px; color: var(--smzdm-red); font-weight: bold; margin-top: 4px; display: block; }

.sticky-box { position: sticky; top: 88px; }

/* ================= 底部版权区域 ================= */
footer { background: #ffffff; border-top: 1px solid #EAEAEA; padding: 24px 0; margin-top: 40px; text-align: center; font-size: 13px; color: var(--text-gray); line-height: 1.8; }

/* ================= 📱 移动端自适应逻辑（不挤、不乱） ================= */
@media (max-width: 992px) {
    .main-layout { grid-template-columns: 1fr; gap: 16px; }
    .right-info-sidebar { order: 2; }
    .sticky-box { position: static; }
}

@media (max-width: 768px) {
    .header-box { height: auto; flex-direction: column; align-items: flex-start; padding: 12px 16px 6px 16px; gap: 10px; }
    .logo-tagline { display: none; }
    .nav-menu { width: 100%; overflow-x: auto; white-space: nowrap; gap: 20px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
    .nav-menu::-webkit-scrollbar { display: none; }
    .nav-item { display: inline-block; font-size: 14px; }
    
    .breadcrumb { display: none; }
}

@media (max-width: 640px) {
            /* 手机端攻略流：打破双列！保持单列大信息量，缩减图片尺寸防止拥挤 */
            .left-article-flow { display: flex; flex-direction: column; gap: 12px; }
            .article-card { padding: 12px; gap: 12px; align-items: stretch; } /* 改变对齐方式，让右侧高度撑满 */
            
            /* 图片变小，保持比例 */
            .art-img-box { width: 100px; height: 75px; border-radius: 4px; }
            
            .art-details { justify-content: space-between; } /* 确保标题在上，属性在下 */
            .art-title { font-size: 14px; margin-bottom: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
            .art-desc { display: none; } /* 移动端隐藏描述，靠标题引流 */
            
            /* 🔥 核心修复：防止移动端更新时间和浏览数错乱 */
            .art-meta { 
                gap: 8px; 
                font-size: 11px; 
                flex-wrap: wrap; /* 允许在极小屏幕下优雅换行，而不是重叠错乱 */
                color: #999;
                line-height: 1;
                margin-top: 4px;
            }
            .art-tag { 
                padding: 1px 6px; 
                font-size: 10px; 
                border-radius: 3px; 
                flex-shrink: 0; /* 防止标签被无情挤压变形 */
            }
            .art-meta span { flex-shrink: 0; } /* 保证时间词组和浏览词组各自紧抱，不从中间断开 */
        }