/* ========================================
   短信平台 - 全局样式
   PHP 7.2 兼容，简洁现代风格
   ======================================== */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --success: #059669;
    --success-light: #ecfdf5;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

/* ========== 重置 ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 头部导航 ========== */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo:hover {
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav a {
    color: var(--gray-600);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav a:hover {
    color: var(--primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width 0.25s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* ========== 底部 ========== */
.footer {
    margin-top: auto;
    background: var(--gray-900);
    padding: 56px 0 0;
    color: var(--gray-400);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.footer-logo:hover {
    color: #a5b4fc;
}

.footer-desc {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 280px;
    margin: 0;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a {
    display: block;
    color: var(--gray-500);
    font-size: 13px;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.footer-contact-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-500);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #4f46e5);
    color: #fff;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background: #fff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    border-color: var(--primary-hover);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 10px;
    font-weight: 600;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== 卡片 ========== */
.card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.card-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header h2, .card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.card-header::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--primary);
    border-radius: 2px;
}

/* ========== 表单 ========== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: var(--gray-800);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
    background: #fff;
}

.form-input::placeholder {
    color: var(--gray-400);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* Dashboard 中的表单输入 */
.dashboard .form-input {
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    transition: all 0.2s;
}

.dashboard .form-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.dashboard .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.dashboard .form-group {
    margin-bottom: 20px;
}

.form-hint {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

.form-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.form-group.error .form-error {
    display: block;
}

.form-group.error .form-input {
    border-color: var(--danger);
}

/* ========== 提示消息 ========== */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    animation: alertSlideIn 0.3s ease;
}

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alert::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid #a7f3d0;
}
.alert-success::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid #fecaca;
}
.alert-danger::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") center/contain no-repeat;
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid #fde68a;
}

.alert-info {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid #c7d2fe;
}

/* ========== 首页 Hero ========== */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8faff 0%, #eef2ff 40%, var(--gray-50) 100%);
}

/* Hero 背景装饰 */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    top: -180px;
    right: -120px;
    animation: heroFloat 8s ease-in-out infinite;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
    bottom: -80px;
    left: -60px;
    animation: heroFloat 10s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #818cf8, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: heroPulse 6s ease-in-out infinite;
}

.hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--primary) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.06;
}

/* Hero 网格背景 */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79,70,229,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79,70,229,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Hero 光晕 */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}

.hero-glow-1 {
    width: 350px;
    height: 350px;
    background: #818cf8;
    top: -50px;
    left: -80px;
    animation: heroGlowFloat 12s ease-in-out infinite;
}

.hero-glow-2 {
    width: 250px;
    height: 250px;
    background: #6366f1;
    bottom: -40px;
    right: -60px;
    animation: heroGlowFloat 15s ease-in-out infinite reverse;
}

@keyframes heroGlowFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(15px,-10px) scale(1.1); }
    66% { transform: translate(-10px,15px) scale(0.9); }
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.03); }
}

@keyframes heroPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.12; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.06; }
}

/* Hero 标题高亮增强 */
.hero-title-highlight {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 40%, #818cf8 70%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: titleShimmer 4s ease-in-out infinite;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-br { display: none; }
@media (min-width: 769px) { .hero-br { display: inline; } }

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    animation: heroPulse 2s ease-in-out infinite;
    display: inline-block;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 56px;
}

/* Hero 数据统计 */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.hero-stat {
    padding: 0 40px;
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-stat-label {
    display: block;
    font-size: 14px;
    color: var(--gray-400);
    margin-top: 4px;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

/* ========== Section 通用标题 ========== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========== 特性 ========== */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #818cf8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    border-color: var(--gray-200);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #fff;
    border-radius: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* 特性卡片颜色变体 */
.fc-violet .feature-icon { background: #eef2ff; color: #4f46e5; }
.fc-violet:hover .feature-icon { background: #4f46e5; color: #fff; }
.fc-violet::before { background: linear-gradient(90deg, #4f46e5, #818cf8); }

.fc-amber .feature-icon { background: #fffbeb; color: #d97706; }
.fc-amber:hover .feature-icon { background: #d97706; color: #fff; }
.fc-amber::before { background: linear-gradient(90deg, #d97706, #fbbf24); }

.fc-cyan .feature-icon { background: #ecfeff; color: #0891b2; }
.fc-cyan:hover .feature-icon { background: #0891b2; color: #fff; }
.fc-cyan::before { background: linear-gradient(90deg, #0891b2, #22d3ee); }

.fc-emerald .feature-icon { background: #ecfdf5; color: #059669; }
.fc-emerald:hover .feature-icon { background: #059669; color: #fff; }
.fc-emerald::before { background: linear-gradient(90deg, #059669, #34d399); }

.fc-rose .feature-icon { background: #fff1f2; color: #e11d48; }
.fc-rose:hover .feature-icon { background: #e11d48; color: #fff; }
.fc-rose::before { background: linear-gradient(90deg, #e11d48, #fb7185); }

.fc-sky .feature-icon { background: #f0f9ff; color: #0284c7; }
.fc-sky:hover .feature-icon { background: #0284c7; color: #fff; }
.fc-sky::before { background: linear-gradient(90deg, #0284c7, #38bdf8); }

/* ========== 应用场景 ========== */
.scenarios {
    padding: 80px 0;
    background: #fff;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.scenario-card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 20px;
    padding: 36px 28px 28px;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    position: relative;
    overflow: hidden;
}

.scenario-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.scenario-card:nth-child(1)::after { background: rgba(79,70,229,0.05); }
.scenario-card:nth-child(2)::after { background: rgba(217,119,6,0.05); }
.scenario-card:nth-child(3)::after { background: rgba(8,145,178,0.05); }

.scenario-card:hover::after {
    opacity: 1;
    transform: scale(3);
}

.scenario-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    transform: translateY(-4px);
    border-color: transparent;
}

.scenario-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.sc-icon-verify { background: #eef2ff; color: #4f46e5; }
.sc-icon-notify { background: #fffbeb; color: #d97706; }
.sc-icon-market { background: #ecfeff; color: #0891b2; }

.scenario-card:hover .scenario-icon-wrap {
    transform: scale(1.05);
    border-radius: 20px;
}

.scenario-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.scenario-content p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 18px;
}

.scenario-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.scenario-tags span {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--gray-50);
    color: var(--gray-500);
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.scenario-card:hover .scenario-tags span {
    background: var(--primary-light);
    color: var(--primary);
    border-color: transparent;
}

@media (max-width: 768px) {
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== API 文档 ========== */
.docs {
    padding: 60px 0;
    background: #fff;
}

.docs h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--gray-900);
}

.docs-section {
    margin-bottom: 32px;
}

.docs-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.docs-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: var(--gray-700);
}

/* 文档页 Hero */
.docs-hero {
    background: linear-gradient(180deg, #f8faff 0%, #eef2ff 60%, var(--gray-50) 100%);
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--gray-100);
}

.docs-hero-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.docs-hero-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
    flex-shrink: 0;
}

.docs-hero-content h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.docs-hero-content p {
    font-size: 15px;
    color: var(--gray-500);
    margin: 0;
    max-width: 480px;
}

.docs-hero-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.docs-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.docs-meta-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.docs-meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 6px;
}

.docs-meta-value code {
    background: var(--gray-100);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--gray-700);
    font-family: "SF Mono", "Fira Code", monospace;
}

/* 方法标签 */
.method-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    font-family: "SF Mono", "Fira Code", monospace;
    letter-spacing: 0.02em;
}

.method-get {
    background: #dbeafe;
    color: #1d4ed8;
}

.method-post {
    background: #fce7f3;
    color: #be185d;
}

.method-tag-sm {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    font-family: "SF Mono", "Fira Code", monospace;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.method-get-sm {
    background: #dbeafe;
    color: #1d4ed8;
}

.method-post-sm {
    background: #fce7f3;
    color: #be185d;
}

/* 文档布局 */
.docs-layout {
    display: flex;
    gap: 40px;
    padding: 40px 20px;
    align-items: flex-start;
}

.docs-sidebar {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 84px;
}

.docs-nav {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 8px;
}

.docs-nav-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 12px 8px;
}

.docs-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.docs-nav-item:hover {
    background: var(--gray-50);
    color: var(--gray-800);
}

.docs-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.docs-nav-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.docs-nav-item.active svg {
    opacity: 1;
}

.docs-main {
    flex: 1;
    min-width: 0;
}

/* API 卡片 */
.api-card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    margin-bottom: 28px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.api-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.api-card-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--gray-50);
}

.api-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.api-card-title h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.api-card-desc {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

.api-card-body {
    padding: 28px 32px;
}

.api-endpoint {
    margin-bottom: 28px;
}

.api-endpoint-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.api-section {
    margin-bottom: 32px;
}

.api-section:last-child {
    margin-bottom: 0;
}

.api-section h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-50);
}

/* 代码块 */
.code-block {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 10px;
    font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
    font-size: 14px;
    overflow-x: auto;
    line-height: 1.7;
    margin: 0;
}

.code-block pre {
    padding: 18px 20px;
    margin: 0;
    white-space: pre;
}

.code-block-sm pre {
    padding: 24px 20px;
    font-size: 13px;
}

.code-block .comment { color: #64748b; }
.code-block .key { color: #93c5fd; }
.code-block .string { color: #86efac; }
.code-block .num { color: #fca5a5; }

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px 10px 0 0;
}

.code-lang {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    font-family: "SF Mono", "Fira Code", monospace;
}

.code-copy-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all 0.15s;
}

.code-copy-btn:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.08);
}

/* 代码标签切换 */
.code-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
}

.code-tab {
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-bottom: none;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.15s;
    border-radius: 8px 8px 0 0;
}

.code-tab:not(:first-child) {
    margin-left: -1px;
}

.code-tab:hover {
    color: var(--gray-700);
    background: #fff;
}

.code-tab.active {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #1e293b;
}

/* 响应卡片 */
.response-cards {
    display: grid;
    gap: 12px;
}

.response-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.response-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
}

.response-success .response-card-header {
    background: var(--success-light);
    color: var(--success);
}

.response-error .response-card-header {
    background: var(--danger-light);
    color: var(--danger);
}

.response-card .code-block {
    border-radius: 0;
}

/* 类型和必填徽章 */
.type-badge {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    font-family: "SF Mono", "Fira Code", monospace;
}

.required-badge {
    display: inline-block;
    background: #fef2f2;
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

/* 表格容器 */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--gray-100);
    border-radius: 10px;
}

.table-wrap table {
    margin: 0;
}

.table-wrap table th {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.table-wrap table td:last-child,
.table-wrap table th:last-child {
    border-right: none;
}

/* 通用表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}

table th {
    background: var(--gray-50);
    padding: 11px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
    font-size: 13px;
}

table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--gray-50);
    color: var(--gray-600);
}

table tbody tr:last-child td {
    border-bottom: none;
}

table td code {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

/* 文档页响应式 */
@media (max-width: 900px) {
    .docs-layout {
        flex-direction: column;
    }

    .docs-sidebar {
        width: 100%;
        position: static;
    }

    .docs-nav {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        padding: 6px;
    }

    .docs-nav-title {
        display: none;
    }

    .docs-nav-item {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .docs-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .docs-hero-meta {
        gap: 16px;
    }

    .api-card-header,
    .api-card-body {
        padding: 20px;
    }
}

/* ========== 首页计费规则 ========== */
.pricing-info {
    padding: 80px 0;
    background: #fff;
}

.pricing-info-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.pricing-info-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 36px 48px;
    text-align: center;
    min-width: 220px;
    transition: all 0.3s ease;
}

.pricing-info-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(79,70,229,0.08);
    transform: translateY(-2px);
}

.pricing-info-icon {
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.pricing-info-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.pricing-info-count {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 8px;
}

.pricing-info-card p {
    font-size: 13px;
    color: var(--gray-400);
    margin: 0;
}

.pricing-info-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    padding: 0 8px;
}

.pricing-info-example {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-light), #f0f4ff);
    border: 1px solid #dde4ff;
    border-radius: 12px;
    padding: 24px 28px;
}

.pricing-example-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.pricing-info-example p {
    font-size: 15px;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.pricing-info-example p strong {
    color: var(--primary);
}

.pricing-note {
    font-size: 12px;
    color: var(--gray-400);
}

/* ========== 首页接入流程 ========== */
.flow {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, #fff 50%, var(--gray-50) 100%);
    position: relative;
    overflow: hidden;
}

.flow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79,70,229,0.03), transparent 70%);
    pointer-events: none;
}

.flow-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.flow-step {
    text-align: center;
    width: 260px;
    padding: 0 12px;
    position: relative;
}

.flow-step-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(79,70,229,0.25);
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
}

.flow-step-card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 20px;
    padding: 40px 24px 28px;
    margin-top: -21px;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    position: relative;
    z-index: 1;
}

.flow-step:hover .flow-step-card {
    border-color: var(--gray-200);
    box-shadow: 0 16px 40px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.flow-step-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto 18px;
    transition: all 0.3s ease;
}

.flow-step:hover .flow-step-icon {
    background: var(--primary);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(79,70,229,0.2);
}

.flow-step-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.flow-step-card p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.65;
    margin: 0;
}

.flow-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 78px;
    width: 60px;
    flex-shrink: 0;
}

.flow-connector-line {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--gray-200), var(--primary), var(--gray-200));
    border-radius: 1px;
    position: relative;
}

.flow-connector-line::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 768px) {
    .flow-step {
        width: 100%;
        max-width: 300px;
        margin-bottom: 16px;
    }
    .flow-connector {
        width: 100%;
        padding-top: 0;
        padding-bottom: 8px;
    }
    .flow-connector-line {
        width: 2px;
        height: 32px;
    }
    .flow-connector-line::after {
        right: auto;
        top: auto;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%) rotate(135deg);
    }
}

/* ========== FAQ 常见问题 ========== */
.faq {
    padding: 80px 0;
    background: #fff;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}

.faq-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #fff;
    border-color: var(--gray-200);
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

.faq-q {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.faq-q-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-style: italic;
}

.faq-q h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.5;
    margin: 0;
}

.faq-a {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.7;
    margin: 0;
    padding-left: 42px;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== CTA 区域 ========== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
}

.cta-card {
    position: relative;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4338ca 60%, #4f46e5 100%);
    border-radius: 24px;
    padding: 72px 48px;
    text-align: center;
    overflow: hidden;
}

.cta-bg-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 50%);
}

/* CTA 光晕球 */
.cta-glow-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-glow-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
    top: -80px;
    right: -60px;
    animation: ctaOrbFloat 8s ease-in-out infinite;
}

.cta-glow-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(129,140,248,0.2), transparent 70%);
    bottom: -50px;
    left: -40px;
    animation: ctaOrbFloat 10s ease-in-out infinite reverse;
}

@keyframes ctaOrbFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(20px,-15px) scale(1.15); }
}

.cta-card h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-card p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 36px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.cta-card p strong {
    color: #fff;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    font-weight: 500;
}

.btn-outline-light {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-cta-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-weight: 700;
}

.btn-cta-primary:hover {
    background: #f8faff;
    color: var(--primary-hover);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* ========== 登录/注册页 ========== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px - 69px);
    padding: 40px 20px;
    background: linear-gradient(180deg, #f8faff 0%, #eef2ff 60%, var(--gray-50) 100%);
    position: relative;
    overflow: hidden;
}

/* auth 背景装饰 */
.auth-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,70,229,0.06), transparent 70%);
    top: -120px;
    right: -160px;
    pointer-events: none;
}
.auth-page::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.05), transparent 70%);
    bottom: -100px;
    left: -120px;
    pointer-events: none;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    position: relative;
    z-index: 1;
    animation: authSlideUp 0.5s ease;
}

@keyframes authSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto 20px;
}

.auth-card h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--gray-900);
}

.auth-card .subtitle {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* auth 分割线 */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: var(--gray-400);
    font-size: 12px;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* auth 页的 alert 更精致 */
.auth-card .alert {
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    animation: authSlideUp 0.3s ease;
}

.auth-card .alert::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-card .alert-danger::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") center/contain no-repeat;
}

.auth-card .alert-success::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* auth 表单输入增强 */
.auth-card .form-group {
    margin-bottom: 18px;
}

.auth-card .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.auth-card .form-input {
    padding: 12px 14px;
    font-size: 15px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: var(--gray-50);
}

.auth-card .form-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.auth-card .form-input::placeholder {
    color: var(--gray-400);
}

/* auth 提交按钮 */
.auth-card .btn[type="submit"] {
    margin-top: 4px;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
}

/* auth 底部 */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
    font-size: 14px;
    color: var(--gray-500);
}

.auth-footer a {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* 注册成功展示 */
.auth-success-box {
    background: var(--success-light);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.auth-success-box .auth-success-icon {
    width: 44px;
    height: 44px;
    background: var(--success);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 auto 12px;
}

.auth-success-box .auth-success-title {
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: var(--success);
    margin-bottom: 4px;
}

.auth-success-box .auth-success-desc {
    text-align: center;
    font-size: 13px;
    color: #059669;
    opacity: 0.8;
}

/* auth appkey 展示 */
.auth-appkey-display {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.auth-appkey-display .form-input {
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 13px;
    letter-spacing: 0.02em;
    background: var(--gray-50);
    cursor: default;
}

.auth-appkey-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-appkey-label svg {
    color: var(--warning);
}

/* ========== 控制台/后台 ========== */
.dashboard {
    padding: 40px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-header h1::before {
    content: '';
    width: 4px;
    height: 32px;
    background: linear-gradient(180deg, var(--primary), #818cf8);
    border-radius: 2px;
}

/* 统计卡片区域 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gray-200);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: transparent;
}

.stat-card:hover::before {
    height: 4px;
}

.stat-card:nth-child(1):hover::before { background: linear-gradient(90deg, var(--primary), #818cf8); }
.stat-card:nth-child(2):hover::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-card:nth-child(3):hover::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.stat-card:nth-child(4):hover::before { background: linear-gradient(90deg, var(--success), #34d399); }

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.stat-card:nth-child(1) .stat-card-icon { background: var(--primary-light); color: var(--primary); }
.stat-card:nth-child(2) .stat-card-icon { background: #fffbeb; color: #f59e0b; }
.stat-card:nth-child(3) .stat-card-icon { background: #ecfeff; color: #06b6d4; }
.stat-card:nth-child(4) .stat-card-icon { background: var(--success-light); color: var(--success); }

.stat-card:hover .stat-card-icon {
    transform: scale(1.08);
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-value {
    font-size: 34px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.stat-value.primary { color: var(--primary); }
.stat-value.success { color: var(--success); }
.stat-value.danger { color: var(--danger); }

.stat-sub {
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 500;
}

.stat-sub strong {
    color: var(--gray-600);
}

/* ========== 标签页 ========== */
.tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 28px;
    gap: 4px;
    border-bottom: none;
}

.tab-btn {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    background: transparent;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
}

.tab-btn:hover {
    color: var(--gray-700);
    background: rgba(255,255,255,0.6);
}

.tab-btn.active {
    color: var(--primary);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    font-weight: 600;
}

.tab-btn .tab-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tab-content {
    display: none;
    animation: tabFadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== 日志表格容器 ========== */
.log-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--gray-100);
}

.log-table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}

.log-table thead {
    background: var(--gray-50);
}

.log-table thead th {
    padding: 13px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

.log-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-50);
    color: var(--gray-600);
    font-size: 14px;
    transition: background 0.15s;
}

.log-table tbody tr {
    transition: background 0.15s;
}

.log-table tbody tr:hover {
    background: var(--gray-50);
}

.log-table tbody tr:last-child td {
    border-bottom: none;
}

.log-table td {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}
.badge-success::before { background: var(--success); }

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}
.badge-danger::before { background: var(--danger); }

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}
.badge-warning::before { background: var(--warning); }

/* ========== 复制按钮 ========== */
.copy-btn {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    font-size: 13px;
    padding: 4px 10px;
    color: var(--gray-500);
    transition: all 0.2s;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.copy-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
    border-color: var(--primary);
}

/* AppKey 展示区 */
.appkey-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 6px 6px 6px 14px;
    font-size: 14px;
}

.appkey-display code {
    background: var(--gray-50);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: "SF Mono", "Fira Code", monospace;
    font-weight: 500;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
}

.pagination a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79,70,229,0.12);
}

.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(79,70,229,0.25);
}

/* ========== 弹窗 ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
}

.modal h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ========== 审核确认弹窗 ========== */
.review-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    animation: overlayFadeIn 0.2s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.review-confirm-dialog {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 460px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.05);
    animation: reviewDialogIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes reviewDialogIn {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.review-confirm-header {
    padding: 32px 32px 0;
    text-align: center;
}

.review-confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--warning-light);
    color: var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.review-confirm-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.review-confirm-header p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.6;
}

.review-confirm-body {
    padding: 20px 32px;
}

.review-confirm-info {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-confirm-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
}

.review-confirm-item svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.review-confirm-item strong {
    color: var(--gray-800);
}

.review-confirm-warn {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--danger-light);
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--danger);
    line-height: 1.5;
    margin-top: 14px;
}

.review-confirm-warn svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.review-confirm-footer {
    padding: 16px 32px 32px;
    display: flex;
    gap: 12px;
}

.review-confirm-footer .btn {
    flex: 1;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
}

.review-confirm-footer .btn-cancel {
    background: var(--gray-100);
    color: var(--gray-600);
    border: none;
}

.review-confirm-footer .btn-cancel:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.review-confirm-footer .btn-confirm {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.review-confirm-footer .btn-confirm:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .hero {
        padding: 64px 0 48px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 15px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    .hero-stat {
        padding: 0;
    }
    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }
    .hero-stat-value {
        font-size: 28px;
    }
    .nav {
        gap: 12px;
    }
    .nav a {
        font-size: 13px;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .pricing-info-grid {
        flex-direction: column;
    }
    .pricing-info-divider {
        transform: rotate(90deg);
    }
    .flow-steps {
        flex-direction: column;
        align-items: center;
    }
    .flow-step {
        width: 100%;
        max-width: 280px;
    }
    .flow-step-arrow {
        transform: rotate(90deg);
        padding-top: 0;
        padding: 8px 0;
    }
    .cta-card {
        padding: 40px 24px;
    }
    .cta-card h2 {
        font-size: 28px;
    }
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .cta-trust {
        gap: 16px;
    }
    .auth-card {
        padding: 32px 24px;
        border-radius: 16px;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========== 加载动画 ========== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 页面滚动加载动画 ========== */
.anim-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.anim-up.show {
    opacity: 1;
    transform: translateY(0);
}

.anim-fade {
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--gray-500);
    font-weight: 500;
    transition: color 0.15s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    color: var(--gray-300);
    font-weight: 400;
}

/* ========== 插件下载页面 ========== */
.plugins-page-header {
    margin-bottom: 32px;
}

.plugins-page-title {
    display: flex;
    align-items: center;
    gap: 18px;
}

.plugins-page-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
    flex-shrink: 0;
}

.plugins-page-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.plugins-page-title p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

/* 插件卡片网格 */
.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.plugin-card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plugin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #6366f1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.plugin-card:hover {
    border-color: var(--gray-200);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.plugin-card:hover::before {
    transform: scaleX(1);
}

.plugin-card-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.plugin-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.plugin-card:hover .plugin-icon {
    transform: scale(1.05);
}

.plugin-meta {
    flex: 1;
    min-width: 0;
}

.plugin-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 4px;
    line-height: 1.3;
}

.plugin-version {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 50px;
    font-family: "SF Mono", "Fira Code", monospace;
}

.plugin-desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
}

.plugin-info-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-50);
}

.plugin-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
}

.plugin-info-item svg {
    color: var(--gray-400);
    flex-shrink: 0;
}

.plugin-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.plugin-size {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
}

.plugin-download-btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    gap: 8px !important;
}

.plugin-download-btn:hover {
    transform: translateY(-1px);
}

/* 插件页响应式 */
@media (max-width: 768px) {
    .plugins-grid {
        grid-template-columns: 1fr;
    }

    .plugins-page-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .plugins-page-title h1 {
        font-size: 24px;
    }
}
.anim-fade.show {
    opacity: 1;
}

.anim-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-scale.show {
    opacity: 1;
    transform: scale(1);
}

.anim-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.anim-left.show {
    opacity: 1;
    transform: translateX(0);
}

.anim-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.anim-right.show {
    opacity: 1;
    transform: translateX(0);
}

/* 延迟动画 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* 无动画偏好适配 */
@media (prefers-reduced-motion: reduce) {
    .anim-up,
    .anim-fade,
    .anim-scale,
    .anim-left,
    .anim-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========== Dashboard 卡片入场动画 ========== */
.dash-anim {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.dash-anim.show {
    opacity: 1;
    transform: translateY(0);
}

.dash-delay-1 { transition-delay: 0.05s; }
.dash-delay-2 { transition-delay: 0.1s; }
.dash-delay-3 { transition-delay: 0.15s; }
.dash-delay-4 { transition-delay: 0.2s; }
.dash-delay-5 { transition-delay: 0.25s; }
.dash-delay-6 { transition-delay: 0.3s; }

/* ========== 上传材料区域 ========== */
.upload-section {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px 20px 12px;
    margin-bottom: 16px;
}

.upload-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.upload-section-title svg {
    color: var(--primary);
    flex-shrink: 0;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 900px) {
    .upload-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }
}

/* 上传卡片 */
.upload-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.upload-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.upload-card.has-file {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.08);
}

.upload-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    margin: 14px auto 0;
}

.upload-card.has-file .upload-card-icon {
    background: var(--success-light);
    color: var(--success);
}

.upload-card-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-top: 8px;
}

.upload-card-desc {
    text-align: center;
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 2px;
    margin-bottom: 10px;
}

/* 上传卡片主体 */
.upload-card-body {
    position: relative;
    height: 140px;
    margin: 0 12px 12px;
    border: 2px dashed var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-card-body:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.02);
}

.upload-card.has-file .upload-card-body {
    border-style: solid;
    border-color: var(--gray-200);
}

.file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    color: var(--gray-400);
}

.upload-card-placeholder span {
    font-size: 12px;
}

.upload-card.has-file .upload-card-placeholder {
    display: none;
}

/* 上传卡片中的预览图 */
.upload-card-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* 删除按钮 */
.upload-card-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.upload-card-remove:hover {
    background: var(--danger);
}

/* 签名申请记录中的图片缩略图 */
.sig-images {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sig-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: transform 0.15s;
}

.sig-thumb:hover {
    transform: scale(1.1);
}

/* 图片放大查看 */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

/* ========================================
   套餐购买 - 定价卡片
   ======================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pricing-card {
    position: relative;
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(79,70,229,0.1);
    transform: translateY(-2px);
}

.pricing-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}

.pricing-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pricing-card-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
}

.pricing-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
}

.pricing-card.selected .pricing-card-name {
    color: var(--primary);
}

.pricing-card-count {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.pricing-card.selected .pricing-card-count {
    color: var(--primary);
}

.pricing-card-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.pricing-card.selected .pricing-card-price {
    color: var(--primary);
}

.pricing-currency {
    font-size: 18px;
    font-weight: 600;
}

.pricing-card-per {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.pricing-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--primary);
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
