/* 小微收藏 - 样式文件 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* 头部 */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.site-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 分类导航 */
.category-nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow-x: auto;
}

.category-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 10px;
}

.category-link {
    padding: 15px 20px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.category-link:hover, .category-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.admin-link {
    margin-left: auto;
    color: #999;
}

/* 主内容区 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 60vh;
}

/* 内容列表 */
.content-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.content-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.content-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.content-item .thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #eee;
}

.content-item.no-thumb .thumb {
    display: none;
}

.content-item .info {
    padding: 16px;
}

.content-item .title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-item .meta {
    font-size: 0.85rem;
    color: #999;
}

.content-item .top-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4d4f;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* 详情页 */
.detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
}

.detail-header {
    margin-bottom: 20px;
}

.detail-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.detail-meta {
    color: #999;
    font-size: 0.9rem;
}

.detail-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.detail-content p {
    margin-bottom: 15px;
}

/* 底部操作栏 */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 12px 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    z-index: 1000;
}

.bottom-bar .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.bottom-bar .btn-copy {
    background: #ff6b6b;
    color: white;
}

.bottom-bar .btn-go {
    background: #4ecdc4;
    color: white;
}

.bottom-bar .btn-activity {
    background: #667eea;
    color: white;
}

/* 商品列表 */
.product-list {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.product-list h3 {
    margin-bottom: 15px;
    color: #333;
}

.product-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
}

.product-item .product-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.product-item .product-info {
    flex: 1;
}

.product-item .product-title {
    font-weight: 500;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 页脚 */
.site-footer {
    text-align: center;
    padding: 20px;
    color: #999;
    background: white;
    margin-top: 40px;
}

/* 加载中 */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 空状态 */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* 响应式 */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.8rem;
    }
    
    .category-container {
        padding: 0 10px;
    }
    
    .category-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .content-list {
        grid-template-columns: 1fr;
    }
    
    .bottom-bar {
        flex-wrap: wrap;
    }
    
    .bottom-bar .btn {
        flex: 1;
        min-width: 120px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
