body {
    margin: 0;
    font-family: -apple-system;
    background: #f5f6f8;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #333;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    display: none;
}

.topbar {
    background: #1677ff;
    color: #fff;
    padding: 14px;
    font-weight: 600;
    text-align: center;
}

.topbar .back {
    float: left;
    color: #fff;
    text-decoration: none;
}

/* 今日收益 */
.today-box {
    margin: 10px;
    padding: 14px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
}

/* 风险 */
.risk-filter {
    display: flex;
    gap: 8px;
    padding: 10px;
}

.risk-filter button {
    flex: 1;
    border: none;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    font-weight: bold;
}

.risk-filter .active {
    color: #fff;
    background: #1677ff;
}

/* 区块标题 */
.section-title {
    padding: 10px;
    font-weight: 600;
}

/* ===== 横向滑动区域 ===== */
.h-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 0 10px 10px;
}

.h-card {
    min-width: 140px;
    background: #fff;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.h-card .rate {
    font-size: 18px;
    color: #1677ff;
    font-weight: 700;
}

.h-card .meta {
    font-size: 12px;
    color: #666;
}

.h-card .mini {
    font-size: 12px;
    margin-top: 6px;
    color: #999;
}

/* ===== 列表卡片 ===== */
.list {
    padding: 10px;
}

.card {
    background: #fff;
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.row {
    display: flex;
    justify-content: space-between;
}

.title {
    font-weight: 600;
    margin-bottom: 10px;
}

.tag {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    max-height: 18px;
}

.Low {
    background: #e8fff1;
    color: #00a870;
}

.Medium {
    background: #fff7e6;
    color: #fa8c16;
}

.High {
    background: #fff1f0;
    color: #ff4d4f;
}

.big {
    font-size: 22px;
    color: #1677ff;
    font-weight: 700;
    margin-top: 6px;
}

.row2 {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* 热度条 */
.bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    margin-top: 8px;
}

.bar div {
    height: 6px;
    background: #1677ff;
    border-radius: 10px;
}

canvas {
    width: 100%;
    height: 180px;
}

.clickable {
    cursor: pointer;
    transition: 0.2s;
}

.clickable:active {
    transform: scale(0.98);
}

/* 产品描述 */
.desc {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* 点击提示（关键） */
.hint {
    margin-top: 10px;
    font-size: 12px;
    color: #1677ff;
    text-align: right;
}

/* 增强卡片层级 */
.card {
    background: #fff;
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.desc {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    line-height: 1.5;
}

.info-box {
    margin-top: 10px;
    font-size: 13px;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.warn {
    margin-top: 10px;
    font-size: 12px;
    color: #ff4d4f;
    background: #fff1f0;
    padding: 8px;
    border-radius: 8px;
}

.banner {
    margin: 10px;
    border-radius: 16px;
    overflow: hidden;
    height: 208px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#money {
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #666;
}

#money:focus {
    outline: none;
    /* 移除聚焦时的外边框 */
    border: 1px solid #666;
}

.card button {
    padding: 5px 8px;
    border-radius: 5px;
    background: #1677ff;
    color: #fff;
    border: none;
}

#result {
    margin: 10px 0;
}