/* =========================================================
   缦云 · My专属管家 —— 首页样式
   配色与 /css/shop.css 保持一致（浅色底 + 蓝金）
   ========================================================= */
:root {
    --hm-primary: #2c5aa0;
    --hm-primary-dark: #1e3f73;
    --hm-gold: #b8925a;
    --hm-text: #2f3542;
    --hm-gray: #6b7280;
    --hm-light: #f5f7fb;
    --hm-border: #e6eaf0;
    --hm-radius: 12px;
    --hm-shadow: 0 8px 30px rgba(44, 90, 160, .08);
}

.hm-page {
    padding-top: 92px;
}

.hm-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------- 轮播 ---------------- */
.hm-hero {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3f73 0%, #2c5aa0 55%, #3f77c8 100%);
}

.hm-hero-slide {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s;
}

.hm-hero-slide.on {
    opacity: 1;
}

.hm-hero-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(30, 63, 115, .88), rgba(44, 90, 160, .62));
}

.hm-hero-txt {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    max-width: 660px;
}

.hm-hero-txt small {
    display: inline-block;
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 30px;
    padding: 5px 16px;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hm-hero-txt h1 {
    font-size: 44px;
    line-height: 1.3;
    margin: 0 0 18px;
    color: #fff;
    font-weight: 700;
}

.hm-hero-txt p {
    font-size: 17px;
    line-height: 1.95;
    color: rgba(255, 255, 255, .88);
    margin: 0 0 30px;
}

.hm-hero-act .hm-btn {
    margin-right: 12px;
}

.hm-hero-dots {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hm-hero-dots i {
    display: block;
    width: 34px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
}

.hm-hero-dots i.on {
    background: var(--hm-gold);
}

/* ---------------- 按钮 ---------------- */
.hm-btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 30px;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .25s ease;
    text-decoration: none;
}

.hm-btn-gold {
    background: var(--hm-gold);
    color: #fff !important;
}

.hm-btn-gold:hover {
    background: #9d7a45;
}

.hm-btn-line {
    background: #fff;
    border-color: var(--hm-primary);
    color: var(--hm-primary) !important;
}

.hm-btn-line:hover {
    background: var(--hm-primary);
    color: #fff !important;
}

.hm-hero-txt .hm-btn-line {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .8);
    color: #fff !important;
}

.hm-hero-txt .hm-btn-line:hover {
    background: #fff;
    color: var(--hm-primary) !important;
}

.hm-btn-lg {
    padding: 14px 36px;
    font-size: 16px;
}

/* ---------------- 数据条 ---------------- */
.hm-stat {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: var(--hm-radius);
    box-shadow: var(--hm-shadow);
    margin-top: -48px;
    position: relative;
    z-index: 5;
}

.hm-stat div {
    text-align: center;
    padding: 30px 10px;
    border-right: 1px solid var(--hm-border);
}

.hm-stat div:last-child {
    border-right: 0;
}

.hm-stat b {
    display: block;
    font-size: 32px;
    color: var(--hm-primary);
    line-height: 1.3;
}

.hm-stat span {
    font-size: 13px;
    color: var(--hm-gray);
}

/* ---------------- 通用区块 ---------------- */
.hm-sec {
    padding: 68px 0;
}

.hm-sec-alt {
    background: #fff;
}

.hm-sec-head {
    text-align: center;
    margin-bottom: 46px;
}

.hm-sec-head small {
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--hm-gold);
    text-transform: uppercase;
}

.hm-sec-head h2 {
    font-size: 30px;
    color: var(--hm-text);
    margin: 10px 0 0;
    font-weight: 700;
}

.hm-sec-head em {
    display: block;
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: var(--hm-gold);
    margin: 16px auto 0;
}

/* ---------------- 快捷入口 ---------------- */
.hm-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hm-quick a {
    position: relative;
    height: 300px;
    border-radius: var(--hm-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #1e3f73, #2c5aa0) center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 28px;
    text-decoration: none;
    box-shadow: var(--hm-shadow);
}

.hm-quick a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(30, 63, 115, .12), rgba(30, 63, 115, .78));
    transition: all .35s;
}

.hm-quick a:hover:before {
    background: linear-gradient(180deg, rgba(30, 63, 115, .05), rgba(30, 63, 115, .62));
}

.hm-quick div {
    position: relative;
    z-index: 2;
}

.hm-quick span {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--hm-gold);
    text-transform: uppercase;
}

.hm-quick b {
    display: block;
    font-size: 22px;
    color: #fff;
    margin-top: 6px;
}

/* ---------------- 品牌矩阵 ---------------- */
.hm-brand {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hm-brand a {
    background: #fff;
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 34px 24px;
    text-align: center;
    text-decoration: none;
    transition: all .3s ease;
}

.hm-brand a:hover {
    transform: translateY(-5px);
    box-shadow: var(--hm-shadow);
}

.hm-brand img {
    height: 66px;
    object-fit: contain;
    margin-bottom: 18px;
}

.hm-brand h3 {
    font-size: 18px;
    color: var(--hm-text);
    margin: 0 0 8px;
}

.hm-brand p {
    font-size: 13px;
    color: var(--hm-gray);
    margin: 0;
}

/* ---------------- 菜系 ---------------- */
.hm-cai {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hm-cai a {
    background: #fff;
    border: 1px solid var(--hm-border);
    border-radius: 30px;
    padding: 9px 22px;
    font-size: 14px;
    color: var(--hm-text);
    text-decoration: none;
    transition: all .25s;
}

.hm-cai a:hover {
    background: var(--hm-primary);
    border-color: var(--hm-primary);
    color: #fff;
}

/* ---------------- 甄选 Tab ---------------- */
.hm-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hm-tab {
    padding: 9px 24px;
    border-radius: 30px;
    font-size: 15px;
    color: var(--hm-gray);
    background: #fff;
    border: 1px solid var(--hm-border);
    cursor: pointer;
    transition: all .25s;
}

.hm-tab.on {
    background: var(--hm-primary);
    border-color: var(--hm-primary);
    color: #fff;
}

.hm-panel {
    display: none;
}

.hm-panel.on {
    display: block;
}

.hm-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.hm-card {
    background: #fff;
    border-radius: var(--hm-radius);
    overflow: hidden;
    box-shadow: var(--hm-shadow);
    transition: all .3s ease;
}

.hm-card:hover {
    transform: translateY(-5px);
}

.hm-card-img {
    height: 190px;
    background: var(--hm-light) center/cover no-repeat;
}

.hm-card-body {
    padding: 22px 22px 24px;
}

.hm-card-body h3 {
    font-size: 18px;
    color: var(--hm-text);
    margin: 0 0 12px;
}

.hm-card-body p {
    font-size: 13px;
    color: var(--hm-gray);
    line-height: 1.85;
    margin: 0 0 8px;
}

.hm-card-body p i {
    color: var(--hm-primary);
    width: 16px;
}

.hm-price {
    color: var(--hm-gold);
    font-size: 20px;
    font-weight: 600;
}

.hm-price s {
    color: var(--hm-gray);
    font-size: 13px;
    font-weight: 400;
    margin-left: 8px;
}

.hm-tag {
    display: inline-block;
    background: rgba(44, 90, 160, .08);
    color: var(--hm-primary);
    border-radius: 20px;
    font-size: 12px;
    padding: 3px 12px;
    margin-bottom: 12px;
}

.hm-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--hm-gray);
    font-size: 14px;
}

.hm-empty i {
    display: block;
    font-size: 40px;
    color: #cfd8e3;
    margin-bottom: 14px;
}

/* ---------------- 服务优势 ---------------- */
.hm-adv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.hm-adv div {
    background: #fff;
    border-radius: var(--hm-radius);
    padding: 34px 26px;
    box-shadow: var(--hm-shadow);
}

.hm-adv i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(44, 90, 160, .1);
    color: var(--hm-primary);
    font-size: 22px;
}

.hm-adv h4 {
    font-size: 17px;
    color: var(--hm-text);
    margin: 18px 0 10px;
}

.hm-adv p {
    font-size: 14px;
    color: var(--hm-gray);
    line-height: 1.9;
    margin: 0;
}

/* ---------------- 入驻流程 ---------------- */
.hm-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.hm-step {
    background: #fff;
    border-radius: var(--hm-radius);
    padding: 26px 24px;
    box-shadow: var(--hm-shadow);
}

.hm-step b {
    display: inline-block;
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    border-radius: 50%;
    background: var(--hm-primary);
    color: #fff;
    font-weight: 600;
    margin-bottom: 14px;
}

.hm-step h4 {
    font-size: 16px;
    color: var(--hm-text);
    margin: 0 0 8px;
}

.hm-step p {
    font-size: 14px;
    color: var(--hm-gray);
    line-height: 1.9;
    margin: 0;
}

/* ---------------- 品牌动态 ---------------- */
.hm-news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.hm-news a {
    display: block;
    background: #fff;
    border-radius: var(--hm-radius);
    overflow: hidden;
    box-shadow: var(--hm-shadow);
    text-decoration: none;
    transition: all .3s ease;
}

.hm-news a:hover {
    transform: translateY(-5px);
}

.hm-news .pic {
    height: 180px;
    background: var(--hm-light) center/cover no-repeat;
}

.hm-news .txt {
    padding: 20px 22px 24px;
}

.hm-news h3 {
    font-size: 16px;
    color: var(--hm-text);
    line-height: 1.7;
    margin: 0 0 10px;
}

.hm-news time {
    font-size: 13px;
    color: var(--hm-gold);
}

.hm-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* ---------------- 入驻 CTA ---------------- */
.hm-cta {
    background: linear-gradient(135deg, #1e3f73 0%, #2c5aa0 55%, #3f77c8 100%);
    color: #fff;
    text-align: center;
    padding: 68px 0;
}

.hm-cta h2 {
    font-size: 30px;
    color: #fff;
    margin: 0 0 14px;
    font-weight: 700;
}

.hm-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, .86);
    margin: 0 0 30px;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 992px) {
    .hm-quick,
    .hm-brand {
        grid-template-columns: 1fr 1fr;
    }

    .hm-hero-txt h1 {
        font-size: 34px;
    }

    .hm-stat {
        grid-template-columns: repeat(2, 1fr);
    }

    .hm-stat div:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 576px) {
    .hm-page {
        padding-top: 80px;
    }

    .hm-quick,
    .hm-brand {
        grid-template-columns: 1fr;
    }

    .hm-hero {
        height: 440px;
    }

    .hm-hero-txt h1 {
        font-size: 26px;
    }

    .hm-sec {
        padding: 46px 0;
    }
}
