/* 一秒互联公司  www.yimiaonet.com：2026-09-22 页面级视觉收口，仅修复截图反馈中的比例、颜色、图标和响应式冲突。 */

/* 商品详情：联系人卡片禁止被旧版通用 div 网格拆成窄列。 */
body[data-page="application-detail"] .market-detail-contact-card-2094 {
    display: block !important;
    min-width: 0;
    padding: 16px !important;
    overflow: hidden;
}

body[data-page="application-detail"] .market-detail-store-head-2096 {
    display: flex !important;
    min-width: 0;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
}

body[data-page="application-detail"] .market-detail-store-head-2096 > div {
    min-width: 0;
    display: grid !important;
    gap: 3px;
}

body[data-page="application-detail"] .market-detail-store-head-2096 strong {
    overflow: hidden;
    color: #172033;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-page="application-detail"] .market-detail-store-head-2096 small {
    color: #1769e0;
    font-size: 11px;
}

body[data-page="application-detail"] .market-detail-contact-card-2094 > p {
    display: block !important;
    margin: 0 0 12px;
    color: #536176;
    font-size: 12px;
    line-height: 1.7;
}

body[data-page="application-detail"] .market-detail-contact-heading-2094 {
    display: flex !important;
    min-width: 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 7px;
    padding-top: 10px;
    border-top: 1px solid #e7edf4;
}

body[data-page="application-detail"] .market-detail-contact-heading-2094 span {
    color: #172033;
    font-size: 13px;
    font-weight: 600;
}

body[data-page="application-detail"] .market-detail-contact-heading-2094 small {
    overflow: hidden;
    color: #8793a5;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-page="application-detail"] .market-detail-contact-list-2094 {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 5px;
    min-width: 0;
}

body[data-page="application-detail"] .market-detail-contact-list-2094 a,
body[data-page="application-detail"] .market-detail-contact-list-2094 button {
    width: 100%;
    min-width: 0;
    min-height: 35px;
    padding: 0 9px;
    display: flex !important;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    border: 1px solid #d9e3ef;
    border-radius: 4px;
    color: #32435d;
    background: #f7faff;
    font-size: 12px;
    text-align: left;
    text-decoration: none;
}

body[data-page="application-detail"] .market-detail-contact-list-2094 a:hover,
body[data-page="application-detail"] .market-detail-contact-list-2094 button:hover {
    border-color: #9bbcf0;
    background: #edf5ff;
}

body[data-page="application-detail"] .market-detail-contact-list-2094 svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

body[data-page="application-detail"] .market-detail-contact-list-2094 .is-phone svg { color: #1769e0; }
body[data-page="application-detail"] .market-detail-contact-list-2094 .is-qq svg { color: #536dff; }
body[data-page="application-detail"] .market-detail-contact-list-2094 .is-wechat svg { color: #16a36a; }
body[data-page="application-detail"] .market-detail-contact-list-2094 .is-qr svg { color: #e87919; }

body[data-page="application-detail"] .market-detail-contact-hours-2094 {
    min-width: 0;
    margin: 9px 0 12px;
    display: flex !important;
    align-items: center;
    gap: 5px;
    color: #68768a;
    font-size: 11px;
}

body[data-page="application-detail"] .market-detail-contact-hours-2094 svg {
    width: 14px;
    height: 14px;
    color: #7c4dce;
}

body[data-page="application-detail"] .market-detail-contact-card-2094 > .button {
    width: 100%;
    min-height: 38px;
    margin-top: 2px;
}

/* 应用市场首页：压缩首屏空白，增加彩色功能标识，保留真实数据。 */
body.marketplace-standalone-page .market-home-page {
    padding-top: 10px;
    padding-bottom: 30px;
}

body.marketplace-standalone-page .market-home-stage {
    gap: 8px;
}

body.marketplace-standalone-page .market-home-hero,
body.marketplace-standalone-page .market-home-hero-slide,
body.marketplace-standalone-page .market-home-hero-slide > img {
    height: clamp(248px, 23vw, 292px);
}

body.marketplace-standalone-page .market-home-promos {
    min-height: 70px;
    gap: 8px;
}

body.marketplace-standalone-page .market-home-promos > a,
body.marketplace-standalone-page .market-home-promos img {
    min-height: 70px;
    height: 70px;
}

body.marketplace-standalone-page .market-home-rankings {
    margin-top: 10px;
    gap: 8px;
}

body.marketplace-standalone-page .market-home-rankings > article {
    height: auto !important;
    min-height: 438px;
    overflow: visible;
}

body.marketplace-standalone-page .market-home-rankings > article > header {
    min-height: 68px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

body.marketplace-standalone-page .market-rank-heading-icon,
body.marketplace-standalone-page .market-section-heading-icon {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    color: #1769e0;
    background: #eaf2ff;
}

body.marketplace-standalone-page .market-rank-heading-icon svg,
body.marketplace-standalone-page .market-section-heading-icon svg {
    width: 16px;
    height: 16px;
}

body.marketplace-standalone-page .market-home-rankings > article:nth-child(2) .market-rank-heading-icon { color: #e86827; background: #fff1e8; }
body.marketplace-standalone-page .market-home-rankings > article:nth-child(3) .market-rank-heading-icon { color: #7c4dce; background: #f1ecff; }
body.marketplace-standalone-page .market-home-rankings > article:nth-child(4) .market-rank-heading-icon { color: #138a59; background: #e7f8f0; }
body.marketplace-standalone-page .market-home-rankings > article:nth-child(5) .market-rank-heading-icon { color: #c64c45; background: #fff0ee; }

body.marketplace-standalone-page .market-home-rankings > article > header > div,
body.marketplace-standalone-page .market-home-product-section > header > div {
    min-width: 0;
}

body.marketplace-standalone-page .market-home-rankings > article > header h2,
body.marketplace-standalone-page .market-home-product-section > header h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.marketplace-standalone-page .market-home-empty-ranked {
    min-height: 215px;
    margin: 0;
    padding: 18px;
    display: grid !important;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #8793a5;
    font-size: 12px;
    text-align: center;
}

body.marketplace-standalone-page .market-home-empty-ranked svg {
    width: 30px;
    height: 30px;
    color: #b4c1d2;
}

body.marketplace-standalone-page .market-home-product-section > header {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
}

body.marketplace-standalone-page .market-home-product-section > header > div > span {
    color: #1769e0;
}

body.marketplace-standalone-page .market-home-product-section:nth-of-type(2) .market-section-heading-icon { color: #138a59; background: #e7f8f0; }
body.marketplace-standalone-page .market-home-product-section:nth-of-type(3) .market-section-heading-icon { color: #e86827; background: #fff1e8; }
body.marketplace-standalone-page .market-home-product-section:nth-of-type(4) .market-section-heading-icon { color: #7c4dce; background: #f1ecff; }

body.marketplace-standalone-page .market-home-seller-entry {
    min-height: 112px;
    padding: 18px 22px;
    background: linear-gradient(105deg, #17345f 0%, #0f2445 100%);
}

body.marketplace-standalone-page .market-home-seller-entry h2,
body.marketplace-standalone-page .market-home-seller-entry p,
body.marketplace-standalone-page .market-home-seller-entry small {
    color: #fff !important;
}

body.marketplace-standalone-page .market-home-seller-entry p {
    color: #cbd9ec !important;
}

body[data-page="application-detail"] .market-detail-contact-heading-2094 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    justify-content: start !important;
    gap: 3px !important;
}

body[data-page="application-detail"] .market-detail-contact-heading-2094 small {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

body.marketplace-standalone-page .market-home-seller-entry > div > span {
    color: #8bc5ff;
    background: rgba(255, 255, 255, .1);
}

/* 卖家工作台：禁止隐藏认证门和面板被布局规则撑出空白。 */
body[data-page="seller"] .seller-auth-gate[hidden],
body[data-page="seller"] .seller-shell[hidden],
body[data-page="seller"] [data-seller-panel][hidden] {
    display: none !important;
}

body[data-page="seller"] .seller-workspace {
    margin-top: 12px;
}

body[data-page="seller"] .seller-shell {
    align-items: start;
    gap: 14px;
}

body[data-page="seller"] .seller-sidebar {
    align-self: start;
    top: calc(var(--ym-header-height) + 8px);
}

body[data-page="seller"] .seller-main > section {
    min-height: 0;
}

body[data-page="seller"] .seller-main > section[data-seller-panel="settlements"],
body[data-page="seller"] .seller-main > section[data-seller-panel="certification"] {
    min-height: 520px;
}

body[data-page="seller"] .seller-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body[data-page="seller"] .seller-metrics > article,
body[data-page="seller"] [data-seller-income-summary] > article {
    position: relative;
    min-height: 106px;
    padding: 15px 14px 13px 52px;
    align-content: center;
}

body[data-page="seller"] .seller-metrics > article > i,
body[data-page="seller"] [data-seller-income-summary] > article > i {
    position: absolute;
    top: 15px;
    left: 14px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 7px;
}

body[data-page="seller"] .seller-metrics > article > i svg,
body[data-page="seller"] [data-seller-income-summary] > article > i svg {
    width: 16px;
    height: 16px;
}

body[data-page="seller"] .seller-metrics > article.is-blue > i,
body[data-page="seller"] [data-seller-income-summary] > article.is-blue > i { color: #1769e0; background: #eaf2ff; }
body[data-page="seller"] .seller-metrics > article.is-green > i,
body[data-page="seller"] [data-seller-income-summary] > article.is-green > i { color: #138a59; background: #e7f8f0; }
body[data-page="seller"] .seller-metrics > article.is-orange > i,
body[data-page="seller"] [data-seller-income-summary] > article.is-orange > i { color: #e86827; background: #fff1e8; }
body[data-page="seller"] .seller-metrics > article.is-purple > i,
body[data-page="seller"] [data-seller-income-summary] > article.is-purple > i { color: #7c4dce; background: #f1ecff; }
body[data-page="seller"] .seller-metrics > article.is-red > i,
body[data-page="seller"] [data-seller-income-summary] > article.is-red > i { color: #c64c45; background: #fff0ee; }

body[data-page="seller"] .seller-overview-grid > article {
    min-height: 224px;
}

/* 买家中心：收紧资金区、复选框和下载记录，避免浏览器原生控件被输入框规则放大。 */
body[data-page="customer"] .metric-grid > div {
    position: relative;
    min-height: 100px;
    padding: 13px 14px 13px 48px;
}

body[data-page="customer"] .metric-grid > div > i {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #1769e0;
    background: #eaf2ff;
}

body[data-page="customer"] .metric-grid > div:nth-child(2) > i { color: #138a59; background: #e7f8f0; }
body[data-page="customer"] .metric-grid > div:nth-child(3) > i { color: #e86827; background: #fff1e8; }
body[data-page="customer"] .metric-grid > div:nth-child(4) > i { color: #c64c45; background: #fff0ee; }
body[data-page="customer"] .metric-grid > div:nth-child(5) > i { color: #d39a19; background: #fff8df; }
body[data-page="customer"] .metric-grid > div:nth-child(6) > i { color: #7c4dce; background: #f1ecff; }
body[data-page="customer"] .metric-grid > div:nth-child(7) > i { color: #536dff; background: #edf0ff; }

body[data-page="customer"] .metric-grid > div > i svg {
    width: 15px;
    height: 15px;
}

body[data-page="customer"] .customer-finance-grid,
body[data-page="customer"] .finance-history-grid {
    align-items: start;
}

body[data-page="customer"] .finance-panel,
body[data-page="customer"] .finance-history-grid > article,
body[data-page="customer"] .customer-subsection {
    min-width: 0;
}

body[data-page="customer"] .payment-confirm-dialog {
    width: min(650px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    overflow: auto;
}

body[data-page="customer"] .payment-confirm-form {
    padding: 18px 20px 20px;
}

body[data-page="customer"] .payment-confirm-form input[type="checkbox"],
body[data-page="customer"] .payment-confirm-form input[type="radio"],
body[data-page="customer"] .customer-legal-check input[type="checkbox"],
body[data-page="customer"] .payment-points-toggle input[type="checkbox"] {
    width: 16px !important;
    min-width: 16px;
    height: 16px;
    min-height: 16px !important;
    margin: 2px 0 0;
    padding: 0 !important;
    accent-color: #1769e0;
}

body[data-page="customer"] .payment-points-toggle,
body[data-page="customer"] .customer-legal-check {
    display: flex !important;
    min-height: 24px;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0;
}

body[data-page="customer"] .payment-points-toggle > span,
body[data-page="customer"] .customer-legal-check > span {
    min-width: 0;
    display: grid;
    gap: 2px;
    line-height: 1.6;
}

body[data-page="customer"] .payment-points-panel {
    padding: 11px 12px;
    border: 1px solid #e1e8f1;
    border-radius: 5px;
    background: #f7faff;
}

body[data-page="customer"] .payment-price-detail {
    margin-top: 14px;
}

body[data-page="customer"] .message-list {
    gap: 14px;
    padding: 18px 20px;
    background: #f7f9fc;
}

body[data-page="customer"] .message-list article {
    max-width: 82%;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

body[data-page="customer"] .message-list article.is-customer {
    flex-direction: row-reverse;
}

body[data-page="customer"] .ticket-message-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border: 1px solid #d8e2ef;
    border-radius: 50%;
    color: #1769e0;
    background: #eaf2ff;
}

body[data-page="customer"] .message-list article.is-customer .ticket-message-avatar {
    color: #138a59;
    background: #e7f8f0;
}

body[data-page="customer"] .ticket-message-avatar svg {
    width: 16px;
    height: 16px;
}

body[data-page="customer"] .message-list article > div {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #dfe6ef;
    border-radius: 6px;
    background: #fff;
}

body[data-page="customer"] .message-list article.is-customer > div {
    border-color: #c5dafa;
    background: #edf5ff;
}

body[data-page="customer"] .message-list article strong,
body[data-page="customer"] .message-list article p,
body[data-page="customer"] .message-list article small {
    display: block;
}

body[data-page="customer"] .message-list article p {
    margin: 5px 0;
    line-height: 1.7;
}

/* 社区和产品中心仅做紧凑化与彩色图标强化，不改变真实数据。 */
body.community-modern-page .community-modern-post-labels svg,
body.community-modern-page .community-modern-metrics svg,
body.community-modern-page .community-modern-side-card header svg {
    stroke-width: 2;
}

body.community-modern-page .community-modern-post-labels .is-official svg { color: #1769e0; }
body.community-modern-page .community-modern-post-labels .is-pinned svg { color: #c64c45; }
body.community-modern-page .community-modern-post-labels .is-must-read svg { color: #536176; }
body.community-modern-page .community-modern-post-labels .is-recommended svg { color: #e86827; }
body.community-modern-page .community-modern-post-labels .is-featured svg { color: #d39a19; }

body[data-page="product"] .ymcatalog-slider,
body[data-page="product-detail"] .ymcatalog-slider {
    min-height: 0;
    height: clamp(390px, 42vw, 540px);
}

body[data-page="product"] .ymcatalog-slide,
body[data-page="product-detail"] .ymcatalog-slide {
    min-height: 0;
    height: 100%;
    padding: 42px 52px 58px;
}

body[data-page="product"] .ymcatalog-section,
body[data-page="product-detail"] .ymcatalog-section {
    padding-top: 42px;
}

@media (max-width: 1120px) {
    body[data-page="seller"] .seller-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 840px) {
    body[data-page="seller"] .seller-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-page="product"] .ymcatalog-slide,
    body[data-page="product-detail"] .ymcatalog-slide {
        grid-template-columns: 1fr;
        padding: 32px 28px 56px;
    }
}

@media (max-width: 620px) {
    body.marketplace-standalone-page .market-home-rankings > article > header,
    body.marketplace-standalone-page .market-home-product-section > header {
        grid-template-columns: 28px minmax(0, 1fr) auto;
    }

    body.marketplace-standalone-page .market-home-rankings > article {
        height: auto !important;
        min-height: 318px;
    }

    body[data-page="seller"] .seller-metrics {
        grid-template-columns: 1fr;
    }

    body[data-page="customer"] .message-list article {
        max-width: 94%;
    }

    body[data-page="product"] .ymcatalog-slider,
    body[data-page="product-detail"] .ymcatalog-slider {
        height: 620px;
    }

    body[data-page="product"] .ymcatalog-slide,
    body[data-page="product-detail"] .ymcatalog-slide {
        padding: 28px 20px 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.marketplace-standalone-page *,
    body[data-page="seller"] *,
    body[data-page="customer"] *,
    body[data-page="product"] *,
    body[data-page="product-detail"] * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* 一秒互联公司  www.yimiaonet.com：修复市场首屏被侧栏高度拉伸、空排行撑高和深色横幅文字对比度问题。 */
body.marketplace-standalone-page .market-home-stage {
    grid-template-rows: clamp(248px, 23vw, 292px) 106px;
    align-content: start;
    gap: 8px;
}

body.marketplace-standalone-page .market-home-rankings > article.is-empty {
    height: 164px !important;
    min-height: 164px !important;
    overflow: hidden;
}

body.marketplace-standalone-page .market-home-rankings {
    align-items: start;
}

body.marketplace-standalone-page .market-home-rankings > article {
    height: 330px;
    align-self: start;
}

body.marketplace-standalone-page .market-home-rankings > article.is-empty > div {
    min-height: 88px;
    display: grid;
    place-items: center;
}

body.marketplace-standalone-page .market-home-seller-entry,
body.marketplace-standalone-page .market-home-seller-entry h2,
body.marketplace-standalone-page .market-home-seller-entry p,
body.marketplace-standalone-page .market-home-seller-entry small,
body.marketplace-standalone-page .market-home-seller-entry > div > div {
    color: #fff !important;
}

body.marketplace-standalone-page .market-home-seller-entry p {
    color: #cbd9ec !important;
}

body[data-page="customer"] .customer-payment-support-card {
    margin: 14px 0 18px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #f1c7a4;
    border-radius: 8px;
    background: #fff8f1;
}

body[data-page="customer"] .customer-payment-support-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    color: #e86827;
    border-radius: 50%;
    background: #ffe8d8;
}

body[data-page="customer"] .customer-payment-support-icon svg {
    width: 18px;
    height: 18px;
}

body[data-page="customer"] .customer-payment-support-body {
    min-width: 0;
}

body[data-page="customer"] .customer-payment-support-body > strong {
    color: #8a3d12;
    font-size: 14px;
}

body[data-page="customer"] .customer-payment-support-body > p {
    margin: 4px 0 9px;
    color: #805f4d;
    font-size: 12px;
    line-height: 1.7;
}

body[data-page="customer"] .customer-payment-support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

body[data-page="customer"] .customer-payment-support-links a,
body[data-page="customer"] .customer-payment-support-links button {
    min-height: 30px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #9a4b1b;
    border: 1px solid #efc7a8;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
}

body[data-page="customer"] .customer-payment-support-links svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 620px) {
    body.marketplace-standalone-page .market-home-stage {
        grid-template-rows: 248px auto;
    }

    body[data-page="customer"] .customer-payment-support-card {
        padding: 12px;
    }
}

@media (max-width: 560px) {
    body.marketplace-standalone-page .market-home-rankings > article,
    body.marketplace-standalone-page .market-home-rankings > article.is-empty {
        height: 320px;
        min-height: 320px;
    }
}
