/* 页面标题区域样式 - 与about-jianjie.html保持一致 */
.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 70%, #475569 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(59, 130, 246, 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(59, 130, 246, 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, #3b82f6, #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);
}

/* 主内容区域 */
.main-content {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 卡片样式 */
.cp-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 28px;
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cp-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    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;
}

.cp-card-header .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 12px;
    color: #fff;
}

.header-icon svg {
    width: 20px;
    height: 20px;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.cp-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.cp-card-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 4px 0 0;
}

/* 输入区域 */
.cp-input-section {
    margin-bottom: 24px;
}

.input-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: #3b82f6;
}

.tab-btn.active {
    color: #3b82f6;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 1px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.input-field {
    display: flex;
    flex-direction: column;
}

.field-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    width: 18px;
    height: 18px;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-wrapper select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 48px;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.upload-area:hover .upload-icon {
    color: #3b82f6;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 8px;
}

.upload-hint {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* 按钮样式 */
.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cp-btn svg {
    width: 16px;
    height: 16px;
}

.cp-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.cp-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.cp-btn-secondary:hover {
    background: #e2e8f0;
}

.cp-btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.cp-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.cp-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.cp-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.cp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.cp-btn.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
}

.cp-btn.btn-sm svg {
    width: 14px;
    height: 14px;
}

/* 按钮组 */
.input-actions,
.main-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* 用户信息卡片 */
.user-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    color: #fff;
}

.user-info-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar svg {
    width: 24px;
    height: 24px;
}

.user-details h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
}

.user-details p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.user-score {
    text-align: right;
}

.user-score .score-label {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.user-score .score-value {
    font-size: 24px;
    font-weight: 700;
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-score .score-unit {
    font-size: 14px;
    opacity: 0.8;
}

/* 登录提示 */
.login-prompt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    color: #856404;
    font-size: 14px;
}

.login-prompt svg {
    width: 16px;
    height: 16px;
}

/* 消息提示 */
.cp-message-box {
    display: none;
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cp-message-box.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.cp-message-box.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.cp-message-box.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.cp-message-box.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* 列表区域 */
.list-section {
    overflow-x: auto;
}

.table-container {
    min-width: 100%;
}

.cp-table {
    width: 100%;
    border-collapse: collapse;
}

.cp-table thead {
    background: #f8fafc;
}

.cp-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.cp-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.cp-table tbody tr:hover {
    background: #fafafa;
}

.cp-table tbody tr.success-row {
    background: #f0fdf4;
}

.cp-table tbody tr.error-row {
    background: #fef2f2;
}

.cp-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #334155;
}

.image-url-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    color: #3b82f6;
    position: relative;
}

.image-url-cell:hover {
    text-decoration: underline;
}

.copy-icon {
    display: none;
    position: absolute;
    right: 0;
    width: 14px;
    height: 14px;
    color: #94a3b8;
}

.image-url-cell:hover .copy-icon {
    display: inline;
}

.url-text {
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.prompt-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
}

.prompt-cell:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    bottom: 100%;
    background: #1e293b;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: normal;
    max-width: 400px;
    z-index: 100;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.status-cell {
    white-space: nowrap;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-processing {
    background: #fef3c7;
    color: #92400e;
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-default {
    background: #f1f5f9;
    color: #64748b;
}

/* 空状态 */
.empty-row td {
    padding: 40px !important;
    text-align: center;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #94a3b8;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.empty-state p {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 500;
    color: #64748b;
}

.empty-hint {
    font-size: 14px !important;
    color: #94a3b8 !important;
}

/* 功能介绍 */
.info-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 32px;
}

.info-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 24px;
}

.info-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 12px;
}

.info-section p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px;
}

.info-section ul,
.info-section ol {
    padding-left: 20px;
    margin: 0 0 16px;
}

.info-section li {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 8px;
}

.info-section strong {
    color: #334155;
}

/* 功能特性网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.feature-icon.segmentation {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.feature-icon.watermark {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.feature-icon.compress {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}

.feature-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px;
}

.feature-card p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* 动画旋转 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }

    .page-hero {
        padding: 40px 20px;
    }

    .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;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}