/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h1 {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.nav-logo i {
    margin-right: 10px;
    color: #ffd700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: #ffd700;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主要内容 */
.main-content {
    min-height: calc(100vh - 70px - 200px);
}

/* 横幅区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* 分类筛选 */
.category-filter {
    padding: 40px 0;
    background: white;
}

.category-filter h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* 商品展示 */
.products-section {
    padding: 60px 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.products-header h3 {
    font-size: 28px;
    color: #333;
}

.products-count {
    color: #6c757d;
    font-size: 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
}

.product-category {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions button {
    flex: 1;
    padding: 8px 15px;
    font-size: 14px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 60px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-products {
    text-align: center;
    padding: 60px 0;
    color: #6c757d;
}

.no-products i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #ffd700;
}

.footer-section p {
    margin-bottom: 8px;
    opacity: 0.8;
}

.footer-section i {
    margin-right: 8px;
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    opacity: 0.7;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-body {
    padding: 30px;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

/* 提示消息 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 12px;
}

/* 商品详情页 */
.product-detail {
    padding: 40px 0;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-images {
    position: sticky;
    top: 100px;
}

.main-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-price {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
}

.price-symbol {
    font-size: 20px;
}

.product-stock {
    color: #6c757d;
}

.product-category {
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.category-label {
    font-weight: 600;
    color: #333;
}

.product-description {
    margin-bottom: 30px;
}

.product-description h3 {
    margin-bottom: 15px;
    color: #333;
}

.product-description p {
    line-height: 1.8;
    color: #666;
}

.product-actions {
    margin-bottom: 30px;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 150px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

#quantity {
    flex: 1;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.product-features {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
}

.feature i {
    color: #667eea;
    font-size: 18px;
}

.product-not-found {
    text-align: center;
    padding: 80px 0;
}

.not-found-content i {
    font-size: 64px;
    color: #ffc107;
    margin-bottom: 20px;
}

.not-found-content h2 {
    margin-bottom: 15px;
    color: #333;
}

.not-found-content p {
    color: #6c757d;
    margin-bottom: 30px;
}

/* 相关推荐 */
.related-products {
    padding: 60px 0;
    border-top: 1px solid #e9ecef;
}

.related-products h3 {
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

/* 登录注册页面 */
.auth-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #e9ecef;
}

.auth-tab {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.auth-tab.active {
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

.auth-form {
    padding: 40px;
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.auth-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: #6c757d;
    z-index: 1;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    z-index: 1;
}

.form-help {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.link-back {
    color: #667eea;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.link-back:hover {
    text-decoration: underline;
}

/* 购物车页面 */
.cart-container {
    padding: 40px 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.cart-header h2 {
    font-size: 28px;
    color: #333;
}

.cart-count {
    color: #6c757d;
    font-size: 16px;
}

.empty-cart {
    text-align: center;
    padding: 80px 0;
}

.empty-cart-content i {
    font-size: 64px;
    color: #6c757d;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-cart-content h3 {
    margin-bottom: 15px;
    color: #333;
}

.empty-cart-content p {
    color: #6c757d;
    margin-bottom: 30px;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info h4 {
    margin-bottom: 8px;
    color: #333;
}

.cart-item-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 18px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-quantity button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.cart-item-quantity input {
    width: 50px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.cart-item-total {
    font-weight: 600;
    color: #e74c3c;
    font-size: 18px;
}

.cart-item-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cart-item-remove:hover {
    background: #c82333;
}

.cart-footer {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-summary {
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.summary-item.total {
    font-size: 20px;
    font-weight: 600;
    color: #e74c3c;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.cart-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* 订单相关 */
.order-summary {
    margin-bottom: 30px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.order-item-info h4 {
    margin-bottom: 5px;
    color: #333;
}

.order-item-price {
    color: #e74c3c;
    font-weight: 600;
}

.order-item-quantity {
    color: #6c757d;
    font-size: 14px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .product-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-images {
        position: static;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .cart-item-image {
        margin: 0 auto;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .product-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .auth-box {
        margin: 20px;
    }
    
    .auth-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-buttons {
        gap: 10px;
    }
    
    .category-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* 个人中心样式 */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
}

.profile-header p {
    color: #666;
}

.profile-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 2rem;
}

.profile-tab {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.profile-tab.active {
    color: #e91e63;
    border-bottom-color: #e91e63;
}

.profile-tab:hover {
    color: #e91e63;
}

.profile-panel {
    display: none;
}

.profile-panel.active {
    display: block;
}

.profile-panel h3 {
    color: #333;
    margin-bottom: 1.5rem;
}

/* 订单列表样式 */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.order-id {
    font-weight: bold;
    color: #333;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.order-status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.order-status.processing {
    background-color: #cce5ff;
    color: #004085;
}

.order-status.shipped {
    background-color: #d4edda;
    color: #155724;
}

.order-status.delivered {
    background-color: #d1ecf1;
    color: #0c5460;
}

.order-status.cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.order-content {
    display: grid;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.no-orders {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* 管理后台样式 */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.admin-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
}

.admin-header p {
    color: #666;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card i {
    font-size: 2rem;
    color: #e91e63;
}

.stat-info h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.stat-info p {
    color: #666;
    margin: 0;
}

.admin-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 2rem;
}

.admin-tab {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.admin-tab.active {
    color: #e91e63;
    border-bottom-color: #e91e63;
}

.admin-tab:hover {
    color: #e91e63;
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.panel-header h3 {
    color: #333;
    margin: 0;
}

/* 数据表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.processing {
    background-color: #cce5ff;
    color: #004085;
}

.status-badge.shipped {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.delivered {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-badge.cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.permission-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.permission-badge.user {
    background-color: #e3f2fd;
    color: #1976d2;
}

.permission-badge.admin {
    background-color: #fce4ec;
    color: #c2185b;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 0.5rem;
    transition: all 0.3s;
}

.btn-small.btn-primary {
    background-color: #e91e63;
    color: white;
}

.btn-small.btn-primary:hover {
    background-color: #c2185b;
}

.btn-small.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-small.btn-danger:hover {
    background-color: #c82333;
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

/* 销售分析样式 */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.analytics-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analytics-card h4 {
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.chart-placeholder {
    text-align: center;
    color: #666;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.popular-products {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.user-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-stats p {
    margin: 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .admin-tabs {
        flex-wrap: wrap;
    }
    
    .admin-tab {
        flex: 1;
        min-width: 120px;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-tabs {
        flex-wrap: wrap;
    }
    
    .profile-tab {
        flex: 1;
        min-width: 100px;
    }
} 