/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* 头部 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo-icon {
    font-size: 32px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 12px;
    opacity: 0.8;
}

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

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a:hover,
.nav a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 18px;
}

/* 公告栏 */
.notice-bar {
    background: linear-gradient(90deg, #fff3cd 0%, #ffeeba 100%);
    padding: 12px 0;
    border-bottom: 1px solid #ffeeba;
}

.notice-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-icon {
    font-size: 18px;
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}

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

.notice-scroll-container {
    flex: 1;
    overflow: hidden;
    cursor: pointer;
}

.notice-scroll-container:hover {
    background: rgba(255, 193, 7, 0.1);
}

.notice-scroll-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 50s linear infinite;
}

.notice-scroll-content:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.notice-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-right: 40px;
}

.notice-title {
    font-size: 14px;
    font-weight: bold;
    color: #856404;
    flex-shrink: 0;
}

.notice-separator {
    color: #856404;
    opacity: 0.7;
    flex-shrink: 0;
}

.notice-body {
    font-size: 14px;
    color: #856404;
    white-space: nowrap;
}

.notice-body :deep(p) {
    margin: 0;
    display: inline;
}

/* 公告详情弹窗样式 */
.notice-detail-modal {
    max-width: 600px;
    width: 90%;
}

.notice-detail-content {
    line-height: 1.8;
    color: #333;
    font-size: 15px;
}

.notice-detail-content :deep(p) {
    margin-bottom: 10px;
}

.notice-detail-content :deep(img) {
    max-width: 100%;
    height: auto;
}

/* 主内容区 */
.main-content {
    padding: 30px 0;
}

.content-wrapper {
    display: flex;
    gap: 25px;
}

/* 侧边栏 */
.sidebar {
    width: 240px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar-icon {
    font-size: 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

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

.category-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    margin-bottom: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-list li:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf7 100%);
    border-color: #e0e7ff;
    transform: translateX(5px);
}

.category-list li.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cat-icon {
    font-size: 22px;
}

.cat-icon .category-img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

.cat-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cat-name {
    font-size: 15px;
    font-weight: 500;
}

.cat-count {
    font-size: 12px;
    opacity: 0.7;
}

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

.category-header {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.level2-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-icon {
    font-size: 32px;
}

.title-info {
    flex: 1;
}

.title-info h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

.title-desc {
    font-size: 14px;
    color: #999;
}

.title-stats {
    display: flex;
    gap: 20px;
}

.stock-info,
.price-range {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f8f9fa;
}

.price-range {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    font-weight: bold;
}

/* 二级分类标签 */
.level2-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.level2-tabs button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.level2-tabs button:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.level2-tabs button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tab-icon {
    font-size: 16px;
}

.tab-icon .category-img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.product-count {
    font-size: 14px;
    color: #999;
}

/* 商品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: #e0e7ff;
}

.product-card.soldout {
    opacity: 0.6;
    filter: grayscale(30%);
}

.product-card.instock {
    border-color: rgba(39, 174, 96, 0.3);
}

.product-card.instock:hover {
    border-color: #27ae60;
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.15);
}

.product-image {
    position: relative;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.product-icon {
    font-size: 48px;
}

.product-icon .category-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stock-badge.instock {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.stock-badge.soldout {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.meta-icon {
    font-size: 14px;
}

.text-success {
    color: #27ae60;
}

.text-danger {
    color: #e74c3c;
}

.text-warning {
    color: #f39c12;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
}

/* 按钮 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-buy {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
}

.btn-buy:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-buy:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-cancel {
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #666;
}

.btn-cancel:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.btn-submit {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-detail {
    background: #fff;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-detail:hover {
    background: #f0f4ff;
}

.btn-secondary {
    background: #95a5a6;
    color: #fff;
    border: none;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* 查询记录页面 */
.record-page {
    padding: 30px 0;
}

.record-header {
    text-align: center;
    margin-bottom: 30px;
}

.record-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}

.record-subtitle {
    color: #999;
    font-size: 14px;
}

.query-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: #fff;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.query-tabs button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
}

.query-tabs button:hover {
    background: #f0f4ff;
}

.query-tabs button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tab-icon {
    font-size: 18px;
}

.tab-icon .category-img {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    object-fit: cover;
}

/* 查询表单 */
.query-form {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.form-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

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

.input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.input-icon {
    padding: 15px;
    background: #f8f9fa;
    font-size: 18px;
}

.input-group input {
    border: none;
    flex: 1;
    padding: 15px;
}

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

.required {
    color: #e74c3c;
}

.form-tip {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* Cookie查询 */
.cookie-query {
    text-align: center;
}

.cookie-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.cookie-query h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.cookie-tip {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.cookie-note {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

/* 订单列表 */
.order-list {
    display: grid;
    gap: 20px;
}

.order-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e0e0e0;
}

.order-info-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

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

.order-time {
    font-size: 13px;
    color: #999;
}

.order-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

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

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

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

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

.status-4 {
    background: #ddd;
    color: #666;
}

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

.status-6 {
    background: #e9ecef;
    color: #495057;
}

.order-body {
    padding: 20px 24px;
}

.order-product {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.order-product .product-icon {
    font-size: 40px;
}

.order-product .product-icon .category-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.product-detail {
    flex: 1;
}

.product-detail h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.product-detail p {
    font-size: 13px;
    color: #999;
}

.order-amount {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
}

.order-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-row .label {
    color: #999;
    font-size: 14px;
}

.meta-row .value {
    color: #333;
    font-weight: 500;
}

.value.text-warning {
    color: #e65100;
}

.value.text-success {
    color: #27ae60;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.order-notice {
    font-size: 13px;
    color: #999;
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@keyframes slideUp {
    from { 
        transform: translateY(30px) scale(0.95); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 28px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 22px;
    color: #fff;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 28px;
    background: #fff;
}

.modal-footer {
    display: flex;
    gap: 15px;
    padding: 20px 28px 28px;
    background: #fff;
    border-radius: 0 0 24px 24px;
}

.modal-footer .btn {
    flex: 1;
    height: 48px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.modal-footer .btn-secondary {
    background: #f1f3f4;
    color: #666;
}

.modal-footer .btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* 提示弹窗 */
.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(5px);
}

.toast-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    min-width: 280px;
    max-width: 90%;
    text-align: center;
    animation: toastBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

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

.toast-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.toast-icon.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.toast-icon.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.toast-icon.warning {
    background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
    color: #fff;
}

.toast-icon.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

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

.toast-message {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.toast-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.toast-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* 购买弹窗 */
.modal-buy {
    max-width: 550px;
}

.product-info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 24px;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.product-icon-lg {
    font-size: 48px;
}

.product-icon-lg .category-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

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

.product-title p {
    font-size: 13px;
    color: #999;
}

.product-specs {
    display: flex;
    gap: 30px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spec-label {
    font-size: 13px;
    color: #999;
}

.spec-value {
    font-size: 16px;
    font-weight: 500;
}

.spec-value.price {
    color: #e74c3c;
    font-size: 20px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.qty-btn {
    width: 48px;
    height: 48px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qty-btn:hover:not(:disabled) {
    background: #f0f0f0;
    border-color: #667eea;
}

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

.quantity-control input {
    width: 80px;
    height: 48px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 18px;
}

.quantity-control input:focus {
    outline: none;
    border-color: #667eea;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff3e0;
    border-radius: 10px;
}

.total-label {
    font-size: 15px;
    color: #666;
}

.total-price {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

/* 支付方式 */
.pay-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.pay-methods label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pay-methods label:hover {
    border-color: #667eea;
}

.pay-methods label.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf7 100%);
}

.pay-methods input {
    display: none;
}

.pay-icon {
    font-size: 32px;
}

.pay-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pay-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.pay-desc {
    font-size: 12px;
    color: #999;
}

/* 订单详情弹窗 */
.modal-detail {
    max-width: 650px;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.detail-grid {
    max-height: 50vh;
    overflow-y: auto;
    display: grid;
    gap: 15px;
}

.detail-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.detail-header {
    padding: 12px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 500;
}

.detail-items {
    padding: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
}

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

.detail-label {
    color: #999;
    font-size: 13px;
}

.detail-value {
    font-size: 13px;
    font-family: monospace;
    color: #333;
    word-break: break-all;
}

.empty-detail {
    text-align: center;
    padding: 30px;
    color: #999;
}

.detail-tip {
    background: #fff3cd;
    padding: 15px;
    border-radius: 10px;
    font-size: 13px;
    color: #856404;
}

/* 提号弹窗 */
.modal-obtain {
    max-width: 600px;
}

.obtain-header {
    margin-bottom: 15px;
    text-align: center;
}

.btn-copy-all {
    width: 100%;
    max-width: 200px;
}

.obtain-list {
    max-height: 50vh;
    overflow-y: auto;
}

.obtain-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f7f7f7;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #eee;
    transition: all 0.2s;
    user-select: all;
}

.obtain-item:hover {
    background: #e6f7ff;
    border-color: #91d5ff;
}

.obtain-item:active {
    background: #bae7ff;
}

.obtain-index {
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 12px;
}

.obtain-content {
    font-size: 13px;
    font-family: monospace;
    color: #333;
    word-break: break-all;
    line-height: 1.5;
}

.empty-obtain {
    text-align: center;
    padding: 40px;
    color: #999;
}

.obtain-tip {
    background: #fff3cd;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #856404;
    margin-top: 15px;
    text-align: center;
}

/* 订单操作按钮 */
.order-actions {
    display: flex;
    gap: 10px;
}

.btn-obtain {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-obtain:hover {
    opacity: 0.9;
}

.btn-obtain:active {
    opacity: 0.8;
}

/* 底部 */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #999;
    padding: 40px 0;
    margin-top: 50px;
}

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

.footer-section h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    font-size: 13px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        gap: 10px;
    }

    .nav a {
        padding: 8px 15px;
        font-size: 14px;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .category-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-list li {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }

    .cat-info {
        align-items: center;
    }

    .cat-count {
        display: none;
    }

    .level2-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .title-stats {
        margin-left: 0;
        margin-top: 10px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .order-meta {
        grid-template-columns: 1fr;
    }

    .pay-methods {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 15px 0;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-sub {
        font-size: 11px;
    }

    .nav a {
        font-size: 13px;
        padding: 6px 12px;
    }

    .sidebar {
        padding: 20px;
    }

    .category-list {
        grid-template-columns: 1fr;
    }

    .product-card {
        margin-bottom: 15px;
    }

    .product-image {
        padding: 20px;
    }

    .product-icon {
        font-size: 36px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 12px 30px;
        font-size: 14px;
    }

    .query-tabs button {
        padding: 12px 10px;
        font-size: 13px;
        flex-direction: column;
        gap: 5px;
    }

    .query-form {
        padding: 20px;
    }

    .order-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .order-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .order-amount {
        align-self: flex-end;
    }

    .modal-content {
        padding: 15px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }

    .quantity-control input {
        width: 60px;
        height: 40px;
    }

    .qty-btn {
        width: 40px;
        height: 40px;
    }
}

/* 支付弹窗样式 */
.pay-modal {
    padding: 20px;
}

.pay-modal h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.qr-code-container {
    text-align: center;
    margin-bottom: 20px;
}

.qr-code {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pay-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.pay-info p {
    font-size: 15px;
    margin-bottom: 8px;
    color: #333;
}

.pay-info p:last-child {
    margin-bottom: 0;
}

.pay-tips {
    background: #fff3cd;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.pay-tips p {
    font-size: 13px;
    color: #856404;
    margin-bottom: 5px;
}

.pay-tips p:last-child {
    margin-bottom: 0;
}

/* 警告提示 */
.warning-alert {
    background: #fff5f5;
    border: 2px solid #ffccc7;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    text-align: center;
    color: #d93026;
    font-weight: 500;
    font-size: 14px;
}

/* 支付倒计时 */
.countdown-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    text-align: center;
    color: #fff;
}

.countdown-label {
    font-size: 12px;
    margin-bottom: 6px;
    opacity: 0.9;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

.countdown-digit {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 6px;
    min-width: 30px;
    text-align: center;
}

.countdown-digit.expired {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.3);
}

.countdown-separator {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.countdown-units {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-top: 4px;
    font-size: 10px;
    opacity: 0.8;
}

/* USDT支付弹窗 */
.usdt-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.pay-details {
    flex: 1;
}

.pay-details p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
}

.address-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.address-section h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.address {
    font-family: monospace;
    font-size: 13px;
    color: #333;
    word-break: break-all;
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

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

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

.btn-close {
    background: #f0f0f0;
    border: none;
    color: #666;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
}

.btn-close:hover {
    background: #e0e0e0;
}

/* 右侧悬浮联系 */
.floating-contact {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.contact-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25a0da 0%, #0088cc 100%);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.contact-toggle:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 25px rgba(0, 136, 204, 0.5);
}

.contact-toggle.active {
    border-radius: 30px 0 0 30px;
}

.tg-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.toggle-text {
    display: none;
}

@media (min-width: 768px) {
    .toggle-text {
        display: inline;
    }
}

.contact-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 280px;
    padding: 20px;
    margin-bottom: 15px;
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-panel.show {
    display: block;
}

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

.panel-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.close-panel {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-panel:hover {
    background: #e0e0e0;
    color: #666;
}

.contact-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #25a0da;
    color: #25a0da;
}

.tab-btn.active {
    background: linear-gradient(135deg, #25a0da 0%, #0088cc 100%);
    color: white;
    border-color: transparent;
}

.panel-content {
    position: relative;
}

.contact-tab {
    display: none;
}

.contact-tab.active {
    display: block;
}

.qr-code-container {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.contact-qr {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.qr-placeholder {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 12px;
}

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

.contact-title {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
}

.contact-account {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.copy-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 桌面端隐藏移动端底部导航栏 */
.mobile-bottom-bar {
    display: none;
}

/* 响应式悬浮联系 - 移动端优化 */
@media (max-width: 768px) {
    .floating-contact {
        right: 15px;
        top: auto;
        bottom: 120px;
        transform: none;
        z-index: 9998;
    }
    
    .contact-toggle {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
        position: relative;
    }
    
    .contact-toggle::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 66px;
        height: 66px;
        border-radius: 50%;
        background: rgba(37, 160, 218, 0.3);
        transform: translate(-50%, -50%);
        animation: pulse-ring 2s infinite;
    }
    
    @keyframes pulse-ring {
        0% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }
        100% {
            transform: translate(-50%, -50%) scale(1.4);
            opacity: 0;
        }
    }
    
    .tg-icon {
        width: 28px;
        height: 28px;
        position: relative;
        z-index: 1;
    }
    
    .toggle-text {
        display: none;
    }
    
    .contact-panel {
        width: calc(100vw - 40px);
        max-width: 320px;
        padding: 20px;
        right: 5px;
        bottom: 80px;
        position: absolute;
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }
    
    .contact-qr {
        width: 180px;
        height: 180px;
    }
    
    .contact-info {
        padding-top: 10px;
    }
    
    .contact-account {
        font-size: 17px;
    }
    
    .copy-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .floating-contact {
        right: 12px;
        bottom: 115px;
    }
    
    .contact-toggle {
        width: 52px;
        height: 52px;
    }
    
    .tg-icon {
        width: 26px;
        height: 26px;
    }
    
    .contact-panel {
        width: calc(100vw - 30px);
        right: 5px;
    }
    
    .contact-qr {
        width: 160px;
        height: 160px;
    }
    
    .tab-btn {
        padding: 12px 8px;
        font-size: 13px;
    }
}

/* 移动端底部固定栏 */
@media (max-width: 768px) {
    .mobile-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-top: 1px solid #e0e0e0;
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 0 15px;
        z-index: 9999;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    }
    
    .mobile-bottom-bar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: #666;
        text-decoration: none;
        font-size: 12px;
        padding: 8px 15px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .mobile-bottom-bar a:hover,
    .mobile-bottom-bar a.active {
        color: #667eea;
        background: rgba(102, 126, 234, 0.1);
    }
    
    .mobile-bottom-bar .nav-icon {
        font-size: 22px;
    }
    
    .mobile-bottom-bar .contact-btn {
        background: linear-gradient(135deg, #25a0da 0%, #0088cc 100%);
        color: white;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -25px;
        box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
        transition: all 0.3s ease;
    }
    
    .mobile-bottom-bar .contact-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
        background: linear-gradient(135deg, #25a0da 0%, #0088cc 100%);
    }
    
    .mobile-bottom-bar .contact-btn img {
        width: 24px;
        height: 24px;
        border-radius: 6px;
    }
}

/* 响应式支付弹窗 */
@media (max-width: 768px) {
    .usdt-info {
        flex-direction: column;
        align-items: center;
    }

    .qr-code {
        width: 180px;
        height: 180px;
    }

    .pay-details {
        width: 100%;
    }
}