* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #f5f5f5;
    color: #252525;
    font: 14px/1.6 Inter, "Microsoft YaHei", system-ui, sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

.wrap {
    width: min(1240px, 94%);
    margin: auto
}

.top {
    background: #f6f6f6 !important;
    color: #666 !important;
    border-bottom: 1px solid #e6e6e6
}

.top .wrap {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff !important
}

.head {
    height: 82px;
    display: flex;
    align-items: center;
    gap: 24px
}

.r-search {
    height: 44px;
    border: 2px solid #e7272d;
    border-radius: 24px;
    display: flex;
    flex: 1;
    max-width: 620px;
    overflow: hidden
}

.r-search input {
    border: 0;
    outline: 0;
    flex: 1;
    padding: 0 20px;
    font-size: 14px
}

.r-search button {
    border: 0;
    background: #e7272d;
    color: #fff;
    padding: 0 28px;
    font-weight: 800
}

.work {
    margin-left: auto;
    font-weight: 700
}

.publish {
    background: #e7272d;
    color: #fff;
    padding: 11px 19px;
    border-radius: 22px;
    font-weight: 800
}

.navbox {
    border-block: 1px solid #eee
}

.nav {
    height: 50px;
    display: flex;
    align-items: center;
    overflow-x: auto
}

.nav a {
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-weight: 700;
    white-space: nowrap
}

.nav a:hover,
.nav a.active {
    color: #e7272d;
    background: #fff4f1
}

.r-hero {
    background: radial-gradient(circle at 82% 10%, rgba(255, 210, 185, .6), transparent 30%), linear-gradient(118deg, #fff2eb, #fff 55%, #fff7f3);
    border-bottom: 1px solid #f1ddd5
}

.r-hero-grid {
    min-height: 360px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 50px;
    align-items: center
}

.r-kicker,
.r-section-title small {
    color: #d91d24;
    font-weight: 900;
    letter-spacing: .12em
}

.r-hero h1 {
    font-size: 48px;
    line-height: 1.15;
    margin: 13px 0
}

.r-hero p {
    font-size: 17px;
    color: #666;
    max-width: 720px
}

.r-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px
}

.r-actions a {
    padding: 12px 22px;
    border: 1px solid #e8b7ad;
    border-radius: 7px;
    font-weight: 800;
    background: #fff
}

.r-actions .r-primary {
    background: #e7272d;
    color: #fff;
    border-color: #e7272d
}

.r-promise {
    background: #fff;
    border: 0;
    border-radius: 15px;
    padding: 26px;
    box-shadow: var(--gr-card-shadow)
}

.r-promise b,
.r-promise span {
    display: block
}

.r-promise b {
    font-size: 19px;
    margin-bottom: 12px
}

.r-promise span {
    padding: 9px 0;
    border-bottom: 1px solid #f2ece9;
    color: #555
}

.r-brand-section {
    padding: 48px 0 34px
}

.r-section-title {
    display: flex;
    justify-content: space-between;
    align-items: end
}

.r-section-title h2 {
    font-size: 30px;
    margin: 3px 0
}

.r-section-title>a {
    color: #d91d24;
    font-weight: 800
}

.r-brands {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 9px;
    margin-top: 20px
}

.r-brands a {
    min-height: 75px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

.r-brands a:hover,
.r-brands a.on {
    border-color: #e7272d;
    box-shadow: var(--gr-card-shadow-hover)
}

.r-brands b {
    font-size: 15px
}

.r-brands span {
    font-size: 11px;
    color: #999
}

.r-market {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    padding-bottom: 55px
}

/* ⚠️ .r-catalog 2026-09-24 起**不再是卡片外框**（用户：「去掉卡片的外层的这个框」）：
   它原来和左侧分类栏共用这条「白底 + 1px 边框 + 10px 圆角」，去掉后筛选卡与结果卡片直接落在页面底色上、
   与 hero 同宽（原先被 .r-catalog 的 padding 往内缩了一圈）。所以这里只留 aside，别再把 .r-catalog 加回来。 */
.r-market aside {
    background: #fff;
    border: 0;
    border-radius: 10px;
    box-shadow: var(--gr-card-shadow)
}

.r-market aside {
    height: max-content;
    padding: 18px
}

.r-market aside h3 {
    margin: 0 0 12px;
    font-size: 17px
}

.r-market aside>a {
    display: flex;
    justify-content: space-between;
    padding: 10px 7px;
    border-bottom: 1px solid #f1f1f1
}

.r-market aside>a:hover,
.r-market aside>a.on {
    color: #e7272d
}

.r-side-help {
    background: #fff2ed;
    border: 1px solid #ffdcd2;
    border-radius: 8px;
    padding: 14px;
    margin-top: 18px
}

.r-side-help p {
    font-size: 12px;
    color: #73534a
}

.r-side-help a {
    color: #c6181f;
    font-weight: 800
}

/* .r-catalog 的 padding 随外框一起去掉了（见上一条）：它现在只是布局容器，
   筛选卡与卡片区之间的间距由 .filter-card 的 margin-bottom / .r-cards 的 margin-top 负责。
   ⚠️ marketplace-compact.css 里那条 `padding:13px!important` 也已同步移除，否则这里白改。 */

.r-filter form {
    display: flex;
    align-items: end;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee
}

.r-filter label {
    font-size: 12px;
    color: #777
}

.r-filter input,
.r-filter select {
    display: block;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 10px;
    margin-top: 4px
}

.r-filter button {
    height: 38px;
    border: 0;
    background: #333;
    color: #fff;
    border-radius: 6px;
    padding: 0 18px
}

.r-filter span {
    margin-left: auto;
    color: #888
}

.r-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 18px
}

.r-card {
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: .2s
}

.r-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--gr-card-shadow-hover)
}

/* ⚠️ 卡片阴影必须用 `.r-market` 把特异性提到 (0,2,0)：commerce.css 的公共卡片规则把 `.r-card` 也一起接管了
   （`box-shadow: 0 5px 20px rgba(31,35,41,.035) !important` —— 3.5% 淡到几乎看不出，用户 2026-09-24
   反馈「卡片也是要有阴影」），而 commerce.css 在 head 里**后加载**且带 `!important`，rental.css 同特异性压不住。
   取值改用全站统一的卡片投影令牌（commerce.css 的 --gr-card-shadow / -hover）。 */
.r-market .r-card {
    box-shadow: var(--gr-card-shadow) !important
}

.r-market .r-card:hover {
    box-shadow: var(--gr-card-shadow-hover) !important
}

.r-cover {
    height: 190px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden
}

.r-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.r-cover>span {
    font-size: 34px;
    font-weight: 900;
    color: #c9ced4;
    letter-spacing: .15em
}

.r-cover em {
    position: absolute;
    left: 10px;
    top: 10px;
    background: #ffffffec;
    padding: 4px 9px;
    border-radius: 4px;
    font-style: normal;
    font-size: 11px
}

.r-card-body {
    padding: 16px
}

.r-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap
}

.r-badges span {
    font-size: 11px;
    color: #c51b21;
    background: #fff0ec;
    padding: 2px 6px;
    border-radius: 3px
}

.r-card h2 {
    font-size: 18px;
    line-height: 1.35;
    margin: 10px 0 6px
}

.r-price {
    margin-top: 14px;
    color: #e7272d
}

.r-price b {
    font-size: 22px
}

.r-price span {
    color: #777
}

.r-data {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: #666;
    font-size: 11px;
    margin: 8px 0
}

.r-supplier {
    border-top: 1px dashed #e4e4e4;
    padding-top: 10px;
    color: #777;
    font-size: 12px
}

.r-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 13px
}

/* 「查看租赁详情」是 <a>，置灰的下单按钮是 <span> —— 两者必须走同一套盒模型，
   否则置灰时按钮会丢掉 flex:1 与边框，跟旁边的按钮不等宽、还会上下错位。 */
.r-card-actions a,
.r-card-actions .buy {
    flex: 1;
    text-align: center;
    border: 1px solid #e1e1e1;
    padding: 8px 5px;
    border-radius: 5px;
    font-weight: 700
}

.r-card-actions .buy {
    background: #e7272d;
    color: #fff;
    border-color: #e7272d
}

.r-empty {
    grid-column: 1/-1;
    padding: 70px 25px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    /* 与外框同步调整：原来它待在白色外框里，靠「浅灰底 + 虚线边」与外框区分；外框去掉后它直接落在页面底色上，
       虚线框会显得孤立 → 改成与结果卡片同一档的白底 + 阴影（原型 pc-robots.html 的 .empty 就是这个写法）。 */
    box-shadow: var(--gr-card-shadow)
}

.r-empty strong {
    font-size: 20px
}

.r-empty p {
    color: #777
}

.r-empty a {
    display: inline-block;
    margin: 10px 5px 0;
    background: #e7272d;
    color: #fff;
    padding: 10px 17px;
    border-radius: 6px
}

.r-empty a+a {
    background: #333
}

/* 空态按钮的悬停：只改背景深浅，**文字必须保持白色**。
   坑：commerce.css 里有一条**无作用域**的 `body a:hover { color: var(--gr-brand) }`（#e1251b，
   优先级 (0,1,2)），它会压过本文件的 `.r-empty a { background:#e7272d; color:#fff }`（(0,1,1)）
   ⇒ 悬停时红底上写红字，看起来像"文字消失"（2026-09-28 用户报）。
   下面两条是 (0,2,1)，能压住它；不要去改 commerce.css 那条全局规则（全站文字链接的悬停都靠它）。 */
.r-empty a:hover {
    color: #fff;
    background: #c9131b
}

.r-empty a+a:hover {
    color: #fff;
    background: #111
}

.r-process {
    background: #fff;
    padding: 55px 0
}

.r-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 24px
}

.r-steps article {
    padding: 24px;
    background: #fff8f5;
    border: 0;
    border-radius: 10px;
    box-shadow: var(--gr-card-shadow)
}

.r-steps b {
    color: #e7272d
}

.r-steps h3 {
    font-size: 18px
}

.r-steps p {
    color: #777
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 45px
}

.footer-grid strong,
.footer-grid a {
    display: block
}

.footer-grid strong {
    margin-bottom: 14px
}

.footer-grid a {
    margin: 8px 0
}

.footer-bottom {
    border-top: 1px solid #3a3a3a;
    margin-top: 30px !important;
    padding-top: 18px
}

.footer-grid .brand-logo img {
    filter: brightness(0) invert(1)
}

@media(max-width:1000px) {
    .r-brands {
        grid-template-columns: repeat(4, 1fr)
    }

    .r-cards {
        grid-template-columns: repeat(2, 1fr)
    }

    .r-hero-grid {
        grid-template-columns: 1fr
    }

    .r-promise {
        display: none
    }
}

@media(max-width:720px) {

    .top,
    .work,
    .r-search {
        display: none
    }

    .head {
        height: 68px
    }

    .nav a {
        padding: 0 13px
    }

    .r-hero-grid {
        min-height: 310px
    }

    .r-hero h1 {
        font-size: 36px
    }

    .r-market {
        grid-template-columns: 1fr
    }

    .r-market aside {
        display: none
    }

    .r-filter form {
        align-items: stretch;
        flex-direction: column
    }

    .r-filter input,
    .r-filter select {
        width: 100%
    }

    .r-filter span {
        margin: 0
    }

    .r-cards {
        grid-template-columns: 1fr
    }

    .r-brands {
        grid-template-columns: repeat(3, 1fr)
    }

    .r-steps {
        grid-template-columns: 1fr 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}
/* ===== 卡片「暂无档期」状态（2026-09-24 用户要求）=====
   设备档期排满时：卡片展示「暂无档期」、可租数量位置改成排满提示、
   「选择日期并租用」置灰不可点（模板里换成 <span class="buy off">，连 href 都不给）。 */
.r-badges .r-nostock {
    background: #fdecec;
    color: #d92020;
    border: 1px solid #ffc9c4;
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    font-style: normal
}

.r-nostock-text {
    color: #d92020;
    font-weight: 700
}

/* 置灰态：浅灰底 + 灰边框 + 灰字，尺寸与可点按钮完全一致（不再像一块突兀的深灰）；
   pointer-events:none 保证点不动，不可租的原因由模板的 title 说明。 */
.r-card-actions .buy.off,
.r-card-actions .buy.off:hover {
    background: #f2f2f5;
    color: #a6a6b0;
    border-color: #e6e6ec;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none
}
