* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f5f5f7; margin: 0; padding-bottom: 50px; }

/* 导航栏 */
.top-nav { background: #fff; padding: 15px 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.logo { font-weight: bold; font-size: 1.2rem; margin-bottom: 10px; color: #333; }
.filters { overflow-x: auto; white-space: nowrap; padding-bottom: 5px; }
.filters a { display: inline-block; padding: 6px 15px; margin-right: 10px; text-decoration: none; color: #666; background: #eee; border-radius: 20px; font-size: 0.9rem; transition: 0.3s; }
.filters a.active, .filters a:hover { background: #007bff; color: white; }

/* 产品网格 */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; padding: 20px; max-width: 1200px; margin: 0 auto; }
.product-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.2s; }
.product-card:hover { transform: translateY(-5px); }
.img-box { position: relative; height: 250px; overflow: hidden; }
.img-box img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); color: #fff; padding: 4px 8px; font-size: 0.8rem; border-radius: 4px; }
.info { padding: 15px; }
.info h3 { margin: 0 0 5px 0; font-size: 1.1rem; color: #333; }
.info .brand { color: #888; font-size: 0.85rem; margin-bottom: 10px; }
.info .desc { color: #555; font-size: 0.9rem; margin-bottom: 15px; line-height: 1.4; }
.btn-video { display: block; text-align: center; background: #e63946; color: white; text-decoration: none; padding: 8px; border-radius: 6px; font-size: 0.9rem; }

/* 后台样式 */
.login-body { display: flex; justify-content: center; align-items: center; height: 100vh; background: #ddd; }
.login-form { background: #fff; padding: 40px; border-radius: 10px; width: 300px; text-align: center; }
.login-form input { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ccc; border-radius: 4px; }
.admin-header { background: #333; color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.admin-header a { color: #fff; text-decoration: none; border: 1px solid #fff; padding: 5px 10px; border-radius: 4px; }
.container { max-width: 1000px; margin: 20px auto; padding: 0 20px; display: flex; gap: 20px; flex-wrap: wrap; }
.card { background: #fff; padding: 20px; border-radius: 8px; flex: 1; min-width: 300px; }
.product-list { flex: 1.5; background: #fff; padding: 20px; border-radius: 8px; min-width: 300px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input[type="text"], textarea { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
.btn { background: #28a745; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-size: 1rem; }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 10px; border-bottom: 1px solid #eee; text-align: left; }
.btn-del { color: red; text-decoration: none; }