/* ===== 移动端修复 ===== */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 防止横向滚动 */
    position: relative;
    -webkit-overflow-scrolling: touch; /* 平滑滚动 */
}

/* 修复购买页面的移动端布局 */
.buy-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* 修复内容容器 */
.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* 修复购买表单容器的移动端显示 */
.buy-form-container {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

/* 修复表单宽度 */
.buy-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 修复商品选择框的移动端显示 */
#tid.form-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 移动端响应式调整 */
@media (max-width: 767px) {
    body.template-page {
        position: fixed; /* 固定定位防止拖动 */
        width: 100%;
        height: 100%;
        overflow-y: auto; /* 允许垂直滚动 */
        overflow-x: hidden; /* 禁止横向滚动 */
        -webkit-overflow-scrolling: touch;
    }
    
    .buy-page {
        width: 100%;
        height: auto;
        min-height: 100vh;
        position: relative;
    }
    
    .container, .container-fluid {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .buy-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 确保表格在小屏幕上不溢出 */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
/* argon3.css - 统一前端样式 */

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

body.template-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafafa;
    color: #2c3e50;
    line-height: 1.6;
    padding-bottom: 70px;
    -webkit-font-smoothing: antialiased;
}

/* ===== 通用容器 ===== */
.container {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding-right: 24px;
        padding-left: 24px;
    }
}

/* ===== 通用卡片样式 ===== */
.template-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.template-card:hover {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 8px;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border-color: #667eea;
}

.btn-secondary:hover {
    background: #f8f9fa;
}

.btn-block {
    width: 100%;
}

/* ===== 表单元素 ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    font-size: 15px;
    color: #2c3e50;
    background: white;
    transition: all 0.3s ease;
}

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

/* ===== 统一所有页面的头部尺寸和样式 ===== */
/* 主页头部 - 作为基准 */
.mobile-header {
    background: white;
    padding: 22px 0 18px;
    border-bottom: 1px solid #e8ecf1;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 100;
    height: 84px;
    display: flex;
    align-items: center;
}

.mobile-header .container {
    text-align: center;
    width: 100%;
}

.mobile-header h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.mobile-header p {
    font-size: 0.9rem;
    color: #718096;
    opacity: 0.9;
    margin: 0;
}

/* 通用页面头部 - 与主页完全一致 */
.template-header-unified {
    background: white;
    padding: 22px 0 18px;
    border-bottom: 1px solid #e8ecf1;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 100;
    height: 84px;
    display: flex;
    align-items: center;
}

.template-header-unified .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.template-header-unified .back-link {
    display: flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    gap: 6px;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.template-header-unified .header-title {
    flex: 1;
    text-align: center;
    padding: 0 60px; /* 给左右按钮留空间 */
}

.template-header-unified .header-title h1,
.template-header-unified .header-title h2,
.template-header-unified .header-title h4,
.template-header-unified .header-title h5 {
    font-size: 1.25rem; /* 统一字体大小 */
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.template-header-unified .header-subtitle {
    font-size: 0.9rem; /* 统一副标题大小 */
    color: #718096;
    margin-top: 4px;
    opacity: 0.9;
}

/* 购买页面头部 - 使用相同的尺寸 */
.buy-header {
    background: white;
    padding: 22px 0 18px;
    border-bottom: 1px solid #e8ecf1;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 100;
    height: 84px;
    display: flex;
    align-items: center;
}

.buy-header .container {
    width: 100%;
    padding: 0 16px;
}

.buy-header .row {
    align-items: center;
    height: 100%;
    margin: 0;
}

.buy-header .col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn, .home-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    text-decoration: none;
    font-size: 18px;
}

.page-title {
    font-size: 1.25rem; /* 与统一头部保持一致 */
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
/* 购物车按钮样式 */
.cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}
/* 购物车数量徽章 */
.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #f5365c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(245, 54, 92, 0.3);
}

.cart-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

/* ===== 简洁提醒弹窗样式 ===== */
#noticeModal .modal-dialog.modal-sm {
    max-width: 320px;
}

#noticeModal .modal-content {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#noticeModal .modal-header {
    padding: 14px 16px;
}

#noticeModal .modal-body {
    padding: 20px 16px;
}

#noticeModal .modal-footer {
    padding: 12px 16px 16px;
}

/* 移动端适配 */
@media (max-width: 767px) {
    #noticeModal .modal-dialog.modal-sm {
        max-width: 280px;
        margin: 0 auto;
    }
    
    #noticeModal .modal-header {
        padding: 12px 16px;
    }
    
    #noticeModal .modal-body {
        padding: 16px 12px;
    }
    
    #noticeModal .modal-footer {
        padding: 10px 12px 12px;
        flex-direction: row;
    }
}
/* 修改主页按钮样式（如果需要保留） */
.home-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.home-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}
/* FAQ页头部使用绿色渐变 */
.faq-page .template-header-unified {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-bottom: none;
    box-shadow: 0 2px 20px rgba(16, 185, 129, 0.2);
}

.faq-page .template-header-unified .back-link,
.faq-page .template-header-unified .header-title h2,
.faq-page .template-header-unified .header-subtitle {
    color: white !important;
}

/* 查单页头部使用蓝色渐变 */
.query-page .template-header-unified {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-bottom: none;
    box-shadow: 0 2px 20px rgba(59, 130, 246, 0.2);
}

.query-page .template-header-unified .back-link,
.query-page .template-header-unified .header-title h4,
.query-page .template-header-unified .header-subtitle {
    color: white !important;
}

/* 加盟页头部使用橙色渐变 */
.site-page .template-header-unified {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-bottom: none;
    box-shadow: 0 2px 20px rgba(245, 158, 11, 0.2);
}

.site-page .template-header-unified .back-link,
.site-page .template-header-unified .header-title h4,
.site-page .template-header-unified .header-subtitle {
    color: white !important;
}

/* ===== 首页样式 ===== */
.category-list {
    padding: 12px 16px; /* 减少上下padding，增加左右padding */
}

.category-item-mobile {
    margin: 0 0 12px 0; /* 移除左右margin，让卡片铺满 */
    animation: slideInUp 0.4s ease forwards;
    opacity: 0;
    animation-delay: calc(var(--item-index, 0) * 0.05s);
}

.category-item-mobile .card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin: 0; /* 确保卡片没有margin */
}

.category-item-mobile .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.category-img-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    padding: 3px;
    margin: 0 auto;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.card-body {
    padding: 18px;
}

.card-body h6 {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.card-body .badge {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    margin-right: 6px;
}

.card-body p {
    font-size: 13px;
    color: #718096;
    margin: 8px 0 0;
}

/* ===== 二级分类页面 - 纯文字简约卡片版本 ===== */
.sub-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px 16px;
}

@media (max-width: 480px) {
    .sub-category-grid {
        gap: 10px;
        padding: 16px 12px;
    }
}

@media (max-width: 360px) {
    .sub-category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 12px 8px;
    }
}

.sub-category-item {
    background: white;
    border-radius: 16px;
    padding: 18px 6px;
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.08),
        0 2px 4px -1px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.sub-category-item:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 10px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(var(--theme-color-rgb, 102, 126, 234), 0.2);
}

/* 顶部装饰线 */
.sub-category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--theme-color, #667eea),
        var(--theme-color-light, #8e9efa)
    );
    opacity: 0.8;
    transition: all 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.sub-category-item:hover::before {
    opacity: 1;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--theme-color, #667eea),
        var(--theme-color-dark, #764ba2)
    );
}

/* 背景微光效果 */
.sub-category-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(var(--theme-color-rgb, 102, 126, 234), 0.02) 0%,
        rgba(var(--theme-color-rgb, 102, 126, 234), 0.01) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.sub-category-item:hover::after {
    opacity: 1;
}

/* 分类名称样式 */
.sub-category-name {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.4;
    color: #374151;
    padding: 0 8px;
    position: relative;
    z-index: 1;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: -0.1px;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-category-item:hover .sub-category-name {
    color: var(--theme-color, #667eea);
    transform: scale(1.05);
}

/* 数量标签（如果有子分类数量） */
.category-count {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    background: rgba(var(--theme-color-rgb, 102, 126, 234), 0.1);
    color: var(--theme-color, #667eea);
    border-radius: 20px;
    margin-top: 6px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.sub-category-item:hover .category-count {
    background: var(--theme-color, #667eea);
    color: white;
    transform: scale(1.1);
}

/* 简约装饰点 */
.category-decorator {
    width: 6px;
    height: 6px;
    background: rgba(var(--theme-color-rgb, 102, 126, 234), 0.4);
    border-radius: 50%;
    position: absolute;
    top: 12px;
    right: 12px;
    transition: all 0.3s ease;
    z-index: 1;
}

.sub-category-item:hover .category-decorator {
    background: var(--theme-color, #667eea);
    transform: scale(1.5);
    box-shadow: 0 0 0 3px rgba(var(--theme-color-rgb, 102, 126, 234), 0.2);
}

/* 不同颜色主题 */
.sub-category-item.color-primary {
    --theme-color: #667eea;
    --theme-color-dark: #764ba2;
    --theme-color-light: #8e9efa;
    --theme-color-rgb: 102, 126, 234;
}

.sub-category-item.color-success {
    --theme-color: #10b981;
    --theme-color-dark: #059669;
    --theme-color-light: #34d399;
    --theme-color-rgb: 16, 185, 129;
}

.sub-category-item.color-info {
    --theme-color: #3b82f6;
    --theme-color-dark: #2563eb;
    --theme-color-light: #60a5fa;
    --theme-color-rgb: 59, 130, 246;
}

.sub-category-item.color-warning {
    --theme-color: #f59e0b;
    --theme-color-dark: #d97706;
    --theme-color-light: #fbbf24;
    --theme-color-rgb: 245, 158, 11;
}

.sub-category-item.color-danger {
    --theme-color: #ef4444;
    --theme-color-dark: #dc2626;
    --theme-color-light: #f87171;
    --theme-color-rgb: 239, 68, 68;
}

.sub-category-item.color-purple {
    --theme-color: #8b5cf6;
    --theme-color-dark: #7c3aed;
    --theme-color-light: #a78bfa;
    --theme-color-rgb: 139, 92, 246;
}

.sub-category-item.color-teal {
    --theme-color: #14b8a6;
    --theme-color-dark: #0d9488;
    --theme-color-light: #2dd4bf;
    --theme-color-rgb: 20, 184, 166;
}

.sub-category-item.color-pink {
    --theme-color: #ec4899;
    --theme-color-dark: #db2777;
    --theme-color-light: #f472b6;
    --theme-color-rgb: 236, 72, 153;
}

.sub-category-item.color-blue {
    --theme-color: #0ea5e9;
    --theme-color-dark: #0284c7;
    --theme-color-light: #38bdf8;
    --theme-color-rgb: 14, 165, 233;
}

.sub-category-item.color-indigo {
    --theme-color: #6366f1;
    --theme-color-dark: #4f46e5;
    --theme-color-light: #818cf8;
    --theme-color-rgb: 99, 102, 241;
}

/* 空状态样式 */
.empty-sub-category {
    text-align: center;
    padding: 60px 20px;
}

.empty-sub-category .empty-icon {
    font-size: 60px;
    color: #e8ecf1;
    margin-bottom: 20px;
}

.empty-sub-category .empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.empty-sub-category .empty-subtitle {
    font-size: 15px;
    color: #718096;
    max-width: 300px;
    margin: 0 auto 24px;
}
/* ===== 购买页面样式 ===== */
.buy-page {
    min-height: 100vh;
    background: #fafafa;
}

/* 分类展示 */
.category-show {
    background: white;
    margin: 20px 16px 0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.category-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.cat-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.category-info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
}

.category-info p {
    color: #718096;
    font-size: 0.95rem;
    margin: 0;
}

/* 购买表单 */
.buy-form-container {
    padding: 0 16px 40px;
    margin-top: 20px;
}

.buy-form {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.form-item {
    margin-bottom: 24px;
}

.form-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 15px;
    gap: 8px;
}
/* ===== 商品购买界面美化 ===== */

/* 红色购物车按钮 */
.btn-cart-red {
    flex: 1;
    padding: 16px 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.2);
}

.btn-cart-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3);
    background: linear-gradient(135deg, #ff3838 0%, #ff5252 100%);
}

/* 立即购买按钮保持原有样式但增强 */
.btn-buy {
    flex: 1;
    padding: 16px 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* 表单项目美化 - 蓝色主题（选择商品） */
.form-item-blue {
    position: relative;
    margin-bottom: 24px;
}

.form-label-blue {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 15px;
    gap: 8px;
    padding-left: 12px;
    border-left: 4px solid #3b82f6;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), transparent);
    border-radius: 4px;
}

.form-label-blue i {
    color: #3b82f6;
}

.form-select-blue {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dbeafe;
    border-radius: 14px;
    font-size: 15px;
    color: #1e40af;
    background: white;
    transition: all 0.3s ease;
    min-height: 52px;
    height: auto;
    line-height: 1.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233b82f6' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 44px;
}

.form-select-blue:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* 表单项目美化 - 绿色主题（商品价格） */
.form-item-green {
    position: relative;
    margin-bottom: 24px;
}

.form-label-green {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 15px;
    gap: 8px;
    padding-left: 12px;
    border-left: 4px solid #10b981;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05), transparent);
    border-radius: 4px;
}

.form-label-green i {
    color: #10b981;
}

.form-input-green {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #d1fae5;
    border-radius: 14px;
    font-size: 15px;
    color: #065f46;
    background: white;
    transition: all 0.3s ease;
    min-height: 52px;
    height: auto;
    line-height: 1.5;
    font-weight: 600;
}

.form-input-green:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    outline: none;
}

/* 表单项目美化 - 橙色主题（库存数量） */
.form-item-orange {
    position: relative;
    margin-bottom: 24px;
}

.form-label-orange {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 15px;
    gap: 8px;
    padding-left: 12px;
    border-left: 4px solid #f59e0b;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05), transparent);
    border-radius: 4px;
}

.form-label-orange i {
    color: #f59e0b;
}

.form-input-orange {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #fef3c7;
    border-radius: 14px;
    font-size: 15px;
    color: #92400e;
    background: white;
    transition: all 0.3s ease;
    min-height: 52px;
    height: auto;
    line-height: 1.5;
    font-weight: 600;
}

.form-input-orange:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
    outline: none;
}

/* 表单项目美化 - 紫色主题（购买数量） */
.form-item-purple {
    position: relative;
    margin-bottom: 24px;
}

.form-label-purple {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 15px;
    gap: 8px;
    padding-left: 12px;
    border-left: 4px solid #8b5cf6;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.05), transparent);
    border-radius: 4px;
}

.form-label-purple i {
    color: #8b5cf6;
}

.quantity-box-purple {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 2px solid #ede9fe;
    border-radius: 14px;
    overflow: visible !important;
    height: 52px;
    min-height: 52px;
    width: 100% !important;
    position: relative !important;
    z-index: 1;
    background: white;
}

.quantity-box-purple:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.qty-btn-purple {
    width: 52px !important;
    min-width: 52px !important;
    height: 100% !important;
    min-height: 100% !important;
    border: none !important;
    background: #f5f3ff !important;
    color: #8b5cf6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 24px !important;
    font-weight: bold !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 10 !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.2s ease !important;
}

.qty-btn-purple:hover {
    background: #8b5cf6 !important;
    color: white !important;
}

.qty-input-purple {
    order: 2 !important;
    flex: 1 !important;
    min-width: 60px !important;
    border: none !important;
    background: white !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #5b21b6 !important;
    text-align: center !important;
    padding: 0 !important;
    z-index: 5 !important;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .btn-cart-red, .btn-buy {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 12px;
        height: 50px;
    }
    
    .form-label-blue,
    .form-label-green,
    .form-label-orange,
    .form-label-purple {
        font-size: 14px;
        padding-left: 10px;
    }
    
    .form-select-blue,
    .form-input-green,
    .form-input-orange {
        padding: 12px 14px;
        font-size: 14px;
        height: 46px;
        min-height: 46px;
    }
    
    .quantity-box-purple {
        height: 46px;
    }
    
    .qty-btn-purple {
        width: 46px !important;
        font-size: 20px !important;
    }
    
    .qty-input-purple {
        font-size: 16px !important;
    }
}

@media (max-width: 375px) {
    .btn-cart-red, .btn-buy {
        padding: 12px 16px;
        height: 46px;
        font-size: 14px;
    }
    
    .form-label-blue,
    .form-label-green,
    .form-label-orange,
    .form-label-purple {
        font-size: 13px;
        gap: 6px;
    }
    
    .form-select-blue,
    .form-input-green,
    .form-input-orange {
        padding: 10px 12px;
        height: 44px;
        min-height: 44px;
        font-size: 13px;
    }
    
    .quantity-box-purple {
        height: 44px;
    }
    
    .qty-btn-purple {
        width: 44px !important;
        font-size: 18px !important;
    }
    
    .qty-input-purple {
        font-size: 15px !important;
    }
}
/* 统一选择框和输入框 */
.form-select, .form-input {
    width: 100%;
    padding: 14px 16px; /* 调整内边距 */
    border: 2px solid #e8ecf1;
    border-radius: 14px;
    font-size: 15px;
    color: #2c3e50;
    background: white;
    transition: all 0.3s ease;
    /* 移除固定的 height，让内容决定高度 */
    min-height: 52px; /* 改为最小高度 */
    height: auto; /* 自动高度 */
    line-height: 1.5; /* 确保行高合适 */
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23667eea' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 44px; /* 为下拉箭头留出空间 */
}

/* 确保选项文本完全显示 */
.form-select option {
    padding: 10px 15px; /* 给选项添加内边距 */
    font-size: 14px; /* 合适的字体大小 */
    line-height: 1.4; /* 合适的行高 */
    white-space: normal; /* 允许文本换行 */
    height: auto; /* 自动高度 */
}

/* ===== 购买数量框 - 正常版本 ===== */

/* 移除所有特殊的z-index设置 */
.form-item {
    margin-bottom: 24px;
}

/* 正常数量框样式 */
.quantity-box {
    display: flex;
    align-items: center;
    border: 2px solid #e8ecf1;
    border-radius: 14px;
    overflow: hidden;
    height: 52px;
    transition: all 0.3s ease;
    width: 100%;
    position: relative; /* 改为relative，避免创建新的层叠上下文 */
}

.quantity-box:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.qty-btn {
    width: 52px;
    height: 100%;
    border: none;
    background: #f8f9fa;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative; /* 改为relative */
}

.qty-btn:hover {
    background: #667eea;
    color: white;
}

.qty-input {
    flex: 1;
    height: 100%;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    background: white;
    position: relative; /* 改为relative */
}

.qty-input:focus {
    outline: none;
}

/* 移除之前的所有z-index强制设置 */
.quantity-box,
.qty-btn,
.qty-input {
    z-index: auto !important; /* 重置为auto */
}

/* 确保正常显示按钮 */
#num_min, #num_add {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 52px !important;
}

#num {
    width: 100%;
    text-align: center;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .quantity-box {
        height: 46px;
    }
    
    .qty-btn {
        width: 46px;
        font-size: 14px;
    }
    
    .qty-input {
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .quantity-box {
        height: 44px;
    }
    
    .qty-btn {
        width: 44px;
        font-size: 13px;
    }
    
    .qty-input {
        font-size: 13px;
    }
}

/* 购买按钮区域 */
.buy-buttons {
    margin-top: 32px;
}

.btn-row {
    display: flex;
    gap: 12px;
}

.btn-cart, .btn-buy {
    flex: 1;
    padding: 16px 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cart {
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #e8ecf1;
}

.btn-buy {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-cart:hover, .btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.btn-cart:hover {
    background: #f0f2f5;
}

/* ===== 商品简介框美化 ===== */
.product-desc {
    background: linear-gradient(135deg, #fffaf0 0%, #fffbeb 100%);
    border: 2px solid #fbbf24;
    border-radius: 18px;
    overflow: hidden;
    margin-top: 24px;
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.15);
    display: none;
}

.desc-header {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    padding: 18px 24px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.desc-content {
    padding: 20px 24px;
    color: #92400e;
    font-size: 14px;
    line-height: 1.6;
    max-height: 220px;
    overflow-y: auto;
    background: white;
}

.desc-content::-webkit-scrollbar {
    width: 6px;
}

.desc-content::-webkit-scrollbar-track {
    background: rgba(251, 191, 36, 0.1);
    border-radius: 3px;
}

.desc-content::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #f59e0b, #fbbf24);
    border-radius: 3px;
}

/* ===== 支付弹窗优化 ===== */
.layui-layer-pay {
    border-radius: 20px !important;
    overflow: hidden !important;
    border: none !important;
    /* 硬件加速 */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
    /* 更流畅的动画 */
    animation: payModalIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

/* 支付弹窗入场动画 */
@keyframes payModalIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    70% {
        opacity: 1;
        transform: translateY(-10px) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 支付弹窗关闭动画 */
@keyframes payModalOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
}

/* 支付弹窗标题优化 */
.layui-layer-pay .layui-layer-title {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%) !important;
    color: white !important;
    font-weight: 700 !important;
    height: 70px !important;
    line-height: 70px !important;
    padding: 0 30px !important;
    border: none !important;
    font-size: 20px !important;
    letter-spacing: 1px;
    /* 字体优化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.layui-layer-pay .layui-layer-title i {
    margin-right: 12px !important;
    font-size: 22px !important;
}

/* 支付弹窗内容区域 */
.layui-layer-pay .layui-layer-content {
    background: #f8f9fa !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* 支付方式列表优化 */
.pay-methods-list {
    padding: 25px 30px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    /* 滚动条美化 */
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

.pay-methods-list::-webkit-scrollbar {
    width: 6px;
}

.pay-methods-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.pay-methods-list::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 3px;
}

/* 支付按钮区域优化 */
.layui-layer-pay .layui-layer-btn {
    padding: 25px 30px 30px !important;
    border-top: 1px solid #e8ecf1 !important;
    background: white !important;
    display: flex;
    gap: 15px;
    /* 硬件加速 */
    transform: translateZ(0);
}

.layui-layer-pay .layui-layer-btn a {
    flex: 1;
    border-radius: 15px !important;
    padding: 18px 25px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-align: center;
    letter-spacing: 0.5px;
    /* 硬件加速 */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.layui-layer-pay .layui-layer-btn a:first-child {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%) !important;
    color: white !important;
    border: none !important;
}

.layui-layer-pay .layui-layer-btn a:last-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
}

.layui-layer-pay .layui-layer-btn a:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

/* 支付弹窗遮罩优化 */
.layui-layer-pay + .layui-layer-shade {
    background-color: rgba(0, 0, 0, 0.6) !important;
    animation: payShadeIn 0.25s ease forwards !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@keyframes payShadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 移动端支付弹窗优化 */
@media (max-width: 767px) {
    .layui-layer-pay {
        animation: payModalInMobile 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        width: 92% !important;
        max-width: 380px !important;
        margin: 0 auto !important;
        border-radius: 18px !important;
    }
    
    @keyframes payModalInMobile {
        0% {
            opacity: 0;
            transform: translateY(60px) scale(0.85);
        }
        70% {
            opacity: 1;
            transform: translateY(-15px) scale(1.05);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    .layui-layer-pay .layui-layer-title {
        height: 60px !important;
        line-height: 60px !important;
        padding: 0 20px !important;
        font-size: 18px !important;
    }
    
    .pay-methods-list {
        padding: 20px !important;
        max-height: 320px !important;
    }
    
    .layui-layer-pay .layui-layer-btn {
        padding: 20px !important;
        flex-direction: column;
        gap: 12px;
    }
    
    .layui-layer-pay .layui-layer-btn a {
        padding: 16px 20px !important;
        font-size: 15px !important;
        width: 100%;
    }
/* ============================================
   加盟界面完整样式
   ============================================ */

/* 加盟页面容器 */
.join-us-mobile {
    padding: 20px 16px 80px; /* 底部留出导航栏空间 */
    min-height: calc(100vh - 84px); /* 减去头部高度 */
}

/* 顶部标语 */
.slogan-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.slogan-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.slogan-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.slogan-card p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* 快速功能入口 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.quick-action-card {
    background: white;
    border-radius: 14px;
    padding: 20px 12px;
    text-decoration: none;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.quick-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-action-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.quick-action-desc {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

/* 版本标签切换 */
.version-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 25px;
    border: 1px solid #e5e7eb;
}

.version-tab {
    flex: 1;
    padding: 14px 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.version-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 版本内容区域 */
.version-content {
    display: none;
    margin-bottom: 30px;
}

.version-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}
/* ============================================
   版本卡片内的价格样式
   ============================================ */

/* 版本卡片内的价格容器 */
.version-mobile-card .version-price-mobile {
    margin: 20px 0 25px;
}

.version-mobile-card .price-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 18px 30px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* 专业版特殊样式 */
.version-mobile-card.featured .price-wrapper {
    background: linear-gradient(135deg, #fffaf0 0%, #fffbeb 100%);
    border-color: #fbbf24;
    box-shadow: 
        0 6px 20px rgba(245, 158, 11, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.version-mobile-card.featured .price-number {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.version-mobile-card.featured .price-tag {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* 卡片内价格尺寸调整 */
.version-mobile-card .price-symbol {
    font-size: 24px;
    margin-top: 6px;
}

.version-mobile-card .price-number {
    font-size: 52px;
}

.version-mobile-card .price-period {
    font-size: 15px;
    padding: 4px 10px;
    margin-bottom: 6px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.version-mobile-card.featured .price-period {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.version-mobile-card .price-tag {
    padding: 8px 22px;
    font-size: 13px;
    border-radius: 18px;
    margin-top: 10px;
    font-weight: 700;
}

/* 悬停效果 */
.version-mobile-card .price-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(102, 126, 234, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: #93c5fd;
}

.version-mobile-card.featured .price-wrapper:hover {
    border-color: #f59e0b;
    box-shadow: 
        0 10px 25px rgba(245, 158, 11, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* 移动端适配 */
@media (max-width: 767px) {
    .version-mobile-card .version-price-mobile {
        margin: 15px 0 20px;
    }
    
    .version-mobile-card .price-wrapper {
        padding: 14px 24px;
        border-radius: 14px;
        border-width: 1.5px;
    }
    
    .version-mobile-card .price-symbol {
        font-size: 22px;
        margin-top: 5px;
    }
    
    .version-mobile-card .price-number {
        font-size: 44px;
    }
    
    .version-mobile-card .price-period {
        font-size: 14px;
        padding: 3px 8px;
        margin-bottom: 5px;
    }
    
    .version-mobile-card .price-tag {
        padding: 6px 18px;
        font-size: 12px;
        border-radius: 16px;
    }
}

@media (max-width: 375px) {
    .version-mobile-card .price-wrapper {
        padding: 12px 20px;
    }
    
    .version-mobile-card .price-symbol {
        font-size: 20px;
        margin-top: 4px;
    }
    
    .version-mobile-card .price-number {
        font-size: 38px;
    }
    
    .version-mobile-card .price-period {
        font-size: 13px;
        padding: 2px 6px;
        margin-bottom: 4px;
    }
    
    .version-mobile-card .price-tag {
        padding: 5px 14px;
        font-size: 11px;
    }
}

/* 桌面端优化 */
@media (min-width: 768px) {
    .version-mobile-card .version-price-mobile {
        margin: 25px 0 30px;
    }
    
    .version-mobile-card .price-wrapper {
        padding: 22px 40px;
    }
    
    .version-mobile-card .price-symbol {
        font-size: 28px;
        margin-top: 8px;
    }
    
    .version-mobile-card .price-number {
        font-size: 64px;
    }
    
    .version-mobile-card .price-period {
        font-size: 16px;
        padding: 5px 12px;
        margin-bottom: 8px;
    }
    
    .version-mobile-card .price-tag {
        padding: 10px 26px;
        font-size: 14px;
        margin-top: 12px;
    }
}
/* 版本卡片 */
.version-mobile-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.version-mobile-card.featured {
    border-color: #ff9800;
    background: linear-gradient(135deg, #fffaf0 0%, #fffbeb 100%);
}

.version-mobile-card.featured .badge {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: white;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
}

.version-mobile-card h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

/* 版本价格 */
.version-price-mobile {
    font-size: 42px;
    font-weight: 800;
    color: #2c3e50;
    text-align: center;
    margin: 15px 0 25px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.version-price-mobile::before {
    content: '¥';
    font-size: 24px;
    font-weight: 600;
    color: #718096;
    position: absolute;
    left: calc(50% - 70px);
    top: 8px;
}

/* 版本功能列表 */
.version-features-mobile {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.version-features-mobile li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #374151;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.version-features-mobile li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.version-features-mobile li i {
    color: #10b981;
    font-size: 16px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.version-features-mobile.featured li i {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

/* 版本操作按钮 */
.version-cta {
    text-align: center;
}

.version-cta .btn {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.version-cta .btn-primary {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    border: none;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
}

.version-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.4);
}

.version-cta .btn-outline-primary {
    color: #667eea;
    border: 2px solid #667eea;
    background: transparent;
}

.version-cta .btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* 核心优势 */
.benefits-compact {
    margin-bottom: 35px;
}

.benefits-compact h5 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.benefits-compact h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1.5px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
    padding: 20px;
    background: white;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #667eea;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.benefit-content {
    flex: 1;
}

.benefit-content h5 {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.benefit-content p {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

/* 常见问题 */
.faq-compact {
    margin-bottom: 30px;
}

.faq-compact h5 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.faq-compact h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2193b0, #6dd5ed);
    border-radius: 1.5px;
}

.faq-compact-item {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: white;
}

.faq-compact-question {
    width: 100%;
    padding: 18px 20px;
    background: #f8fafc;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-compact-question:hover {
    background: #f1f5f9;
    color: #667eea;
}

.faq-compact-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-compact-question[aria-expanded="true"]::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-compact-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-compact-answer.show {
    padding: 20px;
    max-height: 500px;
}

.faq-compact-answer p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* 底部行动按钮 */
.action-sticky {
    position: fixed;
    bottom: 70px; /* 在底部导航上方 */
    left: 0;
    right: 0;
    background: linear-gradient(to top, white, rgba(255, 255, 255, 0.95));
    padding: 16px;
    z-index: 900;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

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

.action-btn {
    flex: 1;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.action-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.action-btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.action-btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* ===== 底部导航样式 ===== */
.template-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
    padding: 8px 0 10px;
    z-index: 1000;
    border-top: 1px solid #e5e7eb;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #718096;
    padding: 8px 12px;
    flex: 1;
    transition: all 0.3s ease;
    border-radius: 12px;
    min-width: 60px;
}

.nav-item.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.nav-item:hover {
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

@keyframes pulseSuccess {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== 响应式调整 ===== */
@media (min-width: 768px) {
    .join-us-mobile {
        max-width: 800px;
        margin: 0 auto;
        padding: 30px 20px 40px;
    }
    
    .template-bottom-nav {
        display: none !important;
    }
    
    .action-sticky {
        position: static;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        padding: 30px 0 0;
        margin-top: 30px;
    }
    
    .action-buttons {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* 桌面端快速入口调整为4列 */
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .quick-action-card {
        padding: 25px 15px;
    }
    
    /* 桌面端版本卡片横向布局 */
    .version-content {
        display: flex;
        gap: 20px;
    }
    
    .version-content.active {
        display: flex;
    }
    
    .version-mobile-card {
        flex: 1;
        min-height: 450px;
        display: flex;
        flex-direction: column;
    }
    
    .version-features-mobile {
        flex: 1;
    }
    
    /* 核心优势桌面端 */
    .benefits-compact {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        height: 100%;
    }
    
    .benefit-icon {
        margin: 0 auto 15px;
    }
}

@media (min-width: 992px) {
    .join-us-mobile {
        max-width: 900px;
    }
    
    .slogan-card {
        padding: 35px 30px;
    }
    
    .slogan-card h3 {
        font-size: 24px;
    }
    
    .slogan-card p {
        font-size: 16px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 375px) {
    .join-us-mobile {
        padding: 16px 12px 70px;
    }
    
    .slogan-card {
        padding: 20px 16px;
        border-radius: 14px;
    }
    
    .slogan-card h3 {
        font-size: 18px;
    }
    
    .quick-actions {
        gap: 10px;
    }
    
    .quick-action-card {
        padding: 16px 8px;
        border-radius: 12px;
    }
    
    .quick-action-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .quick-action-title {
        font-size: 14px;
    }
    
    .quick-action-desc {
        font-size: 12px;
    }
    
    .version-tab {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .version-mobile-card {
        padding: 20px;
        border-radius: 14px;
    }
    
    .version-price-mobile {
        font-size: 36px;
        margin: 12px 0 20px;
    }
    
    .version-price-mobile::before {
        left: calc(50% - 60px);
        top: 6px;
    }
    
    .version-features-mobile li {
        font-size: 13px;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .benefit-item {
        padding: 16px;
        border-radius: 12px;
    }
    
    .benefit-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .benefit-content h5 {
        font-size: 15px;
    }
    
    .benefit-content p {
        font-size: 13px;
    }
    
    .faq-compact-question {
        padding: 16px;
        font-size: 14px;
    }
    
    .action-btn {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .action-sticky {
        padding: 12px;
        bottom: 60px;
    }
}

/* 防止快速重复点击 */
.btn,
.action-btn,
.version-cta .btn,
.faq-compact-question,
.quick-action-card {
    position: relative;
}

.btn.clicked::after,
.action-btn.clicked::after,
.version-cta .btn.clicked::after,
.faq-compact-question.clicked::after,
.quick-action-card.clicked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    animation: clickEffect 0.3s ease;
}

@keyframes clickEffect {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* 悬停效果增强 */
.quick-action-card,
.version-mobile-card,
.benefit-item {
    position: relative;
    overflow: hidden;
}

.quick-action-card::before,
.version-mobile-card::before,
.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.quick-action-card:hover::before,
.version-mobile-card:hover::before,
.benefit-item:hover::before {
    opacity: 1;
}
/* 特色卡片样式 */
.quick-action-card.featured {
    position: relative;
    border: 2px solid #ff9800;
    background: linear-gradient(135deg, #fffaf0 0%, #fffbeb 100%);
}

.quick-action-card.featured::before {
    content: '🔥';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc2626;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    animation: firePulse 1.5s infinite;
}

@keyframes firePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* 滚动到指定区域的平滑动画 */
.scroll-to-section {
    cursor: pointer;
}

/* 弹窗样式 */
.profit-calculator-modal,
.success-cases-modal,
.online-chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

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

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.modal-close {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #6b7280;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}
/* ===== FAQ页面样式 ===== */
/* FAQ搜索框 */
.faq-search-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 16px;
    margin: 20px 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* FAQ标签 */
.faq-tags {
    padding: 0 16px 20px;
}

.tags-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.tag-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.tag-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: transparent;
}

/* FAQ列表 */
.faq-accordion {
}

.faq-item {
    margin-bottom: 16px;
}

.faq-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-header {
    padding: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background: white;
}

.faq-header:hover {
    background: #f8f9fa;
}

.faq-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-right: 16px;
    flex-shrink: 0;
}

.faq-question h5 {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.faq-arrow {
    margin-left: auto;
    color: #718096;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-body {
    padding: 20px;
    border-top: 1px solid #e8ecf1;
    background: white;
}

.faq-answer {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
}

/* ===== 查单页面查询组件美化 ===== */

/* 查询表单容器 */
.query-form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin: 0 auto 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

/* 表单头部 */
.query-form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    color: white;
    display: flex;
    align-items: center;
    gap: 16px;
}

.query-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.query-title h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.query-title p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* 表单主体 */
.query-form-body {
    padding: 24px;
}

/* 查询类型选择器 */
.query-type-selector {
    margin-bottom: 20px;
}

.type-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #718096;
    margin-bottom: 12px;
    font-weight: 500;
}

.type-label i {
    color: #667eea;
}

.type-options {
    display: flex;
    gap: 12px;
}

.type-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #718096;
}

.type-option.active {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-color: #667eea;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.type-option:hover {
    transform: translateY(-2px);
}

.type-option i {
    font-size: 16px;
}

/* 查询输入框 */
.query-input-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e8ecf1;
    border-radius: 14px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 18px;
    flex-shrink: 0;
}

.query-input {
    flex: 1;
    border: none;
    padding: 14px 0;
    font-size: 15px;
    color: #2c3e50;
    background: transparent;
}

.query-input:focus {
    outline: none;
    box-shadow: none;
}

.query-input::placeholder {
    color: #a0aec0;
}

.input-clear {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.input-clear:hover {
    color: #667eea;
    transform: scale(1.1);
}

/* 查询提示 */
.query-tips {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f0fff4 0%, #f7fff7 100%);
    border: 1px solid #c6f6d5;
    border-radius: 10px;
    font-size: 13px;
    color: #2f855a;
}

.query-tips i {
    color: #38a169;
    font-size: 14px;
}

/* 查询按钮 */
.btn-query-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-query-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}
/* ===== FAQ页面紫色提示模块 ===== */
.faq-notice-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px 24px;
    color: white;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.faq-notice-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.notice-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-right: 18px;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

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

.notice-content h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.notice-content p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

.notice-action {
    z-index: 1;
    position: relative;
}

.btn-notice-action {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-notice-action:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-notice-action i {
    margin-right: 8px;
    font-size: 16px;
}

/* 搜索框美化 */
.faq-search-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-search-box .input-group {
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.faq-search-box .input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.faq-search-box .input-group-text {
    background: white;
    border: none;
    padding-left: 18px;
}

.faq-search-box .form-control {
    border: none;
    padding: 14px 0;
    font-size: 15px;
    color: #2c3e50;
}

.faq-search-box .form-control:focus {
    box-shadow: none;
}

.faq-search-box .form-control::placeholder {
    color: #a0aec0;
}

.faq-search-box .btn-link {
    padding-right: 18px;
    color: #718096;
    transition: color 0.2s ease;
}

.faq-search-box .btn-link:hover {
    color: #667eea;
}

/* 标签美化 */
.faq-tags {
    padding: 0 0 20px;
}

.tags-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.tag-btn {
    padding: 10px 22px;
    background: white;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.tag-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.tag-btn:hover:not(.active) {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}
/* ===== FAQ页面紫色提示模块 ===== */
.faq-notice-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px 24px;
    color: white;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.faq-notice-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* 其余样式同上... */
/* 移动端适配 */
@media (max-width: 767px) {
    .faq-notice-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        border-radius: 14px;
        margin: 0 12px 16px;
    }
    
    .notice-icon {
        margin-right: 0;
        margin-bottom: 15px;
        width: 54px;
        height: 54px;
        font-size: 24px;
    }
    
    .notice-content h5 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .notice-content p {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .btn-notice-action {
        width: 100%;
        justify-content: center;
    }
    
    .faq-search-box {
        margin: 0 12px 16px;
        border-radius: 14px;
        padding: 14px;
    }
    
    .faq-tags {
        padding: 0 12px 16px;
    }
    
    .tag-btn {
        padding: 8px 18px;
        font-size: 13px;
        border-radius: 10px;
    }
}

@media (max-width: 375px) {
    .faq-notice-card {
        padding: 16px;
        margin: 0 10px 14px;
    }
    
    .notice-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    
    .faq-search-box {
        padding: 12px;
        margin: 0 10px 14px;
    }
    
    .tag-btn {
        padding: 7px 16px;
        font-size: 12px;
    }
}
/* 快捷帮助 */
.quick-help {
    display: flex;
    gap: 12px;
}

.help-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    color: #718096;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.help-item:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* 查询结果区域美化 */
.query-results {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 20px;
}

.results-header {
    background: linear-gradient(135deg, #4fd1c7 0%, #319795 100%);
    padding: 20px 24px;
    color: white;
    display: flex;
    align-items: center;
    gap: 16px;
}

.results-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.results-info h6 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.results-info p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

/* 表格美化 */
.query-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.query-table thead th {
    border: none;
    padding: 16px 12px;
    font-weight: 600;
    color: #4a5568;
    background: #f8fafc;
    font-size: 13px;
    white-space: nowrap;
}

.query-table tbody td {
    padding: 16px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #edf2f7;
    font-size: 13px;
    color: #2d3748;
}

.query-table tbody tr:hover {
    background-color: #f7fafc;
}

/* 空状态美化 */
.results-empty {
    padding: 40px 20px;
}

.results-empty .empty-icon {
    font-size: 60px;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.results-empty .empty-text {
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.results-empty .empty-tip {
    font-size: 14px;
    color: #718096;
    max-width: 300px;
    margin: 0 auto;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .query-form-container {
        margin: 0 12px 16px;
        border-radius: 16px;
    }
    
    .query-form-header {
        padding: 20px;
    }
    
    .query-form-body {
        padding: 20px;
    }
    
    .query-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .query-title h5 {
        font-size: 16px;
    }
    
    .query-title p {
        font-size: 13px;
    }
    
    .type-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .type-option {
        padding: 10px;
        font-size: 13px;
    }
    
    .input-wrapper {
        border-radius: 12px;
    }
    
    .input-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .query-input {
        padding: 12px 0;
        font-size: 14px;
    }
    
    .query-tips {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .btn-query-submit {
        padding: 14px;
        font-size: 15px;
        border-radius: 12px;
    }
    
    .help-item {
        padding: 10px;
        font-size: 13px;
    }
    
    .results-header {
        padding: 16px 20px;
    }
    
    .results-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .query-table {
        font-size: 12px;
    }
    
    .query-table thead th {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .query-table tbody td {
        padding: 12px 8px;
        font-size: 12px;
    }
}

@media (max-width: 375px) {
    .query-form-container {
        margin: 0 10px 14px;
        border-radius: 14px;
    }
    
    .query-form-header {
        padding: 16px;
    }
    
    .query-form-body {
        padding: 16px;
    }
    
    .query-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .input-icon {
        width: 40px;
        height: 40px;
    }
    
    .query-input {
        font-size: 13px;
    }
}

/* ===== 加盟页面样式 ===== */
.join-us-mobile {
    padding: 20px 16px 40px;
}

/* 底部导航和动画效果已在文件前面定义，此处删除重复代码 */
/* ===== 购买页面移动端全面优化 ===== */

/* 移动端特别调整 */
@media (max-width: 767px) {
  /* 1. 基础布局修复 */
  .buy-page {
    padding-bottom: 70px; /* 给底部导航留空间 */
    min-height: 100vh;
    box-sizing: border-box;
  }
  
  /* 2. 头部优化 */
  .buy-header {
    padding: 12px 0;
    height: 60px;
  }
  
  .buy-header .container {
    padding: 0 12px !important;
  }
  
  .back-btn, .home-btn, .cart-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .category-box {
    gap: 10px;
  }
  
  .category-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }
  
  .category-info h2 {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }
  
  .category-info p {
    font-size: 0.85rem;
  }
  
  .cart-count {
    width: 18px;
    height: 18px;
    font-size: 10px;
    top: -4px;
    right: -4px;
  }
  
  /* 3. 主要内容区优化 */
  .container.buy-content {
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
  }
  
  /* 4. 表单容器调整 */
  .buy-form {
    padding: 20px;
    border-radius: 16px;
    margin-top: 10px;
  }
  
  .form-item {
    margin-bottom: 18px;
  }
  
  .form-label {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  /* 5. 输入框和选择框优化 */
  .form-select, .form-input {
    padding: 12px 14px;
    font-size: 14px;
    height: 46px;
    min-height: 46px;
    border-radius: 12px;
  }
  
  /* 6. 商品选择框特别优化 */
  #tid.form-select {
    height: 46px;
    min-height: 46px;
    line-height: 1.4;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 14px;
  }
  
  #tid.form-select option {
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.4;
  }
  
  /* 7. 数量控制器优化 */
  .quantity-box {
    height: 46px;
    border-radius: 12px;
  }
  
  .qty-btn {
    width: 46px;
    font-size: 14px;
  }
  
  .qty-input {
    font-size: 14px;
  }
  
  /* 8. 按钮区域优化 */
  .buy-buttons {
    margin-top: 24px;
  }
  
  .btn-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-cart, .btn-buy {
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 12px;
    height: 50px;
  }
  
  .btn-cart i, .btn-buy i {
    font-size: 16px;
  }
  
  /* 9. 动态输入字段优化 */
  #inputsname .input-group {
    border-radius: 12px;
    margin-bottom: 12px;
  }
  
  #inputsname .input-group-addon {
    padding: 12px 14px;
    min-width: 80px;
    font-size: 13px;
  }
  
  #inputsname .form-control {
    padding: 12px 14px;
    font-size: 14px;
  }
  
  /* 10. 商品简介框优化 */
  .product-desc {
    margin-top: 16px;
    border-radius: 16px;
  }
  
  .desc-header {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .desc-content {
    padding: 16px;
    font-size: 13px;
    max-height: 180px;
  }
  
  
  /* 12. 布局列优化 */
  .buy-content .col-lg-7,
  .buy-content .col-lg-5 {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }
  
  /* 移除右侧栏的外边距 */
  .buy-content .row > .col-lg-5 {
    margin-top: 16px;
  }
  
  /* 13. 弹窗优化 */
  .order-notice {
    width: 90% !important;
  }
  
  .order-notice .layui-layer-title {
    height: 50px !important;
    line-height: 50px !important;
    padding: 0 16px !important;
    font-size: 16px !important;
  }
  
  .notice-box {
    font-size: 15px;
  }
  
  .order-notice .layui-layer-btn {
    padding: 16px !important;
    flex-direction: column;
    gap: 8px;
  }
  
  .order-notice .layui-layer-btn a {
    padding: 12px !important;
    font-size: 14px !important;
    width: 100%;
  }
}

/* 超小屏幕手机特殊调整 */
@media (max-width: 375px) {
  .buy-header {
    padding: 10px 0;
    height: 56px;
  }
  
  .buy-header .container {
    padding: 0 10px !important;
  }
  
  .category-icon {
    width: 44px;
    height: 44px;
  }
  
  .category-info h2 {
    font-size: 1rem;
  }
  
  .category-info p {
    font-size: 0.8rem;
  }
  
  .container.buy-content {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .buy-form {
    padding: 16px;
  }
  
  .form-select, .form-input {
    padding: 10px 12px;
    height: 44px;
    min-height: 44px;
  }
  
  #tid.form-select {
    height: 44px;
    min-height: 44px;
    font-size: 13px;
  }
  
  .quantity-box {
    height: 44px;
  }
  
  .qty-btn {
    width: 44px;
  }
  
  .btn-cart, .btn-buy {
    padding: 12px 16px;
    height: 46px;
    font-size: 14px;
  }
}
/* ===== 响应式调整 ===== */
@media (min-width: 768px) {
    .template-bottom-nav {
        display: none !important;
    }
    
    body.template-page {
        padding-bottom: 0;
    }
    
    .container {
        max-width: 768px;
    }
    
    .buy-form-container {
        max-width: 800px;
        margin: 0 auto;
        padding: 0 20px 60px;
    }
    
    .faq-accordion,
    .sub-category-grid,
    .query-form {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 图片加载失败处理 - 增强版 */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

img[onerror] {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-radius: inherit;
}

/* 分类图标的默认占位符 */
.sub-category-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* 图片加载失败时显示默认图标 */
.category-icon-img:not([src]), 
.category-icon-img[src=""],
.category-icon-img[src*="undefined"],
.category-icon-img[src*="null"] {
    display: none;
}

/* 确保默认图标在图片加载失败时显示 */
.category-icon-img[style*="display:none"] + i {
    display: flex !important;
}

/* 加载指示器 */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e8ecf1;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 48px;
    color: #e8ecf1;
    margin-bottom: 16px;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.empty-subtitle {
    font-size: 14px;
    color: #718096;
    max-width: 300px;
    margin: 0 auto;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.py-3 {
    padding-top: 12px;
    padding-bottom: 12px;
}

.px-3 {
    padding-left: 12px;
    padding-right: 12px;
}
/* ===== 购物车页面 ===== */
.cart-page-header .template-header-unified {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    border-bottom: none;
    box-shadow: 0 2px 20px rgba(255, 107, 107, 0.2);
}

.cart-page-header .template-header-unified .back-link,
.cart-page-header .template-header-unified .header-title h4,
.cart-page-header .template-header-unified .header-subtitle {
    color: white !important;
}

.cart-page-header .cart-header-action {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.cart-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.cart-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* 购物车容器 */
.cart-container {
    padding: 20px 16px 100px;
    min-height: calc(100vh - 84px - 70px);
}

/* 空购物车 */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart .empty-icon {
    font-size: 80px;
    color: #e8ecf1;
    margin-bottom: 20px;
}

.empty-cart .empty-text h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.empty-cart .empty-text p {
    color: #718096;
    margin-bottom: 30px;
}

.empty-cart .btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
}

/* 购物车商品列表 */
.cart-items-list {
    margin-bottom: 20px;
}

.cart-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    padding: 16px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.cart-item-checkbox {
    margin-right: 12px;
    margin-top: 4px;
}

.cart-item-checkbox input[type="checkbox"] {
    display: none;
}

.cart-item-checkbox label {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #e8ecf1;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.cart-item-checkbox input[type="checkbox"]:checked + label {
    background: #667eea;
    border-color: #667eea;
}

.cart-item-checkbox input[type="checkbox"]:checked + label:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cart-item-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 12px;
    background: #f8f9fa;
}

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

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

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.item-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.item-price {
    font-size: 15px;
    font-weight: 700;
    color: #ff4757;
    white-space: nowrap;
}

.item-details {
    margin-bottom: 10px;
}

.input-value {
    font-size: 12px;
    color: #718096;
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* 商品控制 */
.item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 添加数量显示样式 */
.item-quantity-display {
    display: flex;
    align-items: center;
}

.quantity-badge {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}
.item-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.action-btn:hover {
    transform: scale(1.05);
}

.edit-btn:hover {
    background: #667eea;
    color: white;
}

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

/* 购物车底部 */
.cart-footer {
    background: white;
    border-radius: 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    padding: 16px;
    margin-top: 20px;
}

.cart-summary {
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.summary-label {
    color: #718096;
    font-size: 15px;
}

.summary-value {
    color: #ff4757;
    font-weight: 600;
    font-size: 18px;
}

.cart-actions {
    display: flex;
    gap: 12px;
}

.cart-actions .btn {
    flex: 1;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-actions .btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.cart-actions .btn-secondary:hover {
    background: #f8f9fa;
}

.cart-actions .btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white;
    border: none;
}

.cart-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.cart-alert {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

/* 响应式 */
@media (max-width: 480px) {
    .cart-item {
        padding: 12px;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .item-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .item-actions {
        align-self: flex-end;
    }
}
/* ===== 独立商品简介框 ===== */

/* 商品简介框 */
.product-desc {
    width: 100%;
    max-width: 100%;
    margin: 20px auto 0;
    display: none;
}

/* 简介容器 */
.desc-container {
    background: #fc7c5f; /* 改为橙色背景 */
    border-radius: 16px;
    box-shadow: 
        0 6px 25px rgba(59, 130, 246, 0.15),
        0 2px 10px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(252, 124, 5, 0.4); /* 边框色也调整 */
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 100%;
    width: 100%;
}

.desc-container:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(59, 130, 246, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(59, 130, 246, 0.3);
}

/* 标题区域 */
.desc-header {
    background: linear-gradient(135deg, #fc7c5f 0%, #fc7c5f 100%);
    padding: 18px 24px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

/* 标题背景装饰 */
.desc-header::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(252, 124, 5, 0.1) 0%, transparent 70%); /* 改为橙色 */
    border-radius: 50%;
    z-index: 0;
}

/* 标题图标 */
.desc-header-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #fc7c5f 0%, #f59e0b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 
        0 4px 12px rgba(252, 124, 5, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* 标题文字 - 改为白色，与注意事项一致 */
.desc-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white; /* 改为白色 */
    margin: 0;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* 调整阴影 */
}

/* 简介内容区域 - 改为黑色加粗，与注意事项一致 */
.desc-body {
    padding: 24px;
    color: #000000; /* 改为纯黑色 */
    font-size: 14px;
    line-height: 1.6; /* 与注意事项一致的行高 */
    max-height: 220px;
    overflow-y: auto;
    background: white;
    font-weight: 600; /* 添加加粗，与注意事项一致 */
}

/* 美化滚动条 - 改为橙色主题 */
.desc-body::-webkit-scrollbar {
    width: 6px;
}

.desc-body::-webkit-scrollbar-track {
    background: rgba(252, 124, 5, 0.05); /* 改为橙色背景 */
    border-radius: 3px;
    margin: 4px 0;
}

.desc-body::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #fc7c5f, #f59e0b); /* 改为橙色渐变 */
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.desc-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #f59e0b, #d97706); /* 加深橙色 */
}

/* 底部装饰 */
.desc-footer {
    background: #f8fafc;
    padding: 12px 0;
    text-align: center;
    position: relative;
}

.desc-footer-line {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 10%, 
        rgba(252, 124, 5, 0.3) 50%, /* 改为橙色 */
        transparent 90%
    );
    margin: 0 24px 10px;
}

.desc-footer-dots {
    color: rgba(252, 124, 5, 0.5); /* 改为橙色 */
    font-size: 16px;
    animation: dotsBlink 2s infinite;
}

@keyframes dotsBlink {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* 角标装饰 - 改为橙色 */
.desc-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-top: 3px solid #fc7c5f; /* 改为橙色 */
    border-left: 3px solid #fc7c5f; /* 改为橙色 */
    border-top-left-radius: 16px;
    opacity: 0.3;
}

.desc-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-bottom: 3px solid #fc7c5f; /* 改为橙色 */
    border-right: 3px solid #fc7c5f; /* 改为橙色 */
    border-bottom-right-radius: 16px;
    opacity: 0.3;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .product-desc {
        margin: 16px auto 0;
        width: 100%;
    }
    
    .desc-container {
        width: 100%;
        border-radius: 14px;
        border-width: 1.5px;
    }
    
    .desc-header {
        padding: 14px 20px;
    }
    
    .desc-header-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .desc-header-title {
        font-size: 1.1rem;
    }
    
    .desc-body {
        padding: 20px;
        font-size: 13px;
        max-height: 180px;
        color: #000000; /* 确保移动端也是黑色 */
        font-weight: 600; /* 确保移动端也加粗 */
    }
    
    .desc-footer-line {
        margin: 0 20px 8px;
    }
    
    /* 移动端隐藏角标装饰 */
    .desc-container::after,
    .desc-container::before {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 375px) {
    .desc-header {
        padding: 12px 16px;
    }
    
    .desc-header-icon {
        width: 36px;
        height: 36px;
    }
    
    .desc-header-title {
        font-size: 1rem;
    }
    
    .desc-body {
        padding: 16px;
        max-height: 160px;
        color: #000000; /* 确保超小屏幕也是黑色 */
        font-weight: 600; /* 确保超小屏幕也加粗 */
    }
}

/* 桌面端限制最大宽度 */
@media (min-width: 768px) {
    .product-desc {
        width: 100%;
        max-width: 100%;
    }
    
    .desc-container {
        width: 100%;
        max-width: 100%;
    }
}
/* ===== 注意事项组件 - 与商品简介框相同样式 ===== */
.notice-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 20px auto 0;
    display: block;
    animation: fadeIn 0.6s ease forwards;
}

.notice-wrapper.show {
    display: block;
}

.notice-box {
    background: #e6f2ff; /* 改为淡蓝色背景 */
    border-radius: 16px;
    box-shadow: 
        0 6px 25px rgba(59, 130, 246, 0.15),
        0 2px 10px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(59, 130, 246, 0.3); /* 边框加深一点 */
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 100%;
    width: 100%;
}

.notice-box:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(59, 130, 246, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(59, 130, 246, 0.3);
}

/* 橙色标题区域 */
.notice-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); /* 改为蓝色渐变 */
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

/* 标题背景装饰 */
.notice-header::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}



@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* 标题文字 */
.notice-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 注意事项列表 */
.notice-body {
    padding: 24px;
    background: white;
}

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

.notice-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    color: #000000; /* 改为纯黑色 */
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
    position: relative;
    padding-left: 0; /* 移除左边padding */
}

.notice-item:last-child {
    margin-bottom: 0;
}

.notice-item::before {
    display: none; /* 直接隐藏项目符号 */
}

/* 重要项目 */
.notice-item.important {
    color: #000000; /* 重要项也改为黑色，但保持加粗 */
    font-weight: 800; /* 可以更粗来区分 */
}

.notice-item.important::before {
    display: none; /* 重要项的符号也隐藏 */
}

/* 底部装饰 */
.notice-footer {
    text-align: center;
}

.notice-footer-line {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 10%, 
        rgba(245, 158, 11, 0.3) 50%, 
        transparent 90%
    );
    margin: 0 24px 10px;
}

.notice-footer-dots {
    color: rgba(245, 158, 11, 0.5);
    font-size: 16px;
    animation: dotsBlink 2s infinite;
}

@keyframes dotsBlink {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* 角标装饰 */
.notice-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-top: 3px solid #f59e0b;
    border-left: 3px solid #f59e0b;
    border-top-left-radius: 16px;
    opacity: 0.3;
}

.notice-box::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-bottom: 3px solid #f59e0b;
    border-right: 3px solid #f59e0b;
    border-bottom-right-radius: 16px;
    opacity: 0.3;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .notice-item {
        font-size: 13px;
        margin-bottom: 12px;
        padding-left: 0; /* 移除左边padding */
        color: #000000; /* 确保移动端也是黑色 */
    }
}
    
    .notice-box {
        border-radius: 14px;
        border-width: 1.5px;
    }
    
    .notice-header {
        padding: 14px 20px;
    }
    
    .notice-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    
    .notice-body {
        padding: 20px;
    }
    
    .notice-item {
        font-size: 13px;
        margin-bottom: 12px;
        padding-left: 20px;
    }
    
    .notice-footer-line {
        margin: 0 20px 8px;
    }
    
    /* 移动端隐藏角标装饰 */
    .notice-box::after,
    .notice-box::before {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }

/* 超小屏幕适配 */
@media (max-width: 375px) {
    .notice-header {
        padding: 12px 16px;
    }
    
    .notice-icon {
        width: 36px;
        height: 36px;
    }
    
    .notice-title {
        font-size: 1rem;
    }
    
    .notice-body {
        padding: 16px;
    }
    
    .notice-item {
        font-size: 12px;
        margin-bottom: 10px;
        padding-left: 18px;
    }
}

/* 桌面端限制最大宽度 */
@media (min-width: 768px) {
    .notice-wrapper {
        width: 100%; /* 改为100%宽度 */
        max-width: 100%; /* 移除最大宽度限制 */
    }
}
/* ===== 商品简介自适应高度 ===== */
#alert_frame .desc-body {
    max-height: none !important;    /* 移除最大高度限制 */
    height: auto !important;        /* 自动高度 */
    overflow: visible !important;   /* 允许内容溢出 */
    overflow-y: visible !important; /* 允许垂直溢出 */
}

/* 如果需要，同时移除容器的overflow限制 */
#alert_frame .notice-box {
    overflow: visible !important;
}

/* 文字加粗 */
#alert_content,
#alert_content p,
#alert_content div,
#alert_content span {
    font-weight: 600 !important;
}