/* widgets.css - 存放所有独立的小零件，如彩色加载风车、复习角标等 */

/* =========================================
   🌈 微信朋友圈风格 - 像素级复刻加载动画
   ========================================= */
   /* widgets.css */
.loading-overlay-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    pointer-events: all; /* 必须保留，防止暴力点击 */
}

.loading-spacer {
    margin-top: 110px;
}

.wechat-refresh-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
}

.wechat-spinner {
    position: relative;
    width: 22px;   /* 微信原生的精致尺寸 */
    height: 22px;
    animation: wechat-rotate 1.2s linear infinite; /* 匀速顺畅旋转 */
}

/* 扇叶通用样式 */
.leaf {
    position: absolute;
    width: 9px;    /* 扇叶尺寸比例 */
    height: 9px;
    border-radius: 1.5px; /* 微信标志性的微圆角 */
    opacity: 0.9;
}

/* 微信官方配色复刻 */
.red    { top: 0; left: 0; background-color: #E64340; }    /* 微信红 */
.green  { top: 0; right: 0; background-color: #07C160; }   /* 微信绿 */
.blue   { bottom: 0; left: 0; background-color: #2782D7; }  /* 微信蓝 */
.yellow { bottom: 0; right: 0; background-color: #FFBE00; } /* 微信黄 */

@keyframes wechat-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wechat-loading-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 400px; /* 🟢 模拟卡片的大致高度，确保风车在视觉中心 */
    width: 100%;
}

/* 进度条小胶囊 */
.progress-pill {
    background: #f0f2f5;
    color: #999;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* =========================================
   🎀 右上角丝带 (轻量磨砂版)
   ========================================= */

/* 容器：裁剪超出部分 */
.ribbon-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 65px;
    height: 65px;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

/* 丝带本体 */
.ribbon-tag {
    position: absolute;
    padding: 2px 0;
    width: 100px;
    top: 12px;
    right: -28px;
    transform: rotate(45deg);
    text-align: center;
    font-size: 10px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.5px;
    
    /* 磨砂玻璃效果 */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 丝带状态色 */
.ribbon-retry { background: rgba(238, 10, 36, 0.55); }      /* 红色 */
.ribbon-first-test { background: rgba(255, 151, 106, 0.6); } /* 橙色 */
.ribbon-review { background: rgba(25, 137, 250, 0.55); }     /* 蓝色 */

/* 弹窗遮罩 */
.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

/* 弹窗遮罩 */
.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
.detail-overlay.show { display: flex; }

/* 弹窗卡片 */
.detail-card {
    width: 85%;
    max-width: 340px;
    max-height: 75vh;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    padding: 5px;
}
.completion-page {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 90vh;
}

/* 顶部状态图标动画感 */
.medal-wrapper {
    margin-bottom: 15px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
@keyframes bounceIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.status-title { font-size: 24px; font-weight: 800; color: #1d1d1f; margin: 10px 0; }
.status-desc { font-size: 15px; color: #86868b; margin-bottom: 25px; }

/* 战报卡片样式 */
.finish-report-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 25px 0;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.3);
}
.report-row { display: flex; align-items: center; }
.report-item { flex: 1; text-align: center; }
.report-val { display: block; font-size: 32px; font-weight: 800; color: #1989fa; margin-bottom: 4px; }
.report-label { font-size: 12px; color: #999; font-weight: 600; }
.report-line { width: 1px; height: 35px; background: #eee; }

/* 按钮组样式 */
.finish-actions { width: 100%; max-width: 300px; }
.share-moments-btn { height: 52px; font-size: 17px; font-weight: 600; margin-bottom: 15px; box-shadow: 0 8px 15px rgba(7, 193, 96, 0.2); }
.continue-btn { height: 50px; font-weight: 600; margin-bottom: 25px; border-width: 2px !important; }

.secondary-actions { display: flex; justify-content: space-around; width: 100%; }
.sec-btn { font-size: 14px; color: #86868b; display: flex; align-items: center; gap: 4px; cursor: pointer; }


.user-info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 15px;
}

.user-avatar-placeholder {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #0071e3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.user-name-text {
    font-size: 15px;
    font-weight: 500;
    color: #86868b;
}
