/* 极简设计 - 现代简约风格 */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa;
}

a {
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #666;
}

/* 容器 */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 导航栏 */
.header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
}

.nav a:hover {
    color: #333;
}

.nav a i {
    font-size: 16px;
}

/* 站点公告 */
.notice {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    border-left: 4px solid #007bff;
}

.notice-title {
    background: #f8f9fa;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.notice-title i {
    color: #007bff;
}

.notice-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    padding: 15px 20px;
    margin: 0;
    border-bottom: none;
}

/* 确保公告区在手机端与分类UI保持一致 */
@media (max-width: 768px) {
    .notice {
        margin-bottom: 15px;
    }
    
    .notice-title {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .notice-content {
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* 分类区块 */
.type-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* 确保所有内容区域对齐 */
body > .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.type-title {
    background: #f8f9fa;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 分类筛选样式 */
.category-filter {
    margin-bottom: 20px;
}

.category-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 0;
    border-bottom: 1px solid #e9ecef;
}

.category-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.category-btn:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #2196f3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

/* 商品列表 - 垂直列表 */
.goods-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

/* 商品项 - 垂直列表样式 */
.goods-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 垂直列表商品项样式 */
.goods-item.vertical-item {
    display: block;
    padding: 15px;
}

/* 商品主要内容区域 */
.goods-main-info {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* 商品图片 - 左侧正方形 */
.goods-img.left {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.goods-img.square.left {
    height: 80px;
}

.goods-img.left img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* 商品信息 - 中间 */
.goods-info.middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    min-width: 0;
}

.goods-info.middle h3 {
    font-size: 16px;
    margin-bottom: 0;
    line-height: 1.3;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 商品库存信息 */
.goods-stock {
    font-size: 13px;
    color: #666;
    margin-bottom: 0;
}

/* 商品右侧信息 */
.goods-right-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* 价格和购买按钮容器 */
.price-buy-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 商品价格信息 */
.goods-price-info {
    margin-bottom: 0;
}

.goods-price-info .price {
    font-size: 20px;
    font-weight: 700;
    color: #ff3b30;
}

/* 小尺寸购买按钮 */
.buy-btn.small-btn {
    margin-top: 0;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

.buy-btn.small-btn:hover {
    background: #0056b3;
    transform: none;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
    color: #fff;
}

/* 商品项悬停效果 */
.goods-item.vertical-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #ddd;
}

.goods-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.goods-item:hover .goods-img img {
    transform: scale(1.05);
}

/* 商品信息 */
.goods-info {
    padding: 15px;
}

.goods-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.goods-desc {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.goods-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.goods-price .price {
    font-size: 20px;
    font-weight: 600;
    color: #ff3b30;
}

.goods-price .stock {
    font-size: 13px;
    color: #666;
}

/* 购买按钮 */
.buy-btn {
    display: block;
    width: 100%;
    background: #007bff;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.buy-btn:hover {
    background: #0056b3;
    color: #fff;
}

/* 无商品状态 */
.no-goods {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
    background: #fafafa;
    border: 1px dashed #e9ecef;
    border-radius: 8px;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table tr {
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

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

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

.table td {
    padding: 15px;
    vertical-align: top;
}

.table td:first-child {
    font-weight: 500;
    color: #666;
    width: 120px;
    white-space: nowrap;
}

.table td:last-child {
    color: #333;
}

/* 一键复制按钮 */
.btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.btn:hover {
    background: #0056b3;
}

/* 商品信息样式 */
.type-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.type-title {
    background: #f8f9fa;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 商品基本信息样式 */
.type-section > p {
    padding: 15px 20px;
    margin: 0;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f4;
}

.type-section > p:last-of-type {
    border-bottom: none;
}

/* 规格选择器样式 */
.spec-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding: 10px 0;
}

/* 规格卡片样式 */
.spec-card {
    flex: 1;
    min-width: 120px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.spec-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.spec-card.active {
    border-color: #007bff;
    background: #e3f2fd;
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

/* 规格标题 */
.spec-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* 规格价格 */
.spec-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff3b30;
}

/* 规格描述样式 - 与取卡说明保持一致 */
.spec-description {
    padding: 15px 20px;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid #f1f3f4;
}

/* 规格描述内容容器 */
.spec-desc-content {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* 规格描述文本 */
.spec-desc-content p {
    margin: 0;
    color: #444;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
    font-weight: 400;
}

/* 移除项目符号和缩进 */
.spec-desc-content p {
    position: static;
    padding-left: 0;
}

.spec-desc-content p::before {
    content: none;
}

/* 规格描述响应式 */
@media (max-width: 768px) {
    .spec-description {
        padding: 12px 15px;
    }
    
    .spec-desc-content p {
        font-size: 13px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .spec-description {
        padding: 10px 12px;
    }
    
    .spec-desc-content p {
        font-size: 12px;
        line-height: 1.6;
    }
}

/* 表单样式 */
.form-group {
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #f1f3f4;
}

.form-group:last-of-type {
    border-bottom: none;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    transform: translateY(-1px);
}

/* 价格显示 */
.price-display {
    padding: 10px 0;
    font-size: 14px;
}

.total-price {
    color: #ff3b30;
    font-size: 24px;
    font-weight: 600;
}

/* 数量选择 */
.scroll-btn {
    display: flex;
    align-items: center;
}

.scroll-txt {
    width: 80px;
    text-align: center;
    margin: 0 15px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.scroll-chevron {
    cursor: pointer;
    font-size: 20px;
    color: #666;
    user-select: none;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 6px;
}

.scroll-chevron:hover {
    color: #007bff;
    background: #f0f7ff;
}

/* 支付方式 */
.RadioStyle {
    margin: 0;
}

.RadioStyle .PaddingL {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding: 10px 0;
}

/* 自定义单选按钮样式 */
.RadioStyle input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.RadioStyle label {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    background: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 自定义单选按钮的圆形指示器 */
.RadioStyle label:before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid #ddd;
    border-radius: 50%;
    vertical-align: middle;
    transition: all 0.2s ease;
    background: #fff;
}

/* 选中状态的样式 */
.RadioStyle input[type="radio"]:checked + label {
    background: #e3f2fd;
    border-color: #007bff;
    color: #007bff;
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

.RadioStyle input[type="radio"]:checked + label:before {
    background-color: #007bff;
    border-color: #007bff;
    box-shadow: inset 0 0 0 4px #fff;
}

/* 悬停状态的样式 */
.RadioStyle label:hover {
    background: #e3f2fd;
    border-color: #007bff;
    color: #007bff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.RadioStyle label:hover:before {
    border-color: #007bff;
}

/* 确定下单按钮 */
#submit {
    width: calc(100% - 40px);
    margin: 20px;
    padding: 14px 0;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

#submit:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 4px 12px rgba(0,123,255,0.4);
    transform: translateY(-1px);
}

#submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,123,255,0.3);
}

/* 查询区域样式 */
.search-area {
    margin-bottom: 0;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0;
    border-bottom: 1px solid #e9ecef;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.search-btn {
    padding: 12px 24px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #0056b3;
}

/* 提示文字 */
.search-area + br + p,
.search-area + p {
    padding: 15px 20px;
    margin: 0;
    color: #666;
    font-size: 14px;
    text-align: center;
    background: #fff;
}

/* 页脚 */
.footer {
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
}

.footer p {
    font-size: 13px;
    color: #999;
    margin: 0;
    line-height: 1.6;
}

/* 汉堡菜单样式 */
.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.hamburger-menu:hover {
    background: #f8f9fa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
        position: relative;
    }
    
    .header .container {
        flex-direction: row;
        gap: 10px;
        padding: 10px 15px;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo h1 {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
    }
    
    .nav {
        gap: 10px;
        flex-shrink: 0;
        display: flex;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
    
    .nav a {
        font-size: 12px;
        padding: 6px 8px;
        background: #f8f9fa;
        border-radius: 4px;
        border: 1px solid #e9ecef;
        display: flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }
    
    .nav a i {
        font-size: 14px;
    }
    
    .nav a span {
        display: inline-block;
    }
}

/* 小屏幕适配 */
@media (max-width: 640px) {
    .hamburger-menu {
        display: block;
    }
    
    .nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e9ecef;
        border-bottom: 1px solid #e9ecef;
        padding: 10px 0;
        flex-direction: column !important;
        gap: 5px;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav.show {
        display: flex !important;
    }
    
    .nav a {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 10px 20px !important;
        justify-content: flex-start !important;
        font-size: 14px !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .nav a:last-child {
        border-bottom: none !important;
    }
    
    .nav a:hover {
        background: #f8f9fa !important;
    }
    
    /* 超小屏幕适配 */
    @media (max-width: 360px) {
        .header .container {
            padding: 8px 10px;
            gap: 8px;
        }
        
        .logo h1 {
            font-size: 16px;
        }
        
        .hamburger-menu {
            font-size: 18px;
        }
        
        .nav a {
            font-size: 13px;
            padding: 8px 15px;
        }
    }
    
    .notice {
        padding: 12px 15px;
        margin-bottom: 20px;
    }
    
    .notice-title {
        font-size: 14px;
    }
    
    .notice-content {
        font-size: 13px;
    }
    
    .type-section {
        margin-bottom: 20px;
    }
    
    .type-title {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .goods-list {
        gap: 10px;
        padding: 12px;
    }
    
    .goods-item.vertical-item {
        padding: 12px;
    }
    
    .goods-main-info {
        gap: 12px;
    }
    
    .goods-img.left {
        width: 70px;
        height: 70px;
    }
    
    .goods-img.square.left {
        height: 70px;
    }
    
    .goods-info.middle h3 {
        font-size: 15px;
    }
    
    .goods-stock {
        font-size: 12px;
    }
    
    .price-buy-container {
        gap: 10px;
    }
    
    .goods-price-info .price {
        font-size: 18px;
    }
    
    .buy-btn.small-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* 规格选择器响应式 */
    .spec-selector {
        gap: 10px;
    }
    
    .spec-card {
        min-width: 100px;
        padding: 12px;
    }
    
    .spec-title {
        font-size: 13px;
    }
    
    .spec-price {
        font-size: 16px;
    }
    
    /* 支付选择器响应式 */
    .RadioStyle .PaddingL {
        gap: 10px;
    }
    
    .RadioStyle label {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 0;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .nav {
        gap: 15px;
    }
    
    .nav a {
        font-size: 12px;
        gap: 4px;
    }
    
    .nav a i {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .notice {
        padding: 10px 12px;
    }
    
    .goods-list {
        gap: 8px;
        padding: 10px;
    }
    
    .goods-item.vertical-item {
        padding: 10px;
    }
    
    .goods-main-info {
        gap: 10px;
        flex-wrap: nowrap;
    }
    
    .goods-img.left {
        width: 60px;
        height: 60px;
    }
    
    .goods-img.square.left {
        height: 60px;
    }
    
    .goods-info.middle {
        flex: 1;
        min-width: 0;
    }
    
    .goods-info.middle h3 {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .goods-stock {
        font-size: 11px;
    }
    
    .goods-right-info {
        width: auto;
        margin-top: 0;
        justify-content: flex-end;
    }
    
    .price-buy-container {
        gap: 10px;
        flex-shrink: 0;
    }
    
    .goods-price-info .price {
        font-size: 16px;
    }
    
    .buy-btn.small-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    /* 规格选择器响应式 */
    .spec-selector {
        gap: 8px;
    }
    
    .spec-card {
        min-width: 90px;
        padding: 10px;
    }
    
    .spec-title {
        font-size: 12px;
    }
    
    .spec-price {
        font-size: 14px;
    }
    
    /* 支付选择器响应式 */
    .RadioStyle .PaddingL {
        gap: 8px;
    }
    
    .RadioStyle label {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.type-section {
    animation: fadeIn 0.3s ease-out;
}

.goods-item {
    animation: fadeIn 0.4s ease-out;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 订单确认弹出框样式 - 极简风格 */
.order-confirm {
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.order-item {
    margin-bottom: 10px;
    padding: 5px 0;
}

.order-label {
    font-weight: 500;
    color: #666;
    margin-right: 8px;
}

.order-value {
    color: #333;
}

.total-price-item {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-weight: bold;
    color: #ff3b30;
}

/* layer.js 弹窗样式美化 - 与页面风格保持一致 */
.layui-layer.order-confirm-layer .layui-layer-title {
    background: #fff;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #e9ecef;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.layui-layer.order-confirm-layer {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 350px;
    max-width: 450px;
}

.layui-layer.order-confirm-layer .layui-layer-content {
    background: #fff;
    border-radius: 0 0 8px 8px;
    padding: 15px;
}

.layui-layer.order-confirm-layer .layui-layer-btn {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.layui-layer.order-confirm-layer .layui-layer-btn a {
   
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    margin: 0 5px;
}

/* 音频播放按钮样式 */
.goods-img {
    position: relative;
    overflow: hidden !important;
}

.goods-img.left {
    overflow: hidden !important;
}

.audio-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.audio-play-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -50%) scale(1.1);
}

.audio-play-btn.playing {
    background: rgba(255, 87, 34, 0.6);
    opacity: 1;
}

.audio-play-btn i {
    font-size: 24px;
    margin-left: 2px;
}

/* 商品元信息样式 */
.goods-meta {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.goods-stock,
.goods-category {
    white-space: nowrap;
}

.goods-stock span,
.goods-category span {
    font-weight: 500;
    color: #333;
}

/* 手机端适配 */
@media (max-width: 480px) {
    .goods-meta {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 13px;
    }
    
    .goods-stock,
    .goods-category {
        flex: 1;
        min-width: auto;
    }
    
    .goods-stock span,
    .goods-category span {
        font-weight: 500;
    }
}

/* 图片悬停效果 */
.goods-img {
    transition: all 0.3s ease;
}

.goods-img:hover img {
    transform: scale(1.05);
}

.goods-img img {
    transition: all 0.3s ease;
}
    transition: all 0.2s ease;
    border: 1px solid transparent;
    min-width: 100px;
    text-align: center;
    display: inline-block;
}

.layui-layer.order-confirm-layer .layui-layer-btn .layui-layer-btn0 {
    background: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,123,255,0.2);
}

.layui-layer.order-confirm-layer .layui-layer-btn .layui-layer-btn0:hover {
    background: #0056b3;
    border-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.layui-layer.order-confirm-layer .layui-layer-btn .layui-layer-btn1 {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.layui-layer.order-confirm-layer .layui-layer-btn .layui-layer-btn1:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .order-confirm {
        padding: 12px;
    }
}