/* 
 * 中国酒水网 - 2026 高端版统一样式表
 * 风格：尊贵、醇厚、大报视觉、极致严谨布局
 * 配色：#800020 (深红/酒红), #b8860b (古铜金), #1a1a1a (商务黑), #f9f9f9 (米灰)
 */

/* 1. 全局 Reset & 基础约束 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-y: scroll; }
body { 
    font-family: "Georgia", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", serif; 
    font-size: 15px; 
    color: #333; 
    line-height: 1.8; 
    background: #fff; 
    word-wrap: break-word;
}
a { text-decoration: none; color: #333; transition: all 0.3s ease; }
a:hover { color: #800020; }
ul, li { list-style: none; }
img { 
    max-width: 100% !important; 
    height: auto !important; 
    display: block; 
    border: 0; 
    image-rendering: -webkit-optimize-contrast; 
}

/* 2. 核心容器 - 采用 1200px 严谨布局 */
.container { 
    width: 1200px; 
    margin: 0 auto; 
    position: relative;
    clear: both;
}
.clearfix::after { content: ""; display: block; clear: both; }

/* 3. 头部设计 - 品牌感 */
.top-bar { background: #1a1a1a; color: #999; font-size: 12px; padding: 10px 0; border-bottom: 1px solid #333; }
.header { padding: 40px 0; background: #fff; text-align: center; }
.logo h1 { font-size: 48px; color: #800020; letter-spacing: 12px; font-weight: 400; text-transform: uppercase; }
.logo p { font-size: 13px; color: #b8860b; letter-spacing: 6px; margin-top: 10px; font-weight: 300; }

/* 4. 导航条 - 沉浸式 */
.nav-wrap { background: #800020; border-bottom: 4px solid #b8860b; position: sticky; top: 0; z-index: 1000; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.nav { display: flex; justify-content: center; align-items: center; }
.nav li { position: relative; }
.nav li a { display: block; padding: 0 30px; line-height: 60px; color: #fff; font-size: 16px; font-weight: 500; }
.nav li a:hover, .nav li.active a { background: rgba(0,0,0,0.1); color: #f5e6ab; }
.nav li.active a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: #b8860b; }

/* 5. 首页英雄图 - 严控比例 */
.hero-section { margin: 30px 0; height: 500px; background: #000; overflow: hidden; position: relative; border: 10px solid #f9f9f9; }
.hero-section img { width: 100% !important; height: 100% !important; object-fit: cover; opacity: 0.8; }
.hero-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 60px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; }
.hero-content span { color: #b8860b; font-size: 14px; letter-spacing: 3px; font-weight: 700; }
.hero-content h2 { font-size: 36px; margin-top: 15px; font-weight: 400; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

/* 6. 标准网格系统 - 彻底解决错位 */
.grid-layout { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-bottom: 60px; 
    width: 100%;
}
.card-item { 
    background: #fff; 
    border: 1px solid #eee; 
    transition: 0.4s; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden;
}
.card-item:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: #800020; }

/* 核心：固定图片容器高度，强制填充 */
.card-img-box { 
    width: 100%; 
    height: 280px; 
    background: #f4f4f4; 
    overflow: hidden; 
    position: relative;
}
.card-img-box img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover; 
    transition: 0.8s ease;
}
.card-item:hover .card-img-box img { transform: scale(1.1); }

.card-info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.card-info .tag { font-size: 12px; color: #800020; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.card-info h3 { font-size: 18px; line-height: 1.5; height: 54px; overflow: hidden; margin-bottom: 15px; color: #1a1a1a; font-family: serif; }
.card-info p { font-size: 14px; color: #666; height: 42px; overflow: hidden; margin-bottom: 20px; line-height: 1.5; }
.card-footer { padding-top: 15px; border-top: 1px solid #f0f0f0; font-size: 12px; color: #aaa; display: flex; justify-content: space-between; }

/* 7. 板块标题 */
.section-title { text-align: center; margin: 80px 0 50px; }
.section-title h2 { font-size: 32px; font-weight: 400; letter-spacing: 5px; color: #800020; position: relative; display: inline-block; padding-bottom: 15px; }
.section-title h2::after { content: ""; position: absolute; bottom: 0; left: 25%; width: 50%; height: 2px; background: #b8860b; }
.section-title p { font-size: 12px; color: #b8860b; margin-top: 10px; text-transform: uppercase; letter-spacing: 3px; }

/* 8. 内容页专有样式 */
.article-main { max-width: 840px; margin: 60px auto; }
.article-header { border-bottom: 1px solid #eee; padding-bottom: 40px; margin-bottom: 40px; text-align: center; }
.article-header h1 { font-size: 38px; color: #1a1a1a; line-height: 1.3; margin-bottom: 25px; font-family: serif; }
.article-meta { color: #999; font-size: 13px; }
.article-meta span { margin: 0 15px; }
.article-body { font-size: 18px; color: #333; line-height: 2; }
.article-body p { margin-bottom: 30px; }
.article-body img { margin: 40px auto; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

/* 9. 页脚 */
.footer { background: #1a1a1a; color: #eee; padding: 80px 0 40px; margin-top: 100px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; border-bottom: 1px solid #333; padding-bottom: 60px; }
.footer h4 { color: #b8860b; margin-bottom: 25px; font-size: 18px; font-weight: 500; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #999; font-size: 14px; }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.footer-bottom { text-align: center; margin-top: 40px; font-size: 12px; color: #666; }

/* 10. 分页样式 */
.pagination { text-align: center; margin: 50px 0; }
.pagination li { display: inline-block; margin: 0 5px; }
.pagination li a { display: block; padding: 8px 18px; border: 1px solid #eee; color: #666; }
.pagination li.thisclass a, .pagination li a:hover { background: #800020; color: #fff; border-color: #800020; }
