*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;line-height:1.6;color:#333;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);background-attachment:fixed}.container{max-width:1200px;margin:0 auto;padding:0 20px}header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:1rem 0;margin-bottom:2rem;box-shadow:0 4px 12px #00000026}header h1{font-size:2.8rem;text-align:center;font-weight:900;background:linear-gradient(135deg,gold,#ffed4e,#fff9c4,#ffd54f,#ffc107);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;text-shadow:2px 2px 4px rgba(0,0,0,.5),0 0 10px rgba(255,215,0,.8),0 0 20px rgba(255,237,78,.6),0 0 30px rgba(255,213,79,.4);font-family:Roboto Mono,Orbitron,Rajdhani,monospace;letter-spacing:3px;position:relative;z-index:1}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1.5rem;margin-bottom:2rem}.product-card{background:#fff;border-radius:12px;box-shadow:0 6px 12px #0000001a;overflow:hidden;transition:all .3s ease;border:2px solid transparent;transform:scale(1)}.product-card.recommended{z-index:1;border:2px solid #ff6b6b;position:relative;margin-bottom:0;grid-column:auto;display:block;flex-direction:row}.product-card.recommended:before{content:"推荐";position:absolute;top:8px;left:8px;background:linear-gradient(135deg,#ff6b6b,#ff8e53);color:#fff;padding:4px 8px;border-radius:4px;font-size:.8rem;font-weight:700;z-index:2;box-shadow:0 2px 4px #0003}.product-card.recommended .product-image-container{width:100%;height:120px;aspect-ratio:1/1;flex-shrink:auto}.product-card.recommended .product-info{width:100%;display:block;justify-content:normal;padding:.8rem}.product-card.recommended .product-info h3,.product-card.recommended .price{font-size:1rem;margin-bottom:.3rem}.product-card.recommended .sell-button{width:100%;align-self:auto;padding:.5rem;font-size:.9rem;margin-top:0}.product-image-container{position:relative;width:100%;height:120px;aspect-ratio:1/1}.product-image-container img{width:100%;height:100%;object-fit:cover;border-bottom:2px solid #667eea}.special-badge{position:absolute;top:8px;right:8px;background:#e74c3c;color:#fff;padding:4px 8px;border-radius:3px;font-weight:700;font-size:.8rem;z-index:1;box-shadow:0 2px 4px #0003}.product-card:hover{transform:translateY(-6px);box-shadow:0 8px 16px #00000026;border-color:#667eea}.product-card img{width:100%;height:120px;object-fit:cover;border-bottom:2px solid #667eea}.product-info{padding:.8rem}.product-info h3{margin-bottom:.3rem;font-size:1rem;color:#333;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.price{font-weight:700;color:#e74c3c;font-size:1rem;background:#fff3f3;padding:.3rem;border-radius:4px;display:inline-block;margin-bottom:.3rem}.quantity{font-size:.8rem;color:#7f8c8d;margin-bottom:.5rem;display:block}.sell-button{width:100%;padding:.5rem;background:linear-gradient(135deg,#3498db,#2980b9);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.9rem;transition:all .3s ease;box-shadow:0 3px 5px #0000001a;font-weight:500;letter-spacing:.3px;margin:0}.sell-button:hover:not(:disabled){background:linear-gradient(135deg,#2980b9,#1f618d);transform:translateY(-2px);box-shadow:0 6px 12px #00000026}.sell-button:disabled{background:#bdc3c7;cursor:not-allowed;transform:none;box-shadow:none}.message{padding:1rem;margin:1rem 0;border-radius:8px;text-align:center;font-weight:600;font-size:1rem;animation:fadeIn .3s ease}.message.success{background:#e8f5e8;color:#43a047;border-left:4px solid #43a047}.message.error{background:#fff3f3;color:#e53935;border-left:4px solid #e53935}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.search-bar{margin-bottom:2rem;text-align:center}.search-bar input{padding:.8rem 1rem;font-size:1.1rem;width:400px;border:2px solid #ddd;border-radius:25px;transition:all .3s ease;box-shadow:0 2px 4px #0000001a}.search-bar input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;width:450px}.admin-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.status-bar{background:linear-gradient(135deg,#f093fb,#f5576c);padding:1.5rem;border-radius:12px;margin-bottom:2rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:1.5rem;color:#fff;box-shadow:0 4px 6px #0000001a}.status-item{text-align:center;background:#ffffff26;padding:1rem;border-radius:8px;min-width:150px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.status-item h4{font-size:.9rem;color:#ffffffe6;margin-bottom:.8rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.status-item .value{font-size:1.8rem;font-weight:700;color:#fff;text-shadow:1px 1px 2px rgba(0,0,0,.2)}.button{display:inline-block;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:.8rem 1.5rem;border:none;border-radius:8px;cursor:pointer;font-size:1rem;text-decoration:none;transition:all .3s ease;box-shadow:0 4px 6px #0000001a;font-weight:500;letter-spacing:.5px}.button:hover{background:linear-gradient(135deg,#5568d3,#66428a);transform:translateY(-2px);box-shadow:0 6px 12px #00000026}.button-danger{background:linear-gradient(135deg,#ff6b6b,#ee5a6f)}.button-danger:hover{background:linear-gradient(135deg,#ff5252,#e53935)}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.8rem;font-weight:600;color:#555;font-size:1rem}.form-group input,.form-group select,.form-group textarea{width:100%;padding:.8rem;font-size:1rem;border:2px solid #ddd;border-radius:8px;transition:all .3s ease;box-shadow:0 2px 4px #0000000d}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.admin-panel{background-color:#fff;padding:2rem;border-radius:12px;box-shadow:0 4px 6px #0000001a}.product-image{display:flex;justify-content:center;align-items:center;max-width:300px;max-height:300px;overflow:hidden;border-radius:8px;box-shadow:0 4px 6px #0000001a}.product-image img{max-width:100%;max-height:300px;object-fit:contain}.product-item img{width:100%;height:150px;object-fit:cover;border-radius:8px;margin-bottom:10px}.edit-product-form{max-width:600px;margin:0 auto}.product-info-grid{display:grid;grid-template-columns:1fr 2fr;gap:2rem;margin-bottom:2rem}.price-input{display:flex;gap:1rem;align-items:center}.price-input input{flex:1}.price-input button{min-width:120px}.product-item{background:linear-gradient(135deg,#f5f7fa,#c3cfe2);padding:1.5rem;border-radius:12px;border:2px solid transparent;transition:all .3s ease}.product-item:hover{border-color:#667eea;transform:translateY(-2px);box-shadow:0 6px 12px #0000001a}.material-row{display:flex;gap:1rem;margin-bottom:.8rem;align-items:center;background:#f9f9f9;padding:1rem;border-radius:8px;border:1px solid #e0e0e0;flex-wrap:wrap}.material-row select{flex:2;min-width:200px}.material-row input{flex:1;min-width:120px}.material-row button{background:linear-gradient(135deg,#ff6b6b,#ee5a6f);color:#fff;border:none;padding:.6rem 1rem;border-radius:6px;cursor:pointer;font-weight:500;transition:all .3s ease;min-width:80px}.material-row button:hover{background:linear-gradient(135deg,#ff5252,#e53935);transform:translateY(-1px)}.footer{margin-top:3rem;text-align:center;padding:2rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:12px 12px 0 0}.admin-link{color:#fff;text-decoration:none;font-weight:700;font-size:1.1rem;transition:all .3s ease;background:#fff3;padding:.5rem 1rem;border-radius:20px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:inline-block}.admin-link:hover{color:#fff;text-decoration:underline;text-underline-offset:4px;background:#ffffff4d}h2{color:#333;font-size:1.8rem;margin-bottom:1.5rem;text-align:center;position:relative;padding-bottom:.8rem}h2:after{content:"";position:absolute;bottom:0;left:50%;transform:translate(-50%);width:100px;height:4px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:2px}.sales-summary{background:linear-gradient(135deg,#4facfe,#00f2fe);color:#fff;padding:1.5rem;border-radius:12px;margin-bottom:2rem}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-top:1rem}.summary-item{background:#ffffff26;padding:1.2rem;border-radius:8px;text-align:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.summary-item h4{font-size:.9rem;margin-bottom:.5rem;opacity:.9;text-transform:uppercase;letter-spacing:.5px}.summary-item p{font-size:1.6rem;font-weight:700}table{width:100%;border-collapse:collapse;margin-top:1.5rem;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 4px 6px #0000001a}th,td{padding:1rem;text-align:left;border-bottom:1px solid #e0e0e0}th{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-weight:600;text-transform:uppercase;letter-spacing:.5px;font-size:.9rem}tr:hover{background:#f5f7fa}tr:nth-child(2n){background:#fafafa}.form-actions{display:flex;gap:1rem;margin-top:2rem;justify-content:flex-end}.loading{text-align:center;padding:2rem;font-size:1.2rem;color:#667eea;font-weight:600}.error-message{background:#fff3f3;color:#e53935;padding:1rem;border-radius:8px;margin-bottom:1rem;border-left:4px solid #e53935}.success-message{background:#e8f5e8;color:#43a047;padding:1rem;border-radius:8px;margin-bottom:1rem;border-left:4px solid #43a047}.product-select-container{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1rem;padding:1rem;background:#f5f7fa;border-radius:8px;border:1px solid #e0e0e0}.product-select-item{display:flex;align-items:center;gap:.5rem;background:#fff;padding:.8rem 1.2rem;border-radius:6px;box-shadow:0 2px 4px #0000001a;transition:all .3s ease;cursor:pointer;min-width:200px}.product-select-item:hover{box-shadow:0 4px 8px #00000026;transform:translateY(-2px)}.product-select-item input[type=checkbox]{width:18px;height:18px;accent-color:#667eea;cursor:pointer}.product-select-item label{margin:0;cursor:pointer;font-weight:500;color:#333}.product-stock{font-size:.9rem;color:#7f8c8d;margin:0;font-weight:500}.restock-section{margin:1.5rem 0;padding:1rem;background:#e8f5e8;border-radius:8px;border:1px solid #d4edda}.reset-data-section{margin:1.5rem 0;padding:1.5rem;background:#fff3f3;border-radius:8px;border:1px solid #f5c6cb}.warning-message{color:#721c24;background:#f8d7da;padding:1rem;border-radius:6px;margin-bottom:1.5rem;border:1px solid #f5c6cb;font-size:.95rem;line-height:1.6}.warning-message strong{color:#e53935;font-weight:600}@media (max-width: 768px){.container{padding:0 10px}.status-bar{flex-direction:column;align-items:stretch}.search-bar input{width:100%}.admin-header{flex-direction:column;gap:1rem;align-items:stretch}.form-actions{flex-direction:column}}
