/* 页面标题区域样式 - 与about-jianjie.html保持一致 */
.page-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4c1d95 70%, #7c3aed 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-hero-bg {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.page-hero-bg-2 {
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 5s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.page-hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.4));
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #00d4ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* 页面容器 */
.cp-wrapper {
    min-height: calc(100vh - 300px);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    padding: 40px 20px;
}

.cp-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* 用户信息卡片 */
.user-info-card {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.user-avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.user-info-content {
    flex: 1;
    min-width: 200px;
}

.user-id {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}

.user-score {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.score-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.score-value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.score-unit {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.user-action {
    flex-shrink: 0;
}

/* 卡片样式 */
.cp-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cp-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.cp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.cp-card-header .header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.header-icon svg {
    width: 22px;
    height: 22px;
}

.header-text {
    flex: 1;
}

.cp-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.cp-card-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.list-count {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}

/* 输入区域 */
.cp-input-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 28px;
}

/* 标签切换 */
.input-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.03);
    padding: 4px;
    border-radius: 12px;
    max-width: 300px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #64748b;
}

.tab-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 输入字段 */
.input-field {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #475569;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    color: #334155;
    transition: all 0.3s ease;
    background: #fff;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-wrapper input::placeholder {
    color: #94a3b8;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.03);
}

.upload-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.upload-area:hover .upload-icon {
    color: #6366f1;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 13px;
    color: #94a3b8;
}

/* 输入操作按钮组 */
.input-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 主操作按钮组 */
.main-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #cbd5e1;
}

.login-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 12px;
    color: #dc2626;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.login-prompt svg {
    width: 18px;
    height: 18px;
}

/* 按钮样式 */
.cp-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cp-btn:hover::before {
    left: 100%;
}

.cp-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.cp-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.cp-btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.cp-btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.4);
}

.cp-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cp-btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.cp-btn-danger {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(248, 113, 113, 0.3);
}

.cp-btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 113, 113, 0.4);
}

.cp-btn-outline {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(10px);
}

.cp-btn-outline:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cp-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.cp-btn:disabled::before {
    display: none;
}

.cp-btn.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
    min-width: auto;
}

.cp-btn svg {
    width: 18px;
    height: 18px;
}

/* 消息提示 */
.cp-message-box {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cp-message-box.success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
    border: 1px solid #86efac;
}

.cp-message-box.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.cp-message-box.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
    border: 1px solid #93c5fd;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.cp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.cp-table thead {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.cp-table th {
    padding: 16px 20px;
    text-align: left;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.cp-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 14px;
}

.cp-table tbody tr:hover {
    background: #f8fafc;
}

.cp-table tbody tr.success-row {
    background: rgba(16, 185, 129, 0.05);
}

.cp-table tbody tr.error-row {
    background: rgba(239, 68, 68, 0.05);
}

.cp-table tr:last-child td {
    border-bottom: none;
}

/* 图片URL单元格 */
.image-url-cell {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 200px;
}

.url-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6366f1;
    font-weight: 500;
}

.copy-icon {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.image-url-cell:hover .copy-icon {
    color: #6366f1;
}

/* 密钥单元格 */
.key-cell {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 提示词单元格 */
.prompt-cell {
    max-height: 80px;
    overflow-y: auto;
    line-height: 1.5;
    color: #334155;
}

/* 状态单元格 */
.status-cell {
    white-space: nowrap;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.badge-processing {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.badge-default {
    background: rgba(148, 163, 184, 0.15);
    color: #64748b;
}

/* 空状态 */
.empty-row {
    background: transparent !important;
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #94a3b8;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 8px;
    color: #64748b;
}

.empty-hint {
    font-size: 14px !important;
    color: #94a3b8 !important;
    margin-bottom: 0 !important;
}

/* 功能说明区域 */
.cp-info-section {
    line-height: 1.8;
    color: #475569;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.info-card-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #fff;
}

.info-icon svg {
    width: 22px;
    height: 22px;
}

.info-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.info-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.info-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.info-icon.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.info-icon.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.info-card-item h4 {
    color: #1e293b;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.info-card-item p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.7;
}

.info-card-item ul,
.info-card-item ol {
    margin: 0 0 12px 20px;
    padding: 0;
}

.info-card-item li {
    padding: 6px 0;
    position: relative;
    font-size: 14px;
}

.info-card-item li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 12px;
    width: 6px;
    height: 6px;
    background: #6366f1;
    border-radius: 50%;
}

.info-card-item strong {
    color: #334155;
}

/* 动画 */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }

    .hero-stats {
        gap: 20px;
        padding: 16px 20px;
    }

    .stat-number {
        font-size: 16px;
    }

    .cp-card {
        padding: 20px;
    }

    .cp-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .input-tabs {
        width: 100%;
        max-width: none;
    }

    .input-actions,
    .main-actions {
        flex-direction: column;
    }

    .cp-btn {
        width: 100%;
    }

    .user-info-card {
        flex-direction: column;
        text-align: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .image-url-cell {
        max-width: 100px;
    }

    .status-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
}