/* ============================================
   buqgg.com 样式表 v2
   AI模板生成规范 - 随机组合
   风格: N-自然有机 / 布局: B-侧边栏布局
   色彩: 6-大地色系 #8b4513/#f5deb3/#228b22
   ============================================ */

/* CSS变量 */
:root {
    --primary: #8b4513;
    --secondary: #f5deb3;
    --accent: #228b22;
    --bg-color: #faf8f5;
    --card-bg: #ffffff;
    --text-dark: #2d2d2d;
    --text-light: #666666;
    --text-muted: #999999;
    --shadow-sm: 0 2px 8px rgba(139, 69, 19, 0.1);
    --shadow-md: 0 4px 16px rgba(139, 69, 19, 0.15);
    --radius: 8px;
    --radius-sm: 6px;
    --transition: 0.3s ease;
}

/* 基础重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-dark);
    background: var(--bg-color);
    line-height: 1.7;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   头部导航 - 匹配 buqgg.com head.html
   ============================================ */
.header {
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo img { height: 50px; }
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}
.primary-menu .nav {
    display: flex;
    gap: 5px;
}
.primary-menu .nav li a {
    display: block;
    padding: 10px 18px;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.primary-menu .nav li a:hover,
.primary-menu .nav li.active a {
    background: var(--primary);
    color: #fff;
}

/* ============================================
   Banner轮播
   ============================================ */
.banner-section {
    padding: 30px 0;
    background: var(--bg-color);
}
.banner-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}
.banner-main {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    height: 400px;
}
.banner-main .swiper-slide {
    position: relative;
    height: 100%;
}
.banner-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}
.slide-overlay h3 { font-size: 1.2rem; }
.banner-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.banner-thumb {
    position: relative;
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
}
.banner-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-thumb span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   快捷导航
   ============================================ */
.quick-nav-section {
    padding: 20px 0 30px;
}
.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}
.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}
.quick-nav-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.qn-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #228b22, #8b4513);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #fff;
}
.quick-nav-item span { font-size: 0.9rem; color: var(--text-dark); font-weight: 500; }

/* ============================================
   主内容区
   ============================================ */
.main-wrapper { margin-top: 30px;
    padding: 0 0 50px;
}
.main-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
}
.content-area { min-width: 0; }

/* ============================================
   面板区块
   ============================================ */
.section-panel {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    overflow: hidden;
}
.panel-head {
    padding: 15px 20px;
    border-bottom: 2px solid var(--secondary);
    background: linear-gradient(135deg, #faf8f5, #fff);
}
.panel-head h2 {
    font-size: 1.1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.panel-head h2 i { color: var(--accent); }
.panel-body { padding: 20px; }

/* 今日焦点 LH */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.focus-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: block;
}
.focus-img {
    height: 100px;
    overflow: hidden;
}
.focus-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.focus-item:hover .focus-img img { transform: scale(1.1); }
.focus-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: rgba(139, 69, 19, 0.85);
    color: #fff;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   文章列表 LA
   ============================================ */
.article-list { display: flex; flex-direction: column; gap: 20px; }
.article-item {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}
.article-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.article-img {
    width: 200px;
    height: 140px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.article-item:hover .article-img img { transform: scale(1.05); }
.article-content { flex: 1; }
.article-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.article-content h3 a { color: var(--text-dark); }
.article-content h3 a:hover { color: var(--primary); }
.article-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.6;
}
.article-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* ============================================
   侧边栏
   ============================================ */
.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-widget {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.sidebar-widget h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-widget h3 i { color: var(--accent); }

/* 搜索 */
.search-form {
    display: flex;
    gap: 5px;
}
.search-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
}
.search-form input:focus { border-color: var(--primary); }
.search-form button {
    padding: 10px 15px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* 列表 */
.sidebar-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}
.sidebar-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.sidebar-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}
.sidebar-list a:hover { color: var(--primary); }
.sidebar-list i { color: var(--accent); font-size: 0.75rem; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-color);
    color: var(--text-dark);
    border-radius: 15px;
    font-size: 0.8rem;
    transition: var(--transition);
}
.tag-item:hover { background: var(--accent); color: #fff; }

/* ============================================
   底部
   ============================================ */
.footer {
    background: var(--text-dark);
    color: #a0aec0;
    text-align: center;
    padding: 25px 0;
}
.footer a { color: #fff; }
.footer a:hover { text-decoration: underline; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 1fr; }
    .banner-wrapper { grid-template-columns: 1fr; }
    .banner-side { flex-direction: row; }
    .banner-thumb { height: 120px; }
    .focus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header .container { flex-wrap: wrap; height: auto; padding: 15px 20px; }
    .primary-menu { display: none; width: 100%; }
    .primary-menu.active { display: block; }
    .primary-menu .nav { flex-direction: column; }
    .navbar-toggle { display: block; }
    .banner-main { height: 300px; }
    .banner-side { display: none; }
    .quick-nav-grid { grid-template-columns: repeat(3, 1fr); }
    .article-item { flex-direction: column; }
    .article-img { width: 100%; height: 180px; }
    .focus-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .quick-nav-grid { grid-template-columns: repeat(2, 1fr); }
    .focus-grid { grid-template-columns: 1fr; }
}

/* ============================================
   页面头部
   ============================================ */
.page-header {
    background: linear-gradient(135deg, #8b4513 0%, #228b22 100%);
    padding: 40px 0;
    margin-bottom: 30px;
}
.page-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}
.page-breadcrumb {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}
.page-breadcrumb a { color: #fff; }
.page-breadcrumb a:hover { text-decoration: underline; }

/* ============================================
   文章列表页
   ============================================ */
.sidebar-list .count {
    background: var(--bg-color);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: auto;
}

/* ============================================
   文章详情页
   ============================================ */
.article-detail {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}
.article-header { margin-bottom: 30px; }
.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #228b22, #8b4513);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}
.article-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}
.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
}
.article-body p { margin-bottom: 15px; }
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 15px 0;
}
.article-tags {
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.article-tags i { margin-right: 5px; }

/* ============================================
   相关推荐
   ============================================ */
.related-section { margin-bottom: 30px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.related-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: block;
}
.related-img {
    height: 100px;
    overflow: hidden;
}
.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.related-item:hover .related-img img { transform: scale(1.1); }
.related-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: rgba(139, 69, 19, 0.85);
    color: #fff;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   分页
   ============================================ */
.pagination {
    text-align: center;
    padding: 30px 0;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: var(--transition);
}
.pagination a:hover {
    background: linear-gradient(135deg, #228b22, #8b4513);
    color: #fff;
    border-color: var(--accent);
}
.pagination .active {
    background: linear-gradient(135deg, #228b22, #8b4513);
    color: #fff;
    border-color: var(--accent);
}

@media (max-width: 1024px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .article-detail { padding: 20px; }
    .article-title { font-size: 1.4rem; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
