.lemon-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    pointer-events: none;
}

.lemon-notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    border-left: 4px solid #6366f1;
}

.lemon-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.lemon-notification-success {
    border-left-color: #10b981;
}

.lemon-notification-error {
    border-left-color: #ef4444;
}

.lemon-notification-warning {
    border-left-color: #f59e0b;
}

.lemon-notification-info {
    border-left-color: #6366f1;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.notification-content i {
    font-size: 18px;
    flex-shrink: 0;
}

.lemon-notification-success .notification-content i {
    color: #10b981;
}

.lemon-notification-error .notification-content i {
    color: #ef4444;
}

.lemon-notification-warning .notification-content i {
    color: #f59e0b;
}

.lemon-notification-info .notification-content i {
    color: #6366f1;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

.notification-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    color: #6b7280;
    background: #f3f4f6;
}

/* ==========================================================================
   2. 加载状态样式
   ========================================================================== */

.lemon-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: inherit;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #6366f1;
}

.loading-spinner i {
    font-size: 24px;
}

.loading-spinner span {
    font-size: 14px;
    font-weight: 500;
}

/* ==========================================================================
   3. 购物车样式
   ========================================================================== */

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-cart-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.cart-empty h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #374151;
}

.cart-empty p {
    margin: 0 0 20px 0;
    font-size: 14px;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.item-plan {
    margin: 0 0 4px 0;
    font-size: 12px;
    color: #6b7280;
}

.item-price {
    font-size: 14px;
    font-weight: 500;
    color: #6366f1;
}

.item-quantity {
    flex-shrink: 0;
}

.cart-quantity {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.item-total {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    min-width: 60px;
    text-align: right;
}

.item-actions {
    flex-shrink: 0;
}

.remove-from-cart {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.remove-from-cart:hover {
    background: #fef2f2;
    color: #dc2626;
}

.cart-summary {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-line.total {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    border-top: 1px solid #e5e7eb;
    padding-top: 8px;
    margin-top: 8px;
}

.cart-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==========================================================================
   4. 按钮样式补充
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.btn-primary:hover {
    background: #5856eb;
    border-color: #5856eb;
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: #6366f1;
    border-color: #6366f1;
}

.btn-outline:hover {
    background: #6366f1;
    color: white;
    text-decoration: none;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   5. 响应式设计
   ========================================================================== */

@media (max-width: 768px) {
    .lemon-notifications-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .cart-summary {
        padding: 12px;
    }

    .cart-actions {
        gap: 6px;
    }

    .notification-content {
        padding: 12px;
    }
}

/* 柠檬软件销售插件 - 公共样式 */

/* 插件全局样式 */
.lemon-plugin {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 产品卡片样式 */
.lemon-product-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.lemon-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.lemon-product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.lemon-product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 15px;
}

.lemon-product-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 按钮样式 */
.lemon-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.lemon-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.lemon-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.lemon-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.lemon-btn-secondary:hover {
    background: #e5e7eb;
    color: #111827;
}

/* 状态标签 */
.lemon-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.lemon-status-active {
    background: #d1fae5;
    color: #065f46;
}

.lemon-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.lemon-status-failed {
    background: #fee2e2;
    color: #991b1b;
}

/* 加载动画 */
.lemon-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: lemon-spin 1s linear infinite;
}

@keyframes lemon-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 提示消息 */
.lemon-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.lemon-message-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.lemon-message-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.lemon-message-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* 表单样式 */
.lemon-form-group {
    margin-bottom: 20px;
}

.lemon-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
}

.lemon-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.lemon-form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.lemon-form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* 网格布局 */
.lemon-grid {
    display: grid;
    gap: 20px;
}

.lemon-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.lemon-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.lemon-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 响应式 */
@media (max-width: 768px) {
    .lemon-grid-2,
    .lemon-grid-3,
    .lemon-grid-4 {
        grid-template-columns: 1fr;
    }

    .lemon-product-card {
        padding: 15px;
    }
}

/* 实用工具类 */
.lemon-text-center { text-align: center; }
.lemon-text-left { text-align: left; }
.lemon-text-right { text-align: right; }

.lemon-mb-0 { margin-bottom: 0; }
.lemon-mb-1 { margin-bottom: 10px; }
.lemon-mb-2 { margin-bottom: 20px; }
.lemon-mb-3 { margin-bottom: 30px; }

.lemon-mt-0 { margin-top: 0; }
.lemon-mt-1 { margin-top: 10px; }
.lemon-mt-2 { margin-top: 20px; }
.lemon-mt-3 { margin-top: 30px; }