* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; }
.app { min-height: 100vh; padding-bottom: 70px; max-width: 750px; margin: 0 auto; background: #f5f5f5; }
.header { background: linear-gradient(135deg, #4a90e2, #357abd); padding: 15px; color: #fff; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { background: #fff; color: #4a90e2; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; }
.logo-text { font-size: 20px; font-weight: bold; }
.banner-slider { margin: 10px; border-radius: 12px; overflow: hidden; position: relative; }
.banner-wrapper { position: relative; height: 150px; }
.banner-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s; }
.banner-item.active { opacity: 1; }
.banner-item img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.banner-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.banner-dots .dot.active { background: #fff; }
.notice { background: #fff; margin: 10px; padding: 12px 15px; border-radius: 25px; display: flex; align-items: center; gap: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); cursor: pointer; }
.notice-icon { font-size: 18px; }
.notice-text { color: #666; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; transition: opacity 0.3s, transform 0.3s; }
.notice-item { padding: 15px; border-bottom: 1px solid #f0f0f0; }
.notice-item:last-child { border-bottom: none; }
.notice-title { font-size: 16px; font-weight: 500; color: #333; margin-bottom: 8px; }
.notice-content { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 8px; }
.notice-time { font-size: 12px; color: #999; }
.empty-notice { text-align: center; padding: 30px; color: #999; }
.categories { display: flex; gap: 10px; padding: 15px; overflow-x: auto; background: #fff; margin: 0 10px; border-radius: 10px; }
.categories::-webkit-scrollbar { display: none; }
.category { padding: 8px 20px; border-radius: 20px; font-size: 14px; white-space: nowrap; cursor: pointer; border: 1px solid #e0e0e0; color: #666; transition: all 0.3s; }
.category.active { background: #e8f4fd; color: #4a90e2; border-color: #4a90e2; }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px; }
.product-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); cursor: pointer; transition: transform 0.2s; }
.product-card:hover { transform: translateY(-2px); }
.product-image { width: 100%; aspect-ratio: 1; background: #f8f9fa; display: flex; align-items: center; justify-content: center; position: relative; }
.product-image img { max-width: 80%; max-height: 80%; object-fit: contain; }
.product-image .placeholder { font-size: 48px; color: #4a90e2; }
.discount-tag { position: absolute; top: 10px; right: 10px; background: #ff6b6b; color: #fff; padding: 4px 8px; border-radius: 10px; font-size: 12px; }
.product-info { padding: 12px; }
.product-name { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 4px; }
.product-desc { font-size: 12px; color: #4a90e2; }
.product-price { font-size: 14px; color: #ff6b6b; margin-top: 5px; }
.no-more { text-align: center; color: #999; padding: 20px; font-size: 14px; }
.navbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 750px; background: #fff; display: flex; justify-content: space-around; padding: 8px 0; border-top: 1px solid #eee; z-index: 100; }
.nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #999; font-size: 12px; gap: 4px; }
.nav-item svg { width: 24px; height: 24px; fill: currentColor; }
.nav-item.active { color: #4a90e2; }
.search-bar { padding: 0; }
.search-input { width: 100%; padding: 10px 15px; border: none; border-radius: 25px; font-size: 14px; background: #fff; }
.order-tabs { display: flex; background: #fff; border-bottom: 1px solid #eee; overflow-x: auto; }
.order-tabs::-webkit-scrollbar { display: none; }
.tab { padding: 15px 20px; font-size: 14px; color: #666; white-space: nowrap; cursor: pointer; position: relative; }
.tab.active { color: #4a90e2; }
.tab.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 2px; background: #4a90e2; }
.order-list { padding: 10px; }
.order-card { background: #fff; border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.order-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; border-bottom: 1px solid #f5f5f5; }
.order-no { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #333; }
.order-status { font-size: 12px; padding: 4px 10px; border-radius: 10px; }
.order-status.pending { background: #fff3cd; color: #856404; }
.order-status.processing { background: #cce5ff; color: #004085; }
.order-status.completed { background: #d4edda; color: #155724; }
.order-status.cancelled { background: #f8d7da; color: #721c24; }
.order-body { padding: 12px 15px; }
.order-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.order-row:last-child { margin-bottom: 0; }
.order-label { color: #666; }
.order-value { color: #333; }
.order-value.amount { color: #4a90e2; font-weight: 500; }
.order-footer { padding: 12px 15px; border-top: 1px solid #f5f5f5; text-align: center; }
.order-detail-link { color: #4a90e2; font-size: 14px; cursor: pointer; }
.user-header { background: linear-gradient(135deg, #4a90e2, #357abd); padding: 30px 20px; color: #fff; }
.user-info { display: flex; align-items: center; gap: 15px; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { font-size: 30px; }
.user-detail { flex: 1; }
.username { font-size: 18px; font-weight: bold; margin-bottom: 4px; }
.user-id { font-size: 12px; opacity: 0.8; }
.settings-btn { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 6px 12px; border-radius: 15px; font-size: 12px; cursor: pointer; }
.assets-card { background: #fff; margin: -20px 15px 15px; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.1); position: relative; z-index: 1; }
.assets-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid #f5f5f5; }
.assets-header span { font-size: 14px; font-weight: 500; }
.assets-header a { color: #4a90e2; font-size: 12px; text-decoration: none; }
.assets-body { display: flex; padding: 20px 15px; }
.asset-item { flex: 1; text-align: center; }
.asset-value { font-size: 18px; font-weight: bold; color: #4a90e2; margin-bottom: 5px; }
.asset-label { font-size: 12px; color: #999; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 15px; background: #fff; margin: 0 15px; border-radius: 12px; }
.menu-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 15px 0; cursor: pointer; }
.menu-icon { width: 50px; height: 50px; background: #f5f8ff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.menu-text { font-size: 12px; color: #666; }
.logout-btn { display: block; width: calc(100% - 30px); margin: 15px auto; padding: 15px; background: #fff; border: none; border-radius: 12px; font-size: 14px; color: #666; cursor: pointer; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-content { background: #fff; width: 90%; max-width: 400px; border-radius: 12px; overflow: hidden; max-height: 80vh; overflow-y: auto; }
.modal-content.modal-lg { max-width: 600px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid #eee; }
.modal-title { font-size: 16px; font-weight: 500; }
.modal-close { font-size: 24px; color: #999; cursor: pointer; line-height: 1; }
.modal-body { padding: 20px; }
.input { width: 100%; padding: 12px 15px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; margin-bottom: 15px; }
.input:focus { outline: none; border-color: #4a90e2; }
.btn { padding: 12px 24px; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; transition: all 0.3s; }
.btn-primary { background: #4a90e2; color: #fff; }
.btn-primary:hover { background: #357abd; }
.btn-block { width: 100%; }
.text-center { text-align: center; }
.text-muted { color: #999; font-size: 14px; }
.mt-10 { margin-top: 10px; }
.settings-item { padding: 15px 0; border-bottom: 1px solid #eee; }
.settings-item:last-child { border-bottom: none; }
.recharge-tips { color: #999; font-size: 12px; margin-bottom: 15px; text-align: center; }
.pay-info { text-align: center; padding: 20px; background: #f8f9fa; border-radius: 12px; margin-bottom: 20px; }
.pay-amount-label { font-size: 14px; color: #666; margin-bottom: 8px; }
.pay-amount { font-size: 28px; font-weight: bold; color: #4a90e2; margin-bottom: 8px; }
.pay-tips { font-size: 12px; color: #ff6b6b; }
.wallet-address { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 15px; margin-bottom: 20px; }
.address-label { font-size: 12px; color: #999; margin-bottom: 8px; }
.address-text { font-size: 12px; color: #333; word-break: break-all; margin-bottom: 10px; font-family: monospace; background: #f5f5f5; padding: 10px; border-radius: 6px; }
.btn-small { padding: 8px 16px; font-size: 12px; background: #4a90e2; color: #fff; border: none; border-radius: 6px; cursor: pointer; }
.pay-status { text-align: center; padding: 20px; margin-bottom: 15px; }
.status-icon { font-size: 40px; margin-bottom: 10px; }
.status-icon.waiting { animation: pulse 1.5s infinite; }
.status-icon.success { color: #52c41a; }
.status-icon.expired { color: #ff4d4f; }
.status-text { font-size: 14px; color: #666; }
.pay-countdown { text-align: center; font-size: 14px; color: #999; margin-bottom: 15px; }
.pay-countdown span { color: #ff6b6b; font-weight: bold; }
.btn-secondary { background: #f5f5f5; color: #666; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.service-link { color: #4a90e2; font-size: 16px; }
.trans-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.trans-info { flex: 1; }
.trans-type { font-size: 14px; color: #333; margin-bottom: 4px; }
.trans-time { font-size: 12px; color: #999; }
.trans-amount { font-size: 16px; font-weight: 500; }
.trans-amount.income { color: #52c41a; }
.trans-amount.expense { color: #ff4d4f; }
.product-detail-img { width: 100%; max-height: 200px; object-fit: contain; background: #f8f9fa; border-radius: 8px; margin-bottom: 15px; }
.product-detail-name { font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.product-detail-price { font-size: 24px; color: #ff6b6b; margin-bottom: 10px; }
.product-detail-desc { color: #666; font-size: 14px; margin-bottom: 20px; }
.product-notice-popup { text-align: center; }
.notice-header { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 15px; }
.notice-alert-icon { font-size: 28px; }
.notice-alert-title { font-size: 18px; font-weight: bold; color: #ff6b6b; }
.notice-alert-content { background: #fff9e6; border: 1px solid #ffe58f; border-radius: 8px; padding: 15px; margin-bottom: 20px; color: #666; font-size: 14px; line-height: 1.8; text-align: left; }
.bind-status { margin-bottom: 15px; padding: 12px; border-radius: 8px; text-align: center; }
.bind-success { background: #d4edda; color: #155724; }
.bind-none { background: #f8f9fa; color: #666; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: #333; font-size: 14px; }
.form-tip { display: block; margin-top: 5px; color: #999; font-size: 12px; }
.btn-secondary { background: #f5f5f5; color: #666; }
.progress-bar { height: 6px; background: #e0e0e0; border-radius: 3px; overflow: hidden; margin-top: 5px; }
.progress-fill { height: 100%; background: #4a90e2; transition: width 0.3s; }
.price-options-section { margin-bottom: 15px; }
.price-options-label { font-size: 14px; color: #333; margin-bottom: 10px; font-weight: 500; }
.price-options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.price-option-btn { background: #f8f9fa; border: 2px solid #e0e0e0; border-radius: 8px; padding: 12px 8px; text-align: center; cursor: pointer; transition: all 0.2s; }
.price-option-btn:hover { border-color: #4a90e2; }
.price-option-btn.selected { border-color: #4a90e2; background: #e8f4fd; }
.option-name { font-size: 14px; color: #333; margin-bottom: 4px; }
.option-price { font-size: 18px; font-weight: bold; color: #ff6b6b; }
.option-original { font-size: 12px; color: #999; text-decoration: line-through; }
.custom-price-section { margin-bottom: 15px; padding: 15px; background: #f8f9fa; border-radius: 8px; }
.custom-price-label { font-size: 14px; color: #333; margin-bottom: 10px; }
.custom-price-input-wrap { display: flex; align-items: center; gap: 10px; }
.custom-price-input-wrap .input { flex: 1; margin-bottom: 0; }
.custom-price-unit { color: #666; }
.custom-price-result { margin-top: 10px; font-size: 14px; color: #666; }
.custom-price-result strong { color: #ff6b6b; font-size: 18px; }
.selected-price-info { background: #fff9e6; border: 1px solid #ffe58f; border-radius: 8px; padding: 12px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.selected-label { color: #666; }
.selected-amount { font-size: 18px; font-weight: bold; color: #ff6b6b; }
.discount-badge { display: inline-block; background: linear-gradient(135deg, #ff6b6b, #ee5a5a); color: #fff; padding: 4px 12px; border-radius: 15px; font-size: 12px; margin-bottom: 10px; }
.custom-fields-section { margin-bottom: 15px; padding: 15px; background: #f8f9fa; border-radius: 8px; }
.custom-fields-label { font-size: 14px; color: #333; font-weight: 500; margin-bottom: 12px; }
.custom-field-group { margin-bottom: 12px; }
.custom-field-group:last-child { margin-bottom: 0; }
.custom-field-label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.custom-field-input { width: 100%; margin-bottom: 0; }
.custom-field-input.textarea { min-height: 80px; resize: vertical; }
.required-mark { color: #ff4d4f; margin-left: 2px; }
@media (min-width: 750px) {
    .products { grid-template-columns: repeat(3, 1fr); }
    .menu-grid { grid-template-columns: repeat(6, 1fr); }
}
/* 订单详情样式 */
.order-detail-content { padding: 5px 0; }
.detail-section { background: #f8f9fa; border-radius: 10px; padding: 15px; margin-bottom: 15px; }
.detail-section:last-child { margin-bottom: 0; }
.detail-section-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #e8e8e8; }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14px; }
.detail-label { color: #666; }
.detail-value { color: #333; font-weight: 500; max-width: 60%; text-align: right; word-break: break-all; }
.detail-value.amount { color: #4a90e2; font-size: 16px; }
.detail-value.copyable { color: #4a90e2; cursor: pointer; }
.detail-value.copyable:hover { text-decoration: underline; }

/* 登录提示弹窗 */
.login-prompt-modal { text-align: center; padding: 20px 0; }
.login-prompt-icon { font-size: 48px; margin-bottom: 15px; }
.login-prompt-text { font-size: 16px; color: #333; margin-bottom: 20px; line-height: 1.6; }
.login-prompt-btns { display: flex; gap: 15px; justify-content: center; }
.login-prompt-btns .btn { min-width: 100px; }

/* 公告弹窗 */
.announcement-modal { max-height: 70vh; }
.announcement-list { max-height: 50vh; overflow-y: auto; }
.announcement-item { padding: 15px; border-bottom: 1px solid #f0f0f0; }
.announcement-item:last-child { border-bottom: none; }
.announcement-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 8px; }
.announcement-content { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 8px; white-space: pre-wrap; }
.announcement-time { font-size: 12px; color: #999; }

/* 钱包页面样式 */
.wallet-header { background: linear-gradient(135deg, #4a90e2, #357abd); padding: 30px 20px; color: #fff; }
.wallet-balance { text-align: center; margin-bottom: 20px; }
.wallet-balance-label { font-size: 14px; opacity: 0.9; margin-bottom: 8px; }
.wallet-balance-value { font-size: 36px; font-weight: bold; }
.wallet-stats { display: flex; justify-content: space-around; }
.wallet-stat { text-align: center; }
.wallet-stat-value { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.wallet-stat-label { font-size: 12px; opacity: 0.8; }
.wallet-actions { display: flex; gap: 15px; padding: 15px; margin-top: -20px; position: relative; z-index: 1; }
.wallet-action-btn { flex: 1; background: #fff; border: none; border-radius: 12px; padding: 15px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.wallet-action-btn .icon { font-size: 24px; }
.wallet-action-btn .text { font-size: 14px; color: #333; }

/* 记录标签页 */
.record-tabs { display: flex; background: #fff; border-bottom: 1px solid #eee; }
.record-tab { flex: 1; padding: 15px; text-align: center; font-size: 14px; color: #666; cursor: pointer; position: relative; }
.record-tab.active { color: #4a90e2; font-weight: 500; }
.record-tab.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 2px; background: #4a90e2; }

/* 记录列表 */
.record-list { padding: 10px 15px; }
.record-item { background: #fff; border-radius: 10px; padding: 15px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.record-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.record-type { font-size: 14px; font-weight: 500; color: #333; }
.record-status { font-size: 12px; padding: 3px 8px; border-radius: 10px; }
.record-status.success { background: #d4edda; color: #155724; }
.record-status.pending { background: #fff3cd; color: #856404; }
.record-status.failed { background: #f8d7da; color: #721c24; }
.record-info { font-size: 13px; color: #666; margin-bottom: 8px; }
.record-footer { display: flex; justify-content: space-between; align-items: center; }
.record-amount { font-size: 18px; font-weight: 600; }
.record-amount.income { color: #52c41a; }
.record-amount.expense { color: #ff4d4f; }
.record-time { font-size: 12px; color: #999; }

/* 充值提现页面 */
.page-header { background: linear-gradient(135deg, #4a90e2, #357abd); padding: 15px; color: #fff; display: flex; align-items: center; gap: 15px; }
.page-back { font-size: 20px; cursor: pointer; padding: 5px; }
.page-title { font-size: 18px; font-weight: 500; }
.form-card { background: #fff; margin: 15px; border-radius: 12px; padding: 20px; }
.form-label { font-size: 14px; color: #333; margin-bottom: 8px; display: block; font-weight: 500; }
.form-hint { font-size: 12px; color: #999; margin-top: 5px; }
.amount-presets { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.amount-preset { padding: 10px 20px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.amount-preset:hover { border-color: #4a90e2; }
.amount-preset.active { background: #4a90e2; color: #fff; border-color: #4a90e2; }

/* 历史记录区域 */
.history-section { background: #fff; margin: 15px; border-radius: 12px; padding: 15px; }
.history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.history-title { font-size: 16px; font-weight: 500; color: #333; }
.history-more { font-size: 14px; color: #4a90e2; cursor: pointer; }

@media (min-width: 750px) {
    .products { grid-template-columns: repeat(3, 1fr); }
    .menu-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 480px) {
    .products { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 8px; }
    .product-info { padding: 10px; }
    .product-name { font-size: 13px; }
    .wallet-header { padding: 20px 15px; }
    .wallet-balance-value { font-size: 28px; }
    .wallet-actions { padding: 10px; gap: 10px; }
    .wallet-action-btn { padding: 12px; }
    .record-tabs { overflow-x: auto; }
    .record-tab { padding: 12px 10px; font-size: 13px; white-space: nowrap; }
    .form-card { margin: 10px; padding: 15px; }
    .amount-presets { gap: 8px; }
    .amount-preset { padding: 8px 12px; font-size: 13px; }
    .page-header { padding: 12px; }
    .page-title { font-size: 16px; }
    .history-section { margin: 10px; padding: 12px; }
    .detail-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .detail-value { max-width: 100%; text-align: left; }
    .modal-content { width: 95%; margin: 10px; }
    .user-header { padding: 20px 15px; }
    .assets-card { margin: -15px 10px 10px; }
    .menu-grid { gap: 10px; padding: 10px; }
    .menu-item { padding: 10px 0; }
    .menu-icon { width: 44px; height: 44px; font-size: 20px; }
    .order-card { margin-bottom: 8px; }
    .order-header, .order-body, .order-footer { padding: 10px 12px; }
}
@media (max-width: 375px) {
    .wallet-balance-value { font-size: 24px; }
    .wallet-stat-value { font-size: 16px; }
    .amount-preset { padding: 6px 10px; font-size: 12px; }
}

/* 悬浮窗 */
.float-btn { position: fixed; right: 15px; bottom: 80px; background: linear-gradient(135deg, #4a90e2, #357abd); color: #fff; padding: 12px 16px; border-radius: 25px; text-decoration: none; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 15px rgba(74,144,226,0.4); z-index: 999; animation: floatPulse 2s ease-in-out infinite; }
.float-btn:hover { transform: scale(1.05); }
.float-icon { font-size: 18px; }
.float-text { font-size: 14px; font-weight: 500; }
@keyframes floatPulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
