/* ==================== 系统出租页 ==================== */

.rental-hero {
    background: linear-gradient(135deg, #8b6914, var(--accent), #e8c36a);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 26px var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    text-align: center;
    color: #fff;
}

.rental-hero-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.rental-hero-subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* ---------- 系统卡片 ---------- */

.rental-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.rental-card-header {
    padding: 14px var(--spacing-lg);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8b6914, var(--accent), #e8c36a);
    color: #fff;
}

.rental-card-header i {
    color: #fff;
}

.rental-card-body {
    display: flex;
    align-items: stretch;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
}

/* ---------- 轮播 ---------- */

.rental-gallery {
    position: relative;
    flex: 0 0 56%;
    max-width: 56%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f5f6fa;
    border: 1px solid var(--border-color);
}

/* 固定高度，截图比例不定，用 contain 兜住，免得超高图把卡片撑爆 */
.rental-viewport {
    overflow: hidden;
    width: 100%;
    height: 360px;
}

.rental-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
    will-change: transform;
}

.rental-slide {
    flex: 0 0 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.rental-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.rental-gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 220px;
    color: var(--text-muted);
    font-size: 13px;
}

.rental-gallery-empty i {
    font-size: 32px;
}

/* 左右切换按钮 */
.rental-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(26, 35, 50, 0.45);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s;
    z-index: 2;
}

.rental-nav:hover {
    background: rgba(26, 35, 50, 0.72);
}

.rental-nav.prev { left: 10px; }
.rental-nav.next { right: 10px; }

/* 页码 */
.rental-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 9px;
    border-radius: 10px;
    background: rgba(26, 35, 50, 0.5);
    color: #fff;
    font-size: 12px;
    z-index: 2;
}

/* 圆点 */
.rental-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.rental-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(26, 35, 50, 0.25);
    cursor: pointer;
    transition: background 0.2s, width 0.2s;
}

.rental-dot.active {
    background: var(--accent);
    border-color: var(--accent-dark);
    width: 18px;
    border-radius: 4px;
}

/* ---------- 右侧信息 ---------- */

.rental-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.rental-desc {
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.rental-desc p {
    margin: 0 0 8px;
}

.rental-desc p:last-child {
    margin-bottom: 0;
}

.rental-fields {
    margin-top: auto;
    border-top: 1px solid var(--divider);
    padding-top: 12px;
}

.rental-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--border-subtle);
}

.rental-field:last-child {
    border-bottom: none;
}

.rf-label {
    flex: 0 0 auto;
    min-width: 110px;
    color: var(--text-secondary);
}

.rf-value {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    word-break: break-all;
}

.rf-text,
.rf-value a {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    background: rgba(212, 168, 83, 0.12);
    border: 1px solid rgba(212, 168, 83, 0.35);
    color: var(--primary);
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
}

.rf-value a {
    color: var(--accent-dark);
    text-decoration: none;
}

.rf-value a:hover {
    background: rgba(212, 168, 83, 0.22);
    text-decoration: underline;
}

.rf-copy {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 13px;
    line-height: 1;
    border-radius: var(--radius-sm);
}

.rf-copy:hover {
    color: var(--accent-dark);
    background: rgba(212, 168, 83, 0.12);
}

.rf-copy.copied {
    color: var(--success);
}

/* ---------- 放大查看 ---------- */

.rental-zoom {
    background: #fff;
}

.rental-zoom img {
    display: block;
    width: 100%;
    height: auto;
}

/* ==================== 响应式 ==================== */

/* 平板：缩小左图占比 */
@media (max-width: 1024px) {
    .rental-gallery {
        flex-basis: 50%;
        max-width: 50%;
    }

    .rental-viewport {
        height: 300px;
    }

    .rental-hero-title {
        font-size: 21px;
    }
}

/* 移动端：上下堆叠 */
@media (max-width: 768px) {
    .rental-hero {
        padding: 20px var(--spacing-md);
    }

    .rental-hero-title {
        font-size: 19px;
    }

    .rental-hero-subtitle {
        font-size: 13px;
    }

    .rental-card-body {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }

    .rental-gallery {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .rental-viewport {
        height: 260px;
    }

    .rental-nav {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .rental-nav.prev { left: 6px; }
    .rental-nav.next { right: 6px; }

    .rental-desc {
        font-size: 13px;
        line-height: 1.8;
    }

    .rental-field {
        font-size: 13px;
    }

    .rf-label {
        min-width: 92px;
    }
}

/* 小屏：字段改为上下两行，避免长值把布局撑出横向滚动 */
@media (max-width: 480px) {
    .rental-card-header {
        font-size: 14px;
        padding: 12px var(--spacing-md);
    }

    .rental-viewport {
        height: 200px;
    }

    .rental-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 9px 0;
    }

    .rf-label {
        min-width: 0;
        font-size: 12px;
    }

    .rf-value {
        width: 100%;
    }

    .rf-text,
    .rf-value a {
        font-size: 12px;
        padding: 3px 8px;
    }

    .rental-dots {
        bottom: 6px;
    }

    .rental-dot {
        width: 6px;
        height: 6px;
    }

    .rental-dot.active {
        width: 14px;
    }
}
