/*
 * 齐论 AI 生态联盟前台：会务活动与线上服务的统一展示层。
 * 保持 ShopXO 原有红色主色和 Amaze UI 组件，只收敛信息密度与交易场景。
 */
:root {
    --service-panel-bg: #fff8f4;
    --service-panel-border: #f4d8ca;
    --service-text-muted: #8a6a58;
}

body {
    background: #fcfaf9;
}

.header-top,
.nav-search.white,
.header-nav {
    background: #fff;
}

.nav-search {
    border-bottom: 1px solid #f2e7e1;
}

.link-list,
.user-main-content,
.order-content,
.cart-list,
.search-nav,
.category-content {
    min-height: 360px;
}

.link-list,
.user-main-content,
.order-content,
.cart-list,
.search-nav,
.category-content {
    border-radius: 12px;
}

/* 搜索、分类、服务清单与个人中心使用一致的内容容器，不再显得空散。 */
.search-nav,
.category-content,
.cart-list,
.user-main-content {
    background: #fff;
    box-shadow: 0 8px 28px rgba(132, 69, 31, .05);
}

.user-main-content,
.cart-list,
.search-nav,
.category-content {
    padding: 18px;
}

/* 全站仅交付线上服务，不展示实物配送地址、仓库或自提点。 */
.service-contact-container,
.service-provider-hidden,
.warehouse-info,
.order-address .items:has(.am-view-map) {
    display: none !important;
}

.physical-address-detail {
    display: none !important;
}

/* 线上服务不产生配送、收货、自提或退货物流。 */
.order-address,
.order-express,
.order-extraction-take,
.orderaftersale-delivery-submit,
#popup-orderaftersale-delivery,
.warehouse-item-container,
.return-money-goods-step {
    display: none !important;
}

/* 线上服务不产生配送、收货、自提或退货物流。 */
.order-address,
.order-express,
.order-extraction-take,
.orderaftersale-delivery-submit,
#popup-orderaftersale-delivery,
.warehouse-item-container,
.return-money-goods-step {
    display: none !important;
}

.service-order-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0;
    padding: 14px 18px;
    color: #754729;
    background: #fff5ee;
    border: 1px solid #f4d5c3;
}

.service-order-notice > i {
    margin-top: 2px;
    color: #d94a18;
    font-size: 18px;
}

.service-order-notice strong {
    display: block;
    margin-bottom: 3px;
    color: #61351e;
    font-size: 14px;
}

.service-order-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
}

/* 列表、订单、消息等数据页统一为轻量卡片边界，避免页面留白显得割裂。 */
.am-table,
.data-list,
.order-list,
.cart-list .cart-table,
.user-main-content .am-table {
    border-color: var(--service-panel-border);
}

.am-table > thead > tr > th {
    color: #785b48;
    background: var(--service-panel-bg);
}

.order-content .am-panel,
.cart-list .am-panel,
.user-main-content .am-panel {
    border-color: var(--service-panel-border);
    border-radius: 10px;
    box-shadow: none;
}

.order-content .am-panel-hd,
.cart-list .am-panel-hd,
.user-main-content .am-panel-hd {
    color: #61351e;
    font-weight: 600;
}

.am-btn-primary,
.am-btn-danger {
    border-radius: 6px;
}

.goods-qrcode,
.tm-indcon.sales-volume {
    color: var(--service-text-muted);
}

/* 服务目录：保留筛选能力，但改为服务发现和对接语境。 */
.search-container .map-item {
    overflow: hidden;
    border: 1px solid var(--service-panel-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(132, 69, 31, .05);
}

.search-container .map-item > li:first-child {
    margin: 0;
    border-bottom-color: #f4e8e2;
}

.search-container .map-item > li:first-child p {
    margin-left: 2.2rem;
    padding: 1.5rem 0;
    color: #6f4a37;
}

.search-container .map-item .map-left {
    width: 12rem;
    color: #5e3927;
    font-weight: 600;
}

.search-container .map-item .map-right {
    width: calc(100% - 12rem);
}

.search-container .map-text-items ul > li > a {
    border-radius: 999px;
    color: #765c4c;
}

.search-container .map-text-items ul > li.active > a,
.search-container .map-text-items ul li.active a {
    border-color: #d94a18;
    background: #fff1ea;
    color: #a8320e !important;
}

.search-container .search-nav {
    margin-top: 16px;
}

.search-container .sort-nav {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 18px;
    border: 1px solid var(--service-panel-border);
    border-radius: 10px;
    background: #fff;
}

.search-container .sort-nav li,
.search-container .sort-nav li a {
    height: 52px;
    line-height: 52px;
}

.search-container .sort-nav li a {
    padding: 0 18px;
}

.service-directory {
    margin: 18px 0 40px;
}

.service-directory__intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 2px 16px;
    border-bottom: 1px solid #f0ded5;
}

.service-directory__eyebrow,
.service-card__label {
    display: inline-block;
    color: #c84312;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
}

.service-directory__intro h1 {
    margin: 5px 0 4px;
    color: #42271a;
    font-size: 24px;
    font-weight: 600;
}

.service-directory__intro p,
.service-directory__hint {
    margin: 0;
    color: #806756;
    font-size: 14px;
}

.service-directory__hint {
    padding: 9px 12px;
    border-radius: 999px;
    background: #fff5ef;
    white-space: nowrap;
}

.service-directory__hint i {
    margin-right: 4px;
    color: #d94a18;
}

.service-directory__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.service-card {
    overflow: hidden;
    border: 1px solid #efdfd7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(118, 65, 35, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card:hover {
    border-color: #e9ad91;
    box-shadow: 0 12px 26px rgba(118, 65, 35, .12);
    transform: translateY(-3px);
}

.service-card__cover {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #fff3ec;
}

.service-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.service-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #bd7554;
    font-size: 14px;
}

.service-card__placeholder i {
    margin-right: 6px;
    font-size: 18px;
}

.service-card:hover .service-card__cover img {
    transform: scale(1.03);
}

.service-card__body {
    padding: 16px;
}

.service-card h2 {
    height: 46px;
    margin: 7px 0 8px;
    overflow: hidden;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.service-card h2 a {
    color: #43291b;
}

.service-card h2 a:hover,
.service-card__action:hover {
    color: #be3b12;
}

.service-card p {
    height: 42px;
    margin: 0;
    overflow: hidden;
    color: #806b5e;
    font-size: 13px;
    line-height: 1.65;
}

.service-card__action {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 14px;
    color: #c84312;
    font-size: 14px;
    font-weight: 600;
}

.service-card__action i {
    margin-left: 6px;
    font-size: 16px;
}

.service-directory-empty {
    margin: 18px 0 40px;
    padding: 72px 20px;
    border: 1px dashed #ebcdbc;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.service-directory-empty > i {
    color: #e7a080;
    font-size: 42px;
}

.service-directory-empty h2 {
    margin: 14px 0 7px;
    color: #4a2a1c;
    font-size: 20px;
    font-weight: 600;
}

.service-directory-empty p {
    margin: 0 0 20px;
    color: #806b5e;
    font-size: 14px;
}

@media only screen and (max-width: 640px) {
    .link-list,
    .user-main-content,
    .order-content,
    .cart-list,
    .search-nav,
    .category-content {
        min-height: 260px;
    }

    .service-contact-container {
        border-radius: 10px;
    }

    .user-main-content,
    .cart-list,
    .search-nav,
    .category-content {
        padding: 12px;
    }

    .search-container .map-item .map-left,
    .search-container .map-item .map-right {
        width: 100%;
    }

    .search-container .map-item .map-left {
        padding-left: 16px;
        text-align: left;
    }

    .search-container .sort-nav {
        padding: 0 8px;
    }

    .search-container .sort-nav li a {
        padding: 0 10px;
    }

    .service-directory__intro {
        display: block;
        padding: 16px 2px;
    }

    .service-directory__intro h1 {
        font-size: 21px;
    }

    .service-directory__hint {
        display: inline-block;
        margin-top: 12px;
        white-space: normal;
    }

    .service-directory__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 12px;
    }

    .service-card__body {
        padding: 12px;
    }

    .service-card h2 {
        height: 40px;
        font-size: 15px;
    }

    .service-card p {
        display: none;
    }

    .service-card__action {
        min-height: 32px;
        margin-top: 8px;
        font-size: 13px;
    }
}
