* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', sans-serif; line-height: 1.6; color: #333; }
a { text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.1); position: sticky; top: 0; z-index: 1000; }
.top-bar { background: #667eea; color: #fff; padding: 8px 0; font-size: 13px; }
.top-bar .container { display: flex; gap: 20px; flex-wrap: wrap; }
.main-nav .container { display: flex; align-items: center; justify-content: space-between; padding: 15px; }
.logo { font-size: 24px; font-weight: bold; color: #667eea; }
.nav-menu { display: flex; list-style: none; gap: 25px; align-items: center; }
.nav-menu a { color: #333; font-weight: 500; transition: color .3s; }
.nav-menu a:hover, .nav-menu .active > a { color: #667eea; }
.nav-menu li { position: relative; }
.dropdown { position: absolute; top: 100%; left: 0; background: #fff; min-width: 150px; box-shadow: 0 5px 15px rgba(0,0,0,.1); border-radius: 5px; display: none; z-index: 100; padding: 0; }
.nav-menu li:hover .dropdown { display: block; }
.dropdown li { padding: 10px 15px; }
.dropdown li:hover { background: #f7fafc; }
.cart-icon { color: #667eea !important; font-weight: bold; }

.hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 80px 0; text-align: center; }
.hero h1 { font-size: 48px; margin-bottom: 20px; }
.hero p { font-size: 20px; margin-bottom: 30px; opacity: .9; }
.btn { display: inline-block; padding: 12px 30px; background: #fff; color: #667eea; border-radius: 30px; font-weight: bold; transition: all .3s; border: none; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,.2); }
.btn-primary { background: #667eea; color: #fff; }
.btn-success { background: #48bb78; color: #fff; }

.section { padding: 60px 0; }
.section-title { text-align: center; font-size: 36px; margin-bottom: 15px; }
.section-subtitle { text-align: center; color: #666; margin-bottom: 50px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,.08); text-align: center; transition: transform .3s; }
.service-card:hover { transform: translateY(-5px); }
.service-card .icon { font-size: 48px; color: #667eea; margin-bottom: 20px; }
.service-card .price { color: #e53e3e; font-size: 24px; font-weight: bold; margin: 15px 0; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.product-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,.08); transition: transform .3s; }
.product-card:hover { transform: translateY(-3px); }
.product-card .card-body { padding: 20px; }
.product-card .desc { color: #666; font-size: 14px; margin: 10px 0; }
.product-card .price { color: #e53e3e; font-size: 22px; font-weight: bold; }
.product-card .price .original { font-size: 14px; color: #999; text-decoration: line-through; margin-left: 10px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; font-family: inherit; }
.btn-submit { width: 100%; padding: 12px; background: #667eea; color: #fff; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; }
.btn-submit:hover { background: #5a67d8; }

.site-footer { background: #2d3748; color: #fff; padding: 50px 0 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h3 { margin-bottom: 20px; color: #667eea; }
.footer-col p { margin-bottom: 10px; opacity: .8; }
.footer-col a { color: #fff; opacity: .8; }
.footer-col a:hover { opacity: 1; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #4a5568; opacity: .6; font-size: 14px; }

.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.cart-table th, .cart-table td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
.cart-table th { background: #f7fafc; }

.order-status { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-paid { background: #dbeafe; color: #1e40af; }
.status-processing { background: #e9d5ff; color: #7c3aed; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.admin-layout { display: flex; min-height: calc(100vh - 200px); }
.admin-sidebar { width: 250px; background: #2d3748; color: #fff; padding: 20px 0; }
.admin-sidebar a { display: block; padding: 12px 20px; color: #cbd5e0; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: #4a5568; color: #fff; }
.admin-content { flex: 1; padding: 30px; background: #f7fafc; }

.dashboard-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.dash-card { background: #fff; padding: 25px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.05); text-align: center; }
.dash-card h3 { font-size: 36px; color: #667eea; margin-bottom: 5px; }

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero h1 { font-size: 32px; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
}
