/* 游戏商城样式 - 专业、简洁、可信 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: #f5f6fa; color: #333; font-size: 14px; line-height: 1.6; }
a { color: #4a6cf7; text-decoration: none; }
a:hover { color: #3451d1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Header */
.store-header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; flex-wrap: wrap; }
.logo h1 { font-size: 20px; color: #333; font-weight: 600; }
.logo a { color: inherit; text-decoration: none; }
.logo img { height: 32px; margin-right: 8px; vertical-align: middle; }
.search-box { flex: 1; max-width: 400px; margin: 0 20px; }
.search-box form { display: flex; }
.search-box input { flex: 1; border: 1px solid #ddd; border-right: none; padding: 8px 12px; border-radius: 4px 0 0 4px; outline: none; font-size: 14px; }
.search-box input:focus { border-color: #4a6cf7; }
.search-box button { background: #4a6cf7; color: #fff; border: none; padding: 8px 18px; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 14px; }
.header-links a { margin-left: 18px; color: #666; font-size: 14px; }
.header-links a:hover { color: #4a6cf7; }

/* Category Nav */
.category-nav { background: #fff; border-bottom: 1px solid #eee; overflow-x: auto; white-space: nowrap; }
.category-nav .container { padding: 0; }
.cat-item { display: inline-block; padding: 12px 20px; color: #666; font-size: 14px; border-bottom: 2px solid transparent; transition: all .2s; }
.cat-item:hover { color: #4a6cf7; }
.cat-item.active { color: #4a6cf7; border-bottom-color: #4a6cf7; font-weight: 600; }

/* Main */
.store-main { min-height: calc(100vh - 200px); padding: 20px 0; }

/* Goods Grid */
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.goods-card { background: #fff; border-radius: 8px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.goods-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.goods-card a { display: block; color: inherit; text-decoration: none; }
.goods-img { height: 140px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; }
.goods-icon { font-size: 48px; }
.goods-info { padding: 12px; }
.goods-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goods-desc { font-size: 12px; color: #999; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goods-bottom { display: flex; align-items: baseline; justify-content: space-between; }
.goods-price { font-size: 18px; color: #e74c3c; font-weight: 700; }
.goods-original-price { font-size: 12px; color: #bbb; text-decoration: line-through; margin-left: 6px; }
.goods-sales { font-size: 12px; color: #999; }

/* Breadcrumb */
.breadcrumb { padding: 12px 0; color: #999; font-size: 13px; }
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: #4a6cf7; }

/* Product Detail */
.product-detail { display: flex; gap: 30px; background: #fff; border-radius: 8px; padding: 24px; margin-bottom: 20px; }
.product-left { flex: 0 0 300px; }
.product-img-box { width: 300px; height: 300px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.product-icon { font-size: 80px; }
.product-right { flex: 1; }
.product-title { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.product-desc { color: #666; margin-bottom: 16px; line-height: 1.8; }
.product-price-box { background: #fdf6ec; padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.product-price { font-size: 28px; color: #e74c3c; font-weight: 700; }
.product-original-price { font-size: 14px; color: #bbb; text-decoration: line-through; margin-left: 8px; }
.product-discount { background: #e74c3c; color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 3px; margin-left: 8px; }
.product-meta { color: #999; font-size: 13px; margin-bottom: 20px; }
.product-meta span { margin-right: 20px; }

/* Buy Form */
.buy-form { border-top: 1px solid #f0f0f0; padding-top: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: #555; }
.form-group input[type="text"], .form-group input[type="number"] { width: 100%; max-width: 300px; border: 1px solid #ddd; padding: 10px 12px; border-radius: 6px; font-size: 14px; outline: none; }
.form-group input:focus { border-color: #4a6cf7; }
.qty-selector { display: flex; align-items: center; }
.qty-btn { width: 36px; height: 36px; border: 1px solid #ddd; background: #f9f9f9; font-size: 18px; cursor: pointer; border-radius: 4px; }
.qty-btn:hover { background: #eee; }
.qty-input { width: 60px; height: 36px; border: 1px solid #ddd; text-align: center; margin: 0 4px; border-radius: 4px; font-size: 14px; }
.total-price { font-size: 16px; margin: 16px 0; }
.total-price span { font-size: 24px; color: #e74c3c; font-weight: 700; }
.btn-buy { display: inline-block; background: #e74c3c; color: #fff; border: none; padding: 12px 48px; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn-buy:hover { background: #c0392b; color: #fff; }

/* Product Notice */
.product-notice, .related-goods { background: #fff; border-radius: 8px; padding: 20px 24px; margin-bottom: 20px; }
.product-notice h3, .related-goods h3 { font-size: 16px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; }
.product-notice ul { padding-left: 20px; color: #666; }
.product-notice li { margin-bottom: 6px; }

/* Confirm Page */
.confirm-box { background: #fff; border-radius: 8px; padding: 24px; max-width: 700px; margin: 0 auto; }
.confirm-box h2 { font-size: 20px; margin-bottom: 20px; text-align: center; }
.confirm-section { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.confirm-section h3 { font-size: 15px; color: #555; margin-bottom: 10px; }
.confirm-table { width: 100%; }
.confirm-table th { text-align: left; padding: 8px 0; color: #999; font-weight: normal; width: 100px; }
.confirm-table td { padding: 8px 0; }
.warn-text { color: #e67e22; font-size: 13px; margin-top: 8px; }
.confirm-total { text-align: right; font-size: 16px; }
.confirm-price { font-size: 28px; color: #e74c3c; font-weight: 700; }
.agree-label { font-size: 13px; color: #666; cursor: pointer; }
.agree-label input { margin-right: 4px; }
.confirm-actions { display: flex; justify-content: center; gap: 16px; margin-top: 20px; }
.btn-back { display: inline-block; padding: 12px 36px; border: 1px solid #ddd; border-radius: 6px; color: #666; font-size: 15px; }
.btn-back:hover { background: #f5f5f5; color: #333; }
.btn-pay { display: inline-block; background: #e74c3c; color: #fff; border: none; padding: 12px 36px; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn-pay:hover { background: #c0392b; color: #fff; }

/* Steps */
.steps { display: flex; justify-content: center; margin-bottom: 24px; }
.step { padding: 10px 24px; color: #999; font-size: 14px; position: relative; }
.step.active { color: #4a6cf7; font-weight: 600; }
.step.done { color: #27ae60; }
.step + .step::before { content: '→'; position: absolute; left: -4px; color: #ddd; }

/* Order Detail */
.order-detail-box { background: #fff; border-radius: 8px; overflow: hidden; max-width: 700px; margin: 0 auto; }
.order-status-banner { padding: 24px; display: flex; align-items: center; gap: 16px; color: #fff; }
.order-status-banner.status-paid { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.order-status-banner.status-pending { background: linear-gradient(135deg, #f39c12, #f1c40f); }
.order-status-banner.status-refunded { background: linear-gradient(135deg, #95a5a6, #bdc3c7); }
.order-status-banner.status-frozen { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.status-icon { font-size: 36px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.2); border-radius: 50%; }
.status-info h2 { font-size: 20px; margin-bottom: 2px; }
.status-info p { font-size: 14px; opacity: 0.9; }

.order-section { padding: 16px 24px; border-bottom: 1px solid #f0f0f0; }
.order-section h3 { font-size: 15px; color: #555; margin-bottom: 10px; }
.order-table { width: 100%; }
.order-table th { text-align: left; padding: 8px 0; color: #999; font-weight: normal; width: 100px; vertical-align: top; }
.order-table td { padding: 8px 0; word-break: break-all; }
.order-amount { font-size: 18px; color: #e74c3c; font-weight: 700; }
.order-actions { padding: 20px 24px; display: flex; justify-content: center; gap: 12px; }

/* Query Page */
.query-box { background: #fff; border-radius: 8px; padding: 30px; max-width: 600px; margin: 0 auto; }
.query-box h2 { text-align: center; margin-bottom: 20px; }
.query-form { display: flex; gap: 10px; margin-bottom: 20px; }
.query-form input { flex: 1; border: 1px solid #ddd; padding: 10px 14px; border-radius: 6px; font-size: 14px; outline: none; }
.query-form input:focus { border-color: #4a6cf7; }
.query-error { color: #e74c3c; text-align: center; padding: 16px; background: #fdf0f0; border-radius: 6px; }
.query-result { margin-top: 20px; }
.query-result h3 { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; }
.query-actions { margin-top: 16px; display: flex; gap: 10px; }
.status-tag { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 13px; }
.status-tag.status-paid { background: #e8f8ef; color: #27ae60; }
.status-tag.status-pending { background: #fef9e7; color: #f39c12; }
.status-tag.status-refunded { background: #f2f3f4; color: #95a5a6; }

/* Search */
.search-result-info { color: #666; margin-bottom: 16px; }
.empty-tip { text-align: center; padding: 60px; color: #999; font-size: 16px; }

/* Footer */
.store-footer { background: #fff; border-top: 1px solid #eee; padding: 24px 0; margin-top: 30px; text-align: center; color: #999; font-size: 13px; }
.store-footer p { margin-bottom: 4px; }
.footer-company { color: #666; font-weight: 500; }

/* Responsive */
@media (max-width: 768px) {
    .header-inner { height: auto; padding: 10px 0; }
    .search-box { max-width: none; margin: 8px 0; order: 3; flex-basis: 100%; }
    .product-detail { flex-direction: column; }
    .product-left { flex: none; }
    .product-img-box { width: 100%; height: 200px; }
    .goods-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .confirm-actions { flex-direction: column; }
    .query-form { flex-direction: column; }
}
