:root {
    --brand: #3568ff;
    --brand-deep: #203bb8;
    --cyan: #29c7ec;
    --ink: #17203b;
    --muted: #66708a;
    --line: rgba(43, 69, 128, .1);
    --surface: rgba(255, 255, 255, .92);
}

html { scroll-behavior: smooth; }

.home-page {
    min-height: 100vh;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 8% 8%, rgba(76, 213, 241, .2), transparent 30%),
        radial-gradient(circle at 92% 18%, rgba(77, 104, 255, .18), transparent 32%),
        linear-gradient(180deg, #f5f9ff 0%, #eef5ff 45%, #f9fbff 100%);
}

.home-page *,
.home-page *:before,
.home-page *:after { box-sizing: border-box; }

.home-page .background { display: none; }

.home-page .layui-row { margin: 0; }

.home-page .header {
    width: min(1120px, calc(100% - 40px));
    height: auto;
    margin: 18px auto 0;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(30, 62, 126, .08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.home-page .header .layui-col-md8 {
    width: 100%;
    margin-left: 0;
}

.home-page .header .header-box {
    min-height: 42px;
    padding: 11px 14px 11px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-page .header .header-box .brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.home-page .header .header-box img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 11px;
    background: #fff;
}

.home-page .header .header-box .info {
    color: var(--ink);
    font-size: 16px;
    letter-spacing: .02em;
}

.home-page .header .header-box .query {
    float: none;
    margin-left: auto;
}

.home-page .header .header-box .query a {
    width: auto;
    min-width: 112px;
    padding: 0 16px;
    text-align: center;
    line-height: 38px;
    border-radius: 12px;
    box-shadow: none;
    background: linear-gradient(135deg, var(--brand), var(--cyan));
}

.home-page .header .header-box .query a svg { margin-left: 0; }
.home-page .header .header-box > .notice { display: none; }

.store-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 22px auto 0;
}

.store-hero {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    align-items: center;
    padding: 56px 64px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 75% 30%, rgba(71, 224, 244, .28), transparent 31%),
        linear-gradient(135deg, #183291 0%, #315ee8 52%, #248fd7 100%);
    box-shadow: 0 30px 70px rgba(35, 76, 178, .23);
}

.store-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to right, #000, transparent 78%);
}

.hero-copy { position: relative; z-index: 2; max-width: 610px; }

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    color: rgba(255,255,255,.82);
}

.hero-kicker span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #53e4d2;
    box-shadow: 0 0 0 6px rgba(83, 228, 210, .14);
}

.store-hero h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.035em;
}

.store-hero h1 em {
    font-style: normal;
    color: #72f0e4;
}

.store-hero p {
    max-width: 520px;
    margin: 21px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 1.8;
}

.hero-actions { display: flex; gap: 12px; margin-top: 30px; }

.hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}

.hero-actions a:hover { transform: translateY(-2px); }
.hero-primary { color: #2140a6; background: #fff; box-shadow: 0 12px 28px rgba(14, 34, 102, .22); }
.hero-secondary { color: #fff; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); }

.hero-visual { position: relative; min-height: 250px; z-index: 1; }

.hero-ticket {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 210px;
    padding: 26px;
    transform: translate(-46%, -50%) rotate(5deg);
    border-radius: 24px;
    color: var(--ink);
    background: rgba(255,255,255,.94);
    box-shadow: 0 30px 70px rgba(11, 32, 101, .28);
}

.hero-ticket:after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 54px;
    border-top: 1px dashed rgba(34,60,128,.2);
}

.ticket-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 24px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--cyan));
}

.hero-ticket span, .hero-ticket small { display: block; color: var(--muted); }
.hero-ticket span { font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.hero-ticket strong { display: block; margin: 5px 0 28px; font-size: 25px; }
.hero-ticket small { padding-top: 12px; }

.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.orbit-one { width: 280px; height: 280px; left: 10%; top: -5%; }
.orbit-two { width: 190px; height: 190px; right: -4%; bottom: -7%; }

.service-strip {
    position: relative;
    z-index: 3;
    width: calc(100% - 96px);
    margin: -26px auto 28px;
    padding: 20px 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 20px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 16px 38px rgba(32, 58, 116, .11);
}

.service-strip > div { display: flex; align-items: center; justify-content: center; gap: 12px; }
.service-strip > div + div { border-left: 1px solid var(--line); }
.service-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--brand); font-weight: 800; background: #edf3ff; }
.service-strip p { margin: 0; }
.service-strip strong, .service-strip small { display: block; }
.service-strip strong { font-size: 14px; color: var(--ink); }
.service-strip small { margin-top: 3px; color: var(--muted); font-size: 12px; }

.home-page .main { width: 100%; }
.home-page .store-column { width: 100%; margin-left: 0; }

.home-page .main .main-box.catalog-card {
    margin-top: 0;
    padding: 34px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: 0 20px 55px rgba(30, 61, 119, .1);
}

.home-page .main .title,
.home-page .main .cate,
.home-page .main .goods { margin-left: 0; margin-right: 0; }

.home-page .main .cate { padding-top: 16px; margin: 0 -6px; }
.home-page .main .cate-single { display: none; }

.home-page .main .cate .cate-box {
    min-width: 150px;
    height: auto;
    min-height: 58px;
    margin: 0 6px 10px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f6f8fc;
}

.home-page .main .cate .cate-box-select {
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--cyan));
    box-shadow: 0 10px 22px rgba(53,104,255,.2);
}

.home-page .main .goods { margin-top: 0; padding-top: 0; border: 0; }
.catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.home-page .main .title-2 { margin: 0; font-size: 21px; font-weight: 800; color: var(--ink); }
.catalog-subtitle { margin: 0; color: var(--muted); font-size: 13px; }

.home-page .goods-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-page .main .goods .goods-box {
    min-width: 0;
    min-height: 172px;
    margin: 0;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(35, 55, 104, .06);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.home-page .main .goods .goods-box:hover {
    transform: translateY(-4px);
    border-color: rgba(53,104,255,.3);
    box-shadow: 0 18px 38px rgba(35, 74, 169, .13);
}

.home-page .main .goods .picture {
    min-width: 58px;
    width: 58px;
    height: 58px;
    margin: 0;
    border-radius: 16px;
}

.home-page .main .goods .picture img { border-radius: 16px; }

.home-page .picture-placeholder {
    display: grid !important;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--brand-deep), var(--cyan));
    box-shadow: 0 9px 20px rgba(45,92,222,.2);
}

.home-page .main .goods .msg { display: block; min-width: 0; flex: 1; }
.goods-kicker { color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .08em; }

.home-page .main .goods .msg .goods-name {
    min-height: 42px;
    margin: 6px 0 8px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.5;
}

.home-page .main .goods .msg .goods-price { color: var(--brand-deep); }
.home-page .main .goods .msg .goods-price .price-symbol { font-size: 13px; }
.home-page .main .goods .msg .goods-price strong { font-size: 24px; letter-spacing: -.03em; }
.home-page .main .goods .msg .goods-num { display: none; }

.goods-action {
    margin-top: 14px;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
}

.goods-action span { transition: transform .2s ease; }
.goods-box:hover .goods-action span { transform: translateX(4px); }

.wechat-service {
    position: relative;
    overflow: hidden;
    margin-top: 28px;
    padding: 48px 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: center;
    gap: 54px;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(74, 235, 214, .25), transparent 27%),
        linear-gradient(135deg, #14286f 0%, #2149bc 58%, #147f9c 100%);
    box-shadow: 0 24px 58px rgba(29, 58, 132, .2);
}

.wechat-service:before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -90px;
    bottom: -210px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    box-shadow: 0 0 0 46px rgba(255,255,255,.035), 0 0 0 92px rgba(255,255,255,.025);
}

.service-copy,
.qr-card { position: relative; z-index: 1; }

.service-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #7ff0df;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
}

.service-kicker span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5ce0ce;
    box-shadow: 0 0 0 6px rgba(92, 224, 206, .13);
}

.wechat-service h2 {
    margin: 16px 0 14px;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -.025em;
}

.service-lead,
.service-description {
    max-width: 610px;
    color: rgba(255,255,255,.74);
    font-size: 14px;
    line-height: 1.8;
}

.service-account {
    max-width: 620px;
    margin: 24px 0 14px;
    padding: 17px 19px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px;
    background: rgba(255,255,255,.08);
}

.service-account small,
.service-account strong,
.service-account span { display: block; }
.service-account small { color: #75eadc; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.service-account strong { margin: 5px 0 7px; font-size: 17px; }
.service-account span { color: rgba(255,255,255,.64); font-size: 12px; }

.qr-card {
    padding: 17px 17px 19px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 22px;
    color: var(--ink);
    background: rgba(255,255,255,.96);
    box-shadow: 0 20px 48px rgba(4, 24, 78, .24);
}

.qr-frame {
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 14px;
    background: #fff;
}

.qr-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qr-card strong, .qr-card span { display: block; }
.qr-card strong { margin-top: 14px; font-size: 15px; }
.qr-card span { margin-top: 5px; color: var(--muted); font-size: 11px; }

.home-page .footer { margin: 30px 0 22px; color: #7c879f; }
.home-page .footer .layui-col-md8 { width: 100%; margin-left: 0; }
.home-page .query-m { z-index: 20; }

@media (max-width: 900px) {
    .store-hero { grid-template-columns: 1fr; padding: 48px; }
    .hero-visual { display: none; }
    .home-page .goods-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wechat-service { grid-template-columns: minmax(0, 1fr) 240px; padding: 42px; gap: 34px; }
}

@media (max-width: 768px) {
    .home-page .header {
        width: calc(100% - 24px);
        height: auto;
        margin-top: 12px;
        margin-bottom: 0;
        border-radius: 16px;
        color: var(--ink);
        background: rgba(255, 255, 255, .84);
    }
    .home-page .header .header-box { padding: 9px 10px; }
    .home-page .header .header-box img { width: 34px; height: 34px; }
    .home-page .header .header-box .info { color: var(--ink) !important; font-size: 14px; margin-left: 7px; }
    .store-shell { width: calc(100% - 24px); margin-top: 14px; }
    .store-hero { min-height: 0; padding: 42px 28px 58px; border-radius: 24px; }
    .store-hero h1 { font-size: 37px; }
    .store-hero p { font-size: 14px; }
    .service-strip { width: calc(100% - 24px); padding: 16px 12px; }
    .service-strip > div { gap: 8px; }
    .service-strip small { display: none; }
    .home-page .main .main-box.catalog-card { padding: 24px 18px; border-radius: 22px; }
    .home-page .goods-list { grid-template-columns: 1fr; }
    .home-page .main .goods .goods-box { min-height: 0; }
    .catalog-subtitle { display: none; }
    .wechat-service { grid-template-columns: 1fr; padding: 34px 24px; gap: 28px; border-radius: 24px; }
    .wechat-service h2 { font-size: 31px; }
    .service-account strong { font-size: 15px; }
    .qr-card { width: min(100%, 290px); justify-self: center; }
    .home-page .query-m { display: none; }
}

@media (max-width: 430px) {
    .home-page .header .header-box .query { display: none; }
    .hero-actions { flex-direction: column; }
    .hero-actions a { width: auto; }
    .service-strip { grid-template-columns: 1fr 1fr 1fr; margin-top: -22px; }
    .service-strip > div { flex-direction: column; text-align: center; }
    .service-strip strong { font-size: 12px; }
    .service-icon { width: 34px; height: 34px; }
}
