/* 茶叶网站通用主题样式 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    min-width: 320px;
    display: flex;
    flex-direction: column;
}

/* 页面内容包装器 */
.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Header 可复用组件 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #606266;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
}

/* 通用悬停颜色效果 */
.nav-menu a:hover, 
.nav-menu a.active,
.tag:hover,
.footer-links a:hover,
.copyright a:hover {
    color: #ee1a1a;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 40px 8px 15px;
    border: 1px solid #EBEEF5;
    border-radius: 20px;
    width: 200px;
    font-size: 14px;
    line-height: 14px;
}

.search-input:active, .search-input:focus {
    outline: none;
    border-color: #EBEEF5;
}

input::placeholder {
    color: #C0C4CC;
}

input:focus::placeholder {
    color: #C0C4CC;
}

.search-btn {
    position: absolute;
    top: 7px;
    right: 10px;
    background: none;
    border: none;
    color: #909399;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.search-btn svg {
    width: 16px;
    height: 16px;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #606266;
}


/* Main Layout */
.main-container {
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    gap: 20px;
    padding: 0 20px;
    flex: 1;
}

.content-area {
    flex: 1;
}



/* 分类筛选 */
.category-filter {
    background: #fff;
    padding: 4px 0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.filter-tab {
    padding: 8px 12px;
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
    background: none;
    border: none;
}

.filter-tab:hover, .filter-tab.active {
    color: #ee1a1a;
    text-decoration: none;
}

/* 通用内容区块 */
.section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

.section-more {
    color: #909399;
    text-decoration: none;
    font-size: 14px;
}



/* Right Sidebar 可复用组件 */
.sidebar {
    width: 360px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-header {
    padding: 20px;
    background: #ee1a1a;
    color: white;
    font-weight: bold;
}

.widget-content {
    padding: 20px;
}


.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.tag {
    color: #333333;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}



/* 分页样式 */
.pagination-nav {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* 兼容单纯分页组件的样式 */
.pagination-container.simple {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.pagination {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: inline-block;
    padding: 8px 4px;
    color: #6c757d;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s;
    width: 44px;
    text-align: center;
    background-color: #fff;
}

.page-link:hover {
    color: #ee1a1a;
    background-color: #f8f9fa;
    border-color: #ee1a1a;
    text-decoration: none;
}

.page-item.active .page-link {
    color: #fff;
    background-color: #ee1a1a;
    border-color: #ee1a1a;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #dee2e6;
    opacity: 0.5;
}

.pagination-info {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
}

/* Footer 可复用组件 */
.footer {
    background: #333;
    color: #ccc;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}


.copyright {
    font-size: 12px;
    color: #999;
}

.copyright a {
    color: #999;
    text-decoration: none;
}


/* 悬浮按钮组件 */
.float-button-container {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.float-button {
    background: #ee1a1a;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(238, 26, 26, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.float-button:hover {
    background: #d91717;
    box-shadow: 0 6px 16px rgba(238, 26, 26, 0.5);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .nav-menu {
        display: none;
    }


    .filter-tabs {
        justify-content: flex-start;
        gap: 10px;
    }

    .filter-tab {
        padding: 6px 15px;
        font-size: 12px;
    }


    .pagination-container {
        padding: 0 15px;
    }
    
    .page-link {
        padding: 6px 4px;
        width: 36px;
        font-size: 12px;
    }
    
    .pagination-info {
        font-size: 12px;
    }

    .section {
        padding: 12px;
    }

    .float-button-container {
        display: block;
    }
    
}



