/* ========================================
   数字名片样式 v1.1（场景自适应+分享）
   ======================================== */

/* ---- 身份信息网格 ---- */
.card-identity-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.identity-item { display: flex; flex-direction: column; padding: 10px 12px; background: #faf8f5; border-radius: 10px; gap: 2px; }
.identity-label { font-size: 11px; color: #aaa; }
.identity-value { font-size: 14px; font-weight: 600; color: #333; }

/* ---- 徽章墙 ---- */
.scene-badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- 照片墙 ---- */
.card-photos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.photo-item { aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.photo-placeholder { background: #f5f0eb; color: #ccc; font-size: 24px; font-weight: 300; display:flex; align-items:center; justify-content:center; }

/* ---- 六维雷达图 ---- */
.radar-chart { display: flex; flex-direction: column; gap: 10px; }
.radar-item { display: flex; align-items: center; gap: 10px; }
.radar-label { width: 70px; font-size: 13px; color: #666; flex-shrink: 0; }
.radar-bar-wrap { flex: 1; height: 8px; background: #f0ebe5; border-radius: 4px; overflow: hidden; }
.radar-bar-fill { height: 100%; background: linear-gradient(90deg,#D4A574,#8B5A2B); border-radius: 4px; transition: width 0.5s; }
.radar-score { width: 28px; font-size: 12px; font-weight: 600; color: #8B5A2B; text-align: right; flex-shrink: 0; }

/* ---- AI评语 ---- */
.card-ai-section { background: #f8f6ff; border: 1px solid rgba(139,90,43,0.08); }
.ai-comment-box { background: white; border-radius: 10px; padding: 12px; }

/* ---- 技能标签 ---- */
.card-skills-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag { padding: 6px 14px; border-radius: 20px; font-size: 13px; color: #555; }

/* ---- 他人评价 ---- */
.testimonials-list { display: flex; flex-direction: column; gap: 12px; }
.testimonial-item { padding: 12px; background: #faf8f5; border-radius: 10px; }

/* ---- 资产验证 ---- */
.assets-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.asset-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border-radius: 12px; font-size: 12px; color: #888; background: #f5f5f5; transition: all 0.3s; }
.asset-item.verified { background: #E8F5E9; color: #2E7D32; }
.asset-item span:nth-child(2) { font-size: 13px; font-weight: 500; color: #333; }

/* ---- 婚恋顾问建议 ---- */
.card-advisor-section { background: #faf8f5; border: 1px solid rgba(139,90,43,0.12); }

/* ---- 分享样式 ---- */
.share-tips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; }
.share-tip-tag { flex-shrink: 0; padding: 4px 12px; border-radius: 12px; font-size: 11px; background: rgba(139,90,43,0.08); color: #8B5A2B; }

/* ========================================
   数字名片状态卡片（个人中心内）
   ======================================== */

/* 数字名片状态卡片（个人中心内） */
.profile-card-digital {
    margin: 12px 16px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(139, 90, 43, 0.08);
    border: 1px solid rgba(139, 90, 43, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.profile-card-digital:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 90, 43, 0.12);
}

.digital-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #8B5A2B, #D4A574);
    color: #fff;
}

.digital-icon {
    font-size: 20px;
}

.digital-title {
    font-size: 15px;
    font-weight: 600;
    flex: 1;
}

.digital-tier-badge {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.digital-tier-badge.tier-free {
    background: #f5f5f5;
    color: #888;
}

.digital-tier-badge.tier-basic {
    background: #E3F2FD;
    color: #1976D2;
}

.digital-tier-badge.tier-deep {
    background: #F3E5F5;
    color: #9B59B6;
}

.digital-tier-badge.tier-diamond {
    background: #FFF3E0;
    color: #E67E22;
}

.digital-tier-badge.tier-supreme {
    background: #FCE4EC;
    color: #C0392B;
}

.digital-card-body {
    display: flex;
    padding: 12px 16px;
    gap: 8px;
}

.digital-status-item {
    flex: 1;
    text-align: center;
}

.digital-label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.digital-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.digital-card-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
}

.digital-btn-manage {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    background: #f5f0eb;
    color: #8B5A2B;
    transition: all 0.3s;
}

.digital-btn-manage:hover {
    background: #8B5A2B;
    color: #fff;
}

.digital-btn-upgrade {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    background: linear-gradient(135deg, #8B5A2B, #D4A574);
    color: #fff;
    font-weight: 500;
    transition: all 0.3s;
}

.digital-btn-upgrade:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.3);
}

/* 数字名片首页 */
.card-page {
    min-height: 100vh;
    background: #faf8f5;
}

.card-header {
    background: linear-gradient(135deg, #8B5A2B, #D4A574);
    color: #fff;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header .back-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.card-header .back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.card-header .header-title {
    font-size: 17px;
    font-weight: 600;
    flex: 1;
}

/* 未开通状态 */
.card-intro {
    padding: 30px 20px;
    text-align: center;
}

.card-intro-icon {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
}

.card-intro-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.card-intro-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* 档位选择卡片 */
.tier-cards {
    padding: 0 16px 20px;
}

.tier-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tier-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tier-card.selected {
    border-color: #8B5A2B;
    background: rgba(139, 90, 43, 0.02);
}

.tier-card.recommended::before {
    content: '推荐';
    position: absolute;
    top: 12px;
    right: -30px;
    background: #E67E22;
    color: #fff;
    padding: 4px 40px;
    font-size: 11px;
    transform: rotate(45deg);
}

.tier-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tier-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.tier-price {
    font-size: 24px;
    font-weight: 700;
    color: #8B5A2B;
}

.tier-price small {
    font-size: 13px;
    font-weight: 400;
    color: #888;
}

.tier-features {
    margin-bottom: 16px;
}

.tier-feature {
    font-size: 13px;
    color: #555;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tier-feature .check {
    color: #27ae60;
    font-weight: 600;
}

.tier-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, #8B5A2B, #D4A574);
    color: #fff;
}

.tier-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.3);
}

.tier-btn-secondary {
    background: #f5f0eb;
    color: #8B5A2B;
}

/* 已开通状态 - 名片预览 */
.card-preview {
    padding: 16px;
}

.card-preview-header {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
}

.card-cover {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
}

.card-avatar-wrap {
    position: relative;
    margin-top: -40px;
    padding: 0 16px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.card-user-info {
    flex: 1;
    padding-bottom: 12px;
}

.card-user-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.card-user-meta {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.card-trust-score {
    padding: 12px 16px;
    background: #f8f6f3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-label {
    font-size: 12px;
    color: #888;
}

.trust-value {
    font-size: 16px;
    font-weight: 700;
    color: #8B5A2B;
}

.trust-bar {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.trust-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #D4A574, #8B5A2B);
    transition: width 0.5s ease;
}

/* 场景切换栏 */
.scene-bar {
    display: flex;
    overflow-x: auto;
    padding: 12px 16px;
    gap: 8px;
    background: #fff;
    border-radius: 16px;
    margin: 0 16px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.scene-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1px solid #e0d5c8;
    border-radius: 16px;
    background: #fff;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.scene-btn.active {
    background: #8B5A2B;
    color: #fff;
    border-color: #8B5A2B;
}

.scene-btn.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 名片详情区块 */
.card-section {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin: 0 16px 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.card-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #6b3e26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-section-title .sub {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

.narrative-text {
    font-size: 14px;
    line-height: 2;
    color: #444;
}

.narrative-text p {
    margin-bottom: 10px;
}

/* 徽章墙 */
.badge-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-item {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-item.verified {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-item.unverified {
    background: #f5f5f5;
    color: #aaa;
}

/* 操作按钮栏 */
.card-actions {
    display: flex;
    gap: 8px;
    padding: 16px;
}

.card-actions .btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.card-actions .btn-primary {
    background: linear-gradient(135deg, #8B5A2B, #D4A574);
    color: #fff;
}

.card-actions .btn-secondary {
    background: #f5f0eb;
    color: #8B5A2B;
}

/* 有效期横幅 */
.expiry-banner {
    padding: 10px 16px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 16px 12px;
    border-radius: 10px;
}

.expiry-ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.expiry-warn {
    background: #fff3e0;
    color: #e65100;
}

.expiry-danger {
    background: #ffebee;
    color: #c62828;
}

/* 升级横幅 */
.upgrade-banner {
    background: linear-gradient(135deg, #FFF3E0, #FCE4EC);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 16px 12px;
    border-radius: 12px;
}

.upgrade-text {
    font-size: 13px;
    color: #6b3e26;
}

.upgrade-btn {
    background: #8B5A2B;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}

/* 响应式 */
@media (max-width: 430px) {
    .card-intro {
        padding: 20px 16px;
    }

    .tier-cards {
        padding: 0 12px 16px;
    }
}

/* ========================================
   数字名片认证上传页面样式
   ======================================== */

.cert-page {
    min-height: 100vh;
    background: #faf8f5;
    padding-bottom: 100px;
}

/* 进度卡片 */
.cert-progress-card {
    margin: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #faf8f5, #fff);
    border-radius: 16px;
    border: 1px solid rgba(139, 90, 43, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.cert-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cert-progress-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.cert-progress-percent {
    font-size: 18px;
    font-weight: 700;
    color: #8B5A2B;
}

.cert-progress-bar {
    height: 8px;
    background: #f0ebe5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.cert-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #D4A574, #8B5A2B);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.cert-progress-stats {
    font-size: 12px;
    color: #888;
}

/* 状态提示 */
.cert-status-tip {
    margin: 0 16px 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    text-align: center;
}

.cert-status-tip.pending {
    background: rgba(139, 90, 43, 0.08);
    color: #8B5A2B;
}

.cert-status-tip.reviewing {
    background: rgba(255, 152, 0, 0.1);
    color: #e65100;
}

.cert-status-tip.approved {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

/* 认证分类 */
.cert-category {
    margin: 0 16px 16px;
}

.cert-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(139, 90, 43, 0.1);
}

.cert-cat-icon {
    font-size: 18px;
}

.cert-cat-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.cert-cat-desc {
    font-size: 12px;
    color: #888;
    margin-left: auto;
}

.cert-category-items {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 认证项 */
.cert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f0eb;
    cursor: pointer;
    transition: all 0.2s;
}

.cert-item:last-child {
    border-bottom: none;
}

.cert-item:active {
    background: #faf8f5;
}

.cert-item-approved {
    background: rgba(76, 175, 80, 0.04);
}

.cert-item-rejected {
    background: rgba(244, 67, 54, 0.04);
}

.cert-item-submitted {
    background: rgba(255, 152, 0, 0.04);
}

.cert-item-required {
    border-left: 3px solid #e91e63;
}

.cert-item-icon {
    font-size: 24px;
    width: 36px;
    text-align: center;
}

.cert-item-info {
    flex: 1;
}

.cert-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.cert-required {
    color: #e91e63;
    margin-left: 4px;
}

.cert-auto {
    background: #9C27B0;
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
    margin-left: 6px;
}

.cert-item-desc {
    font-size: 12px;
    color: #888;
}

.cert-item-status {
    flex-shrink: 0;
}

.cert-item-arrow {
    font-size: 20px;
    color: #ccc;
    flex-shrink: 0;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.pending {
    background: #f5f5f5;
    color: #888;
}

.status-badge.submitted {
    background: rgba(255, 152, 0, 0.1);
    color: #e65100;
}

.status-badge.approved {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.status-badge.rejected {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
}

/* 上传区域 */
.cert-upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.cert-upload-area:hover {
    border-color: #8B5A2B;
    background: rgba(139, 90, 43, 0.04);
}

.cert-upload-preview {
    margin-top: 12px;
}

/* 提交区域 */
.cert-submit-area {
    padding: 16px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, #faf8f5 30%);
    padding-top: 40px;
}

.cert-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #8B5A2B, #D4A574);
    color: #fff;
    box-shadow: 0 4px 16px rgba(139, 90, 43, 0.3);
}

.cert-submit-btn.disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

.cert-tip {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 8px;
}

/* 认证动作按钮 */
.cert-action-btn {
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cert-action-btn.primary {
    background: linear-gradient(135deg, #e91e63, #ff8fab);
    color: #fff;
    border: none;
}

.cert-action-btn.secondary {
    background: #fff;
    color: #e91e63;
    border: 1.5px solid #e91e63;
}

.cert-action-btn.disabled {
    background: #ccc;
    color: #fff;
    border: none;
    cursor: not-allowed;
}

/* 技能标签选中 */
.skill-tag.selected {
    background: #e91e63 !important;
    color: #fff !important;
}
