* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f7f5;
}

header {
    background: #2a4d69;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #4a7043;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

nav .logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav .logo img {
    height: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #4a7043;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

main {
    margin-top: 70px;
    min-height: calc(100vh - 150px);
}

.hero {
    height: 60vh;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    position: relative;
    margin-bottom: 2rem;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #4a7043;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    border: 2px solid #2a4d69;
    transition: all 0.3s;
}

.btn:hover {
    background: #386e3c;
    transform: translateY(-3px);
}

.btn-secondary {
    background: #2a4d69;
    border: 2px solid #4a7043;
}

.btn-secondary:hover {
    background: #1c3548;
}

section {
    padding: 4rem 20px;
    max-width: 1200px;
    margin: 0 auto 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #2a4d69;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4a7043;
    border-radius: 2px;
}

/* 商品部分 */
.products-container {
    padding: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.2rem;
    color: #2a4d69;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.product-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-price {
    font-size: 1.25rem;
    color: #ff6b35;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.current-price {
    margin-right: 10px;
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

/* 最小订购量 */
.min-order {
    display: inline-block;
    background-color: #f8d7da;
    color: #721c24;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 10px;
    font-weight: bold;
}

.product-actions {
    display: flex;
    gap: 10px;
}

/* 筛选和排序 */
.filter-container {
    background: #f4f7f5;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: bold;
    color: #2a4d69;
}

.filter-select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: white;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.search-input {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 200px;
}

/* 购物车 */
.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-icon i {
    font-size: 1.5rem;
    color: white;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e63946;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.cart-container {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: right 0.3s;
    padding: 20px;
    overflow-y: auto;
}

.cart-container.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cart-title {
    font-size: 1.5rem;
    color: #2a4d69;
}

.close-cart {
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: bold;
    color: #2a4d69;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #e63946;
    font-weight: bold;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    background: #f4f7f5;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-item-remove {
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 5px;
}

.cart-item-remove:hover {
    color: #e63946;
}

.cart-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: #4a7043;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #386e3c;
}

/* 产品详情模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1002;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    z-index: 1;
}

.product-detail {
    display: flex;
    flex-wrap: wrap;
}

.product-detail-image {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.product-detail-image img {
    width: 100%;
    border-radius: 8px;
}

.product-detail-info {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.product-detail-title {
    font-size: 1.8rem;
    color: #2a4d69;
    margin-bottom: 10px;
}

.product-detail-price {
    font-size: 1.5rem;
    color: #e63946;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-detail-desc {
    margin-bottom: 20px;
    color: #666;
}

.product-detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* 加载动画 */
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: 1003;
    justify-content: center;
    align-items: center;
}

.loader.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4a7043;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 媒体查询适配 */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #2a4d69;
        padding: 1rem 0;
    }
    
    nav ul.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    section {
        padding: 2rem 15px;
    }
    
    .product-detail {
        flex-direction: column;
    }
    
    .search-container {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
    
    .search-input {
        flex-grow: 1;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-container {
        width: 100%;
        right: -100%;
    }
}

/* 添加刷新按钮样式 */
.refresh-button {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #2a4d69;
    transition: all 0.3s;
}

.refresh-button:hover {
    background: #1c3548;
    transform: translateY(-2px);
}

.refresh-button i {
    animation: spin 1s linear infinite;
    animation-play-state: paused;
}

.refresh-button:hover i {
    animation-play-state: running;
}

/* 抖音链接样式 */
.product-source {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    text-align: right;
}

.douyin-link {
    color: #ee1d52;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.douyin-link:hover {
    color: #69c9d0;
    transform: translateY(-2px);
}

.douyin-link i {
    font-size: 1.2rem;
}

/* 抖音分享模态框样式 */
.douyin-share-container {
    padding: 20px;
    text-align: center;
}

.douyin-share-container h3 {
    color: #ee1d52;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.share-instructions {
    margin-bottom: 15px;
    color: #666;
}

.share-code-container {
    margin: 20px 0;
    position: relative;
}

.share-code {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px dashed #ee1d52;
    border-radius: 8px;
    background: #f9f9f9;
    color: #333;
    font-size: 1rem;
    resize: none;
}

.share-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.copy-btn {
    background: #ee1d52;
    border-color: #ee1d52;
}

.copy-btn:hover {
    background: #cf1945;
}

/* 阿里巴巴代发样式 */
.alibaba-container {
    padding: 20px;
}

.alibaba-container h3 {
    color: #FF6A00;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.product-brief {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.product-brief img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.brief-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.brief-price {
    font-weight: bold;
    color: #e63946;
}

.alibaba-options {
    margin-bottom: 20px;
}

.option-group {
    margin-bottom: 15px;
}

.option-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.receiver-info {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.receiver-info input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.receiver-address, .order-note {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-height: 60px;
    resize: vertical;
}

.delivery-options {
    display: flex;
    gap: 20px;
}

.option {
    display: flex;
    align-items: center;
    gap: 5px;
}

.alibaba-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.alibaba-submit {
    background: #FF6A00;
    border-color: #FF6A00;
}

.alibaba-submit:hover {
    background: #E45F00;
}

/* 购物车商品预览 */
.cart-summary-display {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    background: #f9f9f9;
}

.cart-summary-display h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.cart-items-preview {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.cart-preview-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.cart-preview-item:last-child {
    border-bottom: none;
}

.cart-preview-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.preview-item-title {
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.preview-item-price {
    font-size: 0.8rem;
    color: #e63946;
}

.cart-total-preview {
    text-align: right;
    font-weight: bold;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.cart-total-preview span {
    color: #e63946;
    font-size: 1.1rem;
}

/* 替换抖音链接为阿里巴巴链接样式 */
.alibaba-link {
    color: #FF6A00;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.alibaba-link:hover {
    color: #E45F00;
    transform: translateY(-2px);
}

.alibaba-link i {
    font-size: 1.2rem;
}

/* 管理员入口样式 */
.admin-entry {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.5;
    transition: opacity 0.3s;
    z-index: 100;
}

.admin-entry:hover {
    opacity: 1;
}

.admin-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* 管理员登录表单样式 */
.admin-login-form {
    padding: 20px;
    text-align: center;
}

.admin-login-form h3 {
    margin-bottom: 20px;
    color: #2a4d69;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* 管理面板样式 */
.admin-panel {
    padding: 20px;
}

.admin-panel h3 {
    margin-bottom: 20px;
    color: #2a4d69;
    text-align: center;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-menu-btn {
    padding: 15px;
    font-size: 1rem;
    text-align: center;
}

/* 管理员批量处理样式 */
.admin-batch-container {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.admin-batch-header {
    margin-bottom: 15px;
    font-weight: bold;
    color: #2a4d69;
}

.admin-batch-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-batch-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 5px;
}

.admin-batch-info {
    flex-grow: 1;
}

.admin-batch-title {
    font-weight: bold;
}

.admin-batch-price {
    color: #e63946;
}

.admin-actions {
    text-align: center;
    margin-top: 20px;
}

/* 消息通知 */
.message-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: #fff;
    background-color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    transform: translateY(-100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.message-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.message-notification.success {
    background-color: #4CAF50;
}

.message-notification.error {
    background-color: #F44336;
}

.message-notification.warning {
    background-color: #FF9800;
}

.message-notification.info {
    background-color: #2196F3;
}

/* 管理员入口 */
.admin-entry {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.admin-btn {
    opacity: 0.3;
    background: #f5f5f5;
    border: none;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.admin-btn:hover {
    opacity: 1;
}

/* 模态框通用样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

/* 管理员登录表单 */
.admin-login-form {
    margin-top: 20px;
}

.admin-login-form .form-group {
    margin-bottom: 15px;
}

.admin-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.admin-login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.admin-login-btn {
    background-color: #1e88e5;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

.admin-login-btn:hover {
    background-color: #1565c0;
}

/* 管理员面板 */
.admin-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
    margin-top: 20px;
}

.admin-panel-btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.admin-panel-btn:hover {
    background-color: #e0e0e0;
}

.admin-panel-btn i {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
    color: #1e88e5;
}

/* 批量处理模态框 */
.batch-fulfillment-modal .modal-content {
    max-width: 700px;
}

.batch-items {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.batch-items li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.batch-items li:last-child {
    border-bottom: none;
}

.item-info {
    display: flex;
    align-items: center;
}

.item-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.item-details h4 {
    margin: 0;
    font-size: 16px;
}

.item-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.alibaba-link {
    color: #ff6a00;
    text-decoration: none;
}

.alibaba-link:hover {
    text-decoration: underline;
}

.receiver-info,
.fulfillment-options {
    margin-top: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 80px;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.batch-process-btn {
    background-color: #ff6a00;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
    margin-right: 10px;
}

.batch-process-btn:hover {
    background-color: #e65c00;
}

.cancel-btn {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
    margin-left: 10px;
}

.cancel-btn:hover {
    background-color: #e0e0e0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .admin-panel {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .batch-process-btn,
    .cancel-btn {
        margin: 5px 0;
    }
}

/* 淘宝风格管理后台样式 */
.taobao-admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 管理后台头部 */
.admin-header {
    background-color: #FF6000;
    color: white;
    padding: 0 20px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.admin-logo {
    display: flex;
    align-items: center;
}

.admin-logo img {
    height: 40px;
    margin-right: 10px;
}

.admin-logo span {
    font-size: 18px;
    font-weight: bold;
}

.admin-user {
    display: flex;
    align-items: center;
    position: relative;
}

.admin-user span {
    margin-right: 10px;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.admin-avatar i {
    font-size: 24px;
}

.admin-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 150px;
    padding: 10px 0;
    display: none;
    z-index: 1;
}

.admin-dropdown.active {
    display: block;
}

.admin-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-dropdown li {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #333;
    font-size: 14px;
}

.admin-dropdown li:hover {
    background-color: #f5f5f5;
}

.admin-dropdown i {
    margin-right: 8px;
    color: #666;
}

/* 管理后台容器 */
.admin-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 侧边导航 */
.admin-sidebar {
    width: 220px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    overflow-y: auto;
}

.admin-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-menu li {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
    color: #666;
}

.admin-menu li:hover {
    background-color: #f9f9f9;
    color: #FF6000;
}

.admin-menu li.active {
    background-color: #FFF0E6;
    color: #FF6000;
    border-left: 3px solid #FF6000;
}

.admin-menu i {
    font-size: 18px;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-menu span {
    flex: 1;
}

.badge {
    background-color: #FF6000;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
}

/* 主内容区域 */
.admin-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f5f5f5;
}

.admin-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    font-weight: 500;
}

/* 标签页内容 */
.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* 统计卡片 */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: #FFF0E6;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.stat-icon i {
    font-size: 24px;
    color: #FF6000;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

.stat-change {
    font-size: 12px;
    display: flex;
    align-items: center;
}

.stat-change.up {
    color: #4CAF50;
}

.stat-change.down {
    color: #F44336;
}

.stat-change.nochange {
    color: #9E9E9E;
}

.stat-change i {
    margin-right: 3px;
}

/* 图表区域 */
.admin-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    margin-bottom: 20px;
}

.chart-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.chart-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.chart-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
}

.chart-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 10px;
}

.chart-bar {
    width: 30px;
    background: linear-gradient(to top, #FF6000, #FFB800);
    border-radius: 4px 4px 0 0;
    margin: 0 5px;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 10px;
}

.chart-labels span {
    font-size: 12px;
    color: #999;
    text-align: center;
    width: 40px;
}

/* 热销商品列表 */
.trending-products {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending-products li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.trending-products li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.product-rank {
    width: 24px;
    height: 24px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 12px;
    color: #666;
    margin-right: 15px;
}

.product-rank:nth-child(1) {
    background-color: #FFD700;
    color: white;
}

.product-image {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.product-sales {
    font-size: 12px;
    color: #999;
}

.product-price {
    font-weight: 500;
    color: #FF6000;
}

/* 最近订单 */
.recent-orders {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.view-all {
    color: #FF6000;
    text-decoration: none;
    font-size: 14px;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.orders-table th {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: #666;
    font-weight: 500;
}

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

.orders-table tbody tr:last-child td {
    border-bottom: none;
}

.orders-table tbody tr:hover {
    background-color: #f9f9f9;
}

.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status.pending {
    background-color: #FFF0E6;
    color: #FF6000;
}

.status.shipped {
    background-color: #E3F2FD;
    color: #2196F3;
}

.status.completed {
    background-color: #E8F5E9;
    color: #4CAF50;
}

.status.cancelled {
    background-color: #FFEBEE;
    color: #F44336;
}

.status.active {
    background-color: #E8F5E9;
    color: #4CAF50;
}

.btn-action {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.ship-btn {
    background-color: #FF6000;
    color: white;
}

.ship-btn:hover {
    background-color: #E65100;
}

.track-btn {
    background-color: #2196F3;
    color: white;
}

.track-btn:hover {
    background-color: #1976D2;
}

.detail-btn {
    background-color: #f0f0f0;
    color: #666;
}

.detail-btn:hover {
    background-color: #e0e0e0;
}

.edit-btn {
    background-color: #2196F3;
    color: white;
}

.edit-btn:hover {
    background-color: #1976D2;
}

.delete-btn {
    background-color: #F44336;
    color: white;
}

.delete-btn:hover {
    background-color: #D32F2F;
}

/* 订单管理页面 */
.order-filters {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.order-status-filter {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 120px;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 5px;
}

.date-range input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-btn {
    background-color: #FF6000;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.reset-btn {
    background-color: #f0f0f0;
    color: #666;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.batch-actions {
    display: flex;
    gap: 10px;
}

.batch-fulfill-btn {
    background-color: #FF6000;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.export-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* 表格全宽 */
.full-width {
    width: 100%;
}

.orders-table .small-text {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.order-products {
    display: flex;
    align-items: center;
}

.order-products img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.page-btn {
    background-color: white;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    margin: 0 10px;
}

.page-number {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background-color: white;
    margin: 0 5px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.page-number.active {
    background-color: #FF6000;
    color: white;
    border-color: #FF6000;
}

.page-info {
    margin-left: 15px;
    font-size: 14px;
    color: #666;
}

/* 货源管理 */
.sourcing-container {
    display: grid;
    grid-gap: 20px;
}

.alibaba-search {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.alibaba-search h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.hot-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

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

.keyword {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.3s;
}

.keyword:hover {
    background-color: #FF6000;
    color: white;
}

.product-mapping {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-mapping h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

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

.mapping-table th,
.mapping-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.product-cell,
.alibaba-cell {
    display: flex;
    align-items: center;
}

.product-cell img,
.alibaba-cell img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.add-mapping-btn {
    background-color: #FF6000;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* 管理后台页脚 */
.admin-footer {
    background-color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    color: #666;
    font-size: 14px;
}

.return-btn {
    background-color: #f0f0f0;
    color: #666;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .admin-sidebar {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        display: none;
    }
    
    .order-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group,
    .batch-actions {
        flex-wrap: wrap;
    }
    
    .date-range {
        flex-direction: column;
        align-items: flex-start;
    }
}

.fab.fa-bilibili {
    margin-right: 5px;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 比例 */
    background-color: #f5f5f5;
    overflow: hidden;
    height: 0; /* 使用padding-bottom来创建空间 */
    margin-bottom: 0;
}

.video-embed iframe {
    border-radius: 8px 8px 0 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 支付方式和收款码样式 */
.payment-methods {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.payment-methods h4 {
    color: #2a4d69;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.payment-options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 5px;
}

.payment-option input[type="radio"] {
    margin-right: 5px;
}

.payment-qrcode {
    max-width: 300px;
    margin: 0 auto;
}

.qrcode-container {
    display: none;
    text-align: center;
}

.qrcode-container.active {
    display: block;
}

.qrcode-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 8px;
}

.qrcode-container p {
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}

/* 添加支付页面样式 */
.payment-page-modal .modal-content {
    max-width: 800px;
    width: 90%;
    height: auto;
    padding: 20px;
}

.payment-page-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.payment-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.payment-steps {
    display: flex;
    gap: 30px;
}

.step {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #999;
}

.step.completed {
    color: #4caf50;
}

.step.active {
    color: #2196f3;
    font-weight: bold;
}

.step-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid currentColor;
}

.payment-notice {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.payment-amount {
    text-align: center;
    margin: 20px 0;
}

.payment-amount h2 {
    font-size: 32px;
    color: #f00;
    margin: 0;
}

.payment-qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.qrcode-img {
    width: 200px;
    height: 200px;
    position: relative;
}

.payment-qr {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    border: 1px solid #eee;
}

.payment-qr.active {
    display: block;
}

.refresh-code {
    text-align: center;
    margin-top: 10px;
    color: #666;
}

.refresh-icon {
    display: inline-block;
    cursor: pointer;
    font-size: 20px;
    color: #2196f3;
    margin-bottom: 5px;
}

.payment-methods-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method-option img {
    width: 30px;
    height: 30px;
}

.payment-method-option.active {
    border-color: #2196f3;
    background-color: #e3f2fd;
}

/* 新增支付页面样式 */
.container {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #ff4500;
    margin: 10px 0;
}

.tips {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.payment-method {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.payment-method button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.payment-method .active {
    background: #007bff;
    color: #fff;
}

.payment-method .inactive {
    background: #ddd;
    color: #333;
}

.qrcode {
    margin: 20px 0;
    text-align: center;
}

.qrcode img {
    border: 2px solid #ddd;
    border-radius: 5px;
}

.confirm-btn {
    background: #28a745;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    width: 100%;
}

.confirm-btn:hover {
    background: #218838;
}

.timer {
    font-size: 14px;
    color: #ff4500;
    margin: 10px 0;
}

/* 产品详情图样式 */
.product-detail-images {
    margin: 20px 0;
    text-align: center;
}

.product-detail-images .detail-img {
    max-width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-features {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: left;
}

.product-features h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.product-features ul {
    list-style-type: none;
    padding-left: 5px;
}

.product-features li {
    padding: 5px 0 5px 20px;
    position: relative;
}

.product-features li:before {
    content: "✓";
    color: #4a7043;
    position: absolute;
    left: 0;
}

/* 消息提示 */
.message-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    text-align: center;
    font-size: 16px;
    min-width: 250px;
    max-width: 80%;
}

.message-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(10px);
}

/* 不同类型的消息提示 */
.message-toast.error {
    background-color: #f44336;
}

.message-toast.success {
    background-color: #4CAF50;
}

.message-toast.info {
    background-color: #2196F3;
}

.message-toast.warning {
    background-color: #ff9800;
} 