/* ========== 分享卡片样式 ========== */
/* 基于 design-system.md 规范 */

/* 隐藏渲染容器 */
.share-card-offscreen {
    position: fixed;
    left: -9999px;
    top: 0;
    z-index: -1;
    pointer-events: none;
}

/* 卡片主体 */
.share-card {
    width: 375px;
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 40%, #0a0a1a 100%);
    color: var(--color-text-primary, #e2e2f0);
    font-family: var(--font-body, 'Noto Sans SC', sans-serif);
    overflow: hidden;
    border-radius: 0;
    position: relative;
}

/* 装饰：背景纹样 */
.share-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(201, 169, 110, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 80%, rgba(162, 155, 254, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

/* 装饰：顶部边框线 */
.share-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary, #c9a96e), transparent);
}

/* 顶部品牌栏 */
.sc-brand {
    text-align: center;
    padding: 28px 20px 18px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}
.sc-brand-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}
.sc-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #c9a96e;
    letter-spacing: 6px;
}
.sc-brand-sub {
    font-size: 12px;
    color: #8888a8;
    margin-top: 4px;
    letter-spacing: 2px;
}

/* 内容区通用 */
.sc-content {
    padding: 24px 24px 20px;
}
.sc-section-title {
    font-size: 11px;
    color: #8888a8;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 16px;
}

/* ===== 八字卡片 ===== */
.sc-user-info {
    text-align: center;
    margin-bottom: 18px;
}
.sc-user-name {
    font-size: 22px;
    font-weight: 700;
    color: #e2e2f0;
}
.sc-user-gender {
    font-size: 13px;
    color: #8888a8;
    margin-left: 8px;
}

/* 四柱 */
.sc-pillars {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}
.sc-pillar {
    text-align: center;
    width: 64px;
}
.sc-pillar-label {
    font-size: 10px;
    color: #666680;
    margin-bottom: 6px;
}
.sc-pillar-gan {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}
.sc-pillar-zhi {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2px;
}

/* 五行配色 */
.wx-wood { color: #4ade80; }
.wx-fire { color: #f87171; }
.wx-earth { color: #fbbf24; }
.wx-metal { color: #e2e2f0; }
.wx-water { color: #60a5fa; }

/* 命理摘要 */
.sc-summary {
    background: rgba(201, 169, 110, 0.06);
    border: 1px solid rgba(201, 169, 110, 0.12);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 0;
}
.sc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
}
.sc-summary-label {
    color: #8888a8;
}
.sc-summary-value {
    color: #c9a96e;
    font-weight: 500;
}

/* ===== 起名卡片 ===== */
.sc-name-big {
    text-align: center;
    margin-bottom: 20px;
}
.sc-name-text {
    font-size: 36px;
    font-weight: 900;
    color: #c9a96e;
    letter-spacing: 8px;
}
.sc-name-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(201, 169, 110, 0.4);
    background: rgba(201, 169, 110, 0.08);
    margin: 12px auto 0;
    font-size: 24px;
    font-weight: 900;
    color: #c9a96e;
}
.sc-name-score-label {
    font-size: 11px;
    color: #8888a8;
    text-align: center;
    margin-top: 4px;
}

/* 五格 */
.sc-wuge {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.sc-wuge-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 8px 10px;
    min-width: 54px;
}
.sc-wuge-label {
    font-size: 10px;
    color: #666680;
    margin-bottom: 4px;
}
.sc-wuge-value {
    font-size: 16px;
    font-weight: 700;
    color: #e2e2f0;
}

/* 三才 + 寓意 */
.sc-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.sc-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(201, 169, 110, 0.1);
    color: #c9a96e;
    border: 1px solid rgba(201, 169, 110, 0.2);
}

/* ===== 底部引流栏 ===== */
.sc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 22px;
    border-top: 1px solid rgba(201, 169, 110, 0.12);
    background: rgba(0, 0, 0, 0.15);
}
.sc-footer-left {
    flex: 1;
}
.sc-footer-cta {
    font-size: 14px;
    color: #c9a96e;
    font-weight: 500;
    margin-bottom: 4px;
}
.sc-footer-url {
    font-size: 11px;
    color: #666680;
}
.sc-footer-qr {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sc-footer-qr canvas {
    display: block;
}
