:root{
    --theme-color: #6366f1;
    --theme-color-dark: #7c3aed;
    --theme-light: rgba(99,102,241,0.12);
    --theme-border: rgba(99,102,241,0.2);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"PingFang SC","Microsoft Yahei","Helvetica Neue",Arial,sans-serif;
}

body{
    background:linear-gradient(135deg,#f0f4ff 0%,#f7f9fc 50%,#eef2ff 100%);
    min-height:100vh;
    max-width:960px;
    margin:0 auto;
    padding:24px 20px 60px;
    color:#2d3748;
    line-height:1.6;
}

.lock-screen{
    position:fixed;
    top:0;left:0;right:0;bottom:0;
    background:linear-gradient(135deg,#1e1b4b 0%,#312e81 50%,#1e1b4b 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.lock-box{
    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,0.15);
    border-radius:24px;
    padding:48px 40px;
    width:90%;
    max-width:400px;
    text-align:center;
    box-shadow:0 20px 60px rgba(0,0,0,0.4);
}

.lock-icon{
    font-size:56px;
    margin-bottom:16px;
}

.lock-box h2{
    color:#fff;
    font-size:24px;
    margin-bottom:8px;
}

.lock-sub{
    color:rgba(255,255,255,0.6);
    font-size:14px;
    margin-bottom:28px;
}

.lock-box input[type="password"]{
    width:100%;
    padding:14px 18px;
    background:rgba(255,255,255,0.1);
    border:2px solid rgba(255,255,255,0.2);
    border-radius:12px;
    color:#fff;
    font-size:16px;
    outline:none;
    margin-bottom:16px;
    text-align:center;
    letter-spacing:4px;
}

.lock-box input[type="password"]:focus{
    border-color:var(--theme-color);
    box-shadow:0 0 0 4px rgba(99,102,241,0.3);
}

.lock-box input[type="password"]::placeholder{
    color:rgba(255,255,255,0.4);
    letter-spacing:normal;
}

.lock-box button{
    width:100%;
    padding:14px;
    background:linear-gradient(135deg,var(--theme-color),var(--theme-color-dark));
    color:#fff;
    border:none;
    border-radius:12px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    box-shadow:0 4px 16px rgba(99,102,241,0.4);
}

.pwd-error{
    color:#fca5a5;
    font-size:13px;
    margin-top:12px;
    min-height:18px;
}

.music-btn{
    position:fixed;
    top:20px;
    right:20px;
    width:48px;
    height:48px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--theme-color),var(--theme-color-dark));
    color:#fff;
    border:none;
    font-size:20px;
    cursor:pointer;
    box-shadow:0 4px 16px rgba(99,102,241,0.4);
    z-index:100;
}

h1{
    text-align:center;
    font-size:32px;
    font-weight:700;
    margin-bottom:8px;
    background:linear-gradient(135deg,var(--theme-color),var(--theme-color-dark));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    letter-spacing:2px;
}

h3{
    font-size:17px;
    font-weight:600;
    color:#4a5568;
    margin-bottom:12px;
    padding-left:10px;
    border-left:4px solid var(--theme-color);
}

.day-box{
    background:#ffffff;
    padding:22px 20px;
    border-radius:16px;
    text-align:center;
    font-size:20px;
    margin-bottom:28px;
    box-shadow:0 4px 20px var(--theme-light);
    border:1px solid var(--theme-border);
    color:#4a5568;
}

.day-box span{
    font-size:36px;
    font-weight:800;
    color:var(--theme-color);
    margin:0 6px;
}

#tipBox{
    background:linear-gradient(135deg,#fef2f2,#fee2e2);
    padding:14px 18px;
    border-radius:12px;
    text-align:center;
    margin-bottom:20px;
    color:#b91c1c;
    font-weight:600;
    font-size:15px;
    border:1px solid #fecaca;
}

.inner-img-title{
    font-size:18px;
    font-weight:600;
    color:#4a5568;
    margin:18px 0 12px;
    padding-left:10px;
    border-left:4px solid var(--theme-color);
}

.inner-image-wrap{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    margin-bottom:28px;
}

.inner-image-wrap img{
    width:200px;
    height:200px;
    object-fit:cover;
    border-radius:14px;
    border:3px solid #ffffff;
    box-shadow:0 4px 16px rgba(0,0,0,0.1);
}

.fixed-message-block{
    background:#ffffff;
    padding:22px 24px;
    border-radius:16px;
    margin-bottom:28px;
    box-shadow:0 4px 20px rgba(0,0,0,0.06);
    border:1px solid #e2e8f0;
}

.fixed-item{
    padding:14px 16px;
    background:linear-gradient(135deg,var(--theme-light),rgba(99,102,241,0.08));
    border-radius:10px;
    margin:10px 0;
    color:#3730a3;
    font-size:15px;
    border-left:4px solid var(--theme-color);
}

.form-box{
    background:#ffffff;
    padding:22px 24px;
    border-radius:16px;
    margin-bottom:26px;
    box-shadow:0 4px 20px rgba(0,0,0,0.06);
    border:1px solid #e2e8f0;
}

textarea{
    width:100%;
    height:120px;
    padding:14px 16px;
    border:2px solid #e2e8f0;
    border-radius:12px;
    font-size:15px;
    resize:vertical;
    margin-bottom:8px;
    font-family:inherit;
    color:#2d3748;
    outline:none;
}

textarea:focus{
    border-color:var(--theme-color);
    box-shadow:0 0 0 4px var(--theme-light);
}

.char-count{
    text-align:right;
    font-size:12px;
    color:#a0aec0;
    margin-bottom:12px;
}

button{
    padding:11px 28px;
    background:linear-gradient(135deg,var(--theme-color),var(--theme-color-dark));
    color:#ffffff;
    border:none;
    border-radius:10px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    box-shadow:0 4px 12px var(--theme-light);
}

.user-msg-title{
    font-size:18px;
    font-weight:600;
    color:#4a5568;
    margin:18px 0 12px;
    padding-left:10px;
    border-left:4px solid var(--theme-color);
}

.msg-item{
    background:#ffffff;
    padding:16px 18px;
    border-radius:12px;
    margin:12px 0;
    border:1px solid #e2e8f0;
    box-shadow:0 2px 10px rgba(0,0,0,0.04);
}

.msg-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:8px;
}

.msg-time{
    font-size:12px;
    color:#a0aec0;
}

.delete-btn{
    padding:4px 12px;
    font-size:12px;
    background:#ef4444;
    box-shadow:none;
    border-radius:6px;
}

.admin-section{
    margin-top:30px;
    padding:16px;
    background:rgba(255,255,255,0.5);
    border-radius:12px;
    border:1px dashed #cbd5e0;
    text-align:center;
}

#adminLoginBox{
    display:flex;
    gap:10px;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
}

#adminLoginBox input{
    padding:10px 14px;
    border:2px solid #e2e8f0;
    border-radius:8px;
    font-size:14px;
    outline:none;
    width:200px;
}

#adminLoginBox input:focus{
    border-color:var(--theme-color);
}

#adminLoginBox button{
    padding:10px 18px;
    font-size:14px;
}

.admin-badge{
    color:var(--theme-color);
    font-weight:600;
    font-size:14px;
}

.admin-logout-btn{
    margin-left:12px;
    padding:6px 14px;
    font-size:13px;
    background:#e2e8f0;
    color:#4a5568;
    box-shadow:none;
}

@media (max-width:600px){
    body{padding:16px 12px 40px;}
    h1{font-size:24px;}
    .day-box{font-size:16px;padding:16px;}
    .day-box span{font-size:28px;}
    .inner-image-wrap{gap:10px;justify-content:center;}
    .inner-image-wrap img{width:calc(50% - 5px);height:160px;}
    .fixed-message-block,.form-box{padding:16px;}
    .form-box button{width:100%;}
    .music-btn{width:42px;height:42px;font-size:18px;top:12px;right:12px;}
    .lock-box{padding:36px 24px;}
}
/* 音乐开启提示条 */
.music-tip{
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    background:rgba(0,0,0,0.75);
    color:#fff;
    padding:16px 28px;
    border-radius:12px;
    font-size:16px;
    z-index:200;
    cursor:pointer;
    display:none;
    animation:fadeInTip 0.3s ease;
    backdrop-filter:blur(8px);
}

@keyframes fadeInTip{
    from{opacity:0;transform:translate(-50%,-50%) scale(0.9);}
    to{opacity:1;transform:translate(-50%,-50%) scale(1);}
}
