/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
}

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

/* 公告区域 - 现代化设计 */
.announcement-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    margin: 1rem auto 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    max-width: 1200px;
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.announcement-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.announcement-content h3 {
    margin: 0 0 0.8rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-content h3::before {
    content: '📢';
    font-size: 1.2em;
}

.announcement-body {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.announcement-image {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.announcement-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.announcement-image img:hover {
    transform: scale(1.02);
}

.close-announcement {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.3rem;
    cursor: pointer;
    color: #e74c3c; 
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: 1rem;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.close-announcement:hover {
    background: rgba(231, 76, 60, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.header-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.admin-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.admin-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cart-info {
    text-align: center;
}

.cart-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.cart-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 主要内容区域 */
.main-content {
    display: flex;
    margin-top: 2rem;
    gap: 2rem;
}

/* 分类导航 */
.category-nav {
    width: 200px;
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.category-nav h3 {
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
    font-size: 1.4rem; 
    font-weight: 700;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.8rem; /* 增加间隔距离 */
}

.category-link {
    display: block;
    padding: 0.9rem 1.1rem;
    text-decoration: none;
    color: #000; /* 灰色改为黑色 */
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    font-size: 1.05rem;
}

.category-link:hover {
    background: #f0f0f0;
    color: #000;
    transform: translateX(5px);
}

.category-link.active {
    background: #667eea;
    color: white;
    transform: translateX(10px);
}

.category-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #fff;
}

/* 商品区域 */
.product-area {
    flex: 1;
}

/* 搜索框样式 */
.search-box {
    position: relative;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-clear {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #e0e0e0;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: #d0d0d0;
}

.search-clear.show {
    display: flex;
}

.search-result-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-result-info span {
    color: #666;
}

.search-result-info .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* 高亮搜索关键词 */
.highlight {
    background: #fff3cd;
    color: #856404;
    padding: 0 2px;
    border-radius: 3px;
}

.category-section {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #764ba2;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* 商品卡片 */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

.product-image-container {
    position: relative;
}

.product-image {
    width: 100%;
    max-height: 270px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hot-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff6b6b, #e74c3c);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hot-badge svg {
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)) 
            brightness(0) invert(1);
}

/* 时间段推荐区域样式 */
.time-category-section {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.time-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.time-category-title {
    font-size: 1.5rem;
    color: #e74c3c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-icon {
    font-size: 1.8rem;
}

.time-range {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

.time-category-badge {
    background: linear-gradient(135deg, #ff6b6b, #e74c3c);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.time-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.time-category-product {
    border: 2px solid #ff6b6b;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
    transform: scale(1.02);
}

.time-category-product:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

/* 时间段推荐商品图片样式 */
.time-category-product .product-image {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.time-category-product .product-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

/* 小屏幕时时间段推荐商品图片 */
@media (max-width: 768px) {
    .time-category-product .product-image {
        max-height: 180px;
    }
    
    .time-category-product .product-image img {
        max-height: 180px;
    }
}

@media (max-width: 480px) {
    .time-category-product .product-image {
        max-height: 160px;
    }
    
    .time-category-product .product-image img {
        max-height: 160px;
    }
}

.product-image img {
    width: 100%;
    height: auto;
    max-height: 270px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

/* 小屏幕时限制图片高度 */
@media (max-width: 768px) {
    .product-image {
        max-height: 220px;
    }
    
    .product-image img {
        max-height: 220px;
    }
}

@media (max-width: 480px) {
    .product-image {
        max-height: 200px;
    }
    
    .product-image img {
        max-height: 200px;
    }
}

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

/* 懒加载图片样式 */
.lazy-load {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.add-to-cart-btn {
    flex: 1;
    background: #667eea;
    color: white;
    border: none;
    padding: 0.4rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 28px; /* 统一最小高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.add-to-cart-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

/* 购物车侧边栏 */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

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

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

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.cart-item-price {
    color: #e74c3c;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.checkout-btn {
    width: 100%;
    background: #27ae60;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: #219a52;
    transform: translateY(-2px);
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 管理链接 */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.admin-btn {
    background: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 3px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: row;
        gap: 0.5rem;
    }

    .category-nav {
        width: 140px;
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        flex-shrink: 0;
    }

    .category-list {
        display: block;
        overflow-x: visible;
        gap: 0;
        -webkit-overflow-scrolling: auto;
    }

    .category-list li {
        flex-shrink: 1;
        margin-bottom: 0.3rem;
    }

    .category-link {
        white-space: normal;
        padding: 0.6rem 0.7rem;
        font-size: 0.95rem;
        font-weight: 600;
    }

    .category-nav h3 {
        font-size: 1.1rem;
        padding-bottom: 0.3rem;
    }

    .product-area {
        flex: 1;
        min-width: 0; /* 防止flex item溢出 */
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* 每行显示2个商品 */
        gap: 0.8rem;
    }

    /* 小屏幕商品字体调整 */
    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .product-desc {
        font-size: 0.85rem;
    }

    /* 小屏幕加号减号按钮适配 */
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .quantity {
        min-width: 28px;
        font-size: 0.95rem;
    }

    /* 小屏幕购物车按钮适配 */
    .add-to-cart-btn {
        min-height: 26px;
        font-size: 0.8rem;
        padding: 0.3rem;
    }

    .cart-sidebar {
        width: 300px;
    }
}

@media (max-width: 600px) {
    .category-nav {
        width: 120px;
    }

    .category-link {
        padding: 0.7rem 0.8rem;
        font-size: 0.95rem;
        font-weight: 600;
    }

    .category-nav h3 {
        font-size: 1.1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); /* 每行显示2个商品 */
        gap: 0.6rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        flex-direction: row;
        gap: 0.3rem;
    }

    .category-nav {
        width: 100px;
    }

    .category-link {
        padding: 0.6rem 0.7rem;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .category-nav h3 {
        font-size: 1.05rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); /* 每行显示2个商品 */
        gap: 0.5rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 360px) {
    .main-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .category-nav {
        width: 100%;
        position: static;
        max-height: none;
    }

    .category-list {
        display: flex;
        overflow-x: auto;
        gap: 0.3rem;
        -webkit-overflow-scrolling: touch;
    }

    .category-list li {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .category-link {
        white-space: nowrap;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .category-nav h3 {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* 滚动动画 */
.category-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* 底部版权信息 */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 3px solid #3498db;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer a {
    color: white;
    opacity: 0.9;
    text-decoration: none;
}

.footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 订单查询模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

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

.modal-body {
    padding: 1.5rem;
}

.order-search-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
    width: 100%;
}

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

.order-results {
    margin-top: 1.5rem;
}

.order-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.order-number {
    font-weight: bold;
    color: #333;
}

.order-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pending {
    background: #e3f2fd;
    color: #1565c0;
}

.status-preparing {
    background: #fff3cd;
    color: #856404;
}

.status-shipping {
    background: #cce7ff;
    color: #004085;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-customer {
    color: #666;
    margin-bottom: 0.5rem;
}

.order-total {
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.order-items {
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.order-item-name {
    flex: 1;
}

.order-item-quantity {
    color: #666;
    margin: 0 1rem;
}

.order-item-price {
    color: #e74c3c;
    font-weight: bold;
}

.no-orders {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-style: italic;
}

.loading {
    text-align: center;
    padding: 2rem;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

/* 微信星标引导样式 */
/* 主页模糊样式 */
.home-page.blur {
    filter: blur(8px);
    opacity: 0.7;
    pointer-events: none;
}

/* 引导提示框（悬浮在模糊背景上，非全屏遮罩） */
.guide-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* 引导图标 */
.guide-icon {
    font-size: 48px;
    color: #07c160;
    margin-bottom: 20px;
}

/* 引导文字 */
.guide-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 25px;
}

/* 高亮文字 */
.guide-highlight {
    color: #07c160;
    font-weight: 600;
}

/* 确认按钮 */
.guide-btn {
    padding: 12px 36px;
    background: #07c160;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.guide-btn:hover {
    background: #06b058;
    transform: translateY(-2px);
}

/* 引导框显示样式 */
.guide-box.show {
    opacity: 1;
    visibility: visible;
}

/* 媒体查询：手机端微调 */
@media (max-width: 767px) {
    .guide-icon {
        font-size: 40px;
    }

    .guide-text {
        font-size: 16px;
    }

    .guide-btn {
        padding: 10px 32px;
        font-size: 15px;
    }
}