/* 全局样式 */
:root {
    --primary-color: #4285f4;
    --secondary-color: #fff;
    --text-color: #333;
    --price-color: #f44336;
    --price-original-color: #999;
    --card-bg: #fff;
    --stock-tag-bg: #f5a623;
    --primary-light: #8bb5fb;
    --primary-dark: #2a75f3;
    --background-color: #f5f5f5;
    --text-light: #666666;
    --border-color: #eaeaea;
    --primary-rgb: 66, 133, 244;
    --star-color: #ff4e00;
    --crown-color: #ffb700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    padding-bottom: 10px;
    min-height: 100vh;
}

.page-container {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

/* 顶部区域 */
.header {
    background: linear-gradient(135deg, #4285f4, #1a56e0, #0039cb);
    padding: 15px 16px 20px;
    border-radius: 0 0 0 0;
    color: white;
    position: relative;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(66, 133, 244, 0.3);
}

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

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid white;
    background-color: white;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.site-info {
    flex: 1;
}

.site-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

/* 添加新的认证徽章样式 */
.verified-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 4px;
    margin-left: 6px;
    background: linear-gradient(90deg, rgba(255, 183, 0, 0.95), rgba(255, 140, 0, 0.95));
    border-radius: 2px;
    font-size: 10px;
    color: #fff;
    font-weight: normal;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.verify-icon {
    font-size: 14px !important;
    margin-right: 2px;
}

.verify-text {
    font-size: 10px;
}

.site-description {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* 商店标签 */
.shop-tag {
    background-color: rgba(255, 255, 255, 0.25);
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 10px;
}

.shop-stat {
    display: flex;
    align-items: center;
}

.shop-rate {
    color: #ffb700;
    font-weight: 600;
    font-size: 11px;
    display: flex;
    align-items: center;
}

.star-icon {
    font-size: 14px !important;
    margin-right: 2px;
    color: var(--star-color);
}

/* 商家保障服务 */
.shop-guarantees {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.guarantee-item {
    font-size: 11px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
}

.guarantee-icon {
    font-size: 14px !important;
    margin-right: 4px;
}

/* 客服按钮 */
.service-btn {
    position: absolute;
    right: 16px;
    bottom: 16px;
    background-color: white;
    color: #4285f4;
    padding: 5px 10px;
    border-radius: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.notice-text {
    font-size: 12px;
    color: white;
    opacity: 0.9;
    margin-top: 10px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    position: relative;
    padding-left: 22px;
}

.notice-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* 弹窗样式 */
.notice-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notice-modal.show {
    opacity: 1;
    visibility: visible;
}

.notice-modal-content {
    background: white;
    border-radius: 12px;
    width: 85%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.notice-modal.show .notice-modal-content {
    transform: translateY(0);
}

.notice-modal-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.notice-modal-body {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.notice-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
}

/* 头部操作按钮 */
.header-actions {
    position: absolute;
    top: 15px;
    right: 16px;
    display: flex;
    gap: 10px;
}

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

.order-query-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2px 8px;
    font-size: 12px;
    color: white;
    cursor: pointer;
}

/* 功能按钮区域 */
.func-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 20px;
}

.func-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 15px 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s;
}

.func-btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.num-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4, #2a75f3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(66, 133, 244, 0.3);
}

.num-circle svg {
    width: 20px;
    height: 20px;
}

.func-btn .text {
    font-size: 14px;
}

/* 分类容器 */
.categories-wrapper {
    padding: 12px;
    margin-bottom: 20px;
    background-color: #f5f7fa;
    position: relative;
}

/* 分类标题 */
.category-header {
    padding: 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.category-title-icon {
    margin-right: 6px;
    color: #999;
    font-size: 18px;
}

/* 标签式分类导航 */
.category-tabs-container {
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.category-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding-bottom: 6px;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex: 1;
    flex-shrink: 0;
    text-align: center;
    position: relative;
    cursor: pointer;
    padding: 0;
    min-width: 85px;
}

.tab-inner {
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    position: relative;
    white-space: nowrap;
    transition: all 0.2s;
    font-weight: 500;
}

.category-tab.active .tab-inner {
    color: var(--primary-color);
}

.category-tab.active .tab-inner::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.tab-count {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
    font-weight: normal;
}

/* 移除旧样式 */
.category-nav,
.category-nav-item,
.category-nav-inner,
.category-icon,
.category-name {
    display: none;
}

/* 分类内容区域 */
.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

/* 商品容器样式 */
.goods-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.goods-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.goods-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.goods-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background-color: #f8f9fa;
    position: relative;
}

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

.goods-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.goods-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.item-count {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.goods-price-box {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.goods-price {
    color: var(--price-color);
    font-size: 16px;
    font-weight: bold;
}

.goods-price::before {
    content: "¥";
    font-size: 12px;
}

.goods-original-price {
    color: var(--price-original-color);
    font-size: 12px;
    text-decoration: line-through;
}

.goods-original-price::before {
    content: "原价";
    margin-right: 2px;
}

.goods-tag {
    background-color: var(--stock-tag-bg);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.no-more {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 15px 0;
}

/* 底部导航 */

/* 加载动画 */
.loading {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 14px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 30px 0;
    color: #969799;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.empty-state .text {
    font-size: 14px;
}

/* 商品详情弹窗 */
.detail-popup {
    background: #fff;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.popup-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 15px;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.popup-header .title {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.detail-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #f8f9fa;
}

.goods-image-container {
    background: #fff;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.goods-image {
    width: 100%;
    height: 0;
    padding-bottom: 70%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
}

.goods-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.goods-info-box {
    margin: 0 12px 12px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.price {
    display: flex;
    align-items: baseline;
}

.price-symbol {
    font-size: 15px;
    color: var(--price-color);
    font-weight: 500;
}

.price-value {
    font-size: 24px;
    color: var(--price-color);
    font-weight: 600;
    margin-left: 1px;
}

.stock {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
}

.stock-num.empty {
    color: #ff4d4f;
}

.goods-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* 购买表单区域 */
.purchase-form {
    margin: 0 12px 12px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

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

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

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

.item-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* 数量选择器 */
.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 8px;
    width: 110px;
    height: 36px;
    background: #f8f9fa;
    overflow: hidden;
}

.ctrl-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.ctrl-btn:active:not(.disabled) {
    background: rgba(0,0,0,0.05);
}

.ctrl-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
}

#goods_quantity {
    width: 38px;
    text-align: center;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    height: 36px;
    font-size: 14px;
    color: #333;
    background: #fff;
}

/* QQ输入框 */
.input-field {
    width: 93%;
    height: 36px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    color: #333;
    background: #f8f9fa;
    transition: all 0.2s;
}

.input-field:focus {
    border-color: var(--primary-color);
    background: #fff;
    outline: none;
}

/* 支付方式区域 */
.payment-section {
    margin-top: 20px;
}

.section-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.payment-methods {
    display: flex;
    gap: 10px;
}

.payment-method {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method:active {
    background: #f5f5f5;
}

.payment-method.active {
    background: #f0f9ff;
    border-color: var(--primary-color);
}

.payment-method.active .method-name {
    color: var(--primary-color);
    font-weight: 500;
}

.method-name {
    font-size: 14px;
    color: #333;
}

/* 底部操作栏 */
.popup-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    border-top: 1px solid #f5f5f5;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99;
}

.submit-btn {
    background: linear-gradient(135deg, #4285f4, #2a75f3);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 2px 6px rgba(66, 133, 244, 0.3);
}

.submit-btn:active {
    background: linear-gradient(135deg, #2a75f3, #1a65e3);
    box-shadow: 0 1px 3px rgba(66, 133, 244, 0.2);
}

.submit-btn.disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

/* 移动端适配 */
@media screen and (max-width: 480px) {
    .goods-info-box,
    .purchase-form {
        margin: 0 8px 8px;
        padding: 12px;
    }
    
    .popup-footer {
        padding: 10px 12px;
    }
}

/* 商品图片预览 */
.image-preview {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-preview.active {
    opacity: 1;
    visibility: visible;
}

.preview-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.image-preview.active .preview-image {
    transform: scale(1);
}

.close-preview {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10000;
}

/* 改进商品卡片样式 */
.goods-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4285f4, #2a75f3);
    opacity: 0;
    transition: opacity 0.3s;
}

.goods-card:hover::after {
    opacity: 1;
}

/* 移动端适配优化 */
@media screen and (max-width: 360px) {
    .goods-container {
        grid-template-columns: 1fr;
    }
    
    .category-nav-item .category-nav-inner {
        padding: 6px 12px;
    }
    
    .category-name {
        font-size: 13px;
    }
}

/* 搜索弹窗 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

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

.search-modal-content {
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-modal-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    background: #f8f9fa;
}

.search-input-container {
    flex: 1;
    background-color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 40px;
    border: 1px solid #e0e0e0;
}

.search-icon {
    color: #999;
    font-size: 18px;
    margin-right: 8px;
}

.clear-icon {
    color: #999;
    font-size: 18px;
    cursor: pointer;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    height: 36px;
    font-size: 14px;
    outline: none;
}

.search-cancel-btn {
    margin-left: 16px;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
}

.search-results {
    flex: 1;
    overflow-y: auto;
    max-height: 60vh;
    padding: 0;
}

.searching {
    text-align: center;
    color: #999;
    padding: 20px 0;
    font-size: 14px;
}

.empty-search {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 14px;
}

.search-result-item {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f9f9f9;
}

.search-result-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 12px;
    background-color: #f8f8f8;
}

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

.search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.search-result-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    font-size: 16px;
    color: var(--price-color);
    font-weight: bold;
}

/* 通用弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal.show {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

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

.modal-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.modal-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    cursor: pointer;
}

.modal-close:hover {
    background: #eee;
}

.modal-body {
    padding: 16px;
    overflow-y: auto;
}

/* 表单样式 */
.input-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.modal-input {
    width: 100%;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    margin-bottom: 16px;
}

.modal-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.modal-btn {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #4285f4, #2a75f3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 16px;
}

.modal-btn:hover {
    background: linear-gradient(135deg, #3b78e7, #2568e0);
}

/* 订单查询结果样式 */
.order-result {
    margin-top: 10px;
}

.loading-message, 
.error-message, 
.empty-message {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 14px;
}

.error-message {
    color: #f44336;
}

.order-list {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.order-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

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

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.order-no {
    font-size: 14px;
    color: #666;
}

.order-status {
    font-size: 12px;
    color: #ff9800;
    font-weight: 500;
}

.order-status.success {
    color: #4caf50;
}

.order-product {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

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

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

.order-price {
    font-size: 16px;
    color: var(--price-color);
    font-weight: bold;
}

/* 添加卡密信息样式 */
.order-kminfo {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.kminfo-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.kminfo-content {
    font-family: monospace;
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    word-break: break-all;
    white-space: pre-wrap;
    max-height: 100px;
    overflow-y: auto;
}

/* 客服弹窗样式 */
.service-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-item {
    display: flex;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
}

.service-icon {
    font-size: 36px !important;
    color: var(--primary-color);
    margin-right: 16px;
}

.service-detail {
    flex: 1;
}

.service-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.service-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.service-link:hover {
    background: var(--primary-dark);
}

.service-link .material-icons-round {
    font-size: 16px !important;
    margin-right: 4px;
}

.wx-qrcode {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 4px;
    padding: 8px;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wx-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}