/*
Theme Name: 白月光工作室
Theme URI: 
Author: baiyueguang
Author URI: https://bai500.com
Description: 澳门白月光专业六合彩资讯主题，支持开奖数据展示、生肖统计、历史记录查询等功能。
Version: 1.0.0
License: GPL v2 or later
Text Domain: mirage
*/

/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px;
}

/* ========== 导航栏 ========== */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 4px 0;
}

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

.logo a {
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    color: #1a1a2e;
}

/* 主菜单 */
.primary-menu {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}

.primary-menu li a:hover {
    color: #0071e3;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ========== 双栏布局 ========== */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 15px;
    margin: 10px 0;
}

/* ========== 文章卡片标题 ========== */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 32px 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

/* ========== 左右布局卡片（博客风格） ========== */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.post-card-horizontal {
    display: flex;
    gap: 15px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    align-items: flex-start;
}

.post-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* 左侧缩略图 - PC版 */
.post-thumbnail {
    flex-shrink: 0;
    width: 300px;
    overflow: hidden;
    border-radius: 16px;
    line-height: 0;
    font-size: 0;
}

.post-thumbnail a {
    display: block;
    height: 100%;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.post-card-horizontal:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* ========== 右侧内容（PC版） ========== */
.post-content-right {
    flex: 1;
    padding: 15px 15px 15px 25px;
    word-break: break-word;
    overflow: hidden;
}

/* 文章标题 */
.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    word-break: break-word;
}

.post-title a {
    text-decoration: none;
    color: #1d1d1f;
}

.post-title a:hover {
    color: #0071e3;
}

/* 文章页标题大小（单独控制） */
.single .post-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* 元数据 */
.post-meta-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #8e8e93;
}

.post-meta-horizontal span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 去掉分类链接下划线 */
.post-meta-horizontal a {
    text-decoration: none;
    color: #8e8e93;
}

.post-meta-horizontal a:hover {
    color: #0071e3;
    text-decoration: underline;
}

/* 文章页横线样式 */
hr {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 15px 0;
}

/* 摘要 */
.post-excerpt {
    font-size: 0.85rem;
    color: #6c6c70;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* 标签容器 */
.post-tags-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* 首页标签基础样式 */
.tag-link {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    color: white;
}

/* 5种颜色循环显示 */
.post-tags-horizontal .tag-link:nth-child(5n+1) { background: #e74c3c; }
.post-tags-horizontal .tag-link:nth-child(5n+2) { background: #3498db; }
.post-tags-horizontal .tag-link:nth-child(5n+3) { background: #2ecc71; }
.post-tags-horizontal .tag-link:nth-child(5n+4) { background: #f39c12; }
.post-tags-horizontal .tag-link:nth-child(5n+5) { background: #9b59b6; }

.tag-link:hover {
    transform: translateY(-2px);
    filter: brightness(0.85);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 置顶标签 */
.sticky-badge {
    background: #ffab00;
    color: #1d1d1f;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-left: 8px;
}

/* ========== 侧边栏 ========== */
.sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

/* 搜索框 */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.9rem;
}

.search-form button {
    background: #0071e3;
    color: white;
    border: none;
    padding: 0 18px;
    border-radius: 30px;
    cursor: pointer;
}

/* 侧边栏文章列表 */
.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-widget li a {
    text-decoration: none;
    color: #333;
}

/* ========== 分页导航 ========== */
.pagination {
    text-align: center;
    margin: 10px 0 0px;
}

.pagination .page-numbers {
    display: inline-block;
    background: white;
    color: #1d1d1f;
    padding: 12px 18px;
    margin: 0 5px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    min-width: 48px;
    text-align: center;
}

.pagination .page-numbers:hover {
    background: #f0f0f5;
    border-color: #ddd;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.pagination .current {
    background: linear-gradient(135deg, #0071e3 0%, #0071e3 100%);
    color: white;
    border: none;
    cursor: default;
    box-shadow: 0 4px 12px rgba(30,60,114,0.3);
}

.pagination .current:hover {
    transform: none;
    background: linear-gradient(135deg, #0071e3 0%, #0071e3 100%);
}

.pagination .prev,
.pagination .next {
    padding: 12px 24px;
    font-weight: 500;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #0071e3;
    color: white;
    border-color: #0071e3;
}

.pagination .dots {
    background: transparent;
    box-shadow: none;
    border: none;
    cursor: default;
    padding: 12px 8px;
}

.pagination .dots:hover {
    background: transparent;
    transform: none;
    border: none;
}

/* ========== 页脚 ========== */
.footer {
    background: #1d1d1f;
    color: #aaa;
    padding: 48px 0 32px;
    margin-top: 10px;
    text-align: center;
    font-size: 0.8rem;
}

.footer a {
    color: #aaa;
    text-decoration: none;
}

/* ========== 页面专用样式 ========== */
.page-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 0;
}

.page-content-wrapper {
    padding: 40px;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1d1d1f;
    line-height: 1.3;
}

.page-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #1d1d1f;
}

.page-content p {
    margin-bottom: 1.2em;
}

.page-content h2 {
    font-size: 1.3rem;
    margin: 1.5em 0 0.5em;
}

.page-content h3 {
    font-size: 1.3rem;
    margin: 1.2em 0 0.5em;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* 手机版页面样式 */
@media (max-width: 768px) {
    .page-content-wrapper {
        padding: 24px;
    }
    
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
}

/* ========== 上下篇导航 ========== */
.post-nav-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 0;
    border-top: none;
}

.nav-card {
    flex: 1;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.nav-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.nav-card-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    padding: 15px;
}

.nav-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

.nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-label {
    font-size: 0.7rem;
    color: #8e8e93;
    letter-spacing: 1px;
}

.nav-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1d1d1f;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-card:hover .nav-title {
    color: #0071e3;
}

/* 手机版 */
@media (max-width: 768px) {
    .post-nav-cards {
        flex-direction: column;
        gap: 12px;
    }
}


/* ========== 新广告样式（竖排图片 + 彩色小卡片） ========== */

/* 图片广告区域 - 竖排显示 */
.ad-banner-images {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 5px;
}

.ad-image-item {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f7;
}

.ad-image-item a {
    display: block;
    line-height: 0;
}

.ad-image-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

.ad-image-item:hover img {
    transform: scale(1.02);
}

/* 超链接小卡片（PC端：每行4个）- 透明背景，无边框 */
.link-ads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 10px;
}

/* 超链接小卡片（PC端：每行4个）- 透明背景 + 虚线边框 */
.link-ads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 10px;
}

.link-ad-card {
    border-radius: 12px;
    padding: 8px 6px;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
    background: transparent;
    border: 1px dashed #ccc;  /* 添加虚线边框，浅灰色 */
    box-shadow: none;
}

.link-ad-card:hover {
    transform: translateY(-3px);
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed #999;  /* 悬停时边框变深 */
}

.link-ad-card a {
    text-decoration: none;
    color: #555;
    display: block;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* ========== 手机版适配 ========== */
@media (max-width: 768px) {
    /* 图片广告竖排保持不变 */
    .ad-banner-images {
        gap: 3px;
    }
    
    /* 手机版：超链接小卡片每行4个 */
    .link-ads-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
    
    .link-ad-card {
        padding: 8px 3px;
    }
    
    .link-ad-card a {
        font-size: 0.7rem;
    }
}

/* ========== 超小手机适配 ========== */
@media (max-width: 480px) {
    /* 超小手机也保持每行4个 */
    .link-ads-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
    
    .link-ad-card {
        padding: 6px 2px;
    }
    
    .link-ad-card a {
        font-size: 0.8rem;
    }
}

/* ========== 超小手机适配 ========== */
@media (max-width: 480px) {
    /* 超小手机也保持每行4个 */
    .link-ads-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
    
    .link-ad-card {
        padding: 6px 2px;
    }
    
    .link-ad-card a {
        font-size: 0.8rem;
    }
}


/* ========== 开奖结果卡片样式 ========== */
.lottery-result {
    margin-bottom: 2px;
}

.lottery-card {
    background: transparent;
    border-radius: 16px;  /* 添加圆角 */
    padding: 8px;        /* 添加内边距 */
    margin-bottom: 10px;
    box-shadow: none;
    border: 1px dashed #ccc;  /* 添加虚线边框 */
}

.lottery-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 5px;
    padding-bottom: 10px;
    border-bottom: none;
}

.lottery-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.lottery-auto-time {
    font-size: 0.85rem;
    color: #8e8e93;
}

.lottery-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 12px;
}

.lottery-expect {
    font-weight: 600;
    color: #0071e3;
    font-size: 1rem;
}

.lottery-time {
    font-size: 0.85rem;
    color: #6c6c70;
}

.lottery-items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.lottery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lottery-ball {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ball-number {
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.lottery-ball.red { background: radial-gradient(circle at 30% 30%, #ff7875, #f5222d); }
.lottery-ball.blue { background: radial-gradient(circle at 30% 30%, #69c0ff, #1890ff); }
.lottery-ball.green { background: radial-gradient(circle at 30% 30%, #95de64, #389e0d); }

.lottery-zodiac {
    font-size: 14px;
    font-weight: 500;
    color: #6c6c70;
    text-align: center;
}

.lottery-plus {
    font-size: 32px;
    font-weight: bold;
    color: #ffab00;
    margin: 0 5px;
}

.lottery-placeholder {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 16px;
}

.lottery-refresh {
    display: inline-block;
    cursor: pointer;
    background: #0071e3;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.lottery-refresh:hover {
    background: #005bb5;
    transform: translateY(-2px);
}

/* ========== 侧边栏六合彩样式 ========== */
.lotto-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lotto-history-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #e9ecef;
}

.lotto-history-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.lotto-period {
    font-weight: bold;
    color: #d43f3a;
    font-size: 14px;
}

.lotto-date {
    font-size: 11px;
    color: #8e8e93;
}

.lotto-history-balls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.lotto-history-ball-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.lotto-history-ball {
    width: 100%;
    max-width: 38px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.lotto-history-zodiac {
    font-size: 13px;
    color: #6c6c70;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.lotto-history-plus {
    font-size: 16px;
    font-weight: bold;
    color: #ffab00;
    flex-shrink: 0;
    padding: 0 2px;
}

.lotto-bose-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bose-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bose-row:last-child {
    border-bottom: none;
}

.bose-sx {
    width: 35px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: center;
    flex-shrink: 0;
}

.bose-balls {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.bose-ball {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.lotto-history-ball.red,
.bose-ball.red {
    background: radial-gradient(circle at 30% 30%, #ff7875, #f5222d);
}

.lotto-history-ball.blue,
.bose-ball.blue {
    background: radial-gradient(circle at 30% 30%, #69c0ff, #1890ff);
}

.lotto-history-ball.green,
.bose-ball.green {
    background: radial-gradient(circle at 30% 30%, #95de64, #389e0d);
}

/* ========== 响应式（手机版）- 已优化放大 ========== */
@media (max-width: 768px) {
    /* 导航栏 */
    .primary-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 16px;
        padding: 20px 0;
        background: white;
    }
    .primary-menu.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    
    /* 布局 */
    .home-grid,
    .single-grid {
        grid-template-columns: 1fr;
    }
    
    /* 侧边栏 */
    .sidebar {
        position: static;
    }
    
    /* 文章卡片 - 手机版（放大间距） */
    .post-card-horizontal {
        gap: 14px;
        align-items: flex-start;
    }
    
    /* 卡片列表间距增大 */
    .card-list {
        gap: 16px;
    }
    
    /* 手机版缩略图（放大图片） */
    .post-thumbnail {
        width: 120px;
        border-radius: 12px;
        line-height: 0;
        font-size: 0;
    }
    
    .post-thumbnail img {
        height: 85px;
        width: 120px;
        object-fit: cover;
        display: block;
    }
    
    /* 右侧内容 */
    .post-content-right {
        padding: 8px 8px 8px 8px;
    }
    
    /* 文章标题（字体调大） */
    .post-title {
        font-size: 1rem;
        margin-bottom: 6px;
        line-height: 1.4;
        font-weight: 600;
    }
    
    /* 手机版：首页隐藏元数据 */
.home .post-meta-horizontal {
    display: none;
}

/* 手机版：文章页显示元数据（和PC版一样） */
.single .post-meta-horizontal {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    margin-top: 8px;
    margin-bottom: 12px;
}
    
    /* 手机版显示摘要（字体调大） */
    .post-excerpt {
        display: block;
        font-size: 0.9rem;
        line-height: 1.45;
        margin-top: 5px;
        margin-bottom: 0;
        color: #6c6c70;
    }
    
    /* 手机版隐藏标签 */
    .post-tags-horizontal {
        display: none;
    }
    
    /* 分页手机版 */
    .pagination .page-numbers {
        padding: 8px 12px;
        margin: 0 3px;
        font-size: 0.8rem;
        min-width: 38px;
    }
    
    .pagination .prev,
    .pagination .next {
        padding: 8px 14px;
    }
    
    /* 开奖结果手机版 */
    .lottery-title {
        font-size: 1.3rem;
    }
    
    .lottery-auto-time {
        font-size: 0.7rem;
    }
    
    .lottery-items {
        gap: 8px;
    }
    
    .lottery-ball {
        width: 45px;
        height: 45px;
    }
    
    .ball-number {
        font-size: 18px;
    }
    
    .lottery-zodiac {
        font-size: 10px;
    }
    
    .lottery-plus {
        font-size: 20px;
    }
    
    /* 侧边栏六合彩手机版 */
    .lotto-history-ball {
        font-size: 10px;
        max-width: 30px;
    }
    
    .lotto-history-zodiac {
        font-size: 8px;
    }
    
    .lotto-history-plus {
        font-size: 12px;
    }
    
    .bose-sx {
        width: 28px;
        font-size: 14px;
    }
    
    .bose-ball {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    /* 面包屑手机版适配 */
    .breadcrumb {
        font-size: 0.7rem;
        margin-bottom: 12px;
        white-space: normal;
        word-break: break-word;
    }

    /* 评论区域手机版优化 */
    .comments-area {
        padding: 18px;
        margin-top: 20px;
    }

    .comment-content {
        padding-left: 40px;
        font-size: 0.85rem;
    }

    .comment-author .avatar {
        width: 32px;
        height: 32px;
    }

    .comment-author .fn {
        font-size: 0.85rem;
    }

    .comment-meta {
        font-size: 0.65rem;
    }

    .comment-form-comment textarea {
        font-size: 0.85rem;
        padding: 10px;
    }

    .submit-btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .comment-captcha {
        padding: 12px;
    }

    .comment-captcha input {
        width: 120px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* 超小手机 */
@media (max-width: 480px) {
    .lottery-items {
        gap: 6px;
    }
    
    .lottery-ball {
        width: 40px;
        height: 40px;
    }
    
    .ball-number {
        font-size: 16px;
    }
    
    .lottery-zodiac {
        font-size: 15px;
    }
    
    .lottery-plus {
        font-size: 18px;
    }
    
    .lotto-history-ball {
        font-size: 14px;
        max-width: 26px;
    }
    
    .lotto-history-zodiac {
        font-size: 12px;
    }
    
    .bose-ball {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .bose-sx {
        width: 24px;
        font-size: 15px;
    }
    
    /* 超小手机卡片进一步调整 */
    .post-thumbnail {
        width: 130px;
    }
    
    .post-thumbnail img {
        height: 91px;
        width: 130px;
    }
    
    .post-title {
        font-size: 0.95rem;
    }
    
    .post-excerpt {
        font-size: 0.85rem;
    }
}

/* ========== 文章页标签样式 ========== */
.post-tags {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.post-tags .tags-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1d1d1f;
    background: #f0f0f5;
    padding: 6px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-tags a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    color: white;
}

.post-tags a:nth-child(1) { background: #e74c3c; }
.post-tags a:nth-child(2) { background: #3498db; }
.post-tags a:nth-child(3) { background: #2ecc71; }
.post-tags a:nth-child(4) { background: #f39c12; }
.post-tags a:nth-child(5) { background: #9b59b6; }
.post-tags a:nth-child(6) { background: #1abc9c; }
.post-tags a:nth-child(7) { background: #e67e22; }
.post-tags a:nth-child(8) { background: #34495e; }
.post-tags a:nth-child(9) { background: #16a085; }
.post-tags a:nth-child(10) { background: #d35400; }

.post-tags a:hover,
.tag-link:hover {
    transform: translateY(-2px);
    filter: brightness(0.85);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ========== 面包屑导航样式 ========== */
.breadcrumb {
    font-size: 0.8rem;
    color: #8e8e93;
    margin-bottom: 15px;
    padding: 0;
    line-height: 1.4;
}

.breadcrumb a {
    text-decoration: none;
    color: #8e8e93;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #0071e3;
    text-decoration: underline;
}

/* ========== 评论区域样式 ========== */
.comments-area {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.comments-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.comment-list {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

.comment {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.comment-author .fn {
    font-weight: 600;
    color: #1d1d1f;
    font-size: 0.95rem;
}

.comment-meta {
    font-size: 0.7rem;
    color: #8e8e93;
    margin-left: auto;
}

.comment-content {
    padding-left: 52px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #6c6c70;
}

.comment-reply-link {
    font-size: 0.7rem;
    text-decoration: none;
    color: #0071e3;
    margin-left: 52px;
    display: inline-block;
    margin-top: 8px;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

.comment-respond {
    margin-top: 25px;
}

.comment-reply-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.comment-form-comment {
    margin-bottom: 20px;
}

.comment-form-comment label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: #0071e3;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 15px;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.85rem;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: #0071e3;
}

.submit-btn {
    background: #0071e3;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    margin-top: 5px;
}

.submit-btn:hover {
    background: #005bb5;
    transform: translateY(-2px);
}

.comment-captcha {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.captcha-image {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-image img {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.captcha-refresh {
    background: #f0f0f5;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.7rem;
    color: #555;
    transition: all 0.2s;
}

.captcha-refresh:hover {
    background: #0071e3;
    color: white;
}

.comment-captcha label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 6px;
}

.comment-captcha input {
    width: 150px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ========== 返回顶部按钮 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #0071e3;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: #005bb5;
}

/* 移动端所有页面隐藏侧边栏 */
@media (max-width: 768px) {
    .sidebar,
    #secondary,
    aside.sidebar,
    .widget-area {
        display: none !important;
    }
    
    /* 所有双栏布局变成单栏 */
    .home-grid,
    .archive-grid,
    .single-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* 主内容占满全宽 */
    .content-area,
    .main-content {
        width: 100% !important;
    }
}


/* ========== 弹窗广告样式 ========== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.popup-container {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #0071e3 0%, #0071e3 100%);
    color: white;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.popup-close:hover {
    background: rgba(255,255,255,0.2);
}

.popup-content {
    padding: 25px;
    text-align: center;
}

.popup-logo {
    font-size: 2rem;
    font-weight: bold;
    color: #0071e3;
    margin-bottom: 20px;
    padding: 10px;
    background: #f0f7ff;
    border-radius: 60px;
    display: inline-block;
    width: auto;
}

.popup-content p {
    margin: 12px 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    text-align: left;
}

.popup-content p:first-of-type {
    text-align: center;
    color: #333;
}

.popup-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.popup-btn {
    background: #0071e3;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.popup-btn:hover {
    background: #005bb5;
    transform: scale(1.02);
}

/* 手机版 */
@media (max-width: 768px) {
    .popup-container {
        width: 85%;
        max-width: 350px;
    }
    .popup-content {
        padding: 20px;
    }
    .popup-content p {
        font-size: 0.8rem;
    }
    .popup-logo {
        font-size: 1.5rem;
    }
}


/* 弹窗底部按钮样式 */
.popup-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.popup-btn {
    background: #0071e3;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.popup-btn:hover {
    background: #005bb5;
    transform: scale(1.02);
    text-decoration: none;
}

/* 百度按钮不同颜色 */
.popup-btn-link {
    background: #e74c3c;
    text-decoration: none;
}

.popup-btn-link:hover {
    background: #c0392b;
    text-decoration: none;
}

/* 同时控制 H1 及其内部链接的样式 */
.logo h1, 
.logo h1 a {
    font-size: 1.5rem !important; /* 强行覆盖字号 */
    font-weight: bold !important;  /* 确保加粗 */
    color: #ff0000 !important;     /* 确保变成纯正的红色 */
    text-decoration: none;         /* 额外加上这行：去掉链接自带的下划线 */
}
/* 文章图片边距 */
.wp-block-image img,
.wp-block-image,
.page-content img,
article img {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}