html, body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 禁止水平滚动 */
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    touch-action: pan-y; /* 只允许垂直滑动 */
    background-color: #f4f4f4;
    a {
        text-decoration: none;
    }
}

/* 列表容器 */
.fb-list-container {
    padding: 5px 0 5px 0;
    background: #f4f4f4;
    min-height: 100vh;
}

/* 卡片 */
.fb-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin: 12px 16px;
    padding: 16px 16px 12px 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    overflow: hidden;
}

/* 彩带 */
.fb-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    z-index: 2;
}

.fb-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent #ff6b35 transparent transparent;
    z-index: 1;
}

.fb-ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 35px 35px 0;
    border-color: transparent rgba(252, 56, 56, 1) transparent transparent;
    z-index: 2;
}

.fb-ribbon-winner {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    z-index: 2;
}

.fb-ribbon-winner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent rgba(252, 56, 56, 1) transparent transparent;
    z-index: 1;
}

.fb-ribbon-winner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 35px 35px 0;
    border-color: transparent rgba(252, 56, 56, 1) transparent transparent;
    z-index: 2;
}

.fb-ribbon-winner .winner-text {
    position: absolute;
    top: 8px;
    right: 2px;
    transform: rotate(45deg);
    font-size: 9px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 3;
    letter-spacing: 0.3px;
}

/* 标题 */
.fb-title {
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 6px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 彩种和时间 */
.fb-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 6px;
}
.fb-meta .fb-type {
    margin-right: 12px;
    color: #222;
}

.fb-status {
    font-size: 15px;
    margin-right: 10px;
}
.fb-status a {
    font-size: 13px;
    color: #1677ff;
    text-decoration: underline;
    cursor: pointer;
}
.fb-status a:visited {
    color: #1677ff;
}
.fb-status a:hover {
    color: #0958d9;
    text-decoration: underline;
}
.fb-status-success {
    color: #4caf50;
}
.fb-status-fail {
    color: #ff4d4f;
}
.fb-status-wait {
    color: #ff9800;
}

.fb-coin {
    color: #ff6a00;
    font-size: 16px;
    font-weight: bold;
    margin-left: auto;
}
.fb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0 0 0;
}
.fb-pagination button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 32px;
    font-size: 16px;
    margin: 0 16px;
    color: #333;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}
.fb-pagination button:active {
    background: #f4511e;
    color: #fff;
}

.fb-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 12px 0;
    text-align: center;
    z-index: 10;
}

@media (max-width: 400px) {
    .fb-card { font-size: 15px; padding: 12px 8px 10px 8px; }
    .fb-title { font-size: 15px; }
    .fb-meta { font-size: 12px; }
    .fb-coin { font-size: 14px; }
    .fb-pagination button { font-size: 14px; padding: 6px 18px; }
}

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