/* --- 微信公众号引导区域 --- */
.wechat-guide {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 2px solid #1890ff;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
}

.wechat-title {
    font-size: 16px;
    font-weight: bold;
    color: #1890ff;
    margin-bottom: 15px;
}

.wechat-qr {
    margin: 15px 0;
}

.wechat-qr img {
    max-width: 200px;
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background: #fff;
}

.wechat-info {
    margin-top: 15px;
}

.wechat-info p {
    margin: 10px 0;
    font-size: 15px;
}

#wechat-name {
    color: #1890ff;
    font-size: 16px;
}

.copy-btn {
    background: #1890ff;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.copy-btn:hover {
    background: #096dd9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-tip {
    margin-top: 10px;
    font-size: 14px;
    color: #52c41a;
    font-weight: bold;
    min-height: 20px;
}

/* --- 面包屑优化 --- */
.breadcrumbs {
    font-size: 14px;
    margin-bottom: 15px;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.crumb-sep {
    color: #999;
    margin: 0 5px;
}

.current-crumb {
    color: #666;
    font-weight: bold;
}

/* --- 返回链接优化 --- */
.back-links {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 2;
}

.back-links a {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.back-links a:hover {
    background: #1890ff;
    color: #fff;
    text-decoration: none;
}

/* --- 文章元信息 --- */
.post-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* --- 移动端优化 --- */
@media (max-width: 480px) {
    .wechat-guide {
        padding: 15px;
    }
    
    .wechat-qr img {
        max-width: 160px;
    }
    
    .copy-btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .back-links a {
        display: block;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .breadcrumbs {
        font-size: 13px;
        flex-wrap: wrap;
    }
}
/* =========================================
   茂名 365 - 移动端适配与列表美化样式
   ========================================= */

/* --- 全局重置与基础设定 --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    /* 为底部固定栏预留空间 */
    padding-bottom: 80px; 
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- 顶部 Header (若主题已有可忽略，若无则生效) --- */
.header {
    padding: 15px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo { font-size: 1.5rem; font-weight: 900; color: #000; letter-spacing: -1px; }
.logo span { color: #d93025; }

/* --- 面包屑导航优化 --- */
.breadcrumbs {
    font-size: 14px;
    padding: 10px 16px;
    border-bottom: 1px dashed #eee;
    background: #fafafa;
    overflow-x: auto;
    white-space: nowrap;
    color: #666;
}
.breadcrumbs a { color: #666; }
.breadcrumbs a:hover { color: #1890ff; }
.crumb-sep { color: #999; margin: 0 5px; }
.current-crumb { color: #333; font-weight: bold; }

/* --- 返回链接区域 --- */
.back-links {
    padding: 12px 16px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.back-links a {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    color: #333;
    font-size: 13px;
}
.back-links a:hover {
    background: #1890ff;
    color: #fff;
}

/* --- 主标题与元信息 --- */
.main-title-area {
    padding: 15px 16px 10px;
}
.main-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin-bottom: 8px;
}
.post-meta {
    font-size: 13px;
    color: #999;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* --- 核心文章列表 (无卡片，清爽列表) --- */
.content-list {
    padding: 0 16px;
}
.list-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.list-item:last-child { border-bottom: none; }

.item-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.item-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.item-meta {
    font-size: 0.75rem;
    color: #aaa;
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

/* --- 微信公众号引导区域 (重点美化) --- */
.wechat-guide {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 2px solid #1890ff;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 16px;
    text-align: center;
}
.wechat-title {
    font-size: 16px;
    font-weight: bold;
    color: #1890ff;
    margin-bottom: 15px;
}
.wechat-qr {
    margin: 15px 0;
}
.wechat-qr img {
    max-width: 200px;
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background: #fff;
    margin: 0 auto;
}
.wechat-info {
    margin-top: 15px;
}
.wechat-info p {
    margin: 10px 0;
    font-size: 15px;
    color: #333;
}
#wechat-name {
    color: #1890ff;
    font-size: 16px;
    font-weight: bold;
}
.copy-btn {
    background: #1890ff;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
    width: 100%;
    max-width: 240px;
}
.copy-btn:active {
    transform: translateY(0);
    background: #096dd9;
}
.copy-tip {
    margin-top: 10px;
    font-size: 14px;
    color: #52c41a;
    font-weight: bold;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    visibility: hidden;
}
.copy-tip.show {
    opacity: 1;
    visibility: visible;
}

/* --- 分页样式 --- */
.pagination {
    margin: 30px 0;
    text-align: center;
    font-size: 14px;
}
.page-numbers {
    display: inline-flex;
    gap: 5px;
}
.page-numbers a, .page-numbers span {
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #666;
}
.page-numbers .current {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}
.page-numbers a:hover {
    border-color: #1890ff;
    color: #1890ff;
}

/* --- 底部固定操作栏 (适配全面屏) --- */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-between;
    gap: 10px;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}
.btn-action {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    background: #f5f5f5;
    color: #333;
    font-size: 0.85rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}
.btn-action:active { background: #e0e0e0; }
.btn-primary {
    background: #d93025;
    color: white;
}
.btn-primary:active { background: #b91c1c; }

/* --- 移动端媒体查询优化 --- */
@media (max-width: 480px) {
    body { font-size: 15px; }
    .main-title { font-size: 1.2rem; }
    .item-title { font-size: 1rem; }
    
    .wechat-guide {
        padding: 15px;
        margin: 20px 16px;
    }
    .wechat-qr img {
        max-width: 160px;
    }
    .copy-btn {
        width: 100%;
        padding: 14px 20px;
    }
    .back-links {
        flex-direction: column;
    }
    .back-links a {
        width: 100%;
        text-align: center;
    }
}

/* --- 大屏优化 (防止内容过宽) --- */
@media (min-width: 768px) {
    .site-main {
        max-width: 600px;
        margin: 0 auto;
        border-left: 1px solid #eee;
        border-right: 1px solid #eee;
        min-height: 100vh;
    }
    .bottom-bar {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
    }
}