/**
 * 慕华减肥 - 打卡图模板样式
 * 使用CSS渲染，html2canvas截图
 */

/* 打卡图模板容器 */
.share-card-template {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 375px;
    background: white;
    z-index: -1;
}

.share-card-container {
    width: 375px;
    min-height: 600px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    position: relative;
    overflow: hidden;
}

/* 顶部渐变条 */
.share-card-top-bar {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #00B4D8 0%, #00D9A5 100%);
}

/* 头部区域 */
.share-card-header {
    display: flex;
    align-items: center;
    padding: 24px 20px 20px;
    gap: 12px;
}

.share-card-logo-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00B4D8 0%, #00D9A5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.share-card-logo-circle span {
    color: white;
    font-size: 28px;
    font-weight: 700;
}

.share-card-title-area {
    flex: 1;
}

.share-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 4px;
}

.share-card-subtitle {
    font-size: 14px;
    color: #64748B;
}

.share-card-type-badge {
    padding: 6px 16px;
    background: #F0F9FF;
    color: #00B4D8;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    flex-shrink: 0;
}

/* 体重核心数据 */
.share-card-weight-section {
    margin: 0 20px 24px;
    padding: 28px 20px;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 20px;
    text-align: center;
}

.share-card-weight-main {
    margin-bottom: 20px;
}

.share-card-weight-value {
    font-size: 56px;
    font-weight: 800;
    color: #1A202C;
    line-height: 1;
    margin-bottom: 8px;
}

.share-card-weight-label {
    font-size: 16px;
    color: #64748B;
}

.share-card-weight-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 180, 216, 0.2);
}

.share-card-stat {
    text-align: center;
}

.share-card-stat-label {
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 6px;
}

.share-card-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #1A202C;
}

.share-card-stat-value.highlight {
    color: #10B981;
}

/* 运动数据区域 */
.share-card-exercise-section {
    margin: 0 20px 24px;
}

.share-card-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 16px;
}

.share-card-exercise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.share-card-exercise-item {
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #F1F5F9;
    position: relative;
    overflow: hidden;
}

.share-card-exercise-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.share-card-exercise-item.rope::before {
    background: #F59E0B;
}

.share-card-exercise-item.stairs::before {
    background: #10B981;
}

.share-card-exercise-item.squat::before {
    background: #8B5CF6;
}

.share-card-exercise-item.situp::before {
    background: #EC4899;
}

.share-card-exercise-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.share-card-exercise-item.rope .share-card-exercise-icon {
    background: #FEF3C7;
}

.share-card-exercise-item.stairs .share-card-exercise-icon {
    background: #D1FAE5;
}

.share-card-exercise-item.squat .share-card-exercise-icon {
    background: #EDE9FE;
}

.share-card-exercise-item.situp .share-card-exercise-icon {
    background: #FCE7F3;
}

.share-card-exercise-info {
    flex: 1;
}

.share-card-exercise-name {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 4px;
}

.share-card-exercise-value {
    font-size: 24px;
    font-weight: 700;
    color: #1A202C;
}

.share-card-exercise-unit {
    font-size: 14px;
    color: #94A3B8;
    font-weight: 400;
    margin-left: 2px;
}

/* 底部 */
.share-card-footer {
    margin: 0 20px;
    padding: 20px 0;
    border-top: 1px solid #E2E8F0;
    text-align: center;
}

.share-card-slogan {
    font-size: 18px;
    font-weight: 600;
    color: #00B4D8;
    margin-bottom: 8px;
}

.share-card-brand {
    font-size: 13px;
    color: #94A3B8;
}
