* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
    position: sticky; top: 0; z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 20px; font-weight: 700; color: #1e40af; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #374151; }
.nav a:hover { color: #2563eb; text-decoration: none; }
.dropdown { position: relative; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
    min-width: 160px; box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 16px; }
.dropdown-menu a:hover { background: #f3f4f6; }

/* Main */
.main-content { padding: 30px 20px 60px; min-height: 60vh; }

/* Alert */
.alert { padding: 12px 18px; border-radius: 6px; margin-bottom: 20px; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* Card */
.card {
    background: #fff; border-radius: 8px; padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    margin-bottom: 24px;
}
.card h2 { margin-bottom: 16px; color: #111827; font-size: 20px; }
.card h3 { margin: 16px 0 10px; color: #1f2937; font-size: 16px; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #374151; }
.form-group label .req { color: #dc2626; margin-left: 2px; }
.form-control {
    width: 100%; padding: 10px 12px; border: 1px solid #d1d5db;
    border-radius: 6px; font-size: 14px; transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
textarea.form-control { min-height: 100px; resize: vertical; }
input[type="file"].form-control { padding: 8px; }
.form-hint { font-size: 12px; color: #6b7280; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* Button */
.btn {
    display: inline-block; padding: 10px 22px; border: none; border-radius: 6px;
    font-size: 14px; cursor: pointer; transition: all .2s;
    background: #e5e7eb; color: #374151; text-decoration: none;
}
.btn:hover { opacity: .9; text-decoration: none; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-success { background: #059669; color: #fff; }
.btn-danger  { background: #dc2626; color: #fff; }
.btn-warning { background: #d97706; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { display: block; width: 100%; }

/* Agreement */
.agreement-box {
    border: 1px solid #e5e7eb; border-radius: 6px; padding: 16px;
    margin: 20px 0; background: #fafafa;
}
.agreement-content {
    max-height: 220px; overflow-y: auto; padding: 12px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 4px;
    font-size: 13px; color: #4b5563; margin: 10px 0;
}
.agreement-check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.agreement-check input { width: 16px; height: 16px; }

/* Table */
.table {
    width: 100%; border-collapse: collapse; background: #fff;
}
.table th, .table td {
    padding: 12px 14px; text-align: left; border-bottom: 1px solid #e5e7eb;
}
.table th { background: #f9fafb; font-weight: 600; color: #374151; }
.table tr:hover { background: #f9fafb; }
.table img.thumb { max-width: 60px; max-height: 60px; border-radius: 4px; }

/* Badge */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-size: 12px; font-weight: 500;
}
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-approved, .badge-completed { background: #d1fae5; color: #065f46; }
.badge-rejected, .badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-paid, .badge-shipped { background: #dbeafe; color: #1e40af; }

/* Product Grid */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px; margin-top: 20px;
}
.product-card {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: transform .2s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.product-card .img {
    width: 100%; height: 160px; background: #e5e7eb;
    display: flex; align-items: center; justify-content: center; color: #9ca3af;
    overflow: hidden;
}
.product-card .img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 14px; }
.product-card .name { font-weight: 600; margin-bottom: 6px; }
.product-card .category { font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.product-card .price { color: #dc2626; font-size: 18px; font-weight: 700; }
.product-card .price::before { content: '¥'; font-size: 13px; margin-right: 2px; }
.product-card .seller { font-size: 12px; color: #6b7280; margin-top: 8px; }

/* Hero */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff; padding: 60px 0; text-align: center; border-radius: 8px;
    margin-bottom: 30px;
}
.hero h1 { font-size: 32px; margin-bottom: 12px; }
.hero p { font-size: 16px; opacity: .9; margin-bottom: 24px; }
.hero .btn-group { display: flex; gap: 14px; justify-content: center; }
.hero .btn { padding: 12px 28px; font-size: 15px; }
.hero .btn-light { background: #fff; color: #2563eb; }
.hero .btn-outline { background: transparent; color: #fff; border: 1px solid #fff; }

/* Footer */
.site-footer {
    background: #1f2937; color: #9ca3af; padding: 30px 0;
    text-align: center; font-size: 13px;
}
.site-footer .disclaimer { margin-top: 8px; font-size: 12px; opacity: .8; }

/* Summary cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background:#fff; padding:20px; border-radius:8px; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.stat-card .label { font-size:13px; color:#6b7280; }
.stat-card .value { font-size:28px; font-weight:700; color:#111827; margin-top:6px; }

@media (max-width: 768px) {
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .nav { gap: 12px; font-size: 13px; }
    .hero h1 { font-size: 24px; }
}
