/*
Theme Name: 码老板主题
Theme URI: 
Description: 基于码老板111133.com样式的WordPress主题，支持文章分类展示
Author: 
Version: 2.0
Text Domain: maboss
*/

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #212121;
    background-color: #FFFFFF;
}

.site {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: #FFFFFF;
}

/* 主容器 - 纵向布局 */
.main-container {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    background: #FFFFFF;
}

/* 头部区域 - AD1和Logo并排 */
.header-area {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px;
    margin-bottom: 0;
    border-bottom: 2px solid #E64A19;
    background: #E64A19; /* 红色背景 */
    gap: 15px;
}

.header-logo-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.site-logo,
.header-logo-left img,
.header-logo-left .custom-logo-link img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    display: block;
}

.header-ad-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-ad-right .ad-content {
    padding: 0;
    background: transparent;
    margin: 0;
}

.header-ad-right .ad-content img {
    max-width: 666px;
    width: 100%;
    height: auto;
    max-height: 60px;
    display: block;
}

.site-title {
    font-size: 24px;
    color: #FFFFFF;
    margin: 0;
    font-weight: normal;
}

/* Logo区域（保留用于其他位置，如果需要） */
.logo-area {
    width: 100%;
    text-align: center;
    padding: 15px 10px;
    margin-bottom: 0;
    border-bottom: 2px solid #E64A19;
    background: #212121;
}

.logo-area img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
}

/* 广告位区域 - 简洁样式 */
.ad-area {
    width: 100%;
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid #757575;
    border-radius: 0;
    overflow: hidden;
    background: #FFFFFF;
}

.ad-label {
    display: none; /* 隐藏标签，保持简洁 */
}

.ad-content {
    padding: 15px 10px;
    min-height: auto;
    background: #FFFFFF;
}

.ad-content img {
    max-width: 666px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 内容区域 C1-C8 - 简洁样式 */
.content-area {
    width: 100%;
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid #757575;
    border-radius: 0;
    overflow: hidden;
    background: #FFFFFF;
}

.content-label {
    display: none; /* 隐藏标签，保持简洁 */
}

.content-item {
    padding: 15px 10px;
    background: #FFFFFF;
}

.content-title {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: normal;
}

.content-title a {
    color: #212121;
    text-decoration: none;
    line-height: 1.5;
}

.content-title a:hover {
    color: #E64A19;
    text-decoration: underline;
}

.content-excerpt {
    font-size: 14px;
    color: #757575;
    line-height: 1.6;
    margin-top: 5px;
}

/* 分类列表区域 L1-L26 - 简洁样式 */
.category-list-area {
    width: 100%;
    margin-bottom: 10px !important;
    margin-top: 0;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #FFFFFF;
    box-sizing: border-box;
    display: block;
    clear: both;
}

/* 分类标题样式 */
.category-title {
    text-align: center !important;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #eee;
    color: #212121;
    margin: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* 为每个分类设置不同颜色的边框（绿色、蓝色、红色循环） */
.category-list-area.list-1,
.category-list-area.list-4,
.category-list-area.list-7,
.category-list-area.list-10,
.category-list-area.list-13,
.category-list-area.list-16,
.category-list-area.list-19,
.category-list-area.list-22,
.category-list-area.list-25 {
    border: 2px solid #4CAF50 !important; /* 绿色 */
    border-width: 2px !important;
    border-style: solid !important;
    border-color: #4CAF50 !important;
}

.category-list-area.list-2,
.category-list-area.list-5,
.category-list-area.list-8,
.category-list-area.list-11,
.category-list-area.list-14,
.category-list-area.list-17,
.category-list-area.list-20,
.category-list-area.list-23,
.category-list-area.list-26 {
    border: 2px solid #2196F3 !important; /* 蓝色 */
    border-width: 2px !important;
    border-style: solid !important;
    border-color: #2196F3 !important;
}

.category-list-area.list-3,
.category-list-area.list-6,
.category-list-area.list-9,
.category-list-area.list-12,
.category-list-area.list-15,
.category-list-area.list-18,
.category-list-area.list-21,
.category-list-area.list-24 {
    border: 2px solid #E64A19 !important; /* 红色 */
    border-width: 2px !important;
    border-style: solid !important;
    border-color: #E64A19 !important;
}

.list-label {
    display: none; /* 隐藏标签，保持简洁 */
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-item {
    border-bottom: 1px solid #eee;
}

.list-item:last-child {
    border-bottom: none;
}

/* 每行深浅色区分 */
.list-item:nth-child(odd) {
    background: #FFFFFF;
}

.list-item:nth-child(even) {
    background: #f9f9f9;
}

.list-link {
    display: block;
    padding: 12px 10px;
    color: #212121;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    font-size: 16px;
    line-height: 1.6;
    text-align: center; /* 标题居中 */
}

.list-link:hover {
    background-color: #E64A19; /* 鼠标悬停红色 */
    color: #FFFFFF;
}

.list-link .period {
    color: #757575;
    margin-right: 5px;
}

.list-link:hover .period {
    color: #FFFFFF;
}

.list-link .name {
    color: #212121;
    font-weight: normal;
}

.list-link:hover .name {
    color: #FFFFFF;
}

.list-link .tag {
    color: #E64A19;
    margin: 0 5px;
}

.list-link:hover .tag {
    color: #FFFFFF;
}

.list-link .desc {
    color: #757575;
}

.list-link:hover .desc {
    color: #FFFFFF;
}

/* 富文本标题样式 */
.list-link strong,
.list-link b {
    font-weight: bold;
}

.list-link em,
.list-link i {
    font-style: italic;
}

.list-link u {
    text-decoration: underline;
}

.list-link s,
.list-link strike {
    text-decoration: line-through;
}

/* 支持内联样式（用于颜色、大小、对齐等） */
.list-link span[style],
.list-link p[style],
.list-link div[style] {
    /* 允许内联样式 */
}

/* 支持文字对齐 */
.list-link p[style*="text-align: center"],
.list-link div[style*="text-align: center"],
.list-link span[style*="text-align: center"] {
    text-align: center;
}

.list-link p[style*="text-align: left"],
.list-link div[style*="text-align: left"],
.list-link span[style*="text-align: left"] {
    text-align: left;
}

.list-link p[style*="text-align: right"],
.list-link div[style*="text-align: right"],
.list-link span[style*="text-align: right"] {
    text-align: right;
}

/* 支持字体大小 */
.list-link span[style*="font-size"],
.list-link p[style*="font-size"],
.list-link div[style*="font-size"],
.list-link font[size] {
    /* 字体大小由内联样式控制 */
}

/* 确保富文本标题中的格式在悬停时保持 */
.list-link:hover strong,
.list-link:hover b,
.list-link:hover em,
.list-link:hover i,
.list-link:hover u,
.list-link:hover s,
.list-link:hover strike {
    /* 保持原有样式 */
}

/* 确保对齐和大小在悬停时也保持 */
.list-link:hover p[style*="text-align"],
.list-link:hover div[style*="text-align"],
.list-link:hover span[style*="text-align"],
.list-link:hover span[style*="font-size"],
.list-link:hover p[style*="font-size"],
.list-link:hover div[style*="font-size"] {
    /* 保持原有样式 */
}

/* 固定按钮区域 - 返回顶部和客服 */
.fixed-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fixed-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1 !important;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    cursor: pointer;
    padding: 0 !important;
    margin: 0;
    box-sizing: border-box;
    /* 确保文本完全居中 */
    position: relative;
    text-indent: 0;
    letter-spacing: 0;
    /* 使用flex确保内容完美居中 */
    flex-shrink: 0;
    /* 确保垂直和水平都居中 */
    vertical-align: middle;
}

.top-btn {
    background: #E64A19;
}

.top-btn:hover {
    background: #D84315;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 74, 25, 0.4);
}

.service-btn {
    background: #212121;
}

.service-btn:hover {
    background: #E64A19;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 33, 33, 0.4);
}

#back-to-top {
    display: none;
}

/* 响应式设计 - 平板 */
@media (min-width: 768px) {
    .site {
        width: 100%;
        max-width: 768px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .main-container {
        width: 100%;
        max-width: 768px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .header-area {
        padding: 20px 15px;
    }
    
    .site-logo,
    .header-logo-left img,
    .header-logo-left .custom-logo-link img,
    .header-ad-right .ad-content img {
        max-height: 70px;
    }
    
    .logo-area {
        padding: 20px 15px;
    }
    
    .logo-area img {
        max-height: 70px;
    }
    
    .ad-content img {
        max-width: 666px;
        width: 100%;
        height: auto;
    }
    
    .ad-content,
    .content-item {
        padding: 18px 15px;
    }
    
    .list-link {
        padding: 14px 15px;
    }
    
    .content-title {
        font-size: 17px;
    }
    
    .fixed-buttons {
        right: 30px;
        bottom: 30px;
    }
    
    .fixed-btn {
        width: 55px;
        height: 55px;
        font-size: 16px;
        line-height: 1 !important;
        padding: 0 !important;
        margin: 0;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* 响应式设计 - 电脑 */
@media (min-width: 1024px) {
    .site {
        width: 100%;
        max-width: 666px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .main-container {
        width: 100%;
        max-width: 666px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .header-area {
        padding: 25px 20px;
    }
    
    .site-logo,
    .header-logo-left img,
    .header-logo-left .custom-logo-link img,
    .header-ad-right .ad-content img {
        max-height: 80px;
    }
    
    .logo-area {
        padding: 25px 20px;
    }
    
    .logo-area img {
        max-height: 80px;
    }
    
    .ad-content img {
        max-width: 666px;
        width: 100%;
        height: auto;
    }
    
    .ad-content,
    .content-item {
        padding: 20px 20px;
    }
    
    .list-link {
        padding: 15px 20px;
    }
    
    .content-title {
        font-size: 18px;
    }
    
    .fixed-buttons {
        right: 40px;
        bottom: 40px;
    }
    
    .fixed-btn {
        width: 60px;
        height: 60px;
        font-size: 18px;
        line-height: 1 !important;
        padding: 0 !important;
        margin: 0;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* 响应式设计 - 大屏幕 */
@media (min-width: 1440px) {
    .site {
        width: 100%;
        max-width: 666px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .main-container {
        width: 100%;
        max-width: 666px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 移动端优化 */
@media (max-width: 767px) {
    .site {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .main-container {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }
    
    .header-area {
        flex-direction: column;
        align-items: center;
        padding: 12px 10px;
        gap: 10px;
    }
    
    .header-logo-left {
        width: 100%;
        justify-content: center;
    }
    
    .header-ad-right {
        width: 100%;
        justify-content: center;
    }
    
    .site-logo,
    .header-logo-left img,
    .header-logo-left .custom-logo-link img,
    .header-ad-right .ad-content img {
        max-height: 50px;
    }
    
    .logo-area {
        padding: 12px 10px;
    }
    
    .logo-area img {
        max-height: 50px;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .ad-content img {
        max-width: 666px;
        width: 100%;
        height: auto;
    }
    
    .ad-content,
    .content-item {
        padding: 12px 10px;
    }
    
    .content-title {
        font-size: 15px;
    }
    
    .content-excerpt {
        font-size: 13px;
    }
    
    .list-link {
        padding: 10px;
        font-size: 13px;
    }
    
    .fixed-buttons {
        right: 15px;
        bottom: 15px;
    }
    
    .fixed-btn {
        width: 45px;
        height: 45px;
        font-size: 12px;
        line-height: 1 !important;
        padding: 0 !important;
        margin: 0;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* 空内容提示 */
.empty-notice {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    background: #FFFFFF;
    border: 2px dashed #757575;
    border-radius: 8px;
    margin: 20px 0;
}

.notice-content h2 {
    color: #212121;
    margin-bottom: 15px;
    font-size: 24px;
}

.notice-content p {
    color: #757575;
    margin-bottom: 10px;
    font-size: 16px;
}

.notice-content ul {
    text-align: left;
    display: inline-block;
    margin: 15px 0;
    color: #757575;
}

.notice-content ul li {
    margin: 8px 0;
    font-size: 15px;
}

.notice-content .button {
    display: inline-block;
    padding: 12px 24px;
    background: #E64A19;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    margin-top: 15px;
    transition: background 0.3s;
}

.notice-content .button:hover {
    background: #D84315;
}


/* 六合彩表格样式 */
.lottery-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}

.lottery-table td {
    padding: 8px 5px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ddd;
    background: #FFFFFF;
}

.lottery-header-col {
    width: auto;
    min-width: 60px;
    white-space: nowrap;
}

.lottery-category {
    color: #0066cc;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.lottery-period {
    color: #212121;
    font-size: 14px;
}

.lottery-number-col {
    width: auto;
    min-width: 50px;
}

.lottery-number {
    padding: 8px 5px;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 16px;
    border-radius: 4px;
    margin-bottom: 5px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottery-red {
    background-color: #FF0000;
}

.lottery-blue {
    background-color: #0066CC;
}

.lottery-green {
    background-color: #00CC00;
}

.lottery-info {
    font-size: 12px;
    padding: 2px 0;
}

.lottery-red-text {
    color: #FF0000;
}

.lottery-blue-text {
    color: #0066CC;
}

.lottery-green-text {
    color: #00CC00;
}

.lottery-plus {
    font-size: 18px;
    font-weight: bold;
    color: #212121;
    background: #FFFFFF;
    width: 30px;
}

/* 响应式：移动端优化 */
@media (max-width: 767px) {
    .lottery-table {
        font-size: 12px;
    }
    
    .lottery-number {
        font-size: 14px;
        padding: 6px 4px;
        min-height: 28px;
    }
    
    .lottery-info {
        font-size: 11px;
    }
    
    .lottery-category {
        font-size: 14px;
    }
    
    .lottery-period {
        font-size: 12px;
    }
}

/* 工具类 */
.g-filter * {
    box-sizing: border-box;
}

.g-filter img {
    display: inline;
    max-width: 100%;
    height: auto;
}
