/* ========================================  
   云上藏家 - 收藏家详情样式 (手机版 414px)
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f5f0;
    color: #333;
    line-height: 1.6;
}

/* 手机容器 */
.container {
    max-width: 414px;
    margin: 0 auto;
    padding: 0;
}

.screen {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* --- 顶部导航 --- */
.page-header {
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: 414px;
    margin: 0 auto;
}

.home-link {
    color: #d4af37;
    text-decoration: none;
    font-size: 13px;
    margin-right: 12px;
    white-space: nowrap;
}

.page-title {
    font-size: 16px;
    font-weight: bold;
    color: #d4af37;
    flex: 1;
    text-align: center;
    margin: 0;
}

.header-right-link {
    color: #d4af37;
    text-decoration: none;
    font-size: 13px;
    margin-left: 12px;
    white-space: nowrap;
}

/* --- 标题 --- */
.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 10px;
}



/* 标题样式 */
.section-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
}

/* 筛选栏 */
.filter-bar {
    margin-bottom: 15px;
}

#filter_category {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

/* 排序栏 */
.sort-bar {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.sort-label {
    font-size: 14px;
    margin-right: 10px;
}

.sort-buttons {
    display: flex;
    gap: 10px;
}

.sort-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background-color: #f9f9f9;
}

.sort-btn.active {
    background-color: #d4af37;
    color: #fff;
    border-color: #d4af37;
}

/* 收藏家网格 */
.collector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.collector-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.collector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.collector-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.collector-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.collector-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.collector-stats {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.collector-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #d4af37;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

/* 收藏家详情 */
.collector-profile {
    margin-bottom: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #333;
}

.profile-title {
    font-size: 16px;
    color: #666;
    margin: 0 0 10px 0;
}

.profile-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    font-size: 14px;
    color: #999;
}

.profile-description {
    margin-top: 20px;
}

.profile-description h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
}

.profile-description p {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* 藏品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.product-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.product-name {
    font-size: 14px;
    font-weight: bold;
    flex: 1;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #d4af37;
}

.product-sponsor {
    font-size: 12px;
    color: #666;
    padding: 10px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 14px;
}

.page-btn.active {
    background-color: #d4af37;
    color: #fff;
    border-color: #d4af37;
}

/* 浮动按钮 */
#right1_float_btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #d4af37;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 999;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .collector-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar img {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .collector-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .top-nav {
        flex-direction: column;
        padding: 10px;
    }
    
    nav {
        margin-top: 10px;
    }
    
    nav a {
        margin: 0 10px;
    }
}