/* 小蚂蚁回收产品图库 - 样式文件 */
:root { --wx-green: #07C160; --wx-green-light: #E8F8EE; --wx-green-dark: #06AD56; --danger: #FA5151; --text: #333; --text-light: #999; --bg: #F5F5F5; --white: #FFF; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; background: var(--bg); color: var(--text); padding-top: 70px; transition: padding-top 0.3s; }

/* 顶部导航 */
.navbar { position: fixed; top: 0; left: 0; right: 0; background: var(--wx-green); color: white; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.navbar-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.navbar-main { display: flex; align-items: center; justify-content: center; height: 70px; flex-wrap: wrap; gap: 15px; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; }
.navbar-brand img { height: 40px; width: auto; }
.navbar-nav { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.navbar-nav a { color: white; text-decoration: none; font-size: 15px; opacity: 0.9; transition: opacity 0.2s; white-space: nowrap; }
.navbar-nav a:hover { opacity: 1; }
.navbar-actions { display: flex; gap: 10px; align-items: center; }
/* 导航链接和用户操作 */
.navbar-links { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; justify-content: center; }
.navbar-links a { color: white; text-decoration: none; font-size: 15px; opacity: 0.9; transition: opacity 0.2s; white-space: nowrap; }
.navbar-links a:hover { opacity: 1; }
.navbar-user { display: flex; gap: 10px; align-items: center; }
.navbar-link { color: white; text-decoration: none; font-size: 15px; opacity: 0.9; transition: opacity 0.2s; white-space: nowrap; }
.navbar-link:hover { opacity: 1; }
.navbar-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 20px; font-size: 14px; text-decoration: none; transition: all 0.2s; white-space: nowrap; border: none; cursor: pointer; }
.navbar-btn-primary { background: white; color: var(--wx-green); }
.navbar-btn-primary:hover { background: #f0f0f0; }
.navbar-btn-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.5); }
.navbar-btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.navbar-btn-icon { background: rgba(255,255,255,0.15); color: white; padding: 8px; border-radius: 8px; }
.navbar-btn-icon:hover { background: rgba(255,255,255,0.25); }
.navbar-btn-user { background: rgba(255,255,255,0.15); color: white; }
.navbar-btn-user:hover { background: rgba(255,255,255,0.25); }
.navbar-mobile-actions { display: none; }
.navbar-menu { display: none; }
.navbar-toggle { background: transparent; border: none; color: white; font-size: 24px; cursor: pointer; padding: 8px; }
.user-badge { font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-left: 4px; }
.user-badge.super { background: #FFD700; color: #333; }
.user-badge.admin { background: #FF9800; color: white; }
.navbar-logo-icon { font-size: 24px; }
.navbar-title { font-size: 18px; }
.btn-nav { background: rgba(255,255,255,0.2); color: white; border: none; padding: 8px 14px; border-radius: 20px; cursor: pointer; font-size: 14px; transition: background 0.2s; white-space: nowrap; text-decoration: none; display: inline-block; }
.btn-nav:hover { background: rgba(255,255,255,0.3); }
.user-info { font-size: 13px; opacity: 0.9; background: rgba(255,255,255,0.15); padding: 4px 10px; border-radius: 15px; white-space: nowrap; }

/* 管理员第二行 */
.navbar-admin-row { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.2); justify-content: center; flex-wrap: wrap; }

/* 主体 */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* 搜索栏 */
.search-bar { background: white; padding: 20px; border-radius: 12px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }
.search-item { display: flex; align-items: center; gap: 6px; }
.search-item select, .search-item input { padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; min-width: 110px; transition: border-color 0.2s; background: white; }
.search-item select:focus, .search-item input:focus { outline: none; border-color: var(--wx-green); }
.btn { padding: 10px 20px; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; transition: all 0.2s; font-weight: 500; }
.btn-primary { background: var(--wx-green); color: white; }
.btn-primary:hover { background: var(--wx-green-dark); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #e04444; }
.btn-secondary { background: #f0f0f0; color: var(--text); }
.btn-secondary:hover { background: #e0e0e0; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* 热门标签 */
.hot-tags { background: white; padding: 15px 20px; border-radius: 12px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); text-align: center; }
.hot-tags-title { font-size: 14px; color: var(--text-light); margin-bottom: 10px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tag { background: var(--wx-green-light); color: var(--wx-green-dark); padding: 6px 14px; border-radius: 20px; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.tag:hover { background: var(--wx-green); color: white; }
.tag .count { background: rgba(0,0,0,0.1); padding: 0 6px; border-radius: 10px; font-size: 11px; margin-left: 4px; }

/* 时间轴 */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--wx-green); }
.date-group { margin-bottom: 30px; }
.date-header { display: flex; align-items: center; justify-content: center; margin-bottom: 15px; position: relative; gap: 10px; }
.date-header::before { display: none; }
.date-header h2 { font-size: 16px; color: var(--wx-green-dark); background: var(--wx-green-light); padding: 6px 16px; border-radius: 20px; }
.date-header .count { color: var(--text-light); font-size: 13px; }

/* 产品网格 - 桌面版 */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.product-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: all 0.2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

/* 图片链接 */
.product-image-link { display: block; text-decoration: none; color: inherit; }

/* 图片容器 - 桌面版 */
.product-image-wrap { position: relative; width: 100%; padding-bottom: 133.33%; background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%); overflow: hidden; }
.product-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s, opacity 0.5s ease-out; opacity: 0; }
.product-image.loaded { opacity: 1; }
.product-image-link:hover .product-image { transform: scale(1.05); }

/* 产品操作按钮（侧边悬浮） */
.product-actions-overlay { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transition: opacity 0.2s; z-index: 10; }
.product-image-wrap:hover .product-actions-overlay { opacity: 1; }
.action-btn { width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(255,255,255,0.95); color: #666; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.15); text-decoration: none; }
.action-btn:hover { background: white; transform: scale(1.1); }
.action-btn.favorite-btn.favorited, .action-btn.like-btn.liked { background: #FA5151; color: white; }
.action-btn i.bi-heart-fill { animation: heartBeat 0.3s ease-in-out; }
@keyframes heartBeat { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* 分享弹窗 */
.share-modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: flex-end; justify-content: center; }
.share-modal-overlay.show { display: flex; }
.share-modal-box { background: white; width: 100%; max-width: 400px; border-radius: 16px 16px 0 0; padding: 20px; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.share-modal-header { text-align: center; font-size: 16px; font-weight: 600; margin-bottom: 20px; color: #333; }
.share-modal-buttons { display: flex; justify-content: space-around; margin-bottom: 20px; }
.share-modal-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 15px 25px; border: none; background: #f5f5f5; border-radius: 12px; cursor: pointer; transition: all 0.2s; }
.share-modal-btn:hover { background: #e8e8e8; transform: scale(1.05); }
.share-modal-btn i { font-size: 28px; }
.share-modal-btn span { font-size: 12px; color: #666; }
.share-modal-cancel { width: 100%; padding: 14px; border: none; background: #f5f5f5; border-radius: 8px; font-size: 16px; color: #666; cursor: pointer; }
.share-modal-cancel:hover { background: #e8e8e8; }

/* 懒加载占位符动画 */
.product-image-wrap::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; z-index: 0; }
.product-image.loaded + .product-image-wrap::before, .product-image-wrap:has(.loaded)::before { display: none; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* 产品卡片功能按钮 - 简洁版 */
.product-card-actions { display: flex; justify-content: center; gap: 8px; padding: 10px 12px; background: #fafafa; border-top: 1px solid #f0f0f0; }
.card-action-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 0; border-radius: 6px; border: none; background: white; color: #666; cursor: pointer; font-size: 12px; transition: all 0.2s; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.card-action-btn:hover { background: var(--wx-green); color: white; }
.card-action-btn.favorite-btn.favorited { background: #FFF0F0; color: #FA5151; }

/* 产品信息 */
.product-info { padding: 12px; text-align: left; flex: 1; display: flex; flex-direction: column; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.product-price { font-size: 20px; font-weight: bold; color: var(--danger); }
.product-price::before { content: '¥'; font-size: 14px; }
.product-price.sold { text-decoration: line-through; color: #999; }
.product-status { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.status-selling { background: var(--wx-green); color: #fff; }
.status-sold { background: #ff9800; color: #fff; }
.product-meta { margin-top: 6px; font-size: 12px; color: var(--text-light); }
.product-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.product-tag { background: #f5f5f5; padding: 2px 6px; border-radius: 4px; font-size: 11px; color: #666; }
.product-tags-overlay { position: absolute; top: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; max-width: 90%; z-index: 5; }
.product-tags-overlay .product-tag { background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; padding: 3px 8px; backdrop-filter: blur(2px); }
.product-update-info { margin-top: 6px; font-size: 10px; color: #aaa; border-top: 1px dashed #eee; padding-top: 6px; }
.share-btn { cursor: pointer; color: var(--wx-green); margin-left: 8px; }
.share-btn:hover { color: var(--wx-green-dark); }
.product-user { display: inline-block; margin-top: 6px; padding: 3px 8px; background: var(--wx-green-light); color: var(--wx-green); border-radius: 12px; font-size: 11px; text-decoration: none; }
.product-user:hover { background: var(--wx-green); color: white; }

/* 管理员操作 */
.admin-actions { display: none; padding: 8px 12px 12px; gap: 6px; margin-top: auto; }
.admin-actions.show { display: flex; }
.admin-actions .btn { flex: 1; padding: 6px 8px; font-size: 11px; }

/* 加载更多 */
.load-more { text-align: center; padding: 30px; }
.load-more .btn { min-width: 200px; padding: 12px 30px; }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state i { font-size: 48px; display: block; margin-bottom: 15px; }

/* 页脚 */
.footer { background: #333; color: #999; padding: 30px 20px; margin-top: 40px; text-align: center; }
.footer-content { max-width: 800px; margin: 0 auto; }
.footer p { margin: 8px 0; font-size: 14px; }
.footer a { color: #ccc; text-decoration: none; }
.footer a:hover { color: var(--wx-green); }

/* 上传区域 */
.upload-area { border: 2px dashed #e0e0e0; border-radius: 12px; padding: 30px 20px; text-align: center; cursor: pointer; transition: all 0.2s; background: #fafafa; }
.upload-area:hover { border-color: var(--wx-green); background: #f5fff5; }
.upload-area i { font-size: 36px; color: #ccc; display: block; margin-bottom: 8px; }
.upload-area p { color: #666; margin: 5px 0; font-size: 14px; }
.upload-hint { font-size: 12px; color: #999; }

/* 弹窗 */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0,0,0,0.5); 
    z-index: 200; 
    align-items: center; 
    justify-content: center;
    backdrop-filter: blur(3px);  /* 添加背景模糊效果 */
}
.modal.show { 
    display: flex; 
    animation: fadeIn 0.25s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content { 
    background: white; 
    padding: 25px; 
    border-radius: 16px; 
    width: 90%; 
    max-width: 450px; 
    max-height: 85vh; 
    overflow-y: auto; 
    position: relative; 
    z-index: 201; 
    animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
    from { 
        opacity: 0; 
        transform: scale(0.95) translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}
.modal-header { font-size: 18px; font-weight: 600; margin-bottom: 20px; text-align: center; }
.modal-body input, .modal-body select { width: 100%; padding: 12px; border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 12px; font-size: 14px; background: white; color: #333; }
.modal-body label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.modal-body .checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.modal-body .checkbox-group label { display: flex; align-items: center; gap: 5px; cursor: pointer; font-size: 14px; color: #333; margin-bottom: 0; }
.modal-body .checkbox-group input { width: auto; margin-bottom: 0; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 15px; }

/* 图片预览弹窗 */
.lightbox { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.95); z-index: 300; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 95%; max-height: 90%; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 20px; color: white; font-size: 32px; cursor: pointer; }
.lightbox-info { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.7); color: white; padding: 10px 20px; border-radius: 8px; text-align: center; }

/* 回收站面板 */
.trash-panel { display: none; position: fixed; top: 0; right: 0; width: 380px; height: 100%; background: white; box-shadow: -5px 0 25px rgba(0,0,0,0.15); z-index: 150; flex-direction: column; }
.trash-panel.show { display: flex; }
.trash-header { padding: 15px 20px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.trash-header h3 { font-size: 16px; }
.trash-content { flex: 1; overflow-y: auto; padding: 15px; }
.trash-item { display: flex; gap: 12px; padding: 12px; background: #f9f9f9; border-radius: 10px; margin-bottom: 10px; }
.trash-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.trash-item .info { flex: 1; }
.trash-item .info h4 { font-size: 14px; margin-bottom: 4px; }
.trash-item .info p { font-size: 12px; color: var(--text-light); }
.trash-item .actions { display: flex; flex-direction: column; gap: 5px; }
.trash-item .actions .btn { padding: 5px 10px; font-size: 12px; }

/* 管理员面板 */
.admin-panel { display: none; position: fixed; top: 0; right: 0; width: 450px; height: 100%; background: white; box-shadow: -5px 0 25px rgba(0,0,0,0.15); z-index: 150; flex-direction: column; }
.admin-panel.show { display: flex; }
.admin-panel-header { padding: 15px 20px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.admin-panel-content { flex: 1; overflow-y: auto; padding: 15px; }
.admin-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f9f9f9; border-radius: 10px; margin-bottom: 10px; }
.admin-item .info { flex: 1; }
.admin-item .info h4 { font-size: 14px; margin-bottom: 4px; }
.admin-item .info p { font-size: 12px; color: var(--text-light); }
.admin-item .actions { display: flex; gap: 5px; }
.admin-item .actions .btn { padding: 5px 10px; font-size: 12px; }
.role-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.role-super { background: var(--wx-green-light); color: var(--wx-green-dark); }
.role-normal { background: #f0f0f0; color: #666; }

/* 提示 */
.toast { 
    position: fixed; 
    top: 80px; 
    left: 50%; 
    transform: translateX(-50%) translateY(-20px); 
    background: rgba(0,0,0,0.85); 
    color: white; 
    padding: 12px 24px; 
    border-radius: 8px; 
    z-index: 400; 
    display: none; 
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
}
.toast.show { 
    display: block; 
    opacity: 1; 
    transform: translateX(-50%) translateY(-50%);
    animation: toastBounce 0.4s ease-out;
}
@keyframes toastBounce {
    0% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(-30px) scale(0.9); 
    }
    60% { 
        transform: translateX(-50%) translateY(5px) scale(1.02); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0) scale(1); 
    }
}

/* 加载动画 */
.loading { text-align: center; padding: 40px; color: var(--text-light); }
.loading i { font-size: 32px; animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ========== 响应式 - 手机端优化 ========== */
@media (max-width: 768px) {
    /* 主体 */
    body { padding-top: 60px !important; }
    .container { padding: 10px; }
    
    /* 导航栏 - 移动端 */
    .navbar { height: auto; min-height: 50px; padding: 8px 10px; }
    .navbar-main { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; height: auto; padding: 0; }
    .navbar-brand { font-size: 14px; order: 1; flex-shrink: 0; }
    .navbar-brand img { height: 28px; }
    .navbar-logo-icon { font-size: 20px; }
    .navbar-title { font-size: 14px; }
    .navbar-links { display: flex !important; order: 2; flex-grow: 1; justify-content: center; }
    .navbar-user { display: none; }
    .navbar-mobile-actions { display: flex; align-items: center; gap: 8px; order: 3; flex-shrink: 0; }
    .navbar-toggle { font-size: 22px; padding: 4px 8px; }
    
    /* 移动端菜单 */
    .navbar-menu { display: none; width: 100%; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.2); margin-top: 8px; order: 3; }
    .navbar-menu.show { display: block; }
    .navbar-menu .navbar-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
    .navbar-menu .navbar-user { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
    .navbar-menu .navbar-link { font-size: 13px; padding: 6px 10px; }
    .navbar-menu .navbar-btn { font-size: 13px; padding: 6px 12px; }

    .btn-nav { padding: 6px 12px; font-size: 13px; }
    .user-info { font-size: 12px; }
    
    /* 搜索栏 */
    .search-bar { padding: 12px; }
    .search-row { flex-direction: column; align-items: stretch; gap: 8px; }
    .search-item { width: 100%; }
    .search-item select, .search-item input { width: 100%; min-width: auto; }
    .btn { width: 100%; justify-content: center; }
    
    /* 热门标签 */
    .hot-tags { padding: 12px; }
    .tag { font-size: 12px; padding: 4px 10px; }
    
    /* 产品网格 - 手机版 2列 */
    .product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card { display: flex; flex-direction: column; }
    
    /* 图片容器 - 手机版 */
    .product-image-wrap { padding-bottom: 133.33%; }
    
    /* 产品信息 - 手机版 */
    .product-info { padding: 8px; }
    .product-price { font-size: 16px; }
    .product-price::before { font-size: 12px; }
    .product-status { font-size: 10px; padding: 2px 6px; }
    .product-meta { font-size: 11px; margin-top: 4px; }
    .product-tags { margin-top: 4px; gap: 3px; }
    .product-tag { font-size: 10px; padding: 1px 4px; }
    .product-update-info { font-size: 9px; margin-top: 4px; padding-top: 4px; }
    
    /* 管理员操作 */
    .admin-actions { padding: 6px 8px 8px; gap: 4px; }
    .admin-actions .btn { padding: 5px 6px; font-size: 10px; }
    
    /* 弹窗 */
    .modal-content { padding: 15px; width: 95%; max-height: 90vh; }
    .modal-body input, .modal-body select { padding: 10px; margin-bottom: 10px; }
    
    /* 面板 */
    .trash-panel, .admin-panel { width: 100%; }
    .trash-item { padding: 10px; }
    .trash-item img { width: 50px; height: 50px; }
    
    /* 页脚 */
    .footer { padding: 20px 15px; }
    .footer p { font-size: 12px; }
}

/* 超小屏幕优化 */
@media (max-width: 400px) {
    .product-grid { grid-template-columns: 1fr; }
    .product-image-wrap { padding-bottom: 100%; }
    .product-info { padding: 10px; }
    .product-price { font-size: 18px; }
}

/* ========== 日历组件样式 ========== */
.calendar-wrapper { position: relative; }
.calendar-panel { 
    display: none; 
    position: absolute; 
    top: 100%; 
    right: 0; 
    width: 320px; 
    background: white; 
    border-radius: 12px; 
    box-shadow: 0 8px 30px rgba(0,0,0,0.15); 
    z-index: 50; 
    margin-top: 8px;
    padding: 15px;
}
.calendar-panel.show { display: block; }
.calendar-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 15px; 
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.calendar-title { font-size: 16px; font-weight: 600; color: #333; }
.calendar-nav { 
    display: flex; 
    gap: 8px; 
}
.calendar-nav button { 
    background: #f5f5f5; 
    border: none; 
    padding: 6px 12px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 14px;
    transition: background 0.2s;
}
.calendar-nav button:hover { background: #e0e0e0; }
.calendar-weekdays { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    text-align: center; 
    margin-bottom: 8px;
}
.calendar-weekdays span { 
    font-size: 12px; 
    color: #999; 
    padding: 5px 0; 
}
.calendar-days { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 4px; 
}
.calendar-days .day, .calendar-days .empty { 
    text-align: center; 
    padding: 8px 0; 
    font-size: 14px; 
    border-radius: 8px;
    cursor: pointer;
}
.calendar-days .empty { cursor: default; }
.calendar-days .day:hover { background: #f5f5f5; }
.calendar-days .day.today { 
    background: var(--wx-green-light); 
    color: var(--wx-green); 
    font-weight: 600; 
}
.calendar-days .day.has-product { 
    background: var(--wx-green); 
    color: white; 
    font-weight: 500; 
}
.calendar-days .day.has-product:hover { 
    background: var(--wx-green-dark); 
}
.calendar-days .day.selected { 
    background: #333; 
    color: white; 
}
.calendar-actions { 
    margin-top: 15px; 
    padding-top: 10px; 
    border-top: 1px solid #f0f0f0;
    text-align: center;
}
.calendar-actions .btn { 
    width: 100%; 
    padding: 10px; 
    font-size: 14px; 
}

/* 加载更多按钮 */
.load-more { 
    text-align: center; 
    padding: 30px 20px; 
}
.load-more .btn {
    padding: 14px 40px;
    font-size: 15px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
    transition: all 0.3s;
}
.load-more .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
}
.load-more .btn i {
    margin-left: 5px;
}

/* ========== 上传弹窗优化样式 ========== */

/* 上传弹窗容器 */
.upload-modal {
    max-width: 420px;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.upload-modal .upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.upload-modal .upload-header .btn-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #999;
    font-size: 18px;
    transition: color 0.2s;
}

.upload-modal .upload-header .btn-close:hover {
    color: #333;
}

.upload-modal .upload-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.upload-modal .upload-body label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

/* 图片上传区域 */
.upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.upload-area:hover {
    border-color: var(--wx-green);
    background: var(--wx-green-light);
}

.upload-area i {
    font-size: 32px;
    color: #ccc;
    margin-bottom: 8px;
    display: block;
}

.upload-area span {
    font-size: 14px;
    color: #666;
}

/* 预览区域 */
.preview-box {
    position: relative;
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
}

.preview-box img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.preview-box .btn-remove-img {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.preview-box .btn-remove-img:hover {
    background: rgba(0,0,0,0.8);
}

/* 表单行布局 */
.form-row {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.form-row .form-col {
    flex: 1;
}

.form-row .form-col input,
.form-row .form-col select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-row .form-col input:focus,
.form-row .form-col select:focus {
    border-color: var(--wx-green);
    outline: none;
}

/* 表单组 */
.form-group {
    margin-top: 15px;
}

.form-group .form-select,
.form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group .form-select:focus,
.form-group input[type="text"]:focus {
    border-color: var(--wx-green);
    outline: none;
}

.form-group label small {
    font-weight: normal;
}

/* 底部按钮 */
.upload-modal .upload-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.upload-modal .upload-footer .btn {
    flex: 1;
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-modal .upload-footer .btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: none;
}

.upload-modal .upload-footer .btn-secondary:hover {
    background: #e0e0e0;
}

.upload-modal .upload-footer .btn-primary {
    background: var(--wx-green);
    color: white;
    border: none;
    font-weight: 500;
}

.upload-modal .upload-footer .btn-primary:hover {
    background: var(--wx-green-dark);
}

/* ========== 上传弹窗优化样式结束 ========== */

/* ========== 右下角悬浮按钮组 ========== */

.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wx-green) 0%, #05a54f 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.5);
}

.fab-btn:active {
    transform: scale(0.95);
}

/* 返回主页按钮样式 */
.fab-btn.fab-home {
    background: white;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fab-btn.fab-home:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: #f5f5f5;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    
    .fab-btn {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}

/* ========== 悬浮按钮样式结束 ========== */
.preview-tip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ========== 移动端适配优化 ========== */
@media (max-width: 768px) {
    /* 导航栏优化 */
    .navbar-main {
        padding: 0 15px;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .navbar-brand {
        font-size: 16px;
    }
    
    .navbar-brand span {
        display: none;  /* 小屏幕隐藏网站名 */
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    .navbar-nav {
        display: none;  /* 小屏幕隐藏导航链接 */
    }
    
    /* 搜索栏优化 */
    .search-bar {
        padding: 15px;
    }
    
    .search-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-item {
        width: 100%;
    }
    
    .search-item select,
    .search-item input {
        width: 100%;
    }
    
    /* 产品网格优化 */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    /* 产品卡片优化 */
    .product-info {
        padding: 10px;
    }
    
    .product-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .product-status {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .product-meta {
        font-size: 12px;
    }
    
    .product-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 管理员按钮优化 */
    .admin-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .admin-actions .btn {
        padding: 8px;
        font-size: 12px;
    }
    
    /* 日历面板优化 */
    .calendar-panel {
        width: calc(100% - 30px);
        left: 15px;
        right: 15px;
        max-width: none;
    }
    
    /* 时间轴优化 */
    .timeline {
        padding-left: 20px;
    }
    
    /* 日期组间距 */
    .date-group {
        margin-bottom: 20px;
    }
    
    .date-header h2 {
        font-size: 14px;
        padding: 4px 12px;
    }
    
    /* 热门标签优化 */
    .hot-tags {
        padding: 12px 15px;
    }
    
    .tag {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    /* 弹窗优化 */
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
    }
    
    .modal.show .modal-content {
        transform: translateY(0);
    }
    
    /* 分享弹窗优化 */
    .share-modal-box {
        width: 100%;
        max-width: 100%;
    }
    
    /* 回收站面板优化 */
    #trashPanel {
        width: 100%;
        border-radius: 16px 16px 0 0;
    }
    
    /* 管理员面板优化 */
    #adminPanel {
        width: 100%;
        border-radius: 16px 16px 0 0;
    }
}

/* 更小屏幕优化 */
@media (max-width: 375px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .fab-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* 触摸设备优化 */
@media (pointer: coarse) {
    .product-actions-overlay {
        opacity: 1;  /* 触摸设备始终显示操作按钮 */
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ========== 移动端适配优化结束 ========== */


/* ========== 移动端导航栏优化 ========== */
@media (max-width: 600px) {
    .navbar { height: auto; min-height: 70px; padding: 8px 0; }
    .navbar-content { padding: 0 10px; }
    .navbar-main { 
        flex-direction: column; 
        gap: 8px; 
        height: auto; 
        padding: 5px 0;
    }
    .navbar-brand { font-size: 16px; }
    .navbar-nav { gap: 10px; }
    .navbar-nav a { font-size: 13px; }
    .navbar-actions { gap: 8px; }
    .btn-nav { padding: 6px 12px; font-size: 12px; }
    .user-info { font-size: 12px; padding: 3px 8px; }
    .navbar-admin-row { gap: 6px; padding: 8px 0; }
}
/**
 * 小蚂蚁产品图库 - 搜索和产品列表样式
 * anttuku 1.1
 */

.main-content {
    max-width: 100%;
    padding: 80px 10px 20px;
    margin: 0 auto;
}

/* 搜索区域 */
.search-section {
    background: white;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-main {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 0 14px;
}

.search-input-wrap i {
    color: #666666;
    font-size: 16px;
}

.search-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 10px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.search-btn:hover {
    background: #555555;
}

/* 筛选标签 */
.filter-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.filter-tags select {
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    min-width: 70px;
}

.filter-tag {
    padding: 8px 14px;
    border: 1px solid #666666;
    border-radius: 20px;
    background: white;
    color: #666666;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.filter-tag:hover, .filter-tag.active {
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    color: white;
}

.filter-tag.reset {
    border-color: #999;
    color: #666;
}

.filter-tag.reset:hover {
    background: #666;
    color: white;
}

/* 热门标签 */
.hot-tags-section {
    background: white;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.section-title i {
    color: #666666;
}

.product-count {
    margin-left: auto;
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.hot-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-tag {
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e9 100%);
    color: #666666;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid rgba(7,193,96,0.2);
}

.hot-tag:hover {
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    color: white;
}

/* 产品列表 */
.products-section {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #f0f0f0;
}

.product-card:active {
    transform: scale(0.98);
}

.card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: white;
}

.status-selling {
    background: rgba(7,193,96,0.9);
    color: #fff;
}

.status-sold {
    background: rgba(255,153,0,0.9);
    color: #fff;
}

.card-body {
    padding: 10px;
}

.card-price {
    font-size: 16px;
    font-weight: bold;
    color: #666666;
}

.card-location {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 15px 0 10px;
}

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

.empty-state i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #999;
}

.loading i {
    font-size: 28px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 图片预览 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 15px;
}

.lightbox.show {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

.lightbox img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
}

.lightbox-info {
    color: white;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
}

/* 提示消息 */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: rgba(220, 53, 69, 0.9);
}

/* 响应式 */
@media (min-width: 768px) {
    .main-content {
        max-width: 800px;
        padding: 90px 20px 30px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (min-width: 1024px) {
    .main-content {
        max-width: 1000px;
    }
    
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 400px) {
    .search-main {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .filter-tags {
        justify-content: center;
    }
}

/* 卡片元信息（用户名+区域） */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 2px;
}

.card-meta i {
    font-size: 10px;
}

/* 卡片标签 */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.card-tag {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #666666;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.card-tag:hover {
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    color: white;
}

/* 管理员操作按钮 */
.card-actions {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-action:hover {
    transform: scale(1.1);
}

.btn-edit {
    background: #1890ff;
    color: white;
}

.btn-edit:hover {
    background: #40a9ff;
}

.btn-delete {
    background: #ff4d4f;
    color: white;
}

.btn-delete:hover {
    background: #ff7875;
}

/* 编辑弹窗样式 */
#editModal .modal-content {
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

#editModal .form-group {
    margin-bottom: 15px;
}

#editModal .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

#editModal .form-group input,
#editModal .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

#editModal .form-group input:focus,
#editModal .form-group select:focus {
    outline: none;
    border-color: #07c160;
}

#editModal .form-group small {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 12px;
}

#editModal .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

#editModal .form-actions .btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

#editModal .form-actions .btn-primary {
    background: #07c160;
    color: white;
}

#editModal .form-actions .btn-primary:hover {
    background: #06ad56;
}

#editModal .form-actions .btn {
    background: #f5f5f5;
    color: #333;
}

#editModal .form-actions .btn:hover {
    background: #e8e8e8;
}

/* ========== profile.php 页面样式 ========== */
.profile-header { text-align: center; padding: 30px 20px; background: linear-gradient(135deg, var(--wx-green) 0%, #05a54f 100%); color: white; margin: -20px -20px 20px -20px; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid white; margin-bottom: 10px; background: rgba(255,255,255,0.3); }
.profile-avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 10px; }
.profile-name { font-size: 20px; font-weight: 600; margin-bottom: 5px; }
.profile-id { font-size: 12px; opacity: 0.8; }
.profile-info { background: white; border-radius: 12px; padding: 15px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.info-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.info-item:last-child { border-bottom: none; }
.info-icon { width: 40px; height: 40px; border-radius: 8px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-right: 12px; }
.profile-tabs { display: flex; background: white; border-radius: 12px; padding: 5px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); gap: 5px; }
.profile-tab { flex: 1; padding: 12px 10px; text-align: center; border-radius: 8px; font-size: 13px; color: #666; cursor: pointer; transition: all 0.2s; }
.profile-tab:hover { background: #f5f5f5; }
.profile-tab.active { background: var(--wx-green); color: white; }
.profile-tab .count { display: block; font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.info-content { flex: 1; }
.info-label { font-size: 12px; color: #999; margin-bottom: 2px; }
.info-value { font-size: 14px; color: #333; }
.info-action { padding: 8px 16px; background: var(--wx-green); color: white; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; text-decoration: none; }
.info-action:hover { background: #06AD56; }
.intro-box { background: white; border-radius: 12px; padding: 15px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.intro-title { font-size: 14px; color: #666; margin-bottom: 8px; }
.intro-text { font-size: 14px; color: #333; line-height: 1.6; }
.products-section { margin-top: 20px; }
.section-title { font-size: 16px; font-weight: 600; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.product-count { background: var(--wx-green); color: white; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.no-products { text-align: center; padding: 40px; color: #999; background: white; border-radius: 12px; }
.product-card { cursor: pointer; }

/* ========== member.php 页面样式 ========== */
.member-center { max-width: 600px; margin: 0 auto; padding: 20px; }
.member-card { background: linear-gradient(135deg, var(--wx-green) 0%, #05a54f 100%); color: white; padding: 30px 20px; text-align: center; border-radius: 16px; margin-bottom: 20px; }
.member-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.8); margin-bottom: 10px; }
.member-avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 10px; }
.member-name { font-size: 22px; font-weight: 600; margin-bottom: 5px; }
.member-role { font-size: 12px; background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 12px; display: inline-block; }
.stats-row { display: flex; background: white; border-radius: 12px; padding: 15px 0; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.stat-item { flex: 1; text-align: center; border-right: 1px solid #f0f0f0; }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 24px; font-weight: bold; color: var(--wx-green); }
.stat-label { font-size: 12px; color: #999; margin-top: 4px; }
.menu-section { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.menu-item { display: flex; align-items: center; padding: 18px 20px; border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: background 0.2s; text-decoration: none; color: inherit; }
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: #f9f9f9; }
.menu-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-right: 15px; }
.menu-text { flex: 1; }
.menu-title { font-size: 16px; font-weight: 500; }
.menu-desc { font-size: 12px; color: #999; margin-top: 3px; }
.menu-arrow { color: #ccc; font-size: 18px; }
.menu-badge { background: #FA5151; color: white; padding: 2px 8px; border-radius: 10px; font-size: 12px; margin-left: 10px; }
.modal-content { max-width: 400px; }
.modal-header { font-size: 18px; font-weight: 600; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #333; font-size: 14px; }
.form-control { width: 100%; padding: 12px 14px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.form-control:focus { border-color: var(--wx-green); outline: none; }
.btn { padding: 12px 24px; border-radius: 8px; font-size: 14px; cursor: pointer; border: none; }
.btn-danger { background: #FA5151; color: white; }
.btn-secondary { background: #f0f0f0; color: #666; }
.product-list { max-height: 400px; overflow-y: auto; }
.product-list-item { display: flex; align-items: center; padding: 12px; border-bottom: 1px solid #f5f5f5; }
.product-list-item:last-child { border-bottom: none; }
.product-list-item img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; margin-right: 12px; }
.product-list-item .info { flex: 1; }
.product-list-item .price { font-size: 16px; font-weight: 600; color: var(--wx-green); }
.product-list-item .meta { font-size: 12px; color: #999; margin-top: 4px; }
.product-list-item .actions { display: flex; gap: 8px; }
.product-list-item .actions button { padding: 6px 12px; border-radius: 6px; font-size: 12px; border: none; cursor: pointer; }
.empty-tip { text-align: center; padding: 40px; color: #999; }

