/*
Theme Name: 彩票预测主题
Theme URI: https://lottery.local
Description: H5 移动端响应式彩票主题
Version: 2.0
Author: Lottery Admin
Text Domain: lottery-theme
*/

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* 容器 */
.container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 顶部头 */
.header {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-title {
    flex: 1;
    font-size: 16px;
    font-weight: bold;
}

.header-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* 内容区 */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    padding-bottom: 80px;
}

/* 卡片 */
.post-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-card:active {
    background: #f9f9f9;
    transform: scale(0.98);
}

.post-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.post-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.post-tags {
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    background: #ff5566;
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #ff3333;
    margin: 8px 0;
}

.preview {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    max-height: 60px;
    overflow: hidden;
    line-height: 1.4;
}

.detail-btn {
    background: #0066cc;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s;
}

.detail-btn:active {
    background: #0052a3;
}

/* 详情页 */
.detail-header {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 20px;
}

.detail-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.detail-meta {
    font-size: 12px;
    opacity: 0.9;
}

.detail-price {
    font-size: 22px;
    font-weight: bold;
    color: #ffeb3b;
    margin-top: 10px;
}

/* 锁定提示 */
.lock-box {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px;
}

.lock-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.lock-text {
    color: #856404;
    font-size: 16px;
    margin: 10px 0;
    font-weight: bold;
}

.btn-buy,
.btn-share {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px 5px;
    transition: all 0.3s;
}

.btn-buy {
    background: #0066cc;
    color: white;
}

.btn-buy:active {
    background: #0052a3;
}

.btn-share {
    background: #27ae60;
    color: white;
}

.btn-share:active {
    background: #1e8449;
}

/* 内容 */
.content-body {
    padding: 20px;
    padding-bottom: 100px;
}

.paid-content {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
    margin: 20px 0;
}

.paid-title {
    color: #0066cc;
    font-weight: bold;
    margin-bottom: 10px;
}

.related-posts {
    margin: 20px 0;
}

.related-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.related-item {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #0066cc;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.related-item:active {
    background: #e8e8e8;
}

/* 底部导航 */
.nav-bottom {
    display: flex;
    border-top: 1px solid #e0e0e0;
    background: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    z-index: 99;
}

.nav-item {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.nav-item:active {
    background: #f0f0f0;
}

.nav-item.active {
    color: #0066cc;
}

/* 响应式 */
@media (max-width: 600px) {
    .container {
        max-width: 100%;
        border-radius: 0;
    }
    
    .header {
        padding: 10px;
    }
    
    .header-title {
        font-size: 14px;
    }
    
    .content {
        padding: 10px;
    }
    
    .post-card {
        padding: 14px;
        margin-bottom: 10px;
    }
    
    .post-title {
        font-size: 14px;
    }
    
    .price {
        font-size: 16px;
    }
    
    .detail-title {
        font-size: 18px;
    }
    
    .nav-item {
        font-size: 11px;
        padding: 8px;
    }
}

/* PC 端隐藏底部导航 */
@media (min-width: 768px) {
    .nav-bottom {
        display: none;
    }
}
