body {
    background: #f7f7f7;
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 禁止水平滚动 */
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    touch-action: pan-y; /* 只允许垂直滑动 */

    a {
        text-decoration: none;
    }
}

html, body {
    height: 100%;
}

.header {
    background: rgba(17, 80, 153, 1);
    height: 50px;
    line-height: 50px;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .back {
    width: 20%;
    height: 50px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header .back::before {
    content: '';
    display: block;
    width: 35px;
    height: 35px;
    background: url(../icon/back.png) center center no-repeat;
    background-size: 35px;
}

.header h1 {
    width: 60%;
    font-size: 20px;
    color: #fff;
    text-shadow: 1px 1px 1px #f4511e;
    text-align: center;
    margin: 0;
    padding: 0;
}

.header .more {
    width: 20%;
    height: 50px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 10px;
}

.header .more::before {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    background: url(../icon/more.png) center center no-repeat;
    background-size: 28px;
}

.user-info-box {
    background: rgba(17, 80, 153, 1);
    display: flex;
    align-items: center;
    padding: 5px 5px 5px 10px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    flex-wrap: nowrap;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(166, 166, 166, 1);
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    margin-right: 16px;
    white-space: nowrap;
    flex-shrink: 0;
}

.user-meta {
    flex: 1;
    min-width: 0;
}

.user-auth {
    font-size: 16px;
    color: #fff;
    margin-top: 2px;
}

.auth-red {
    color: #ff3b30;
    font-weight: bold;
}

.user-desc {
    font-size: 11px;
    color: #fff;
    margin-top: 2px;
}

.auth-blue {
    color: #ff3b30;
    font-weight: bold;
}

.qs-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 0 8px;
    margin-bottom: 8px;
}

.qs-tabs a {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    color: #333;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.qs-tabs a.active {
    color: #ff7f0e;
    border-bottom: 2px solid #ff7f0e;
    font-weight: bold;
}

.history-section {
    padding: 0 0 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.history-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 12px 12px 8px 12px;
}

.history-title img {
    width: 18px;
    height: 18px;
}

.history-table {
    table-layout: fixed;
    width: 96%;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    font-size: 15px;
    border: 1px solid #ccc;
}

.history-table th, .history-table td {
    border: 1px solid #ccc;
    padding: 8px 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    cursor: pointer;
}

.history-table th {
    background: rgba(229, 229, 229, 0.7);
    color: #888;
    font-weight: normal;
}

.history-table td {
    color: #333;
}

.history-table th:nth-child(1),
.history-table td:nth-child(1) {
    background: rgba(229, 229, 229, 0.7);
    max-width: 40px;
    min-width: 40px;
    width: 40px;
}

.history-table th:nth-child(2),
.history-table td:nth-child(2) {
    max-width: 60px;
    min-width: 40px;
    width: 80px;
}

.history-table th:nth-child(3),
.history-table td:nth-child(3) {
    max-width: 60px;
    min-width: 40px;
    width: 80px;
}

.history-table th:nth-child(4),
.history-table td:nth-child(4) {
    max-width: 50px;
    min-width: 40px;
    width: 35px;
}

.hit {
    color: #ff3b30;
    font-weight: bold;
}

.miss {
    color: #bbb;
}

.history-table td.cell-ellipsis {
    text-align: center;
}

.history-table td.cell-ellipsis:last-child {
    position: relative;
    padding-right: 24px;
    color: red;
}

.history-table td.cell-ellipsis:last-child::after {
    content: '';
    display: inline-block;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: url('/assets/m/icon/xlk.png') no-repeat center center/contain;
}

.relate-section {
    background: #fff;
    padding-bottom: 16px;
}

.relate-title {
    background: rgba(229, 229, 229, 0.66);
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 12px 12px 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.relate-more {
    color: #888;
    font-size: 14px;
    cursor: pointer;
}

.relate-list {
    list-style: none;
    margin: 0;
    padding: 0 12px;
}

.relate-list li {
    background: rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    border-bottom: 1px solid hsl(0, 0%, 94%);
    padding: 5px 0;
}

.relate-rank {
    width: 24px;
    text-align: center;
    font-size: 16px;
    color: #333;;
    font-weight: bold;
}

.relate-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 8px;
    border: 1.5px solid rgba(166, 166, 166, 1);;
}

.relate-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.relate-name {
    flex: 1;
    font-size: 15px;
    color: #333;
    margin-left: 4px;
}

.relate-score {
    color: red;
    font-weight: bold;
}

.relate-score-z {
    color: #000;
    font-size: 0.2em;
    margin-left: 2px;
}

.filter-btn {
    cursor: pointer;
    padding: 1px 4px;
    border-radius: 4px;
    margin: 0 1px;
    color: #333;
    background: #f2f2f2;
    transition: background 0.2s, color 0.2s;
}

.filter-btn.active {
    background: #ff7f0e;
    color: #fff;
}

.yuce-type-select {
    background: #ff7f0e;
    color: #fff;
    font-size: 12px;
    border-radius: 8px;
    padding: 2px 8px;
    font-weight: bold;
    border: none;
    outline: none;
    margin-left: 12px;
    margin-top: 12px;
    appearance: none;
    -webkit-appearance: none;
    min-width: 70px;
}

.yuce-type-select option {
    color: #333;
    background: #fff;
}

.yuce-type-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.yuce-type-arrow {
    margin-left: 2px;
}

.yuce-type-modal {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yuce-type-modal .modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px 16px 16px 16px;
    min-width: 320px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.qs-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);

}

.qs-info-djs {
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qs-info-issue {
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

.qs-info-countdown {
    color: #7d5fff;
    font-size: 20px;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

.qs-info-pay-btn {
    background: #ff7f0e;
    color: #fff;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: background 0.2s;
    cursor: pointer;
}

.qs-info-pay-btn:hover {
    background: #ff7f0e;
}

/* 添加禁用状态样式 */
.qs-info-pay-btn.disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    color: #666;
}

.qs-info-subscribe-btn {
    background: #28a745;
    color: #fff;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: background 0.2s;
    cursor: pointer;
}

.qs-info-subscribe-btn:hover {
    background: #218838;
}

.qs-info-subscribe-btn a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.yuce-type-s {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4); /* 半透明遮罩 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.yuce-type-s .modal-content {
    border-radius: 12px;
    padding: 24px 16px;
    min-width: 240px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.yuce-type-s .type-btn {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.yuce-type-s .type-btn.selected,
.yuce-type-s .type-btn:active {
    background: #1976ff;
    color: #fff;
    border-color: #1976ff;
}

/* 迁移自 zhiBiaoUser.html 的内联样式 */
#yuCeTypes {
    display: none;
}

#payConfirmModal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#payConfirmModal.show {
    opacity: 1;
}

#payConfirmModal .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 22px 14px;
    border-radius: 16px;
    max-width: 80vw;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

#payConfirmModal.show .modal-content {
    transform: scale(1) translateY(0);
}

#payConfirmModal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1976ff 0%, #115099 100%);
}

#payConfirmText {
    margin-bottom: 24px;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}

#payConfirmYes, #payConfirmNo {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    min-width: 80px;
    margin: 0 8px;
}

#payConfirmYes {
    background: linear-gradient(135deg, #ff7f0e 0%, #ba5802 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(25, 118, 255, 0.3);
}

#payConfirmYes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 255, 0.4);
}

#payConfirmNo {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e0e0e0;
}

#payConfirmNo:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-1px);
}

#subscribeBtn {
    display: none;
}

#ruleBtn {
    cursor: pointer;
}

#remarkContent {
    display: none;
}

#allYcModal {
    display: none;
    z-index: 10000;
}

#allYcModalContent {
    width: 90vw;
    max-width: 600px;
    max-height: 80vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    position: relative;
}

/* 移动端布局 - 默认单列 */
.content-grid {
    display: block;
}

.relate-section {
    background: #fff;
    padding-bottom: 16px;
}

/* PC端布局 - 767px及以上 */
@media (min-width: 767px) {
    body {
        width: 80%;
        margin: 0 auto;
        background: #f5f7fa;
    }

    /* 主容器 */
    .main-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        background: #fff;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        min-height: 100vh;
    }

    /* PC端头部样式 */
    .header {
        height: 60px;
        line-height: 60px;
        background: linear-gradient(135deg, #115099 0%, #1e3a8a 100%);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 8px 8px;
        margin-bottom: 20px;
    }

    .header .back {
        width: 15%;
        padding-left: 20px;
    }

    .header .back::before {
        width: 40px;
        height: 40px;
        background-size: 40px;
    }

    .header h1 {
        font-size: 24px;
        font-weight: 600;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .header .more {
        width: 15%;
        padding-right: 20px;
    }

    .header .more::before {
        width: 32px;
        height: 32px;
        background-size: 32px;
    }

    /* PC端用户信息区域 */
    .user-info-box {
        background: linear-gradient(135deg, #115099 0%, #1e3a8a 100%);
        padding: 20px 30px;
        border-radius: 12px;
        margin: 0 20px 20px 20px;
        box-shadow: 0 4px 15px rgba(17, 80, 153, 0.2);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .user-info {
        display: flex;
        align-items: center;
        flex-direction: row;
    }

    .user-avatar {
        width: 60px;
        height: 60px;
        margin-right: 20px;
        border: 3px solid rgba(255, 255, 255, 0.3);
    }

    .user-name {
        font-size: 20px;
        margin-right: 0;
        margin-bottom: 0;
    }

    .user-meta {
        text-align: right;
        flex: 1;
    }

    .user-auth {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .user-desc {
        font-size: 14px;
        opacity: 0.9;
    }

    /* PC端预测类型选择 */
    .yuce-type-select-box {
        margin-left: 20px;
    }

    .yuce-type-btn {
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.3);
        color: #fff;
        padding: 12px 20px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        min-width: 200px;
    }

    .yuce-type-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
    }

    /* PC端期数标签 */
    .qs-tabs {
        margin: 0 20px 20px 20px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .qs-tabs a {
        padding: 15px 0;
        font-size: 16px;
        font-weight: 500;
    }

    /* PC端信息栏 */
    .qs-info-bar {
        margin: 0 20px 20px 20px;
        height: 70px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }

    .qs-info-djs {
        padding: 0 50px;
    }

    .qs-info-issue {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .qs-info-countdown {
        font-size: 24px;
        font-weight: bold;
    }

    .qs-info-pay-btn,
    .qs-info-subscribe-btn {
        font-size: 20px;
        padding: 0 30px;
        border-radius: 8px;
    }

    /* PC端内容区域两列布局 */
    .content-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin: 0 20px 20px 20px;
    }

    /* PC端历史成绩区域 */
    .history-section {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: visible;
        background: #fff;
        min-height: 400px;
    }

    .history-title {
        font-size: 18px;
        padding: 20px 20px 15px 20px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }

    .history-table {
        width: 100%;
        font-size: 14px;
        border: 1px solid #e0e0e0;
        table-layout: fixed;
        margin: 0;
        border-collapse: collapse;
    }

    .history-table th,
    .history-table td {
        padding: 12px 6px;
        font-size: 14px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .history-table th {
        background: #f8f9fa;
        font-weight: 600;
        color: #495057;
    }

    .history-table th:nth-child(1),
    .history-table td:nth-child(1) {
        width: 20%;
    }

    .history-table th:nth-child(2),
    .history-table td:nth-child(2) {
        width: 30%;
    }

    .history-table th:nth-child(3),
    .history-table td:nth-child(3) {
        width: 30%;
    }

    .history-table th:nth-child(4),
    .history-table td:nth-child(4) {
        width: 20%;
    }

    /* PC端相关推荐区域 */
    .relate-section {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .relate-title {
        font-size: 18px;
        padding: 20px 20px 15px 20px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }

    .relate-list {
        padding: 0 20px 20px 20px;
    }

    .relate-list li {
        padding: 2px 0;
        border-radius: 6px;
        margin-bottom: 2px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .relate-rank {
        width: 40px;
        font-size: 18px;
    }

    .relate-avatar {
        width: 40px;
        height: 40px;
        margin: 0 15px;
    }

    .relate-name {
        font-size: 16px;
    }

    .relate-score {
        font-size: 16px;
    }

    /* PC端弹窗样式 */
    .yuce-type-s .modal-content {
        min-width: 500px;
        padding: 30px 20px;
    }

    .type-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .yuce-type-s .type-btn {
        padding: 15px 0;
        font-size: 18px;
    }

    #allYcModalContent {
        max-width: 800px;
        padding: 30px;
    }

    #payConfirmModal .modal-content {
        max-width: 500px;
        width: 450px;
        padding: 40px 30px;
    }
    
    #payConfirmText {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    #payConfirmYes, #payConfirmNo {
        padding: 14px 28px;
        font-size: 18px;
        min-width: 100px;
        margin: 0 12px;
    }

    /* PC端侧边栏调整 */
    .sidebar {
        width: 300px;
    }

    .sidebar-header h3 {
        font-size: 20px;
    }

    .lottery-section {
        margin: 15px 0;
    }

    .lottery-title {
        font-size: 16px;
        padding: 12px 15px;
    }

    .lottery-link {
        font-size: 14px;
        padding: 8px 15px;
    }
}
