/*
Theme Name: 定制商城
Theme URI: https://sx.xurei.com
Author: Maya Zane
Author URI: https://sx.xurei.com
Description: 定制商城，完全自定义的WordPress商城主题，内置商品管理、购物车、订单系统、支付接口。
Version: 4.0.48
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-shop
Domain Path: /languages
Tags: e-commerce, shop, cart, custom-post-type
*/

/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ===== 布局容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 顶部导航 ===== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.site-logo {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}
.site-logo span { color: #ff4757; }
.main-nav { display: flex; gap: 32px; }
.main-nav a {
    font-size: 15px;
    color: #555;
    transition: color 0.2s;
}
.main-nav a:hover { color: #ff4757; }
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.cart-icon {
    position: relative;
    font-size: 22px;
    color: #333;
}
.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #ff4757;
    color: #fff;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.user-link { font-size: 14px; color: #555; }
.user-link:hover { color: #ff4757; }

/* 右上角按钮样式 */
.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1.4;
}

.header-btn-login {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

.header-btn-login:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.header-btn-register {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: 1px solid transparent;
}

.header-btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.header-btn-account {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

.header-btn-account:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.header-btn-logout {
    background: transparent;
    color: #ff4757;
    border: 1px solid #ff4757;
}

.header-btn-logout:hover {
    background: #ff4757;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

/* 移动端按钮适配 */
@media screen and (max-width: 768px) {
    .header-btn {
        padding: 5px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    .header-actions {
        gap: 8px;
        flex-wrap: nowrap;
    }
    .header-actions .cart-icon {
        font-size: 18px;
    }
}

/* 小屏幕适配 */
@media screen and (max-width: 480px) {
    .header-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    .header-actions {
        gap: 6px;
    }
}

/* ===== 页脚 ===== */
.site-footer {
    background: #1a1a1a;
    color: #999;
    padding: 40px 0 20px;
    margin-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
}
.footer-col p, .footer-col li {
    font-size: 13px;
    line-height: 2;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* ===== 商品列表页 ===== */
.shop-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 50px 0;
    margin-bottom: 40px;
}
.shop-page-header h1 { font-size: 32px; margin-bottom: 8px; }
.shop-page-header p { opacity: 0.85; font-size: 15px; }

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.shop-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #ddd;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
    background: #ff4757;
    color: #fff;
    border-color: #ff4757;
}
.shop-sort select {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #555;
    outline: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.product-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0f0;
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff4757;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}
.product-info { padding: 16px; }
.product-cat {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}
/* 商品标签 */
.product-tag-link {
    display: inline-block;
    padding: 2px 10px;
    background: #f3edf8;
    color: #7f54b3;
    border-radius: 20px;
    font-size: 11px;
    margin: 0 4px 4px 0;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.6;
}
.product-tag-link:hover {
    background: #7f54b3;
    color: #fff;
}
.product-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}
.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}
.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff4757;
}
.product-original-price {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
}
.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}
.add-to-cart-btn:hover { background: #ff4757; }
.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #ddd;
    font-size: 14px;
    color: #555;
}
.pagination .current {
    background: #ff4757;
    color: #fff;
    border-color: #ff4757;
}
.no-products {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}
.no-products p { font-size: 16px; margin-bottom: 16px; }

/* ===== 商品详情页 ===== */
.single-product-wrap {
    padding: 40px 0;
}
.breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
}
.breadcrumb a:hover { color: #ff4757; }
.breadcrumb span { margin: 0 8px; }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.product-gallery { position: relative; }
.main-image {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 16px;
}
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumb-list {
    display: flex;
    gap: 10px;
}
.thumb-item {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.thumb-item:hover, .thumb-item.active { border-color: #ff4757; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

/* ==================== 商品图库轮播 ==================== */
.main-image img { transition: opacity 0.25s ease; }
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}
.product-gallery:hover .gallery-nav,
.gallery-nav:focus-visible { opacity: 1; }
.gallery-nav:hover { background: #fff; color: #ff4757; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-dots {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}
.gallery-dots .gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.gallery-dots .gallery-dot.active {
    background: #ff4757;
    border-color: #ff4757;
    transform: scale(1.25);
}
/* 触屏设备常显箭头 */
@media (hover: none), (max-width: 782px) {
    .gallery-nav { opacity: 1; width: 32px; height: 32px; }
    .gallery-prev { left: 8px; }
    .gallery-next { right: 8px; }
}

.product-detail-info h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}
.product-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}
.detail-price-box {
    background: #fef5f5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 24px;
}
.detail-price {
    font-size: 32px;
    font-weight: 700;
    color: #ff4757;
}
.detail-original-price {
    font-size: 16px;
    color: #bbb;
    text-decoration: line-through;
    margin-left: 12px;
}
.stock-status {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 4px;
}
.stock-in { background: #e8f5e9; color: #2e7d32; }
.stock-out { background: #ffebee; color: #c62828; }
.stock-low { background: #fff3e0; color: #ef6c00; }

.spec-group { margin-bottom: 20px; }
.spec-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.spec-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.spec-option {
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.spec-option:hover { border-color: #ff4757; color: #ff4757; }
.spec-option.selected {
    border-color: #ff4757;
    background: #fff0f0;
    color: #ff4757;
    font-weight: 500;
}

.quantity-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.quantity-label { font-size: 14px; color: #555; }
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.quantity-control button {
    width: 36px;
    height: 36px;
    font-size: 18px;
    color: #555;
    background: #f8f8f8;
    transition: background 0.2s;
}
.quantity-control button:hover { background: #eee; }
.quantity-control input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 15px;
    outline: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.action-buttons {
    display: flex;
    gap: 12px;
}
.btn-add-cart, .btn-buy-now {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-add-cart {
    background: #fff;
    border: 2px solid #ff4757;
    color: #ff4757;
}
.btn-add-cart:hover { background: #fff0f0; }
.btn-buy-now {
    background: #ff4757;
    color: #fff;
    border: 2px solid #ff4757;
}
.btn-buy-now:hover { background: #e63946; }

.product-tabs {
    margin-top: 32px;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.tab-nav {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 24px;
}
.tab-nav-item {
    padding: 12px 24px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.tab-nav-item:hover { color: #ff4757; }
.tab-nav-item.active {
    color: #ff4757;
    border-bottom-color: #ff4757;
    font-weight: 600;
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content h3 { font-size: 18px; margin-bottom: 12px; color: #1a1a1a; }
.tab-content p { margin-bottom: 12px; color: #555; line-height: 1.8; }

/* ===== 购物车页面 ===== */
.cart-page { padding: 40px 0; }
.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1a1a1a;
}
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}
.cart-items {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-thumb {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.cart-item-spec {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}
.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: #ff4757;
}
.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}
.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}
.cart-item-qty button {
    width: 28px;
    height: 28px;
    font-size: 16px;
    color: #555;
    background: #f8f8f8;
}
.cart-item-qty input {
    width: 40px;
    height: 28px;
    border: none;
    text-align: center;
    font-size: 13px;
    outline: none;
}
.remove-item {
    font-size: 13px;
    color: #999;
    transition: color 0.2s;
}
.remove-item:hover { color: #ff4757; }

.cart-summary {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: fit-content;
    position: sticky;
    top: 84px;
}
.summary-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: 16px;
    margin-bottom: 20px;
}
.summary-total-label { font-size: 16px; font-weight: 600; color: #1a1a1a; }
.summary-total-value {
    font-size: 24px;
    font-weight: 700;
    color: #ff4757;
}
.checkout-btn {
    width: 100%;
    padding: 14px;
    background: #ff4757;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}
.checkout-btn:hover { background: #e63946; }
.checkout-btn:disabled { background: #ccc; cursor: not-allowed; }
.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}
.continue-shopping:hover { color: #ff4757; }

.empty-cart {
    text-align: center;
    padding: 80px 20px;
}
.empty-cart-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.3; }
.empty-cart h3 { font-size: 20px; color: #333; margin-bottom: 8px; }
.empty-cart p { color: #999; margin-bottom: 24px; }
.empty-cart a {
    display: inline-block;
    padding: 12px 32px;
    background: #ff4757;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
}

/* ===== 结算页面 ===== */
.checkout-page { padding: 40px 0; }
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}
.checkout-form-section {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}
.form-group label .required { color: #ff4757; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: #ff4757;
}
.form-group textarea { resize: vertical; min-height: 80px; }

.payment-methods { display: flex; flex-direction: column; gap: 12px; }
.payment-method {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.payment-method:hover { border-color: #ffb3ba; }
.payment-method.selected {
    border-color: #ff4757;
    background: #fffafa;
}
.payment-method input[type="radio"] {
    margin-right: 12px;
    accent-color: #ff4757;
}
.payment-method-name { font-size: 15px; font-weight: 500; color: #333; }
.payment-method-desc { font-size: 12px; color: #999; margin-top: 2px; }

.order-review {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: fit-content;
    position: sticky;
    top: 84px;
}
.order-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}
.order-item:last-child { border-bottom: none; }
.order-item-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}
.order-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-item-info { flex: 1; }
.order-item-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}
.order-item-qty { font-size: 12px; color: #999; }
.order-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    align-self: center;
}

/* ===== 订单页面 ===== */
.orders-page { padding: 40px 0; }
.orders-list { display: flex; flex-direction: column; gap: 16px; }
.order-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 14px;
}
.order-no { font-size: 14px; color: #666; }
.order-no strong { color: #333; }
.order-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    padding: 6px 16px;
    min-width: 72px;
    white-space: nowrap;
    border-radius: 10px;
    font-weight: 600;
    vertical-align: middle;
    white-space: normal;
    word-break: break-all;
}
.status-pending { background: #fff3e0; color: #ef6c00; }
.status-paid { background: #e3f2fd; color: #1565c0; }
.status-shipped { background: #f3e5f5; color: #7b1fa2; }
.status-completed { background: #e8f5e9; color: #2e7d32; }
.status-cancelled { background: #f5f5f5; color: #999; }
.status-refunded { background: #ffebee; color: #c62828; }
.status-partially_refunded { background: #fff3e0; color: #e65100; }

.order-card-body {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}
.order-product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}
.order-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-product-info { flex: 1; }
.order-product-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}
.order-product-spec { font-size: 12px; color: #999; }
.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f5f5f5;
}
.order-total { font-size: 14px; color: #666; }
.order-total strong {
    font-size: 18px;
    color: #ff4757;
    font-weight: 700;
}
.order-actions { display: flex; gap: 10px; }
.order-action-btn {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-detail {
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
}
.btn-detail:hover { border-color: #ff4757; color: #ff4757; }
.btn-pay {
    background: #ff4757;
    color: #fff;
}
.btn-pay:hover { background: #e63946; }

/* ===== 订单详情页 ===== */
.order-detail-page { padding: 40px 0; }
.order-detail-header {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.order-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.order-detail-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    color: #999;
    flex-wrap: wrap;
}
.order-detail-meta span {
    display: inline-flex;
    align-items: center;
}
.order-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    position: relative;
}
.order-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #eee;
    z-index: 0;
}
.order-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}
.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.order-step.done .step-dot { background: #ff4757; color: #fff; }
.order-step.current .step-dot {
    background: #fff;
    border: 3px solid #ff4757;
    color: #ff4757;
}
.step-label { font-size: 13px; color: #999; }
.order-step.done .step-label, .order-step.current .step-label { color: #333; font-weight: 500; }

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}
.order-detail-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.address-info p {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.6;
}
.address-info strong { color: #333; margin-right: 8px; }

/* ===== 通用按钮 ===== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-primary { background: #ff4757; color: #fff; }
.btn-primary:hover { background: #e63946; }
.btn-outline {
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
}
.btn-outline:hover { border-color: #ff4757; color: #ff4757; }

/* ===== 提示消息 ===== */
.notice {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}
.notice-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.notice-error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.notice-info { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .product-detail { grid-template-columns: 1fr; gap: 32px; }
    .cart-layout, .checkout-layout, .order-detail-grid {
        grid-template-columns: 1fr;
    }
    .cart-summary, .order-review { position: static; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-info { padding: 12px; }
    .product-title { font-size: 13px; min-height: 36px; }
    .product-price { font-size: 17px; }
    .footer-inner { grid-template-columns: 1fr; }
    .order-steps::before { left: 20px; right: 20px; }
    .step-label { font-size: 11px; }
}
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .product-grid { grid-template-columns: 1fr; }
    .action-buttons { flex-direction: column; }
    .cart-item { flex-wrap: wrap; }
    .cart-item-actions {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
}

/* ========== 专业版个人中心样式 ========== */
.account-page {
    background: linear-gradient(180deg, #f0f2f5 0%, #f5f5f5 100%);
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

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

/* 通知提示 */
.account-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid;
}
.account-notice.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left-color: #4caf50;
}
.account-notice.error {
    background: #ffebee;
    color: #c62828;
    border-left-color: #f44336;
}

/* 主布局 */
.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

/* 侧边栏 */
.account-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 用户卡片 */
.user-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px 20px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.user-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    border: 3px solid rgba(255,255,255,0.3);
    margin-bottom: 12px;
    flex-shrink: 0;
}
.user-info {
    flex: 1;
    width: 100%;
}
.user-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}
.user-email {
    font-size: 12px;
    opacity: 0.85;
    word-break: break-all;
    margin-bottom: 10px;
}
.user-level {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* 导航菜单 */
.nav-menu {
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}
.nav-item:hover {
    background: #f5f7fa;
    color: #667eea;
}
.nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 500;
}
.nav-item.logout {
    color: #999;
}
.nav-item.logout:hover {
    background: #fff0f0;
    color: #f44336;
}
.nav-icon {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.nav-text {
    flex: 1;
}
.nav-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 0;
}

/* 主内容区 */
.account-content {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    min-height: 500px;
}
.account-content .page-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f5f5f5;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.stat-card .stat-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}
.stat-card .stat-value {
    font-size: 26px;
    font-weight: 700;
}
.stat-card.gradient-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-card.gradient-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.stat-card.gradient-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.stat-card.gradient-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }

/* 订单卡片 */
.order-card {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.order-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.order-card .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}
.order-card .order-items {
    padding: 16px 20px;
}
.order-card .order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

/* 订单状态标签 */
.order-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 14px;
    min-width: 60px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    vertical-align: middle;
    white-space: normal;
    word-break: break-all;
}
.order-status.status-pending { background: #fff3e0; color: #f57c00; }
.order-status.status-paid { background: #e3f2fd; color: #1976d2; }
.order-status.status-shipped { background: #f3e5f5; color: #7b1fa2; }
.order-status.status-completed { background: #e8f5e9; color: #388e3c; }
.order-status.status-cancelled { background: #ffebee; color: #d32f2f; }
.order-status.status-refunded { background: #ffebee; color: #c62828; }
.order-status.status-partially_refunded { background: #fff3e0; color: #e65100; }

/* 表单样式 */
.account-content .form-group {
    margin-bottom: 20px;
}
.account-content .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}
.account-content .form-group input[type="text"],
.account-content .form-group input[type="email"],
.account-content .form-group input[type="tel"],
.account-content .form-group input[type="password"],
.account-content .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.account-content .form-group input:focus,
.account-content .form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.account-content .btn-primary {
    padding: 12px 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.account-content .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ========== 响应式适配 ========== */
/* 平板 */
@media (max-width: 1024px) {
    .account-layout {
        grid-template-columns: 220px 1fr;
        gap: 16px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机 */
@media (max-width: 768px) {
    .account-page {
        padding: 15px 0;
    }
    .account-page .container {
        padding: 0 12px;
    }
    .account-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .account-sidebar {
        order: 1;
        gap: 12px;
    }
    .account-content {
        order: 2;
        padding: 20px 16px;
        min-height: auto;
        border-radius: 12px;
    }
    .account-content .page-title {
        font-size: 18px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    /* 用户卡片横向布局 */
    .user-card {
        flex-direction: row;
        text-align: left;
        padding: 16px;
        gap: 14px;
        border-radius: 12px;
    }
    .user-avatar {
        width: 56px;
        height: 56px;
        font-size: 22px;
        margin-bottom: 0;
    }
    .user-name {
        font-size: 15px;
    }
    .user-email {
        font-size: 11px;
        margin-bottom: 6px;
    }
    .user-level {
        font-size: 10px;
        padding: 3px 10px;
    }

    /* 导航横向滚动 */
    .nav-menu {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    .nav-item {
        flex-shrink: 0;
        padding: 10px 14px;
        margin-bottom: 0;
        white-space: nowrap;
        font-size: 13px;
        flex-direction: row;
    }
    .nav-icon {
        margin-right: 6px;
        font-size: 14px;
        width: auto;
    }
    .nav-divider {
        display: none;
    }

    /* 统计卡片 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }
    .stat-card {
        padding: 14px;
        border-radius: 10px;
    }
    .stat-card .stat-label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    .stat-card .stat-value {
        font-size: 20px;
    }

    /* 订单卡片 */
    .order-card .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 16px;
    }
    .order-card .order-items {
        padding: 12px 16px;
    }
    .order-card .order-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
    }
    .order-card .order-footer > div {
        width: 100%;
    }
    .order-card .order-footer > div:last-child {
        display: flex;
        gap: 8px;
    }
    .order-card .order-footer button,
    .order-card .order-footer a {
        flex: 1;
        text-align: center;
        padding: 10px 8px !important;
        font-size: 13px !important;
    }

    /* 表单 */
    .account-content .form-group {
        margin-bottom: 16px;
    }
    .account-content .btn-primary {
        width: 100%;
        padding: 14px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stat-card .stat-value {
        font-size: 18px;
    }
}

/* ========== 个人中心子页面通用样式 ========== */
.account-content .section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #1a1a1a;
}

/* 快捷入口 */
.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}
.quick-link:hover {
    background: #fff0f0;
    transform: translateY(-2px);
    color: #ff4757;
}
.quick-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.quick-text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* 订单表格 */
.order-table-wrapper {
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    overflow-x: auto;
}
.order-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.order-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    background: #f9f9f9;
}
.order-table td {
    padding: 14px 16px;
    font-size: 13px;
    color: #333;
    border-top: 1px solid #f0f0f0;
}
.order-table .text-center {
    text-align: center;
}
.order-table .order-amount {
    font-size: 14px;
    font-weight: 600;
    color: #ff4757;
}
.order-table .order-detail-link {
    color: #667eea;
    font-size: 13px;
    text-decoration: none;
}

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

/* ========== 移动端强制覆盖（解决内联样式问题） ========== */
@media (max-width: 768px) {
    /* 强制覆盖所有grid布局为1列或2列 */
    .account-content [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .account-content [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .account-content [style*="display: grid"] {
        gap: 12px !important;
    }

    /* 强制覆盖表格为横向滚动 */
    .account-content [style*="border: 1px solid #f0f0f0"] {
        overflow-x: auto !important;
    }
    .account-content table {
        min-width: 500px !important;
    }

    /* 强制覆盖按钮全宽 */
    .account-content button[type="submit"],
    .account-content .btn-primary,
    .account-content [style*="background:#ff4757"] {
        width: 100% !important;
        padding: 14px !important;
    }

    /* 强制覆盖内边距 */
    .account-content [style*="padding: 28px"] {
        padding: 20px 16px !important;
    }
    .account-content [style*="padding: 24px"] {
        padding: 16px !important;
    }

    /* 强制覆盖字体大小 */
    .account-content [style*="font-size:20px"] {
        font-size: 18px !important;
    }
    .account-content [style*="font-size:28px"] {
        font-size: 20px !important;
    }

    /* 订单卡片移动端优化 */
    .account-content [style*="display:flex;justify-content:space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}

/* ========== 修复页脚宽度溢出 ========== */
.site-footer {
    width: 100%;
    clear: both;
    float: none;
    display: block;
    box-sizing: border-box;
}
.site-footer .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.site-main {
    width: 100%;
    display: block;
    float: none;
}
/* 个人中心页面确保页脚不受grid影响 */
.account-page {
    width: 100%;
    display: block;
    float: none;
}
.account-page::after {
    content: "";
    display: table;
    clear: both;
}

/* ========== 强制修复移动端溢出 ========== */
@media (max-width: 768px) {
    .account-page,
    .account-page .container,
    .account-layout,
    .account-sidebar,
    .account-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .account-content {
        padding: 16px !important;
        min-width: 0 !important;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    .stat-card {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 14px !important;
        border-radius: 10px !important;
    }
    .stat-card .stat-value {
        font-size: 20px !important;
    }
    .quick-links {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .quick-link {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 16px !important;
    }
    .quick-icon {
        font-size: 28px !important;
    }
    .quick-text {
        font-size: 12px !important;
    }
    .nav-menu {
        width: 100% !important;
        box-sizing: border-box !important;
        flex-wrap: nowrap !important;
    }
    .order-table-wrapper {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .order-table {
        min-width: 500px !important;
    }
    .user-card {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ========== 语言 / 币种切换器（图标样式） ========== */
.cs-switcher {
    position: relative;
    display: inline-block;
    margin-right: 4px;
}

.cs-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f5f5f7;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: all 0.2s;
    line-height: 1.4;
}

.cs-switcher-btn:hover {
    border-color: #667eea;
    background: #f3edf8;
    color: #667eea;
}

.cs-switcher-icon {
    font-size: 15px;
    line-height: 1;
}

.cs-switcher-current {
    font-size: 12px;
    font-weight: 600;
}

.cs-switcher-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 6px;
    margin: 0;
    list-style: none;
    z-index: 999;
}

.cs-switcher-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    transform: rotate(45deg);
}

.cs-switcher.open .cs-switcher-menu {
    display: block;
}

.cs-switcher-menu li {
    margin: 0;
}

.cs-switcher-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: background 0.15s;
    white-space: nowrap;
}

.cs-switcher-menu a:hover {
    background: #f3edf8;
    color: #667eea;
}

.cs-switcher-menu a.active {
    background: #667eea;
    color: #fff;
}

.cs-switcher-flag {
    font-size: 16px;
    line-height: 1;
}

.cs-switcher-name {
    font-weight: 500;
}

.cs-switcher-sub {
    font-size: 11px;
    color: #999;
    margin-left: auto;
}

.cs-switcher-menu a.active .cs-switcher-sub {
    color: rgba(255, 255, 255, 0.85);
}

/* 移动端切换器 */
@media (max-width: 768px) {
    .cs-switcher-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    .cs-switcher-icon {
        font-size: 14px;
    }
    .cs-switcher-current {
        font-size: 11px;
    }
    .cs-switcher-menu {
        right: -20px;
        min-width: 140px;
    }
}

/* ========== Logo样式 ========== */
.site-logo-img {
    max-height: 40px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* ========== 底部自定义链接 ========== */
.footer-custom-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-custom-links-list a {
    display: inline-block;
    color: #999;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.8;
}
.footer-custom-links-list a:hover {
    color: #667eea;
}
.footer-icp a {
    color: #999;
    text-decoration: none;
}
.footer-icp a:hover {
    color: #667eea;
}

/* 移动端底部 */
@media (max-width: 768px) {
    .site-logo-img {
        max-height: 32px;
    }
    .footer-custom-links-list {
        flex-direction: column;
        gap: 4px;
    }
}

/* ========== 专业商城风格优化 ========== */

/* 全局主题变量 */
:root {
    --primary-color: #667eea;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #f093fb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* 专业按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.35);
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.45);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(239, 68, 68, 0.45);
    color: #fff;
}

/* 专业卡片样式 */
.cs-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.cs-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.cs-card-body {
    padding: 24px;
}

.cs-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

/* 商品卡片专业样式 */
.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-tertiary);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: var(--danger-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.product-card-info {
    padding: 16px;
}

.product-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.product-card-price .current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger-color);
}

.product-card-price .original-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-card-actions {
    display: flex;
    gap: 8px;
}

.product-card-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
}

/* 订单详情专业样式 */
.order-detail-section {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.order-detail-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.order-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.order-status-paid {
    background: #dbeafe;
    color: #1e40af;
}

.order-status-shipped {
    background: #e0e7ff;
    color: #3730a3;
}

.order-status-completed {
    background: #d1fae5;
    color: #065f46;
}

.order-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.order-status-refunded {
    background: #f3e8ff;
    color: #6b21a8;
}

.order-status-partially_refunded {
    background: #ffedd5;
    color: #9a3412;
}

/* 专业表单样式 */
.cs-form-group {
    margin-bottom: 20px;
}

.cs-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cs-form-input,
.cs-form-select,
.cs-form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    outline: none;
}

.cs-form-input:focus,
.cs-form-select:focus,
.cs-form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cs-form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* 专业表格样式 */
.cs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cs-table thead {
    background: var(--bg-secondary);
}

.cs-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}

.cs-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.cs-table tbody tr:hover {
    background: var(--bg-secondary);
}

.cs-table tbody tr:last-child td {
    border-bottom: none;
}

/* 专业提示框样式 */
.cs-alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
    border-left: 4px solid;
}

.cs-alert-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.cs-alert-success {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.cs-alert-warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.cs-alert-danger {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

/* 专业分页样式 */
.cs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.cs-pagination a,
.cs-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
}

.cs-pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.cs-pagination .current {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.35);
}

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

.cs-empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cs-empty-state-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cs-empty-state-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* 专业加载动画 */
.cs-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: cs-spin 0.8s linear infinite;
}

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

/* 专业渐变文字 */
.cs-gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 专业标签样式 */
.cs-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.cs-tag-primary {
    background: #dbeafe;
    color: #1e40af;
}

.cs-tag-success {
    background: #d1fae5;
    color: #065f46;
}

.cs-tag-warning {
    background: #fef3c7;
    color: #92400e;
}

.cs-tag-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .cs-card-body {
        padding: 16px;
    }
    
    .cs-card-header {
        padding: 16px;
    }
    
    .order-detail-section {
        padding: 16px;
    }
    
    .product-card-title {
        font-size: 14px;
        min-height: 38px;
    }
    
    .product-card-price .current-price {
        font-size: 18px;
    }
    
    .cs-table {
        font-size: 12px;
    }
    
    .cs-table th,
    .cs-table td {
        padding: 10px 8px;
    }
}

/* ========== 专业商城商品列表样式（淘宝/京东/拼多多风格） ========== */

.shop-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    margin-bottom: 30px;
    color: #fff;
}

.shop-page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
}

.shop-page-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    flex-wrap: wrap;
    gap: 12px;
}

.shop-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.filter-btn:hover {
    background: #e8f0fe;
    color: #667eea;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
}

.shop-sort select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.shop-sort select:focus {
    border-color: #667eea;
}

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

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* 商品卡片 */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
}

/* 商品图片 */
.product-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.product-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-thumb img {
    transform: scale(1.08);
}

/* 商品标签 */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
}

/* 商品信息 */
.product-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-cat {
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
    transition: color 0.2s;
}

.product-card:hover .product-title {
    color: #667eea;
}

/* 价格行 */
.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff4757;
}

.product-price::before {
    content: '';
    font-size: 14px;
    margin-right: 2px;
}

.product-original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

/* 加入购物车按钮 */
.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6fd6, #6a4190);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination .page-numbers {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination .page-numbers:hover {
    border-color: #667eea;
    color: #667eea;
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
}

/* 空状态 */
.no-products {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.no-products .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* ========== 专业电商商品列表样式（参考淘宝/京东/拼多多） ========== */

.shop-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    margin-bottom: 30px;
    color: #fff;
}

.shop-page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
}

.shop-page-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    flex-wrap: wrap;
    gap: 12px;
}

.shop-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.filter-btn:hover {
    background: #eef1ff;
    color: #667eea;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
}

.shop-sort select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    background: #fff;
    cursor: pointer;
}

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

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
}

.product-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f9fafb;
    aspect-ratio: 1;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
}

.product-info {
    padding: 14px 16px 16px;
}

.product-cat {
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 10px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s;
}

.product-card:hover .product-title {
    color: #667eea;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff4757;
}

.product-price::before {
    content: '';
    font-size: 14px;
    margin-right: 2px;
}

.product-original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6fd6, #6a4190);
    transform: scale(1.02);
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 商品销量标签 */
.product-sales {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination .page-numbers {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination .page-numbers:hover {
    border-color: #667eea;
    color: #667eea;
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
}

/* 空状态 */
.shop-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.shop-empty .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-info {
        padding: 10px 12px 12px;
    }
    
    .product-title {
        font-size: 13px;
        height: 36px;
    }
    
    .product-price {
        font-size: 17px;
    }
    
    .shop-toolbar {
        padding: 12px;
    }
    
    .shop-page-header {
        padding: 24px 0;
    }
    
    .shop-page-header h1 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .add-to-cart-btn {
        padding: 8px;
        font-size: 12px;
    }
}

/* 管理员后台标签样式 */
.header-actions .admin-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.header-actions .admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff !important;
}

/* ========== 后台管理下拉菜单 ========== */
.nav-admin-dropdown {
    position: relative;
    display: inline-block;
}

.nav-admin-dropdown .nav-admin-link {
    cursor: pointer;
}

.nav-admin-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 160px;
    z-index: 1000;
    overflow: hidden;
}

.nav-admin-dropdown:hover .nav-admin-dropdown-menu {
    display: block;
}

.nav-admin-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.nav-admin-dropdown-menu a:last-child {
    border-bottom: none;
}

.nav-admin-dropdown-menu a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .nav-admin-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: #f9fafb;
    }
    
    .nav-admin-dropdown.active .nav-admin-dropdown-menu {
        display: block;
    }
    
    .nav-admin-dropdown-menu a {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ========== 首页轮播图 ========== */
.home-banner-slider {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.banner-slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16 / 6;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.banner-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-slide-title {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    z-index: 3;
}

/* 轮播指示器 */
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 5px;
}

/* 左右箭头 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-arrow:hover {
    background: rgba(0,0,0,0.6);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .banner-slider-container {
        aspect-ratio: 16 / 9;
    }
    
    .banner-slide-title {
        font-size: 18px;
        bottom: 20px;
        left: 20px;
    }
    
    .banner-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .banner-prev {
        left: 10px;
    }
    
    .banner-next {
        right: 10px;
    }
    
    .banner-dots {
        bottom: 10px;
    }
    
    .banner-dot {
        width: 8px;
        height: 8px;
    }
    
    .banner-dot.active {
        width: 20px;
    }
}

/* ========== 商品详情页专业样式优化（参考淘宝/京东/拼多多） ========== */
.single-product .product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.single-product .product-gallery-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.single-product .main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.single-product .main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-product .main-image-wrapper:hover img {
    transform: scale(1.05);
}

.single-product .thumbnail-list {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.single-product .thumbnail-item {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.single-product .thumbnail-item:hover,
.single-product .thumbnail-item.active {
    border-color: #ff4400;
}

.single-product .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 商品信息区 */
.single-product .product-info-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.single-product .product-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 12px;
}

.single-product .product-subtitle {
    font-size: 14px;
    color: #ff4400;
    margin-bottom: 16px;
}

/* 价格区 - 淘宝风格 */
.single-product .price-box {
    background: linear-gradient(to right, #fff5f0, #fff);
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #ff4400;
}

.single-product .current-price {
    font-size: 36px;
    font-weight: 800;
    color: #ff4400;
    line-height: 1;
}

.single-product .current-price .currency {
    font-size: 20px;
    margin-right: 2px;
}

.single-product .original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 12px;
}

.single-product .discount-tag {
    display: inline-block;
    background: #ff4400;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

.single-product .sales-info {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

/* 规格选择 */
.single-product .spec-group {
    margin-bottom: 16px;
}

.single-product .spec-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.single-product .spec-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.single-product .spec-option {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: #333;
}

.single-product .spec-option:hover,
.single-product .spec-option.selected {
    border-color: #ff4400;
    background: #fff5f0;
    color: #ff4400;
    font-weight: 600;
}

/* 数量选择 */
.single-product .quantity-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.single-product .quantity-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.single-product .qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.single-product .qty-btn:hover {
    background: #e8e8e8;
}

.single-product .qty-input {
    width: 60px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* 操作按钮 */
.single-product .action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.single-product .btn-add-cart {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, #ffbb00, #ff9500);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.single-product .btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,149,0,0.4);
}

.single-product .btn-buy-now {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, #ff4400, #ff2200);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.single-product .btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,68,0,0.4);
}

/* ========== 商品评价专业样式 ========== */
.product-reviews-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.reviews-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

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

.review-summary {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 24px;
}

.review-score {
    text-align: center;
}

.review-score-number {
    font-size: 48px;
    font-weight: 800;
    color: #ff4400;
    line-height: 1;
}

.review-score-label {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

.review-stars {
    color: #ffaa00;
    font-size: 18px;
    letter-spacing: 2px;
}

.review-filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.review-filter-tab {
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: #666;
}

.review-filter-tab:hover {
    border-color: #ff4400;
    color: #ff4400;
}

.review-filter-tab.active {
    background: #ff4400;
    border-color: #ff4400;
    color: #fff;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.review-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.review-username {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.review-meta {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.review-rating {
    color: #ffaa00;
    font-size: 14px;
    margin-left: auto;
}

.review-content {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 12px;
}

.review-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.review-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.review-image:hover {
    transform: scale(1.05);
}

.review-spec {
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

.review-reply {
    margin-top: 12px;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.review-reply-label {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 4px;
}

.review-reply-content {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .single-product .product-detail-container {
        padding: 10px;
    }
    
    .single-product .product-title {
        font-size: 18px;
    }
    
    .single-product .current-price {
        font-size: 28px;
    }
    
    .single-product .action-buttons {
        flex-direction: column;
    }
    
    .review-summary {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .review-user-info {
        flex-wrap: wrap;
    }
    
    .review-rating {
        margin-left: 0;
        width: 100%;
    }
}

/* ========== 收藏按钮样式（文字+图标） ========== */
.wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wishlist-btn:hover {
    border-color: #ff4400;
    color: #ff4400;
    background: #fff5f0;
}

.wishlist-btn.active {
    border-color: #ff4400;
    background: #fff5f0;
    color: #ff4400;
}

.wishlist-btn .wishlist-icon {
    font-size: 18px;
    line-height: 1;
}

.wishlist-btn .wishlist-text {
    font-weight: 600;
}

/* 商品卡片上的收藏按钮保持圆形图标样式 */
.product-card .wishlist-btn,
.product-item .wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 2;
}

.product-card .wishlist-btn .wishlist-text,
.product-item .wishlist-btn .wishlist-text {
    display: none;
}

.product-card .wishlist-btn:hover,
.product-item .wishlist-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

/* ========== 评论区专业样式优化（参考淘宝/京东/拼多多） ========== */
.comments-area {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.comments-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #ff4400, #ff9500);
    border-radius: 2px;
}

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

.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

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

.comment-item:hover {
    background: #fafafa;
    margin: 0 -10px;
    padding: 20px 10px;
    border-radius: 8px;
}

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

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}

.comment-meta {
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.comment-date {
    font-size: 12px;
    color: #999;
}

.comment-rating {
    color: #ffaa00;
    font-size: 16px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.comment-content {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 56px;
}

.comment-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-left: 56px;
}

.comment-image {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.comment-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.comment-spec {
    display: inline-block;
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 56px;
}

.comment-reply {
    margin-top: 12px;
    margin-left: 56px;
    padding: 14px 18px;
    background: linear-gradient(to right, #f8f9ff, #fff);
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.comment-reply-label {
    font-size: 13px;
    color: #667eea;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-reply-label::before {
    content: '💬';
    font-size: 14px;
}

.comment-reply-content {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* 评论分页 */
.comment-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.comment-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.comment-pagination .page-numbers:hover {
    border-color: #ff4400;
    color: #ff4400;
}

.comment-pagination .page-numbers.current {
    background: linear-gradient(135deg, #ff4400, #ff9500);
    border-color: #ff4400;
    color: #fff;
    font-weight: 600;
}

/* 无评论提示 */
.no-comments {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-comments-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-comments-text {
    font-size: 16px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .comments-area {
        padding: 16px;
        border-radius: 8px;
    }
    
    .comments-title {
        font-size: 18px;
    }
    
    .comment-content,
    .comment-images,
    .comment-spec,
    .comment-reply {
        padding-left: 0;
        margin-left: 0;
    }
    
    .comment-avatar {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    
    .comment-image {
        width: 70px;
        height: 70px;
    }
    
    .wishlist-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ========== 商品评论区专业样式（淘宝/京东/拼多多风格） ========== */
.product-reviews {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 评论汇总区 */
.reviews-summary {
    display: flex;
    gap: 40px;
    padding: 24px;
    background: linear-gradient(135deg, #fff9f0 0%, #fff5f5 100%);
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #ffe0cc;
}

.reviews-score {
    text-align: center;
    min-width: 140px;
    padding-right: 30px;
    border-right: 1px solid #ffe0cc;
}

.reviews-score-number {
    font-size: 56px;
    font-weight: 800;
    color: #ff4400;
    line-height: 1;
    margin-bottom: 8px;
}

.reviews-score-stars {
    color: #ffaa00;
    font-size: 20px;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

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

/* 评分分布 */
.reviews-distribution {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-bar-label {
    width: 36px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.rating-bar-track {
    flex: 1;
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    max-width: 200px;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffaa00, #ff8800);
    border-radius: 5px;
    transition: width 0.6s ease;
}

.rating-bar-count {
    width: 36px;
    font-size: 13px;
    color: #999;
    text-align: right;
}

/* 评论表单 */
.product-reviews .comment-form {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.product-reviews .comment-form p {
    margin-bottom: 12px;
}

.product-reviews .comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.product-reviews .comment-form input[type="text"],
.product-reviews .comment-form input[type="email"],
.product-reviews .comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.product-reviews .comment-form input:focus,
.product-reviews .comment-form textarea:focus {
    outline: none;
    border-color: #ff4400;
    box-shadow: 0 0 0 3px rgba(255,68,0,0.1);
}

.product-reviews .comment-form .form-submit {
    margin-top: 16px;
}

.product-reviews .comment-form .submit {
    background: linear-gradient(135deg, #ff4400, #ff2200);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.product-reviews .comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,68,0,0.4);
}

/* 评论列表标题 */
.reviews-list-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ff4400;
    display: inline-block;
}

/* 评论项 */
.review-item {
    list-style: none;
}

.review-body {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.review-body:last-child {
    border-bottom: none;
}

.review-user-info {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.review-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

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

.review-user-detail {
    flex: 1;
    min-width: 0;
}

.review-user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.review-username {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-rating {
    margin-bottom: 10px;
    color: #ffaa00;
    font-size: 14px;
    letter-spacing: 2px;
}

.review-content {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    word-wrap: break-word;
}

.review-content p {
    margin: 0 0 8px;
}

.review-content p:last-child {
    margin-bottom: 0;
}

/* 无评论提示 */
.product-reviews .no-comments {
    text-align: center;
    color: #999;
    padding: 60px 20px;
    font-size: 15px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .product-reviews {
        padding: 16px;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .reviews-score {
        border-right: none;
        border-bottom: 1px solid #ffe0cc;
        padding-right: 0;
        padding-bottom: 20px;
    }
    
    .reviews-score-number {
        font-size: 42px;
    }
    
    .rating-bar-track {
        max-width: none;
    }
    
    .review-user-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .review-content {
        font-size: 14px;
    }
}

/* ========== 商品评价专业样式 ========== */
.product-reviews {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

.reviews-summary {
    display: flex;
    gap: 40px;
    padding: 24px;
    background: linear-gradient(135deg, #fef9f3 0%, #fff5eb 100%);
    border-radius: 12px;
    margin-bottom: 24px;
}

.reviews-score {
    text-align: center;
    min-width: 140px;
}

.reviews-score-number {
    font-size: 48px;
    font-weight: 700;
    color: #ff6b35;
    line-height: 1;
    margin-bottom: 8px;
}

.reviews-score-stars {
    margin-bottom: 8px;
}

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

.reviews-distribution {
    flex: 1;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rating-bar-label {
    width: 36px;
    font-size: 13px;
    color: #666;
}

.rating-bar-track {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ffa726);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-bar-count {
    width: 36px;
    font-size: 13px;
    color: #999;
    text-align: right;
}

/* 发表评价表单 */
#respond.comment-respond {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

#reply-title.comment-reply-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ff6b35;
    display: inline-block;
}

.review-rating-field {
    margin-bottom: 20px;
}

.review-rating-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.star-rating-selector {
    display: flex;
    gap: 8px;
}

.star-rating-selector label {
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-bottom: 0;
}

.star-rating-selector label:hover {
    transform: scale(1.2);
}

.comment-form p {
    margin-bottom: 16px;
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    margin-top: 20px;
}

.form-submit input[type="submit"] {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* 评价列表 */
.reviews-list-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.review-body {
    display: flex;
    gap: 16px;
}

.review-avatar {
    flex-shrink: 0;
}

.review-avatar img {
    border-radius: 50%;
    border: 2px solid #f0f0f0;
}

.review-user-detail {
    flex: 1;
}

.review-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-username {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-rating {
    margin-bottom: 8px;
}

.review-content {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .product-reviews {
        padding: 16px;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .reviews-score {
        min-width: auto;
    }
    
    #respond.comment-respond {
        padding: 16px;
    }
    
    .review-body {
        gap: 12px;
    }
}

/* ========== 订单详情页状态徽章 ========== */
.order-detail-meta .order-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
    padding: 6px 14px;
    min-width: 70px;
    border-radius: 12px;
    font-weight: 500;
    vertical-align: middle;
    white-space: nowrap;
    word-break: normal;
    margin-left: auto;
}

/* ============ 会员购买卡片（结算页） ============ */
.membership-buy-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    padding: 22px 20px;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
}
.membership-buy-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.membership-buy-price {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
}
.membership-buy-desc {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 12px;
    line-height: 1.6;
}
.membership-buy-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cs-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
}

/* ============ 会员价标签 ============ */
.member-price-badge {
    display: inline-block;
    background: #764ba2;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}
.product-card-price .member-price-badge {
    display: block;
    margin: 4px 0 0;
    width: max-content;
}
