/*
Theme Name: 800tuan
Theme URI: http://wwww.800tuan.com
Author: 八百团
Author URI: http://wwww.800tuan.com
Description: 800tuan 专用 WordPress 模板。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 800tuan
*/

/* 基础重置与排版可按需扩展 */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #f7f7f7;
    color: #333;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    color: #005177;
    text-decoration: underline;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.top-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.top-logo img {
    max-height: 60px;
    display: block;
}

.top-banner img {
    max-height: 90px;
    max-width: 100%;
    height: auto;
}

/* 站点头部样式 */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.site-title {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: bold;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.site-title a:hover {
    color: #0073aa;
    text-decoration: none;
}

.site-description {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
}

/* 主导航菜单样式 */
.main-navigation {
    margin-top: 15px;
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.primary-menu li {
    margin: 0;
    padding: 0;
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    color: #0073aa;
    background-color: #f0f0f0;
    border-bottom-color: #0073aa;
}

/* 下拉子菜单样式 */
.primary-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 999;
    display: none;
}

.primary-menu li:hover > .sub-menu {
    display: block;
}

.primary-menu .sub-menu li {
    width: 100%;
}

.primary-menu .sub-menu a {
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.primary-menu .sub-menu a:hover {
    background-color: #f8f8f8;
}

/* 移动端菜单响应式（可选，可根据需要调整） */
@media (max-width: 768px) {
    .primary-menu {
        flex-direction: column;
    }
    
    .primary-menu .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        margin-left: 20px;
    }
    
    .primary-menu li:hover > .sub-menu {
        display: block;
    }
}

/* 广告LOGO区域样式 */
.ad-logo-section {
    margin: 20px 0;
    padding: 15px 0;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.ad-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 100%;
}

.ad-logo-item {
    text-align: center;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px; /* 固定高度 */
}

.ad-logo-item:hover {
    transform: translateY(-3px);
}

.ad-logo-link {
    display: flex;
    text-decoration: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.ad-logo-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 保持比例，完整显示 */
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    background-color: #fff;
    padding: 5px;
    box-sizing: border-box;
}

.ad-logo-link:hover .ad-logo-img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 移动端广告LOGO响应式 */
@media (max-width: 768px) {
    .ad-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .ad-logo-item {
        height: 80px; /* 移动端固定高度 */
    }
}

@media (max-width: 480px) {
    .ad-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .ad-logo-item {
        height: 70px; /* 小屏幕固定高度 */
    }
}

.site-main {
    padding: 20px 0;
}

.site-footer {
    text-align: center;
    padding: 20px 0;
    color: #777;
    font-size: 14px;
}


