/* === Optimized Full Style.css (Header + Mobile Nav + Homepage + Generator + User Center) === */
/* Reset */
*{margin:0;padding:0;box-sizing:border-box;}
body{
    font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
    background:#0b0b0c;
    color:#fff;
}

/* ====================== */
/*        HEADER          */
/* ====================== */
.site-header{
    background:rgba(0,0,0,0.38);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(255,255,255,0.12);
    position:sticky;
    top:0;
    z-index:9999;
}
.header-inner{
    max-width:1200px;
    margin:auto;
    padding:12px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}
/* Logo */
.logo{
    display:flex;
    align-items:center;
    gap:8px;
    color:#ffeecf;
    text-decoration:none;
    font-size:20px;
    font-weight:600;
}
.logo img{height:34px;}

/* Nav */
.nav{
    display:flex;
    gap:26px;
}
.nav a{
    color:#ffeecf;
    text-decoration:none;
    font-size:15px;
}
.nav a:hover{color:#fff;}

/* User area */
.nav-user{
    display:flex;
    align-items:center;
    gap:12px;
}
.user-tag{
    font-size:14px;
    color:#ffd88a;
}

/* Buttons */
.login-btn,.logout-btn,.register-btn{
    text-decoration:none;
    font-size:14px;
    padding:7px 14px;
    border-radius:6px;
    border:1px solid rgba(255,255,255,0.28);
    background:rgba(255,255,255,0.1);
    color:#ffeecf;
    font-weight:500;
}
.login-btn:hover,.logout-btn:hover,.register-btn:hover{
    background:rgba(255,255,255,0.2);
}

/* Mobile menu toggle */
.menu-toggle{
    display:none;
    font-size:28px;
    color:#ffeecf;
    cursor:pointer;
}

/* Mobile Nav */
@media(max-width:768px){
    .menu-toggle{display:block;}

    .nav,
    .nav-user{
        display:none;
        width:100%;
        padding:14px 0;
        flex-direction:column;
        background:rgba(0,0,0,0.65);
        border-top:1px solid rgba(255,255,255,0.1);
        margin-top:12px;
    }
    .nav.show,
    .nav-user.show{
        display:flex;
    }

    .header-inner{
        flex-wrap:wrap;
    }

    .logo span{font-size:17px;}
}

/* ====================== */
/*       HOMEPAGE         */
/* ====================== */

/* 星空背景 */
.star-bg{
    position:fixed;
    inset:0;
    background:#000 url('/assets/img/stars.webp') center/cover no-repeat;
    z-index:-3;
}
.star-flow{
    position:fixed;
    inset:0;
    background:radial-gradient(circle at center,rgba(255,255,255,0.22),transparent 70%);
    animation:starFlow 8s infinite alternate ease-in-out;
    z-index:-2;
}
@keyframes starFlow{
    0%{opacity:.3;transform:scale(1);}
    100%{opacity:.6;transform:scale(1.2);}
}

/* 占星旋转盘 */
.astro-wheel{
    position:fixed;
    top:140px;
    left:50%;
    transform:translateX(-50%);
    width:260px;
    opacity:.25;
    z-index:-1;
}
.astro-wheel img{
    width:100%;
    animation:spinWheel 40s linear infinite;
}
@keyframes spinWheel{
    0%{transform:rotate(0deg);}
    100%{transform:rotate(360deg);}
}
/* ===== 默认（手机） ===== */
.astro-wheel {
    position: fixed;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    opacity: .25;
    z-index: -1;
}

.astro-wheel img {
    width: 100%;
    animation: spinWheel 40s linear infinite;
}

/* ===== 平板（中等尺寸） ===== */
@media (min-width: 600px) and (max-width: 1024px) {
    .astro-wheel {
        width: 360px;              /* 放大尺寸 */
        top: 160px;                /* 往上移一点 */
        opacity: .30;              
    }
}

/* ===== PC（大尺寸） ===== */
@media (min-width: 1025px) {
    .astro-wheel {
        width: 500px;              /* 再放大 */
        top: 180px;                /* 更靠上 */
        opacity: .35;   
    }
}

/* 标题区 */
.new-home{text-align:center;color:#ffeecf;padding:25px 15px;}
.title-main{
    font-size:28px;
    background:linear-gradient(90deg,#ffe9b5,#f7d27d,#ffeecf);
    -webkit-background-clip:text;
    color:transparent;
    margin-top:15px;
}
.title-sub{font-size:15px;opacity:.85;margin-top:6px;}

/* 今日运势卡 */
.today-card{
    width:92%;
    margin:20px auto;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,220,150,0.25);
    border-radius:16px;
    padding:18px;
    backdrop-filter:blur(1px);
}
.today-title{
    font-size:20px;
    color:#f5d99d;
}
.today-content{
    font-size:15px;
    opacity:.9;
    line-height:1.6;
    margin-top:8px;
    margin-bottom:15px;
}

/* 幸运指数 */
.luck-bar-wrapper{
    margin-top:10px;
    display:flex;
    justify-content:center;
    align-items:center;
}
.luck-bar{
    width:150px;height:10px;
    background:rgba(255,255,255,0.25);
    border-radius:10px;
    overflow:hidden;
}
.luck-fill{
    height:100%;width:0;
    background:linear-gradient(90deg,#ffe9b5,#f7d27d,#ffeecf);
    transition:width 1.6s ease;
}
.luck-percent{margin-left:8px;font-size:14px;color:#ffdca0;}

.share-btn{
    width:100%;
    padding:12px;
    margin-top:12px;
    background:linear-gradient(90deg,#ffe9b5,#f7d27d,#ffeecf);
    border-radius:12px;
    color:#000;
    font-weight:bold;
    border:none;
}

/* 星座百科 */
.zodiac-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    padding:20px 20px 60px;
}
.zodiac-item{
    background:rgba(255,255,255,0.08);
    padding:16px 0;
    border-radius:16px;
    backdrop-filter:blur(6px);
    border:1px solid rgba(255,220,150,0.25);
    transition:.25s;
}
.zodiac-item:hover{
    transform:translateY(-4px);
    box-shadow:0 0 18px rgba(255,200,120,0.4);
}
.zodiac-item img{width:55px;height:55px;}
.zodiac-item span{display:block;margin-top:6px;font-size:14px;color:#ffeecf;}

/* ====================== */
/*      GENERATOR PAGE    */
/* ====================== */
.canvas-container{
    width:100%;
    max-width:390px;
    margin:25px auto;
}
#wallpaperCanvas{
    width:100%;height:auto;
    border-radius:12px;
    background:#000;
    box-shadow:0 0 20px rgba(255,255,255,0.1);
}

.template-list{
    width:100%;max-width:390px;
    margin:0 auto 12px;
    padding:10px 0;
    display:flex;
    overflow-x:auto;
    gap:12px;
}
.template-item{
    width:70px;height:120px;
    border-radius:8px;
    opacity:.78;
    border:2px solid transparent;
}
.template-item.selected{
    opacity:1;
    border-color:#f4d48b;
}

.options-box{
    max-width:390px;margin:10px auto;
    display:flex;flex-direction:column;gap:6px;
}

/* ====================== */
/*         USER PAGE      */
/* ====================== */
.user-wrapper{width:92%;max-width:480px;margin:70px auto;color:#ffeecf;}
.user-info-card{
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,220,150,0.28);
    border-radius:16px;
    padding:16px;
    backdrop-filter:blur(6px);
}

/* 缩略图列表 */
.thumb-list{display:flex;flex-wrap:wrap;gap:10px;}
.thumb-item{
    width:30%;
    padding:5px;
    border-radius:10px;
    background:rgba(255,255,255,0.05);
}

/* 幸运记录 */
.luck-log-list{
    background:rgba(255,255,255,0.06);
    border-radius:12px;
    padding:10px;
}
/* ==========================================
   登录 / 注册页面优化
   ========================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 内容整体下移一些，避免过于拥挤 */
.auth-container {
    width: 88%;
    max-width: 420px;
    margin: 120px auto 80px; /* 调整上下的位置 */
    text-align: center;
}

/* 标题和提示语增加呼吸空间 */
.auth-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffeecf;
    margin-bottom: 12px;
}
.auth-sub {
    font-size: 14px;
    opacity: .8;
    margin-bottom: 32px;
}

/* 表单 */
.auth-form {
    width: 100%;
    margin-bottom: 25px;
}

.auth-form input {
    width: 100%;
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,220,150,0.35);
    background: rgba(0,0,0,0.35);
    color: #ffeecf;
    font-size: 15px;
}

/* 单独的按钮 */
.auth-btn {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    background: linear-gradient(90deg,#ffe9b5,#f7d27d,#ffeecf);
    color: #000;
    font-weight: bold;
    font-size: 16px;
    border: none;
    cursor: pointer;
    margin-bottom: 18px;
}

/* 底部提示（去注册/去登录） */
.auth-tip {
    font-size: 14px;
    color: #ffeecf;
}
.auth-tip a {
    color: #f7d27d;
    text-decoration: none;
}


/* footer 再往下压一点 */
.site-footer {
    margin-top: 40px !important;
    padding-bottom: 40px;
}
/* ===== 错误提示条 ===== */
.error-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 80, 80, 0.9);
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 0 0 8px 8px;
    z-index: 99999;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
    display: none;
    animation: fadeSlide 0.3s ease-out;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* 登录成功星光动画 */
.star-success {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeOut 1.2s ease forwards;
}

.star-burst {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, #ffe9b5, #f7d27d, transparent 70%);
    border-radius: 50%;
    animation: burst 1s ease-out forwards;
}

@keyframes burst {
    0% { transform: scale(0.4); opacity: .6; }
    60% { transform: scale(1.6); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; display: none; }
}
/* ===== 让所有可点击按钮出现小手指 ===== */

button,
.goGenerateBtn {
    cursor: pointer;
}

