/* ---------- 首页首屏：随机名画（2026-12-01） ---------- */

/* 顶部标题行改为左侧橙条 + 一行副标题 */
.home-lead {
    padding: 18px 0 16px;
    background: #faf8f4;
    border-bottom: 0;
}

.home-lead .hl-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.home-lead h1 {
    position: relative;
    margin: 0;
    padding-left: 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
    color: #1f2740;
    line-height: 1.5;
}

.home-lead h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 16px;
    margin-top: -8px;
    border-radius: 2px;
    background: #e85a44;
}

.home-lead p {
    margin: 0;
    max-width: none;
    font-size: 12.5px;
    line-height: 1.7;
    color: #98a1b5;
}

/* ---------- 名画卡片区 ---------- */
.home-art {
    padding: 14px 0 46px;
    background: #faf8f4;
}

.ha-head {
    text-align: center;
    padding: 22px 0 24px;
}

.ha-head h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #1f2740;
}

.ha-head h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 32px;
    height: 3px;
    margin-left: -16px;
    border-radius: 2px;
    background: #e85a44;
}

.ha-head p {
    margin: 12px 0 0;
    font-size: 12.5px;
    color: #9aa3b8;
}

/* 主卡片 */
.ha-card {
    display: flex;
    min-height: 430px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 34px rgba(28, 43, 92, .08);
}

.ha-card.ha-fade {
    animation: haFade .34s ease;
}

@keyframes haFade {
    from { opacity: .35; transform: translateY(7px); }
    to   { opacity: 1;   transform: translateY(0); }
}

.ha-visual {
    flex: 0 0 46%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef1f8;
    overflow: hidden;
}

.ha-visual img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
}

.ha-info {
    flex: 1;
    min-width: 0;
    padding: 34px 40px 30px;
    display: flex;
    flex-direction: column;
}

.ha-tag {
    font-size: 12px;
    letter-spacing: .6px;
    color: #b3bbcd;
}

.ha-info h3 {
    margin: 10px 0 8px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.28;
    color: #1f2740;
}

.ha-meta {
    margin: 0 0 14px;
    font-size: 13px;
    color: #8b93a8;
}

.ha-desc {
    flex: 1;
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.92;
    color: #5a6478;
}

/* 色块 */
.ha-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.ha-sw {
    position: relative;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .14s, box-shadow .14s;
}

.ha-sw:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 6px 14px rgba(28, 43, 92, .16);
}

.ha-sw.is-copied {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e85a44;
}

/* 复制成功后在色块上打勾，深色浅色都看得见 */
.ha-sw.is-copied::after {
    content: "✓";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 3px rgba(0, 0, 0, .6), 0 1px 2px rgba(0, 0, 0, .55);
    pointer-events: none;
}

.ha-hint {
    margin: 0 0 20px;
    font-size: 11.5px;
    color: #b3bbcd;
    transition: color .14s;
}

.ha-hint.is-err {
    color: #d9534f;
}

/* 按钮 */
.ha-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ha-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 13px 28px;
    border: 0;
    border-radius: 24px;
    background: #e85a44;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s, transform .16s, box-shadow .16s;
}

.ha-btn-main:hover {
    background: #d64a35;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(232, 90, 68, .3);
}

.ha-btn-ico {
    font-size: 14px;
    line-height: 1;
}

.ha-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 13px 24px;
    border: 1px solid #e2e7f2;
    border-radius: 24px;
    background: #fff;
    color: #45506e;
    font-size: 13.5px;
    text-decoration: none !important;
    transition: border-color .16s, color .16s;
}

.ha-btn-ghost:hover {
    border-color: #c9d3ea;
    color: #1f2740;
    text-decoration: none !important;
}

/* 底部「浏览全部名画」 */
.ha-foot {
    margin-top: 26px;
    text-align: center;
}

.ha-btn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 26px;
    border: 1px solid #e6eaf4;
    border-radius: 24px;
    background: #fff;
    color: #5a6478;
    font-size: 13px;
    text-decoration: none !important;
    transition: border-color .16s, color .16s, box-shadow .16s;
}

.ha-btn-more:hover {
    border-color: #c9d3ea;
    color: #1f2740;
    box-shadow: 0 6px 16px rgba(28, 43, 92, .08);
    text-decoration: none !important;
}

/* 响应式 */
@media (max-width: 991px) {
    .ha-card {
        flex-direction: column;
        min-height: 0;
    }
    .ha-visual {
        flex: none;
        height: 300px;
    }
    .ha-info {
        padding: 24px 22px 26px;
    }
    .ha-info h3 {
        font-size: 22px;
    }
    .ha-head h2 {
        font-size: 20px;
    }
}

@media (max-width: 575px) {
    .home-lead .hl-row {
        display: block;
    }
    .home-lead p {
        margin-top: 6px;
        padding-left: 14px;
    }
    .ha-visual {
        height: 220px;
    }
    .ha-info {
        padding: 20px 18px 22px;
    }
    .ha-info h3 {
        font-size: 19px;
    }
    .ha-desc {
        font-size: 13px;
    }
    .ha-actions {
        gap: 10px;
    }
    .ha-btn-main,
    .ha-btn-ghost {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
    }
}
