/* 页面标题区域样式 - 与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;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 卡片样式 */
.cp-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.cp-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.cp-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.cp-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.cp-card-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.cp-card-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.cp-card-title {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.cp-card-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* 二维码生成区域 */
.qrcode-generator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.qrcode-input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qrcode-textarea {
    flex: 1;
    min-height: 250px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    resize: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.qrcode-textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.qrcode-textarea::placeholder {
    color: #94a3b8;
}

.qrcode-preview-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    min-height: 320px;
}

.qrcode-preview-section #gongju_erweima_qrcode {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-preview-section img {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.qrcode-preview-placeholder {
    color: #94a3b8;
    text-align: center;
}

.qrcode-preview-placeholder svg {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 按钮样式 */
.qrcode-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 100px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
}

.qrcode-btn svg {
    width: 16px;
    height: 16px;
}

.qrcode-btn:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
    transform: translateY(-1px);
}

.qrcode-btn:active:not(:disabled) {
    transform: translateY(0);
}

.qrcode-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.qrcode-btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.25);
}

.qrcode-btn-secondary:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.35);
}

.qrcode-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 登录提示 */
.login-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #fff3e0;
    border-radius: 10px;
    color: #ea580c;
    font-weight: 500;
    border: 1px dashed #fb923c;
}

/* 文件上传区域 */
.qrcode-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    background: #fafafa;
}

.qrcode-upload-area:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.qrcode-upload-area.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: scale(1.01);
}

.qrcode-upload-content p {
    margin: 10px 0;
    color: #475569;
    font-size: 15px;
}

.qrcode-upload-hint {
    color: #94a3b8 !important;
    font-size: 13px !important;
}

.qrcode-upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.qrcode-file-input {
    display: none;
}

.qrcode-file-label {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.qrcode-file-label:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #334155;
}

/* 文件表格 */
.qrcode-table-container {
    overflow-x: auto;
}

.qrcode-data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.qrcode-data-table th,
.qrcode-data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.qrcode-data-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.qrcode-data-table tbody tr:hover {
    background: #fafafa;
}

.qrcode-data-table tbody tr:last-child td {
    border-bottom: none;
}

.qrcode-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

/* API文档区域 */
.api-documentation {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
}

.api-section-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 25px 0 15px 0;
    padding-left: 15px;
    border-left: 4px solid #8b5cf6;
}

.api-section-title:first-child {
    margin-top: 0;
}

.api-code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.api-code-block code {
    white-space: pre-wrap;
    word-break: break-all;
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.api-table th,
.api-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.api-table th {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #fff;
    font-weight: 600;
}

.api-table tbody tr:hover {
    background: #fafafa;
}

.api-note {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 20px;
}

.api-note h3 {
    color: #92400e;
    font-size: 15px;
    margin: 0 0 10px 0;
}

.api-note ul {
    margin: 0;
    padding-left: 20px;
    color: #78350f;
}

.api-note li {
    margin-bottom: 8px;
    font-size: 14px;
}

.api-note p {
    color: #78350f;
    font-size: 14px;
    margin: 5px 0;
}

/* 定价卡片 */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.pricing-card {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #22c55e;
}

.pricing-card .points {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 32px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 4px;
}

.pricing-card .unit-price {
    font-size: 13px;
    color: #94a3b8;
}

.recharge-button-container {
    text-align: center;
    margin-top: 30px;
}

.recharge-button-container a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Toast提示 */
.qrcode-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1e293b;
    color: #fff;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.qrcode-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qrcode-generator {
        grid-template-columns: 1fr;
    }

    .qrcode-btn-group {
        justify-content: center;
    }

    .pricing-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .cp-card {
        padding: 20px;
    }

    .page-title {
        font-size: 28px;
    }

    .qrcode-preview-section {
        padding: 20px;
    }

    .qrcode-table-container {
        overflow-x: auto;
    }

    .qrcode-data-table {
        display: block;
    }
}
