/* 明厨亮灶展示系统 - 前台样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", Arial, sans-serif; background: #f5f6fa; color: #333; }

.header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header h1 { font-size: 24px; }
.admin-link { color: #fff; text-decoration: none; font-size: 14px; border: 1px solid #fff; padding: 6px 16px; border-radius: 20px; }
.admin-link:hover { background: #fff; color: #e74c3c; }

.container { max-width: 1200px; margin: 0 auto; padding: 16px 20px; }

/* 标签筛选 */
.tag-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.tag-btn {
    padding: 3px 8px;
    border: 1px solid #ddd;
    border-radius: 12px;
    text-decoration: none;
    color: #666;
    font-size: 11px;
    transition: all 0.2s;
}
.tag-btn:hover, .tag-btn.active { background: #e74c3c; color: #fff; border-color: #e74c3c; }

/* 店铺网格 */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.shop-card { background: #fff; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.shop-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.shop-cover { width: 100%; height: 160px; overflow: hidden; background: #eee; display: flex; align-items: center; justify-content: center; }
.shop-cover img { width: 100%; height: 100%; object-fit: cover; }
.no-image { color: #999; font-size: 13px; }
.shop-info { padding: 12px 14px; }
.shop-info h3 { font-size: 15px; margin-bottom: 6px; color: #333; }
.shop-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.tag { padding: 1px 8px; border-radius: 8px; font-size: 11px; color: #fff; }
.shop-address { font-size: 12px; color: #999; }

.empty { text-align: center; color: #999; padding: 60px 0; font-size: 16px; }

/* 响应式 */
@media (max-width: 768px) {
    .header { padding: 15px 20px; }
    .header h1 { font-size: 18px; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ==================== 头部按钮 ==================== */
.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: normal;
}
.header-btn:hover { opacity: 0.85; }

/* ==================== 登录弹窗 ==================== */
#loginModal { font-family: "Microsoft YaHei", Arial, sans-serif; }
.login-tab { transition: color 0.2s; font-weight: normal; }
#loginModal input:focus { border-color: #e74c3c; outline: none; }
#loginModal button:active { opacity: 0.85; }
