/**
 * 个人标签引导页 - 商城样式
 *
 * @description 商城、购物车、订单页面的专属样式
 */

/* ==================== 商城页面头部 ==================== */
.shop-header {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.shop-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.shop-header-content {
    position: relative;
    z-index: 1;
}

.shop-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shop-header p {
    opacity: 0.9;
    font-size: 1rem;
}

/* 头部操作按钮 */
.header-action-btn {
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 1.5rem;
    position: relative;
    z-index: 2;
}

/* ==================== 搜索框样式 ==================== */
.shop-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.shop-search input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.shop-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.shop-search i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

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

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 商品卡片 ==================== */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.product-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
}

.product-badge.hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.product-info {
    padding: 1.25rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.product-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.product-price-original {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.product-stock {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.product-sku-count {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==================== SKU选择器 ==================== */
.sku-selector {
    margin: 1.25rem 0;
}

.sku-selector label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.sku-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sku-option {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sku-option:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}

.sku-option.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.sku-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sku-option-name {
    font-weight: 500;
}

.sku-option-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sku-original-price {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.sku-option.selected .sku-original-price {
    color: rgba(255, 255, 255, 0.7);
}

.sku-current-price {
    font-weight: 600;
    color: var(--accent);
}

.sku-option.selected .sku-current-price {
    color: white;
}

.sku-price-display {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

.sku-stock-display {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==================== 数量选择器 ==================== */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.quantity-value {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ==================== 购物车样式 ==================== */
.cart-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.cart-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.cart-item-sku {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cart-item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-item-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 100px;
    text-align: right;
}

.cart-item-delete {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    border-radius: 10px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-item-delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* 购物车结算卡片 */
.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-summary-row:last-of-type {
    border-bottom: none;
}

.cart-summary-label {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.cart-summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

.cart-balance-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    margin: 1rem 0;
}

.cart-balance-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.cart-balance-value {
    font-weight: 600;
    color: var(--accent);
}

.cart-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cart-actions .btn {
    flex: 1;
    padding: 1rem;
    font-size: 1rem;
}

/* ==================== 订单样式 ==================== */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.order-number {
    font-weight: 600;
    color: var(--text-primary);
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.status-paid {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.status-shipped {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.status-completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

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

.order-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.order-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-amount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

/* 物流信息 */
.tracking-info {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.tracking-info-title {
    color: #22c55e;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tracking-info-content {
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* 商品类型标签 */
.shipping-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.shipping-type-physical {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.shipping-type-virtual {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ==================== 图片轮播样式 ==================== */
.image-carousel {
    position: relative;
    width: 100%;
    margin-bottom: 1.25rem;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* ==================== 弹窗样式优化 ==================== */
.product-modal-body {
    padding: 0;
}

.product-modal-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.product-modal-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-modal-desc {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.product-modal-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 1rem 0;
}

/* ==================== 浅色模式适配 ==================== */
[data-theme="light"] .shop-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

[data-theme="light"] .shop-search input {
    background: white;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a202c;
}

[data-theme="light"] .shop-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .product-card:hover {
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .cart-item:hover,
[data-theme="light"] .order-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sku-option {
    background: #f7fafc;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a202c;
}

[data-theme="light"] .sku-option:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--accent);
}

[data-theme="light"] .sku-option.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

[data-theme="light"] .quantity-btn {
    background: #f7fafc;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a202c;
}

[data-theme="light"] .quantity-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* 弹窗内SKU选项在浅色模式下的样式 */
[data-theme="light"] #productModalBody .sku-option {
    background: #f7fafc;
    border-color: rgba(0, 0, 0, 0.15);
    color: #1a202c;
}

[data-theme="light"] #productModalBody .sku-option.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

[data-theme="light"] #productModalBody .sku-option:hover:not(.selected) {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--accent);
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
    .shop-header {
        padding: 1.75rem;
    }

    .shop-header h1 {
        font-size: 1.5rem;
    }

    .cart-item {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-info {
        flex: 1;
        min-width: calc(100% - 100px);
    }

    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
    }

    .cart-actions {
        flex-direction: column;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .order-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .order-amount {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==================== 支付页面样式 ==================== */
.pay-container {
    max-width: 500px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.pay-container .card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.pay-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pay-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.pay-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pay-subtitle {
    color: var(--text-secondary);
}

.pay-amount-box {
    background: var(--pay-box-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.pay-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pay-amount-label {
    color: var(--text-secondary);
}

.pay-amount-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.pay-methods-section {
    margin-bottom: 1.5rem;
}

.pay-methods-title {
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.pay-method-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--pay-box-bg);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.pay-method-item:hover {
    background: var(--pay-box-hover);
}

.pay-method-item.selected {
    border-color: var(--accent);
}

.pay-method-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pay-method-icon {
    font-size: 1.5rem;
}

.pay-method-icon.balance {
    color: #22c55e;
}

.pay-method-icon.alipay {
    color: #1677ff;
}

.pay-method-info p:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

.pay-method-info p:last-child {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pay-method-check {
    color: var(--accent);
    display: none;
}

.pay-method-item.selected .pay-method-check {
    display: block;
}

.pay-method-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pay-alert {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.pay-alert-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ef4444;
}

.pay-form {
    display: none;
}

.pay-btn-full {
    width: 100%;
}

/* 支付按钮变体 */
.pay-btn-success {
    background: #22c55e !important;
    color: white !important;
    margin-top: 0.75rem;
}

.pay-btn-success:hover {
    background: #16a34a !important;
}

.pay-btn-alipay {
    background: linear-gradient(135deg, #1677ff, #0056d6) !important;
    color: white !important;
}

.pay-btn-alipay:hover {
    background: linear-gradient(135deg, #0056d6, #0047b3) !important;
}

.pay-cancel-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.pay-cancel-link:hover {
    color: var(--text-primary);
}

/* 支付确认提示框 */
.pay-confirm-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.03));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-top: 1.5rem;
    animation: slideUp 0.3s ease-out;
}

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

.pay-confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.pay-confirm-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pay-confirm-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pay-confirm-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
    width: 100%;
}

.pay-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

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

.pay-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 自定义成功弹窗 - 支付专用 */
.pay-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

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

.pay-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pay-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.pay-modal-icon.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
    color: #22c55e;
}

.pay-modal-icon.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.05));
    color: #ef4444;
}

.pay-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.pay-modal-message {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.pay-modal-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    padding: 0.875rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.pay-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

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

/* 浅色模式适配 */
[data-theme="light"] .pay-confirm-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(99, 102, 241, 0.02));
    border-color: rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .pay-modal-content {
    background: white;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .pay-modal-overlay {
    background: rgba(0, 0, 0, 0.4);
}

/* 移动端适配 */
@media (max-width: 480px) {
    .pay-confirm-box {
        padding: 1.5rem;
    }

    .pay-confirm-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .pay-confirm-text {
        font-size: 1rem;
    }

    .pay-modal-content {
        padding: 2rem 1.5rem;
    }

    .pay-modal-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .pay-modal-title {
        font-size: 1.25rem;
    }
}