/* 设置页面样式 */

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border: var(--ctn-outline);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--ctn-shadow-sm);
    backdrop-filter: blur(10px);
}

.card h3 {
    margin: 0 0 16px 0;
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
}

.card p {
    margin: 8px 0;
    color: #4a5568;
    line-height: 1.5;
}

/* 二维码容器 */
#qrcode {
    width: 220px;
    height: 220px;
    border: 3px dashed rgba(44,123,229,0.35);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    margin: 16px 0;
    position: relative;
}

.qr-container {
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-hint {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #3a4a5e;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 10px;
    border-radius: 999px;
    border: 2px solid rgba(44,123,229,0.2);
    margin: 0;
}

/* 加载动画 */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 14px;
}

.loading-spinner::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #3182ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 状态样式 */
.status-valid {
    color: #38a169;
    font-weight: 500;
}

.status-expired {
    color: #d69e2e;
    font-weight: 500;
}

.status-invalid {
    color: #e53e3e;
    font-weight: 500;
}

/* 成功消息 */
.success-message {
    text-align: center;
    color: #38a169;
}

.success-icon {
    font-size: 48px;
    color: #38a169;
    margin-bottom: 12px;
}

.success-detail {
    font-size: 12px;
    color: #718096;
    margin-top: 8px;
}

/* 错误消息 */
.error-message {
    text-align: center;
    color: #e53e3e;
}

.error-detail {
    font-size: 12px;
    color: #a0aec0;
    margin: 8px 0;
}

.retry-btn {
    background: linear-gradient(135deg, var(--ctn-primary), var(--ctn-primary-dark));
    color: white;
    border: 2px solid rgba(44,123,229,0.35);
    padding: 10px 18px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 8px;
}

.retry-btn:hover {
    transform: translateY(-2px);
}

/* 按钮样式 */
.btn {
    background: #eaf1fb;
    color: #2b3f5c;
    border: 2px solid rgba(44,123,229,0.2);
    padding: 10px 20px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 12px;
}

.btn:hover {
    background: #e0ebfb;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--ctn-primary), var(--ctn-primary-dark));
    color: white;
    border: 2px solid rgba(44,123,229,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* AI状态显示 */
#ai-status {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    margin: 12px 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
}

#ai-status div {
    margin: 4px 0;
    padding: 4px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .card {
        padding: 16px;
    }
    
    #qrcode {
        width: 180px;
        height: 180px;
    }
} 