/* ===== 卡密商店 ===== */
.shop-section {
    min-height: 80vh;
    padding-bottom: 80px;
}

.shop-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: -32px;
    margin-bottom: 48px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.shop-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.shop-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--accent-glow);
}

.shop-card-popular {
    border-color: var(--accent);
    background: rgba(79, 156, 249, 0.05);
}

.shop-card-popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.shop-card-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.shop-card-badge.popular {
    background: var(--accent);
    color: #fff;
}

.shop-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.shop-card-price {
    margin-bottom: 24px;
}

.price-symbol {
    font-size: 18px;
    color: var(--text-secondary);
    vertical-align: top;
}

.price-num {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.shop-card-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.shop-card-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
}

.shop-card-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

/* ===== 购买弹窗 ===== */
.shop-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.shop-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 420px;
    width: 100%;
    position: relative;
}

.shop-modal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.shop-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.shop-modal-close:hover {
    color: var(--text-primary);
}

.shop-modal-text {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.shop-modal-info {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.shop-modal-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.shop-modal-row span:first-child {
    color: var(--text-secondary);
}

.shop-price-text {
    color: var(--accent);
    font-weight: 700;
}

.shop-modal-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* 卡密显示 */
.shop-key-display {
    text-align: center;
}

.shop-key-box {
    background: var(--bg-tertiary);
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 12px 0 16px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--green);
    word-break: break-all;
    user-select: all;
}

/* 已购卡密列表 */
.shop-history {
    margin-top: 64px;
}

.shop-history-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.shop-history-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-history-key {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--text-primary);
}

.shop-history-status {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 20px;
}

.shop-history-status.used {
    background: rgba(110, 118, 129, 0.15);
    color: var(--text-muted);
}

.shop-history-status.unused {
    background: rgba(63, 185, 80, 0.15);
    color: var(--green);
}

.shop-history-type {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}

/* 加载动画 */
.shop-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: shop-spin 0.8s linear infinite;
    margin: 0 auto;
}

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