:root {
    --smzdm-red: #E1251B;
    --boss-green: #00BEBD;
    --bg-gray: #F5F7F8;
    --text-dark: #222222;
    --text-gray: #777777;
    --max-width: 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); }
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);
}

/* ================= 面包屑导航（SEO极重要） ================= */
.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-product-flow { display: flex; flex-direction: column; gap: 16px; }

/* 电脑端图文格式卡片 */
.product-card { background: #ffffff; border-radius: 8px; padding: 18px; display: flex; gap: 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.prod-img-box { width: 140px; height: 140px; background: #FAFAFA; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: relative; }
.tag-green { position: absolute; top: 0; left: 0; background: var(--boss-green); color: #ffffff; font-size: 11px; padding: 2px 6px; border-bottom-right-radius: 6px; }

.prod-details { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.prod-title { font-size: 16px; font-weight: bold; color: #111111; line-height: 1.4; }
.prod-title:hover { color: var(--smzdm-red); }
.price-line { margin: 6px 0; }
.current-price { color: var(--smzdm-red); font-size: 18px; font-weight: bold; }
.old-price { font-size: 12px; color: var(--text-gray); text-decoration: line-through; margin-left: 8px; }
.prod-desc { font-size: 13px; color: #555555; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.prod-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.vote-badge { font-size: 12px; color: var(--smzdm-red); background: #FFF5F5; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.btn-buy-now { background: var(--smzdm-red); color: #ffffff; font-size: 13px; padding: 6px 14px; 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; }

.info-list { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.info-item { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; border-bottom: 1px dashed #EAEAEA; }
.info-item:last-child { border-bottom: none; padding-bottom: 0; }
.info-link { font-size: 14px; color: #333; line-height: 1.4; font-weight: 500; }
.info-link:hover { color: var(--boss-green); }
.info-date { font-size: 11px; color: var(--text-gray); }

.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-product-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    
    .product-card { flex-direction: column; padding: 10px; gap: 8px; border-radius: 6px; }
    .prod-img-box { width: 100%; height: 130px; }
    
    .prod-details { width: 100%; height: auto; }
    .prod-title { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 36px; line-height: 1.4; }
    .prod-desc { display: none; }
    
    .price-line { display: flex; align-items: baseline; flex-wrap: wrap; margin: 4px 0; }
    .current-price { font-size: 15px; }
    .old-price { font-size: 10px; margin-left: 4px; }
    
    .prod-meta { flex-direction: column; align-items: stretch; gap: 6px; width: 100%; }
    .vote-badge { text-align: center; font-size: 10px; padding: 1px; }
    .btn-buy-now { text-align: center; font-size: 12px; padding: 6px 0; width: 100%; }
}