:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --bg-gray: #f9fafb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

.yooox-ai-generator {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.yooox-ai-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 标题区 */
.yooox-ai-header {
    text-align: center;
    margin-bottom: 40px;
}

.yooox-ai-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 10px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.yooox-ai-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin: 0;
}

/* 表单区域 */
.yooox-ai-form-section {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    margin-bottom: 30px;
}

.yooox-ai-form-group {
    margin-bottom: 24px;
}

.yooox-ai-form-group:last-child {
    margin-bottom: 0;
}

.yooox-ai-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.label-text {
    font-size: 0.95rem;
}

.required {
    color: var(--error-color);
    margin-left: 4px;
}

.badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 500;
}

.yooox-ai-form-group textarea,
.yooox-ai-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
}

.yooox-ai-form-group textarea:focus,
.yooox-ai-form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 6px;
}

/* 上传区域 */
.yooox-ai-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-gray);
}

.yooox-ai-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.yooox-ai-upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.upload-placeholder svg {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.upload-placeholder p {
    margin: 0 0 4px;
    font-weight: 500;
    color: var(--text-color);
}

.upload-placeholder small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.uploaded-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.uploaded-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: var(--bg-gray);
}

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

.uploaded-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s;
}

.uploaded-image-remove:hover {
    background: rgba(239, 68, 68, 0.9);
}

/* 上传方式选项卡 */
.upload-method-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.upload-method-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-method-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.upload-method-tab.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.upload-method-tab svg {
    width: 18px;
    height: 18px;
}

/* 选项区域 */
.yooox-ai-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 按钮 */
.yooox-ai-form-actions {
    margin-top: 32px;
}

.yooox-ai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.yooox-ai-btn.primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.yooox-ai-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.yooox-ai-btn.primary:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.yooox-ai-btn.secondary {
    background: white;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.yooox-ai-btn.secondary:hover {
    border-color: var(--text-muted);
    background: var(--bg-gray);
}

.yooox-ai-btn.small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* 进度区域 */
.yooox-ai-progress-section {
    margin-bottom: 30px;
}

.progress-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    border-left: 4px solid var(--primary-color);
}

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

.progress-icon {
    font-size: 1.5rem;
}

.progress-status {
    font-weight: 600;
    font-size: 1.125rem;
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: var(--bg-gray);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #764ba2);
    transition: width 0.3s ease;
}

.progress-percent {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 45px;
    text-align: right;
}

.progress-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 12px;
}

/* 结果区域 */
.yooox-ai-result-section {
    margin-bottom: 30px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.result-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.yooox-ai-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.result-item {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.result-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-gray);
    overflow: hidden;
}

.result-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-actions {
    padding: 16px;
    display: flex;
    gap: 8px;
}

.result-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.result-actions .btn-download {
    background: var(--primary-color);
    color: white;
}

.result-actions .btn-download:hover {
    background: var(--primary-dark);
}

.result-actions .btn-copy {
    background: var(--bg-gray);
    color: var(--text-color);
}

.result-actions .btn-copy:hover {
    background: var(--border-color);
}

/* 通知提示 */
.yooox-ai-notice {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.yooox-ai-notice.error {
    background: #fef2f2;
    border-left: 4px solid var(--error-color);
    color: #991b1b;
}

/* 自定义模态对话框 */
.yooox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yooox-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease-out;
    z-index: 1;
    pointer-events: auto;
}

.yooox-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease-out;
    z-index: 2;
}

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

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

.yooox-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yooox-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.yooox-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.yooox-modal-close:hover {
    background: var(--bg-gray);
    color: var(--text-color);
}

.yooox-modal-body {
    padding: 24px;
    color: var(--text-color);
    line-height: 1.6;
    max-height: 60vh;
    overflow-y: auto;
}

.yooox-modal-body p {
    margin: 0 0 12px;
}

.yooox-modal-body p:last-child {
    margin-bottom: 0;
}

.yooox-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.yooox-modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.yooox-modal-btn-cancel {
    background: var(--bg-gray);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.yooox-modal-btn-cancel:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.yooox-modal-btn-confirm {
    background: var(--primary-color);
    color: white;
}

.yooox-modal-btn-confirm:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 充值中心样式 */
.yooox-recharge-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

.yooox-recharge-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.yooox-recharge-title h2 {
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
}

.yooox-recharge-title p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.yooox-recharge-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.yooox-recharge-refresh:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.yooox-recharge-refresh:active {
    transform: scale(0.95);
}

.yooox-account-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.yooox-account-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
}

.yooox-account-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.yooox-card-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.yooox-card-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.yooox-currency {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
}

.yooox-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.yooox-api-calls {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success-color);
}

/* 标签页 */
.yooox-recharge-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.yooox-recharge-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.yooox-recharge-tab:hover {
    color: var(--text-color);
}

.yooox-recharge-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 充值内容 */
.yooox-recharge-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.yooox-recharge-content.active {
    display: block;
}

.yooox-recharge-section {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.yooox-recharge-section h3 {
    margin: 0 0 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.yooox-recharge-desc {
    margin: 0 0 20px;
    color: var(--text-muted);
}

/* 金额选择按钮 */
.yooox-amount-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.yooox-amount-btn {
    padding: 12px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.yooox-amount-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.yooox-amount-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 自定义金额 */
.yooox-custom-amount {
    padding: 20px;
    background: var(--bg-gray);
    border-radius: 8px;
    margin-top: 20px;
}

.yooox-custom-amount label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-color);
}

.yooox-input-group {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.yooox-input-group .yooox-currency {
    padding: 0 12px;
    background: var(--bg-gray);
    border-right: 1px solid var(--border-color);
    font-size: 1rem;
}

.yooox-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.yooox-input-hint {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 支付方式 */
.yooox-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.yooox-payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.yooox-payment-option input {
    display: none;
}

.yooox-payment-option input:checked + .yooox-payment-icon {
    background: var(--primary-color);
    color: white;
}

.yooox-payment-option input:checked ~ .yooox-payment-name {
    color: var(--primary-color);
    font-weight: 600;
}

.yooox-payment-option:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.yooox-payment-option:hover {
    border-color: var(--primary-color);
}

.yooox-payment-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    color: var(--text-color);
    transition: all 0.2s;
}

.yooox-payment-icon.alipay {
    background: linear-gradient(135deg, #1890ff, #52c41a);
    color: white;
}

.yooox-payment-icon.wechat {
    background: linear-gradient(135deg, #09b83e, #1fbf3f);
    color: white;
}

.yooox-payment-name {
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
}

/* 充值摘要 */
.yooox-recharge-summary {
    background: var(--bg-gray);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.yooox-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

.yooox-summary-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

/* 兑换表单 */
.yooox-redemption-form {
    margin-bottom: 20px;
}

.yooox-redemption-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.yooox-redemption-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.yooox-redemption-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 充值记录表格 */
.yooox-history-table {
    overflow-x: auto;
}

.yooox-history-table table {
    width: 100%;
    border-collapse: collapse;
}

.yooox-history-table th {
    background: var(--bg-gray);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.yooox-history-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.9rem;
}

.yooox-history-table tr:hover {
    background: var(--bg-gray);
}

.yooox-status-success {
    color: var(--success-color);
    font-weight: 500;
}

.yooox-status-pending {
    color: var(--warning-color);
    font-weight: 500;
}

.yooox-status-failed {
    color: var(--error-color);
    font-weight: 500;
}

.yooox-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    color: var(--text-muted);
}

.yooox-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* 充值按钮 */
.yooox-recharge-btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.yooox-recharge-btn.primary {
    background: var(--primary-color);
    color: white;
}

.yooox-recharge-btn.primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.yooox-recharge-btn.primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .yooox-recharge-header {
        flex-direction: column;
        gap: 16px;
    }

    .yooox-account-cards {
        grid-template-columns: 1fr;
    }

    .yooox-amount-buttons {
        grid-template-columns: repeat(3, 1fr);
    }

    .yooox-recharge-tabs {
        gap: 0;
        overflow-x: auto;
    }

    .yooox-payment-methods {
        grid-template-columns: 1fr 1fr;
    }
}

.yooox-ai-notice strong {
    display: block;
    margin-bottom: 4px;
}

.yooox-ai-notice p {
    margin: 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .yooox-ai-container {
        padding: 0 16px;
        margin: 20px auto;
    }
    
    .yooox-ai-header h1 {
        font-size: 2rem;
    }
    
    .yooox-ai-form-section {
        padding: 24px 20px;
    }
    
    .yooox-ai-options {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .yooox-ai-result-grid {
        grid-template-columns: 1fr;
    }
    
    .result-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
/* ==================== 充值中心样式 ==================== */

.yooox-recharge-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.yooox-recharge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.yooox-recharge-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
}

.yooox-refresh-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.yooox-refresh-btn:hover {
    background: var(--border-color);
    transform: rotate(180deg);
}

.yooox-refresh-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* 账户信息卡片 */
.yooox-account-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.yooox-card {
    display: flex;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yooox-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.yooox-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

.card-icon {
    font-size: 32px;
    margin-right: 20px;
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.card-value {
    font-size: 24px;
    font-weight: 700;
}

/* 标签导航 */
.yooox-recharge-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 标签内容 */
.yooox-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.yooox-tab-content.active {
    display: block;
}

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

/* 充值部分 */
.recharge-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.recharge-section h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--text-color);
}

.recharge-section p {
    color: var(--text-muted);
    margin: 0 0 16px;
}

/* 金额按钮 */
.yooox-amount-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.yooox-amount-btn {
    padding: 12px;
    background: var(--bg-gray);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.yooox-amount-btn:hover {
    border-color: var(--primary-color);
    background: white;
}

.yooox-amount-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* 自定义金额输入 */
.custom-amount-input {
    margin-bottom: 30px;
}

.custom-amount-input label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-prefix {
    position: absolute;
    left: 16px;
    font-weight: 600;
    color: var(--text-muted);
}

#yooox-custom-amount {
    width: 100%;
    padding: 12px 12px 12px 36px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#yooox-custom-amount:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 支付方式 */
.payment-methods {
    margin-bottom: 30px;
}

.payment-methods h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-color);
}

.yooox-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.payment-option input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
}

.payment-option input[type="radio"]:checked + .method-label {
    color: var(--primary-color);
    font-weight: 700;
}

.method-label {
    flex: 1;
    font-weight: 600;
    color: var(--text-color);
}

.method-icon {
    font-size: 20px;
}

/* 充值摘要 */
.recharge-summary {
    background: var(--bg-gray);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.recharge-summary p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-color);
}

/* 充值按钮 */
.yooox-recharge-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.yooox-recharge-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

/* 兑换部分 */
.redemption-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.redemption-section h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
    color: var(--text-color);
}

.redemption-section p {
    color: var(--text-muted);
    margin: 0 0 20px;
}

.redemption-form {
    display: flex;
    gap: 12px;
}

.redemption-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.redemption-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.yooox-redeem-btn {
    padding: 12px 24px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.yooox-redeem-btn:hover {
    background: #059669;
}

/* 历史记录部分 */
.history-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.history-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-color);
}

.yooox-history-table-wrapper {
    overflow-x: auto;
}

.yooox-history-table {
    width: 100%;
    border-collapse: collapse;
}

.yooox-history-table thead {
    background: var(--bg-gray);
}

.yooox-history-table th {
    padding: 12px;
    text-align: left;
    font-weight: 700;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
}

.yooox-history-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.yooox-history-table tbody tr:hover {
    background: var(--bg-gray);
}

/* 状态标签 */
.status-completed {
    display: inline-block;
    padding: 4px 12px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    display: inline-block;
    padding: 4px 12px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-failed {
    display: inline-block;
    padding: 4px 12px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* 通知消息 */
.yooox-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideUp 0.3s ease;
    display: none;
}

.yooox-notice.success {
    background: var(--success-color);
    color: white;
}

.yooox-notice.error {
    background: var(--error-color);
    color: white;
}

.yooox-notice.warning {
    background: var(--warning-color);
    color: white;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .yooox-recharge-container {
        padding: 0 16px;
    }

    .yooox-recharge-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .yooox-account-cards {
        grid-template-columns: 1fr;
    }

    .yooox-amount-buttons {
        grid-template-columns: repeat(3, 1fr);
    }

    .yooox-recharge-tabs {
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .payment-methods {
        margin-bottom: 20px;
    }

    .yooox-payment-methods {
        grid-template-columns: 1fr;
    }

    .recharge-section,
    .redemption-section,
    .history-section {
        padding: 20px;
    }

    .redemption-form {
        flex-direction: column;
    }

    .yooox-redeem-btn {
        width: 100%;
    }

    .yooox-notice {
        top: 10px;
        right: 10px;
        left: 10px;
        border-radius: 6px;
    }

    .yooox-history-table {
        font-size: 12px;
    }

    .yooox-history-table th,
    .yooox-history-table td {
        padding: 10px 8px;
    }
    
    /* 充值中心样式 */
    .amount-btn.active {
        background: #667eea !important;
        border-color: #667eea !important;
        color: white !important;
    }
    
    .amount-btn:hover {
        border-color: #667eea !important;
    }
    
    /* 响应式：小屏幕时充值区域改为单列 */
    @media (max-width: 768px) {
        #panel-recharge > div:nth-child(2) {
            grid-template-columns: 1fr !important;
        }
    }
}