/* 页面标题区域样式 - 与about-jianjie.html保持一致 */
.page-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.page-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

/* 页面容器 */
.cp-wrapper {
    min-height: calc(100vh - 300px);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 40px 20px;
}

.cp-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* 卡片样式 */
.cp-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.cp-card-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.cp-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.cp-card-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

/* 输入区域 */
.cp-input-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 24px;
}

.cp-input-group {
    margin-bottom: 16px;
}

.cp-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #475569;
    font-size: 14px;
}

.cp-input-group input[type="text"],
.cp-input-group input[type="file"],
.cp-input-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #334155;
    transition: all 0.3s ease;
    background: #fff;
}

.cp-input-group input[type="text"]:focus,
.cp-input-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.cp-input-group input[type="text"]::placeholder {
    color: #94a3b8;
}

/* 文件上传包装器 */
.file-input-wrapper {
    position: relative;
    display: inline-block;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* 按钮样式 */
.cp-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.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:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* 按钮组 */
.cp-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

/* 消息提示 */
.cp-message-box {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.cp-message-box.success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.cp-message-box.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.cp-message-box.info {
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* 表格样式 */
.cp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.cp-table thead {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.cp-table th {
    padding: 14px 20px;
    text-align: left;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.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 tr:last-child td {
    border-bottom: none;
}

.cp-table a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cp-table a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* 链接单元格 */
.link-cell {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clickable-cell {
    cursor: pointer;
    color: #6366f1;
    text-decoration: underline;
}

.clickable-cell:hover {
    color: #4f46e5;
}

/* 路径单元格 */
.path-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 操作单元格 */
.action-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 功能说明区域 */
.cp-info-section {
    line-height: 1.8;
    color: #475569;
    font-size: 14px;
}

.cp-info-section ul {
    list-style: none;
    padding: 0;
}

.cp-info-section li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14px;
}

.cp-info-section li:last-child {
    border-bottom: none;
}

.cp-info-section li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 16px;
    width: 6px;
    height: 6px;
    background: #6366f1;
    border-radius: 50%;
}

.cp-info-section strong {
    color: #334155;
}

/* 警告提示框 */
.cp-warning-box {
    background: #fef3c7;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid #f59e0b;
}

.cp-warning-box h4 {
    color: #92400e;
    margin-top: 0;
    font-size: 15px;
}

.cp-warning-box ul {
    margin: 10px 0 0 20px;
    padding: 0;
    color: #b45309;
}

.cp-warning-box li {
    padding: 5px 0;
    font-size: 14px;
}

/* 使用提示区域 */
.usage-tips {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #86efac;
}

.usage-tips div {
    color: #166534;
    margin-bottom: 8px;
    font-size: 14px;
}

.usage-tips div:last-child {
    margin-bottom: 0;
}

.usage-tips a {
    color: #15803d;
    font-weight: 600;
    text-decoration: none;
}

.usage-tips a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }

    .cp-card {
        padding: 20px;
    }

    .cp-button-group {
        flex-direction: column;
    }

    .cp-btn {
        width: 100%;
    }

    .cp-table {
        display: block;
        overflow-x: auto;
    }

    .action-cell {
        flex-direction: column;
    }

    .cp-input-group input[type="text"] {
        width: 100%;
        box-sizing: border-box;
    }
}