/* ===== 最外层 ===== */
.user-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2px 16px 80px;
    color: #fff;
    font-family: "PingFang SC","Helvetica Neue",sans-serif;
}

/* ===== 顶部用户信息 ===== */
.user-top {
    text-align: center;
    margin-top: 2px;
}
.user-top .avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    margin-bottom: 10px;
}
.user-top h2 {
    font-size: 22px;
    margin: 4px 0;
}
.zodiac-tag {
    opacity: .7;
    font-size: 14px;
}

/* ===== 卡片统一风格 ===== */
.card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 18px;
    margin: 20px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.18);
}

.section-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: #f7d27d;
}

/* ===== 今日运势 ===== */
.daily-brief {
    font-size: 15px;
    opacity: .9;
    line-height: 1.6;
}

.luck-meter {
    text-align: center;
    margin: 16px 0;
}

.luck-bar {
    width: 70%;
    height: 10px;
    background: rgba(255,255,255,0.2);
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}
.luck-fill {
    height: 100%;
    background: linear-gradient(90deg,#ffe9b5,#f7d27d,#ffeecf);
    width: 0%;
    transition: width 1.5s;
}
.luck-percent {
    font-size: 14px;
    margin-top: 6px;
}

.toggle-detail {
    width: 100%;
    background: none;
    color: #f7d27d;
    margin-top: 10px;
    border: none;
    padding: 8px 0;
    cursor: pointer;
}

.fortune-detail {
    padding-top: 10px;
    font-size: 14px;
    line-height: 1.6;
}
.fortune-detail .row {
    margin-bottom: 6px;
}
.lucky-color-dot {
    display:inline-block;
    width:12px;
    height:12px;
    border-radius:50%;
    margin-right:6px;
}

/* ===== 生成按钮 ===== */
.btn-generate {
    display:block;
    width:100%;
    background:linear-gradient(135deg,#f7d27d,#ffe4a9);
    padding:14px 0;
    border-radius:12px;
    font-size:16px;
    color:#000;
    text-align:center;
    margin:20px 0;
    box-shadow:0 8px 16px rgba(247,210,125,.4);
}

/* ===== 图片网格 ===== */
.grid-img {
    display:grid;
    grid-template-columns: repeat(auto-fill,minmax(100px,1fr));
    gap:10px;
}
.grid-img img {
    width:100%;
    border-radius:10px;
    cursor:pointer;
    transition:.25s;
}
.grid-img img:hover {
    transform:scale(1.04);
}

/* ===== 幸运值轨迹 ===== */
.luck-log div {
    margin-bottom:6px;
    opacity:.85;
    font-size:14px;
}

/* ===== 退出 ===== */
.btn-logout {
    display:block;
    width:90%;
    margin:30px auto;
    padding:12px 0;
    background:#c0392b;
    color:#fff;
    border-radius:10px;
    text-align:center;
}

/* 星空背景层（与你 generate 页面一致） */
.star-bg{
    position:fixed;inset:0;
    background:url('/assets/img/stars.webp') repeat;
    animation:starMove 80s linear infinite;
    opacity:.5;z-index:-3;
}
@keyframes starMove { to{ background-position:-2000px 2000px; } }

.star-flow{
    position:fixed;inset:0;
    background:radial-gradient(circle at 50% 30%,rgba(255,255,255,0.12),transparent 60%);
    animation:flowPulse 6s ease-in-out infinite;
    z-index:-2;
}
@keyframes flowPulse{
    0%{opacity:.3;}50%{opacity:.55;}100%{opacity:.3;}
}

.astro-wheel{
    position:fixed;left:50%;top:45%;
    width:520px;height:520px;
    transform:translate(-50%,-50%);
    z-index:-1;opacity:.12;
}
.astro-wheel img{width:100%;animation:rotateWheel 55s linear infinite;}
@keyframes rotateWheel{
    to{transform:rotate(360deg);}
}

/* PC适配 */
@media (min-width:900px){
    .user-wrapper{max-width:900px;}
}
.fortune-score {
    margin: 10px 0 18px;
    font-size: 16px;
    font-weight: 600;
    color: #ffd88a;
    text-align: left;
    padding-left: 2px;
}
