html, body {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #f6f7fb;
    color: #222;
}

.page {
    padding: 12px;
}

.shortcut {
    margin-top: 12px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.shortcut-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #ff6a00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
}

.shortcut-icon.small {
    font-size: 14px;
    line-height: 1.1;
    text-align: center;
    padding: 6px;
    box-sizing: border-box;
}

.shortcut-info .title {
    font-size: 16px;
    color: #222;
    font-weight: 700;
}

.shortcut-info .desc {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.arrow {
    margin-left: auto;
    color: #bbb;
    font-size: 24px;
    line-height: 1;
}

.ds-person-info {
    margin-top: 12px;
}

.ds-person-info .expert-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
    border: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.expert-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.expert-meta {
    display: flex;
    flex-direction: row;
}

.expert-name {
    font-size: 16px;
    font-weight: 800;
    color: #222;
}

/* 历史总分析准确次数 */
.expert-brief {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.expert-total-accuracy {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.expert-total-accuracy .label {
    font-size: 12px;
    color: #5c6773;
}
.expert-total-accuracy .value {
    font-size: 13px;
    color: #ff6a00;
    font-weight: 700;
}

.expert-skill {
    margin-left: auto;
    text-align: right;
}

.expert-skill .skill-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 6px;
}

.expert-skill .skill-title {
    font-size: 14px;
    color: #5c6773;
    font-weight: 700;
    letter-spacing: .5px;
}

.expert-skill .skill-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.expert-skill .skill-badge {
    display: inline-block;
    padding: 6px 10px;
    background: linear-gradient(180deg, #fff, #f7f8fa);
    color: #ff6a00;
    border: 1px solid #ffd9c2;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(255, 106, 0, .08);
}

.expert-skill .skill-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 106, 0, .15);
}

.lottery-selector {
    display: grid;
    grid-template-columns:repeat(8, 1fr);
    gap: 1px;
    padding-bottom: 0;
}

.lottery-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    border-radius: 999px;
    border: 1px solid #eee;
    background: #fff;
    color: #333;
    font-size: 11px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .03);
    min-width: 0;
}

.lottery-option .label {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lottery-option.active {
    background: #ff6a00;
    color: #fff;
    border-color: #ff6a00;
    box-shadow: 0 6px 16px rgba(255, 106, 0, .25);
}


/* Insights */
.insights {
    display: grid;
    grid-template-columns:1fr 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.insight-card {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
    border: 1px solid #f0f0f0;
}

.insight-title {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.insight-value {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 800;
    color: #222;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.insight-value .unit {
    font-size: 11px;
    color: #999;
}

.insight-sub {
    margin-top: 4px;
    font-size: 11px;
    color: #999;
}

.insight-progress {
    margin-top: 8px;
    width: 100%;
    height: 6px;
    background: #f1f2f6;
    border-radius: 999px;
    overflow: hidden;
}

.insight-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ff9a3d, #ff6a00);
    transition: width .35s ease;
}

.stars {
    margin-top: 6px;
    color: #ffd166;
}

.stars .star {
    font-size: 16px;
    color: #ddd;
}

.stars .star.on {
    color: #ffd166;
}

@media (max-width: 360px) {
    .insights {
        grid-template-columns:1fr;
    }
}

/* Trend */
.ds-person-trend {
    margin-top: 5px;
    background: #fff;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
    border: 1px solid #f0f0f0;
}

.ds-person-trend .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ds-person-trend .section-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.best-record {
    display: flex;
    align-items: center;
}

.best-record-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 4px 8px;
    background: #fff7f0;
    border: 1px solid #ffd9c2;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.best-record-link:hover {
    background: #fff0e6;
    border-color: #ffc299;
}

.best-label {
    font-size: 11px;
    color: #ff6a00;
    font-weight: 600;
}

.best-value {
    font-size: 12px;
    color: #ff6a00;
    font-weight: 700;
}

.trend-chart {
    margin: 2px 0;
}

#trendChart {
    width: 100%;
    height: auto;
    display: block;
}

.axis-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.tick-label {
    font-size: 10px;
    color: #999;
}

.no-data {
    font-size: 14px;
    color: #999;
}

.trend-legend {
    margin-top: 6px;
    font-size: 11px;
    color: #999;
}

/* 专家预测文章列表样式覆盖 */
.ds-person-forecast {
    margin-top: 12px;
}

.ds-person-forecast .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ds-person-forecast .section-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.ds-person-forecast .expert-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
    border: 1px solid #f0f0f0;
}

.ds-person-forecast .expert-item {
    position: relative;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.ds-person-forecast .expert-item:last-child {
    border-bottom: none;
}

.ds-person-forecast .expert-item:hover {
    background-color: #fafafa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

/* 已中奖徽章样式 */
.won-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #f44336;
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 0 12px 0 8px;
    transform: rotate(45deg) translate(8px, -8px);
    z-index: 1;
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3);
}

/* 分页按钮样式覆盖 */
.ds-person-forecast .pagination {
    background: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1px;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #f0f0f0;
}

.ds-person-forecast .page-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
}

.ds-person-forecast .page-btn:hover:not(:disabled) {
    background: #f57c00;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.ds-person-forecast .page-btn:active:not(:disabled) {
    background: #e65100;
    transform: translateY(0);
}

.ds-person-forecast .page-btn:disabled {
    cursor: not-allowed;
    background: #ccc !important;
    opacity: 0.5;
}

.ds-person-forecast .page-btn:disabled:hover {
    background: #ccc !important;
    transform: none;
    box-shadow: none;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .ds-person-forecast .expert-item {
        padding: 12px 15px;
    }

    .ds-person-forecast .pagination {
        padding: 12px 15px;
        gap: 8px;
    }

    .ds-person-forecast .page-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 50px;
    }
}

/* Modal */
.modal[hidden] {
    display: none !important;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.modal-content {
    position: relative;
    width: 88%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    overflow: hidden;
}

.modal-header {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.modal-close {
    appearance: none;
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 12px 14px;
}

.num-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.num-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: #fff7f0;
    color: #ff6a00;
    border: 1px solid #ffd9c2;
    border-radius: 999px;
    font-weight: 700;
}

.modal-tip {
    margin-top: 8px;
    font-size: 11px;
    color: #999;
}

.empty {
    color: #999;
    font-size: 13px;
}

/* PC端布局（>=767px） */
@media (min-width: 767px) {
    body {
        width: 80%;
        margin: 0 auto;
    }

    main.page {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: min-content;
        gap: 12px;
        align-items: stretch;
    }

    .ds-person-info {
        grid-column: 1 / -1;
    }

    .ds-person-trend, .ds-person-forecast {
        margin-top: 0;
        height: 100%;
    }

    /* 统一两列视觉样式与等高容器 */
    .ds-person-forecast {
        background: #fff;
        border-radius: 12px;
        padding: 5px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
        border: 1px solid #f0f0f0;
        height: 100%;
    }

    .ds-person-forecast .expert-list {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .ds-person-forecast .pagination {
        background: transparent;
        border-top: none;
        border-radius: 0;
    }
}

