/* 预测标题栏样式 */
.prediction-header {
    background-color: #f5f5f5;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.prediction-header.success-header {
    background-color: #e8f5e9;
    border-color: #c8e6c9;
}

.header-badge {
    margin-right: 10px;
}

.header-icons {
    margin-left: auto;
}

.prediction-header .header-badge {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prediction-header .header-badge i {
    font-size: 24px;
}

.prediction-header .header-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prediction-header span {
    flex-grow: 1;
    text-align: center;
}

.prediction-header .header-icons {
    color: white;
}

.master-detail {
    padding-top: 88px; /* 增加顶部内边距，为两个标题栏腾出空间 */
}

.page-header {
    top: 44px; /* 将原标题栏下移 */
}

/* 解锁内容样式 */
.unlocked-content {
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-top: 15px;
}

.payment-success-message {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f1fff0;
    border-radius: 8px;
    color: #41b93e;
    border: 1px solid #c3edc1;
}

.payment-success-message i {
    font-size: 24px;
    color: #41b93e;
    margin-bottom: 10px;
    display: block;
}

.payment-success-message h3 {
    font-size: 18px;
    margin: 10px 0;
}

.payment-success-message p {
    font-size: 14px;
    color: #555;
}

.prediction-content {
    margin-top: 10px;
}

.content-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.content-container {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    white-space: pre-line;
}

/* 预测图片样式 */
.prediction-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    background-color: #f1f1f1;
    border-radius: 8px;
    overflow: hidden;
    min-height: 100px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.image-wrapper.loaded {
    opacity: 1;
}

.prediction-image {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 支付状态检查样式 */
.payment-status-check {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.status-text {
    font-size: 14px;
    color: #666;
}

.status-success {
    color: #4CAF50;
}

.status-error {
    color: #f44336;
}

.retry-payment-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
}

.retry-payment-btn:hover {
    background-color: #388E3C;
}

/* 添加已购买和解锁内容的样式 */

/* 六合彩号码背景 */
.lhc-numbers-line {
    text-align: center;
    margin-bottom: 0.8rem;
}
.lhc-numbers-line .lhc-number {
    display: inline-block;
    width: 2.6rem;
    height: 2.6rem;
    line-height: 2.6rem;
    text-align: center;
    margin: 0.2rem;
    border-radius: 50%;
    font-weight: bold;
}
.lhc-number.red {
    background: #e32222;
    color: #fff;
}
.lhc-number.green {
    background: #3ba33b;
    color: #fff;
}
.lhc-number.blue {
    background: #2757a7;
    color: #fff;
}
.lhc-special-mark {
    margin: 0 0.2rem;
    font-size: 1.4rem;
    vertical-align: middle;
    font-weight: bold;
}

@media (max-width: 480px) {
    .lhc-numbers-line .lhc-number {
        width: 2rem;
        height: 2rem;
        line-height: 2rem;
        margin: 0.1rem;
        font-size: 0.9rem;
    }
    .lhc-special-mark {
        font-size: 1.2rem;
    }
}

.purchased-badge {
    display: inline-flex;
    align-items: center;
    background-color: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
}

.purchased-badge i {
    margin-right: 4px;
}

.unlocked-banner {
    display: flex;
    align-items: center;
    background-color: #e6f7ff;
    color: #1890ff;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    border-left: 4px solid #1890ff;
}

.unlocked-banner i {
    margin-right: 8px;
    font-size: 16px;
}

/* 确保锁定内容样式一致 */
.content-lock {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.lock-icon {
    font-size: 16px;
    color: #ff6700;
    margin-bottom: 15px;
}

.price-info {
    margin-bottom: 15px;
}

.price-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.notice-text {
    font-size: 12px;
    color: #999;
}

.payment-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.btn-wechat, .btn-alipay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.btn-wechat {
    background-color: #09BB07;
    color: white;
}

.btn-alipay {
    background-color: #1677FF;
    color: white;
}

.payment-icon {
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

.btn-view {
    background-color: #ff6700;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
}

.unlocked-content {
    padding: 10px;
    background-color: #fff;
    border-radius: 4px;
}

/* 高亮文本 */
.highlight-text {
    line-height: 1.8;
    color: #333;
}

.highlight-text strong {
    color: #ff6700;
    font-weight: bold;
}

/* 新增手动解锁按钮样式 */
.payment-timeout {
    padding: 10px;
    margin-top: 10px;
}

/* 大师卡片标题样式 */
.master-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 确保标题中的内容都在一行显示 */
.master-title > * {
    display: inline-block;
}

/* 强制所有大师卡片标题水平显示 - 不依赖JavaScript处理 */
.master-title, 
h3.master-title, 
h2.master-title, 
.master-card .master-title, 
.master-item .master-title, 
.master-info .master-title {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
}

/* 确保所有大师标题内元素水平排列 */
.master-title span, 
.master-title div, 
.master-title i, 
.master-title strong, 
.master-title em {
    display: inline-flex !important;
    margin-right: 4px !important;
    white-space: nowrap !important;
}

/* 特殊处理，针对250420期这样的格式 */
.master-title:not([data-hklhc-processed]) {
    display: flex !important;
    flex-direction: row !important;
}

/* 修改搜索框和大师列表的间距 */
.search-box + .masters-container,
.search-box + h2 + .masters-container,
.search-box + div + .masters-container,
.search-box + h2,
.search-box + .section-title,
.search-box + div + h2 {
    margin-top: 0 !important;
}

/* 推荐大师标题与搜索框无缝连接 */
h2.section-title,
h2.recommend-title,
.section-title,
.recommend-title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 10px 15px !important;
    background: white !important;
    border-bottom: 1px solid #eee !important;
    border-top: 1px solid #eee !important;
}

/* 确保搜索框底部圆角消除 */
.search-box {
    border-radius: 8px 8px 0 0 !important;
    margin-bottom: 0 !important;
}

/* 确保大师列表容器的顶部间距为0 */
.masters-container {
    margin-top: 0 !important;
}

/* 所有页面通用的搜索框和大师列表无缝连接 */
.search-box,
.search-bar,
.search-input-wrapper,
.prediction-tabs,
.content-tabs {
    margin-bottom: 0 !important;
    border-radius: 8px 8px 0 0 !important;
}

.search-tip {
    padding-bottom: 5px !important;
}

.tab-header {
    margin-bottom: 0 !important;
}

.container > .masters-section,
.masters-section,
.masters-container,
.masters-list,
.masters-grid,
.master-grid {
    margin-top: 0 !important;
    border-radius: 0 0 8px 8px !important;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .master-title {
        font-size: 14px;
        gap: 4px;
    }
}

/* 确保大师卡片底部的发布时间在一行显示 */
.master-time, 
.master-footer .master-time {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
}

.master-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 命中率徽章样式 */
.hit-rate-badge {
    display: inline-block !important;
    color: #cc0000 !important;
    background-color: #fff !important;
    border: 1px solid #cc0000 !important;
    border-radius: 4px !important;
    padding: 2px 4px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin-left: 5px !important;
    font-weight: normal !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.master-card .hit-rate-badge {
    position: relative;
    top: 0;
    margin-top: 5px;
    display: inline-block !important;
}

/* 确保介绍中的内容能正常显示 */
.master-intro {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px 0;
    line-height: 1.5;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
    display: block !important;
} 