* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

html, body {
    margin: 0;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding-top: 65px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: linear-gradient(135deg, rgba(26,115,232,0.95) 0%, rgba(13,71,161,0.95) 100%);
    color: white;
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.header:hover {
    background: linear-gradient(135deg, rgba(26,115,232,0.98) 0%, rgba(13,71,161,0.98) 100%);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #fff 0%, #ffd6a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.logo i {
    font-size: 28px;
    color: #ffd6a5;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    padding: 5px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-menu a:hover:before {
    left: 100%;
}
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info .btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8e53 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.user-info .btn-primary:hover {
    background: linear-gradient(135deg, #ff8e53 0%, #ff6b35 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255,107,53,0.4);
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #4CAF50;
    color: white;
}

.btn-secondary:hover {
    background: #3d8b40;
}

.btn-outline {
    background: transparent;
    border: 1px solid #1a73e8;
    color: #1a73e8;
}

.btn-outline:hover {
    background: #1a73e8;
    color: white;
}

.main-content {
    padding: 25px 0;
    min-height: calc(100vh - 65px - 180px);
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 25px;
}

.card-header {
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 20px;
    color: #1a73e8;
    font-weight: 600;
}

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eaeaea;
}

.table tr:hover {
    background: #f8f9fa;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

select.form-control {
    appearance: auto;
    cursor: pointer;
    min-height: 42px;
    background: #fff;
    padding-right: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group .form-control {
    flex: 1;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.notice-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s;
}

.notice-item:hover {
    transform: translateY(-5px);
}

.notice-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.notice-content {
    padding: 20px;
}

.notice-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.notice-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.notice-meta {
    color: #999;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

.product-table {
    margin-top: 20px;
}

.product-table input[type="number"] {
    width: 80px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
}

.cart-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.cart-total {
    font-size: 20px;
    font-weight: 600;
    color: #ff6b35;
    margin: 10px 0;
}

.footer {
    background: linear-gradient(to bottom, #1a1e2c, #2c3e50);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 4px solid #ff6b35;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ff9f73;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h3:before {
    content: "▸";
    color: #ff6b35;
}

.footer-section p {
    color: #b0b7c3;
    line-height: 1.6;
    font-size: 14px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li:before {
    content: "•";
    color: #ff6b35;
    font-size: 12px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ff9f73;
    padding-left: 5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #b0b7c3;
}

.contact-info i {
    color: #ff6b35;
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3a4a5e;
    margin-top: 30px;
    color: #8a94a6;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    color: #1a73e8;
    font-size: 24px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-icon {
    font-size: 40px;
    color: #1a73e8;
    margin-bottom: 15px;
}

.dashboard-value {
    font-size: 32px;
    font-weight: 600;
    color: #ff6b35;
    margin: 10px 0;
}

.dashboard-label {
    color: #666;
    font-size: 14px;
}

/* ==================== 搜索框样式 ==================== */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box input {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
    transition: border 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.15);
}

.search-box select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.search-box button {
    padding: 8px 18px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #1557b0;
}

/* ==================== 分页组件样式 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 2px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #1a73e8;
    font-size: 13px;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #f0f7ff;
    border-color: #1a73e8;
}

.pagination .current {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
    font-weight: 600;
}

.pagination .disabled {
    color: #bbb;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================== Toast 提示样式 ==================== */
.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    font-size: 14px;
    animation: fadeInOut 3s ease-in-out forwards;
}

.toast-error {
    background: #f44336;
}

.toast-warning {
    background: #ff9800;
}

@keyframes fadeInOut {
    0%   { opacity: 0; transform: translateY(-20px); }
    10%  { opacity: 1; transform: translateY(0); }
    85%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* ==================== Loading Spinner 样式 ==================== */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading.active {
    display: flex;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #1a73e8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    color: white;
    margin-left: 16px;
    font-size: 15px;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== 表格 Hover 高亮 ==================== */
.table tbody tr:hover {
    background-color: #f0f6ff !important;
    transition: background-color 0.15s ease;
}

/* ==================== 按钮禁用状态 ==================== */
.btn:disabled,
button:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* ==================== 表格响应式增强 ==================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 10px;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ==================== 筛选栏样式 ==================== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-bar select {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
}

/* ==================== 批量工具栏 ==================== */
.batch-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 14px;
    background: #fff8e1;
    border-radius: 6px;
    border: 1px solid #ffe082;
}

.batch-toolbar .btn-danger {
    padding: 6px 16px;
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.batch-toolbar .btn-danger:hover {
    background: #b71c1c;
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 768px) {
    body {
        padding-top: 105px;
    }

    .main-content {
        min-height: calc(100vh - 105px - 160px);
    }

    .nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .table th, .table td {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .login-container {
        margin: 20px auto;
        padding: 25px;
    }

    .search-box {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input {
        min-width: auto;
        width: 100%;
    }

    .pagination a,
    .pagination span {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
        padding: 0 6px;
    }

    .toast {
        top: 110px;
        right: 10px;
        left: 10px;
        text-align: center;
    }

    .loading-spinner {
        width: 36px;
        height: 36px;
        border-width: 3px;
    }

    .loading-text {
        font-size: 13px;
        margin-left: 12px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .batch-toolbar {
        flex-wrap: wrap;
    }
}