/* ========== 通用页面样式 ========== */

/* 页面容器 */
.cp-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* 标题区域 */
.cp-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
}

.cp-hero::before {
    content: '';
    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%;
}

.cp-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%;
}

.cp-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cp-breadcrumb {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.cp-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.cp-breadcrumb a:hover {
    color: #fff;
}

.cp-breadcrumb span {
    margin: 0 8px;
}

.cp-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.cp-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

/* 主内容区域 */
.cp-content {
    max-width: 1200px;
    margin: -30px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* 卡片样式 */
.cp-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.cp-card-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.cp-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cp-card-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-top: 6px;
}

/* 输入区域 */
.cp-input-section {
    margin-bottom: 24px;
}

.cp-input-group {
    margin-bottom: 16px;
}

.cp-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

/* 通用输入框样式 */
.cp-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #334155;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.cp-input:focus {
    outline: none;
    border-color: #7c3aed;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.cp-input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.7;
}

.cp-input-group input[type="text"],
.cp-input-group input[type="number"],
.cp-input-group input[type="password"],
.cp-input-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #334155;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.cp-input-group input[type="text"]:focus,
.cp-input-group input[type="number"]:focus,
.cp-input-group input[type="password"]:focus,
.cp-input-group select:focus {
    outline: none;
    border-color: #7c3aed;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.cp-input-group-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* 按钮样式 */
.cp-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cp-btn-primary {
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    color: #fff;
}

.cp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.cp-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.cp-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.cp-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.cp-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.cp-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.cp-btn-secondary:hover {
    background: #e2e8f0;
}

/* 表格样式 */
.cp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.cp-table th {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    padding: 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

.cp-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #475569;
}

.cp-table tr:hover td {
    background: #f8fafc;
}

.cp-table tr:last-child td {
    border-bottom: none;
}

/* 提示消息 */
.cp-message-box {
    margin: 16px 0;
    padding: 16px 20px;
    border-radius: 12px;
    display: none;
    align-items: center;
    gap: 10px;
}

.cp-message-box.success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border: 1px solid #86efac;
}

.cp-message-box.error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.cp-message-box.info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* 功能说明区域 */
.cp-info-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.cp-info-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cp-info-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    border-radius: 2px;
}

.cp-info-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 12px;
}

.cp-info-section p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 12px;
}

.cp-info-section ul {
    list-style: none;
    padding-left: 0;
}

.cp-info-section li {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.cp-info-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #7c3aed;
}

/* 警告/注意框 */
.cp-warning-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.cp-warning-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
}

.cp-warning-box p,
.cp-warning-box li {
    font-size: 13px;
    color: #b45309;
    line-height: 1.6;
}

/* 代码块 */
.cp-code-block {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin: 16px 0;
}

.cp-code-block code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.6;
}

/* 表格内表格 */
.cp-inner-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cp-inner-table th,
.cp-inner-table td {
    padding: 10px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.cp-inner-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

.cp-inner-table tr:nth-child(even) {
    background: #fafafa;
}

/* 两栏布局 */
.cp-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

/* 侧边栏 */
.cp-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.cp-side-nav {
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.cp-side-section {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cp-side-section:last-child {
    border-bottom: none;
}

.cp-side-header {
    padding: 0 16px;
    margin-bottom: 8px;
}

.cp-side-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    padding-left: 12px;
    border-left: 3px solid #7c3aed;
    line-height: 1.4;
}

.cp-side-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cp-side-menu li {
    margin: 2px 0;
}

.cp-side-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.cp-side-link:hover {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: #7c3aed;
}

.cp-side-link-danger {
    color: #ef4444;
}

.cp-side-link-danger:hover {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
}

.cp-side-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

/* Tab切换样式 */
.cp-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.cp-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cp-tab:hover {
    background: #f1f5f9;
    color: #475569;
}

.cp-tab.active {
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.cp-tab-content {
    display: none;
}

.cp-tab-content.active {
    display: block;
}

/* 徽章样式 */
.cp-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.cp-badge-success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}

.cp-badge-warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #b45309;
}

.cp-badge-error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

/* 金额样式 */
.cp-amount {
    font-weight: 700;
    color: #7c3aed;
}

/* 代码块样式 */
.cp-code-block {
    position: relative;
    background: #1e293b;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    overflow: hidden;
}

.cp-code-block code {
    color: #e2e8f0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    word-break: break-all;
    display: block;
}

.cp-copy-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 16px;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cp-copy-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.cp-copy-btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.cp-code-inline {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: #7c3aed;
}

.cp-code-block-lg {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    overflow-x: auto;
    color: #e2e8f0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
}

/* FAQ样式 */
.cp-faq-list {
    margin-top: 16px;
}

.cp-faq-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.cp-faq-question {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.cp-faq-answer {
    color: #64748b;
    padding-left: 16px;
}

/* 信息框样式 */
.cp-info-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.cp-info-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.cp-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cp-info-list li {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.cp-list-icon {
    position: absolute;
    left: 0;
    color: #7c3aed;
    font-size: 16px;
}

/* 模态框样式 */
.cp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.cp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.cp-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.cp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.cp-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.cp-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cp-modal-close:hover {
    background: #e2e8f0;
}

.cp-modal-body {
    padding: 24px;
    text-align: center;
}

.cp-modal-body p {
    font-size: 15px;
    color: #475569;
}

.cp-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    justify-content: flex-end;
}

/* Toast消息样式 */
.cp-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.cp-toast-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.cp-toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* 文字卡片设计器样式 */
.zhishikapian-container {
    padding: 24px;
}

.zhishikapian-designer {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
}

.zhishikapian-control-panel {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
}

.zhishikapian-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.zhishikapian-tab {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zhishikapian-tab:hover {
    border-color: #7c3aed;
    color: #7c3aed;
}

.zhishikapian-tab.active {
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    border-color: transparent;
    color: #fff;
}

.zhishikapian-tab-content {
    display: none;
}

.zhishikapian-tab-content.active {
    display: block;
}

.zhishikapian-control-group {
    margin-bottom: 16px;
}

.zhishikapian-control-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.zhishikapian-input,
.zhishikapian-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    transition: all 0.2s ease;
}

.zhishikapian-input:focus,
.zhishikapian-select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.zhishikapian-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
}

.zhishikapian-textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.zhishikapian-char-count {
    text-align: right;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.zhishikapian-color-picker {
    width: 100%;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
}

.zhishikapian-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zhishikapian-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e2e8f0;
    border-radius: 3px;
    cursor: pointer;
}

.zhishikapian-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.zhishikapian-slider-value {
    width: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #7c3aed;
    text-align: right;
}

.zhishikapian-generate-btn {
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zhishikapian-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.zhishikapian-login-hint {
    display: block;
    padding: 12px;
    margin-top: 16px;
    text-align: center;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 8px;
    font-weight: 600;
}

.zhishikapian-preview {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
}

.zhishikapian-card {
    width: 400px;
    height: 500px;
    padding: 40px;
    border-radius: 16px;
    background: #0f172a;
    color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.zhishikapian-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.zhishikapian-card-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.zhishikapian-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.zhishikapian-card-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.zhishikapian-card-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.zhishikapian-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.zhishikapian-special-text {
    font-size: 24px;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 20px;
    text-align: center;
}

.zhishikapian-normal-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 8px;
}

.zhishikapian-card-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.zhishikapian-appreciation-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.zhishikapian-appreciation-label {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 11px;
    margin-right: 8px;
}

/* 邀请注册页面样式 */
.cp-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cp-section {
    margin-bottom: 24px;
}

.cp-section:last-child {
    margin-bottom: 0;
}

.cp-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid #7c3aed;
}

.cp-info-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 20px;
}

.cp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.cp-info-item {
    font-size: 14px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.cp-info-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.cp-info-value {
    font-size: 14px;
    color: #475569;
    word-break: break-all;
}

.cp-info-note {
    margin-top: 16px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    border-left: 4px solid #f59e0b;
}

.cp-note-icon {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.cp-field-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
}

.cp-field-list li {
    font-size: 14px;
    color: #475569;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.cp-field-list li:last-child {
    border-bottom: none;
}

.cp-field-list li strong {
    color: #1e293b;
    font-weight: 600;
}

.cp-form-notes {
    margin-top: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.cp-form-notes p {
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.6;
}

.cp-form-notes p:last-child {
    margin-bottom: 0;
}

.cp-success-text {
    color: #22c55e;
    font-weight: 600;
}

.cp-warning-text {
    display: block;
    padding: 12px;
    margin-top: 12px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: #b45309;
    font-weight: 600;
}

/* 渠道查询证书样式 */
.certificate-card {
    background: #fff;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 24px;
}

.cert-wrapper {
    position: relative;
}

.cert-border {
    background: linear-gradient(145deg, #fef3c7 0%, #fde68a 50%, #fef3c7 100%);
    border-radius: 8px;
    padding: 4px;
    position: relative;
}

.cert-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid #b45309;
}

.cert-corner-tl {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
    border-radius: 8px 0 0 0;
}

.cert-corner-tr {
    top: 8px;
    right: 8px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 8px 0 0;
}

.cert-corner-bl {
    bottom: 8px;
    left: 8px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 8px;
}

.cert-corner-br {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 8px 0;
}

.cert-ribbon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    padding: 8px 32px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    z-index: 10;
}

.ribbon-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.cert-inner {
    background: linear-gradient(145deg, #fffbeb 0%, #fefce8 100%);
    border-radius: 6px;
    padding: 32px;
    min-height: 450px;
}

.cert-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #fcd34d;
}

.cert-seal {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.seal-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid #dc2626;
    border-radius: 50%;
    animation: certPulse 2s infinite;
}

@keyframes certPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.seal-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 800;
    color: #dc2626;
}

.cert-title {
    font-size: 28px;
    font-weight: 800;
    color: #92400e;
    margin: 0 0 12px;
    letter-spacing: 6px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.cert-subtitle {
    font-size: 14px;
    color: #92400e;
    letter-spacing: 4px;
    margin: 0;
    font-weight: 500;
}

.cert-body {
    margin-bottom: 32px;
}

.cert-field {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cert-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field-label {
    display: block;
    font-size: 12px;
    color: #78350f;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

.field-value {
    display: block;
    font-size: 16px;
    color: #451a03;
    font-weight: 700;
}

.cert-footer {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding-top: 24px;
    border-top: 2px solid #fcd34d;
}

.cert-signature {
    text-align: center;
    padding-top: 80px;
}

.signature-line {
    width: 120px;
    height: 1px;
    background: #92400e;
    margin: 0 auto 8px;
}

.signature-text {
    font-size: 12px;
    color: #78350f;
}

.cert-stamp {
    position: absolute;
    top: 24px;
    right: 0;
    transform: rotate(-12deg);
}

.stamp-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* 守信承诺书样式 */
.promise-card {
    margin-top: 24px;
}

.promise-content {
    padding: 24px;
}

.promise-intro {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 24px;
}

.promise-intro .company-name {
    font-weight: 700;
    color: #7c3aed;
}

.promise-list {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.promise-list li {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border-left: 4px solid #06b6d4;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.promise-sign {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.promise-sign .sign-info,
.promise-sign .sign-date {
    display: flex;
    align-items: center;
}

.promise-sign .sign-label {
    font-size: 14px;
    color: #64748b;
    margin-right: 8px;
}

.promise-sign .sign-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* 无数据提示样式 */
.no-data-card {
    text-align: center;
    padding: 48px;
}

.no-data-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.no-data-icon {
    color: #94a3b8;
    margin-bottom: 16px;
}

.no-data-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px;
}

.no-data-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* 视频指南样式 */
.video-guide-content {
    padding: 4px;
}

.guide-section {
    display: flex;
    gap: 16px;
    padding: 16px;
    margin-bottom: 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.guide-section:hover {
    background: #f1f5f9;
}

.section-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    border-radius: 10px;
    color: #fff;
}

.warning-section {
    background: #fffbeb;
    border-color: #fcd34d;
}

.warning-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.section-content {
    flex: 1;
    min-width: 0;
}

.section-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 6px;
}

.section-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 10px;
    line-height: 1.5;
}

.download-item {
    margin-bottom: 10px;
}

.download-item:last-child {
    margin-bottom: 0;
}

.download-link {
    display: block;
    font-size: 13px;
    color: #7c3aed;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 12px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 6px;
    margin-bottom: 6px;
    word-break: break-all;
    transition: all 0.2s ease;
}

.download-link:hover {
    background: rgba(124, 58, 237, 0.15);
}

.extract-code {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 12px;
}

.code-label {
    font-size: 12px;
    color: #64748b;
}

.code-value {
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.naming-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.naming-list li {
    padding: 8px 12px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 6px;
    border-left: 3px solid #7c3aed;
}

.naming-list code {
    font-size: 12px;
    color: #1e293b;
    font-weight: 500;
    font-family: 'Consolas', 'Monaco', monospace;
}

.naming-list .example {
    font-size: 12px;
    color: #64748b;
    margin-left: 6px;
}

.id-example-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.id-example-list li {
    padding: 6px 0;
    font-size: 13px;
    color: #475569;
}

.id-example-list code {
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
}

.id-example-list a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}

.id-example-list a:hover {
    text-decoration: underline;
}

.search-tip {
    background: #e0e7ff;
    border-radius: 8px;
    padding: 12px;
    margin-top: 6px;
}

.search-tip p {
    font-size: 13px;
    color: #4338ca;
    margin: 0 0 8px;
    font-weight: 500;
}

.search-codes {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-codes code {
    font-size: 12px;
    color: #fff;
    background: #4338ca;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.search-codes .or {
    font-size: 12px;
    color: #6366f1;
    font-weight: 500;
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-list li {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #78350f;
    border-left: 3px solid #f59e0b;
}

.faq-list a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}

.faq-list a:hover {
    text-decoration: underline;
}

.no-access-card {
    text-align: center;
    padding: 32px;
}

.no-access-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.no-access-icon {
    color: #94a3b8;
    margin-bottom: 12px;
}

.no-access-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 6px;
}

.no-access-content p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* 数据库申请页面样式 */
.db-hint {
    font-size: 13px;
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 12px;
}

.db-hint:last-child {
    margin-top: 12px;
}

/* API接口页面样式 */
.api-content {
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
    padding: 0;
}

.api-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 20px 0 12px;
    padding-left: 12px;
    border-left: 3px solid #7c3aed;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.05) 0%, transparent 100%);
}

.api-content p {
    margin-bottom: 12px;
}

.api-content a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}

.api-content a:hover {
    text-decoration: underline;
}

.api-image-wrapper {
    margin: 12px 0;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.api-image-wrapper img {
    max-width: 100%;
    height: auto;
}

.api-code-block {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 14px 18px;
    border-radius: 10px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    margin: 10px 0;
    overflow-x: auto;
    border: 1px solid #334155;
}

.api-json-block {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #a5b4fc;
    padding: 16px;
    border-radius: 10px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    margin: 10px 0;
    overflow-x: auto;
    border: 1px solid #4c1d95;
}

.api-json-block pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.api-table {
    margin: 12px 0;
}

.api-table code {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
}

.api-list {
    list-style: none;
    padding: 0;
}

.api-list li {
    position: relative;
    padding: 10px 14px 10px 36px;
    margin-bottom: 6px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #7c3aed;
    font-size: 13px;
}

.api-list li::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #7c3aed;
    border-radius: 50%;
}

.api-list code {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
}

/* ========== 抖音下载页面专属样式 ========== */

/* 表格内按钮样式 */
.douyin-table .cp-btn {
    padding: 8px 14px;
    font-size: 12px;
    margin: 2px;
}

/* 表格行悬停效果 */
.douyin-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.03) 0%, rgba(0, 212, 255, 0.03) 100%);
}

/* 表头居中显示 */
.douyin-table th {
    text-align: center;
}

/* 状态徽章样式 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}

.status-pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.status-failed {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

/* 可点击链接样式 */
.clickable-link {
    color: #7c3aed;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.clickable-link:hover {
    color: #5b21b6;
    text-decoration: underline;
}

/* 文件上传按钮样式 */
.file-upload-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 12px;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

/* 登录提示样式 */
.login-prompt {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px dashed #f59e0b;
    border-radius: 12px;
    color: #b45309;
    font-weight: 600;
    font-size: 14px;
}

/* 功能说明区域样式 */
.douyin-info-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 28px;
    margin-top: 24px;
    border: 1px solid #e2e8f0;
}

.douyin-info-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.douyin-info-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    border-radius: 2px;
}

.douyin-info-list {
    list-style: none;
    padding-left: 0;
}

.douyin-info-list li {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}

.douyin-info-list li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    border-radius: 50%;
}

.douyin-info-list strong {
    color: #1e293b;
}

/* 注意框样式 */
.douyin-note-box {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.douyin-note-box h4 {
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.douyin-note-box ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.douyin-note-box li {
    font-size: 14px;
    color: #b45309;
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.douyin-note-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f59e0b;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .file-upload-btn {
        width: 100%;
    }
    
    .login-prompt {
        width: 100%;
        text-align: center;
    }
    
    .douyin-info-section {
        padding: 20px;
    }
}

/* 响应式设计 */
@media (max-width: 900px) {
    .cp-layout {
        grid-template-columns: 1fr;
    }
    
    .cp-title {
        font-size: 28px;
    }
    
    .cp-input-group-row {
        grid-template-columns: 1fr;
    }
    
    .cp-button-group {
        flex-direction: column;
    }
    
    .cp-btn {
        width: 100%;
    }
    
    .cp-table {
        display: block;
        overflow-x: auto;
    }
    
    .zhishikapian-designer {
        grid-template-columns: 1fr;
    }
    
    .zhishikapian-preview {
        order: -1;
    }
}
