/* ============================================================
   前台样式 - 广州市创客协会展示系统
   ============================================================ */

:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --watermark-color: rgba(255, 255, 255, 0.35);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* 导航栏品牌 */
.brand-text {
    font-weight: 600;
    letter-spacing: 1px;
}

/* 主内容区 */
.main-content {
    min-height: calc(100vh - 200px);
}

/* ========== 物品卡片 ========== */
.item-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background: #fff;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 比例 */
    overflow: hidden;
    background: #f0f0f0;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-card .card-body {
    padding: 12px;
}

.item-card .card-title {
    font-size: 0.95rem;
    color: #333;
}

/* ========== 水印效果 ========== */
.watermark-overlay {
    position: absolute;
    bottom: 8px;
    right: 10px;
    color: var(--watermark-color);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 2;
    user-select: none;
}

/* 详情页大图水印 */
.detail-img-wrapper {
    position: relative;
    width: 100%;
    background: #f0f0f0;
    overflow: hidden;
}

.detail-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-carousel .carousel-item {
    background: #f0f0f0;
}

/* 使用场景图水印 */
.usage-img-wrapper {
    position: relative;
    padding-top: 75%;
    background: #f0f0f0;
}

.usage-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 页脚水印 */
.watermark-footer {
    position: relative;
}

/* ========== 详情页 ========== */
.item-description {
    line-height: 1.8;
    font-size: 0.95rem;
    color: #555;
}

.item-description img {
    max-width: 100%;
    height: auto;
}

.item-description p {
    margin-bottom: 0.8rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
    .item-grid .col-6 {
        padding: 0.4rem;
    }

    .item-card .card-body {
        padding: 8px;
    }

    .item-card .card-title {
        font-size: 0.85rem;
    }

    .watermark-overlay {
        font-size: 10px;
        bottom: 5px;
        right: 6px;
    }

    .main-content {
        padding: 1rem 0.5rem !important;
    }

    h2 {
        font-size: 1.4rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .item-grid .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* 分页样式优化 */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
}

/* 空状态 */
.text-muted.fs-5 {
    padding: 3rem 0;
}
