* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #444B75;
    color: #e0e6ed;
    margin: 0;        
    padding: 0;       
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* 顶部背景图与 Logo 容器 */
.main-header {
    text-align: center;
    width: 100vw;
    padding: 10px 0 40px 0; 
    margin: 0 !important;
    background-image: 
        linear-gradient(to bottom, rgba(252, 249, 242, 0) 0%, #444B75 95%),
        url('images1/bg.jpg');
    background-size: cover;
    background-position: top center;
}

.main-logo {
    width: 80%;           
    max-width: 400px;     
    height: auto;         
    display: block;
    margin: 0 auto;       
    padding-top: 0px;    
}

.container {
    width: 100%;
    max-width: 450px;
}

.card {
    background-color: transparent;
    border: none;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: none;
}

.intro-text {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    text-align: justify;
}

.main-footer {
    text-align: center;
    font-size: 11px;
    color: #576575;
    line-height: 1.8;
    margin-top: auto;
    padding-bottom: 20px;
}

/* 独立弹窗 */
.modal {
    display: none; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); 
    justify-content: center; 
    align-items: center; 
    z-index: 9999; 
}

.modal-content {
    background: #272c3d; 
    color: white; 
    padding: 25px; 
    border-radius: 15px;
    width: 80%; 
    max-width: 300px; 
    text-align: center;
    border: 1px solid #e5c17d; 
}

.sail-btn {
    display: block; 
    background: #e5c17d; 
    color: #272c3d;
    padding: 12px; 
    border-radius: 8px; 
    text-decoration: none;
    margin-top: 20px; 
    font-weight: bold;
}

.social-links {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 60px;               
    margin-top: 20px;        
    margin-bottom: 25px;     
    width: 100%;
}

.social-icon {
    height: 40px;            
    width: auto;
    transition: transform 0.2s;
}

.login-container {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    margin-bottom: 35px;    
    width: 100%;
}

.login-icon {
    height: 130px;            
    width: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.register-tip {
    font-size: 13px;         
    color: #a0a5b5;          
    text-decoration: none;   
    margin-top: -20px;        
    transition: color 0.2s;  
    cursor: pointer;
}

.register-tip:hover {
    color: #e5c17d;          
    text-decoration: underline; 
}

.social-icon:hover, .login-icon:hover {
    transform: scale(1.1);   
}

/* 登录/注册遮罩层 */
.modal-overlay {
    display: none;             
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(8px);    
    z-index: 9999;             
    justify-content: center;
    align-items: center;
}

.modal-box {
    background: #1a1c24;       
    border: 1px solid #3f4456; 
    padding: 40px 30px;
    border-radius: 16px;
    width: 85%;
    max-width: 360px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease; 
    
    /* 🌟 加上下面这两行，解锁滑动封印！ */
    max-height: 85vh;      /* 限制弹窗最高只能占屏幕高度的 85% */
    overflow-y: auto;      /* 当内容超过 85% 高度时，自动开启上下滑动 */
}

.modal-title {
    color: #e5c17d;            
    text-align: center;
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: normal;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: #252834;
    border: 1px solid #3f4456;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #e5c17d;
}
/* 隐藏弹窗盒子的滚动条，但不影响滑动功能 */
.modal-box::-webkit-scrollbar {
    display: none; 
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #e5c17d, #b39252); 
    border: none;
    border-radius: 8px;
    color: #1a1c24;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.1s, opacity 0.2s;
}

.auth-btn:active {
    transform: scale(0.98); 
}

.switch-tip {
    text-align: center;
    color: #a0a5b5;
    font-size: 13px;
    margin-top: 20px;
}

.switch-tip span {
    color: #e5c17d;
    cursor: pointer;
    text-decoration: underline;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #a0a5b5;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.third-party-auth {
    margin-top: 25px;
    text-align: center;
}

.third-title {
    font-size: 11px;
    color: #636b81; 
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.third-icons {
    display: flex;
    justify-content: center;
    gap: 60px; 
}

.third-icons img {
    width: 34px;  
    height: 34px;
    cursor: pointer;
    opacity: 0.75; 
    transition: all 0.2s ease;
}

.third-icons img:hover {
    opacity: 1;
    transform: scale(1.15);
    filter: drop-shadow(0 0 4px rgba(229, 193, 125, 0.4));
}

/* =========================================
   👑 顶部状态栏与个人中心模块 👑
========================================= */
.top-status-bar {
    position: fixed;
    top: 15px; right: 15px;
    display: flex; align-items: center; gap: 18px;
    z-index: 1000;
    background: rgba(37, 43, 61, 0.75);
    padding: 6px 14px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.notification-box {
    position: relative;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
}

.badge-dot {
    position: absolute;
    top: -1px; right: -1px;
    width: 8px; height: 8px;
    background-color: #ff4d4f; 
    border-radius: 50%;
    box-shadow: 0 0 6px #ff4d4f;
}

.user-avatar-wrapper {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid #e5c17d; 
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.user-avatar {
    width: 100%; height: 100%;
    object-fit: cover;
}

.notification-box:active, .user-avatar-wrapper:active {
    transform: scale(0.9);
}

/* 注册页头像完美正圆与无缝切圆样式 */
.avatar-upload-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 22px;
}

.avatar-preview-label {
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 强行正圆约束容器 */
.avatar-preview-wrapper {
    width: 76px; height: 76px;
    border-radius: 50%;
    border: 2px dashed #e5c17d;
    background-color: #252834; 
    position: relative;
    overflow: hidden;          
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.4);
}

.upload-preview-img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.upload-hint {
    display: block;
    font-size: 11px;
    color: #a0a5b5;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* 个人中心大面板 */
.user-center-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
}

.user-center-box {
    background: #1a1c24;
    border: 1px solid #3f4456;
    border-radius: 20px;
    padding: 35px 30px;
    width: 85%; max-width: 350px;
    position: relative;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.user-info-card {
    background: rgba(255,255,255,0.03);
    padding: 20px; border-radius: 14px; margin-bottom: 20px;
    border: 1px solid rgba(229,193,125,0.1);
}

.profile-avatar-wrapper {
    width: 80px; height: 80px; border-radius: 50%;
    border: 3px solid #e5c17d; margin: 0 auto 12px auto; overflow: hidden;
}

.profile-avatar-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.user-uid { font-size: 12px; color: #636b81; margin-top: 5px; }

.profile-menu { display: flex; flex-direction: column; gap: 10px; }

.menu-item {
    background: #252834; padding: 12px 16px; border-radius: 8px;
    color: #fff; font-size: 14px; text-align: left; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.02);
    transition: background 0.2s;
}

.menu-item:active {
    background: #2d3140;
}

.logout-btn {
    background: #ff4d4f; border: none; padding: 12px; border-radius: 8px;
    color: white; font-weight: bold; cursor: pointer; margin-top: 15px;
    transition: opacity 0.2s;
}

.logout-btn:active {
    opacity: 0.8;
}

/* =========================================
   📢 轮播图(Carousel) 专属样式 📢
========================================= */
.announcement-section {
    width: 100%;
    padding: 0 15px;
    margin-bottom: 25px;
}

.announcement-header {
    margin-bottom: 12px;
}

.announcement-header h4 {
    font-size: 15px;
    color: #e5c17d;
    font-weight: 500;
}

/* 轮播大框 */
.carousel-container {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    border: 3px solid #252b3d;
    box-shadow: 4px 4px 0px #0f121a;
}

/* 滑块组 */
.carousel-slides {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 单个滑块幻灯片 */
.carousel-slide-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* 蒙版半透明遮罩：防止背景图太亮，保证文字能看清 */
.slide-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(15, 18, 26, 0.95) 0%, rgba(15, 18, 26, 0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 15px 20px;
    box-sizing: border-box;
}

.slide-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 按钮悬浮盘 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 18, 26, 0.6);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.carousel-btn:active {
    background: #e5c17d;
    color: #252b3d;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* 小圆点集锦 */
.carousel-dots {
    position: absolute;
    bottom: 12px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #e5c17d;
    width: 14px; /* 扁圆拉伸高档形态 */
    border-radius: 3px;
}

/* 公告发布器图片预览 */
.notice-publish-box {
    max-width: 380px !important;
}

.notice-image-upload-box {
    width: 100%;
    height: 140px;
    border: 2px dashed #3f4456;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.notice-img-label {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    position: relative;
}

.notice-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notice-upload-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #252834;
    color: #a0a5b5;
    font-size: 13px;
}
/* =========================================
   📢 方案 B：管理员公告管理面板专属样式
========================================= */
/* 列表总外壳：设定固定高度，超出自动形成精致内部滚动 */
.admin-notice-list-box {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #3f4456;
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
}

/* 列表精致滚动条微调 */
.admin-notice-list-box::-webkit-scrollbar {
    width: 4px;
}
.admin-notice-list-box::-webkit-scrollbar-thumb {
    background: #3f4456;
    border-radius: 2px;
}

/* 单条公告行：左文字，右按钮 */
.admin-notice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 13px;
}

/* 公告标题：限制宽度，超出自动打省略号，防止撑破排版 */
.admin-notice-title-text {
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

/* 右侧操作文字按钮组 */
.admin-notice-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* 纯文字按钮通用样式 */
.admin-action-txt-btn {
    cursor: pointer;
    font-size: 12px;
    transition: color 0.1s;
    font-weight: 500;
}

/* 修改文字：高档淡金色 */
.admin-action-txt-btn.edit-btn {
    color: #e5c17d;
}
.admin-action-txt-btn.edit-btn:hover {
    color: #fff;
    text-decoration: underline;
}

/* 删除文字：高档淡红色 */
.admin-action-txt-btn.delete-btn {
    color: #ff7875;
}
.admin-action-txt-btn.delete-btn:hover {
    color: #ff4d4f;
    text-decoration: underline;
}
/* =========================================
   👑 模块入口通用卡片样式 👑
========================================= */
.shop-entrance-section {
    width: 100%;
    margin-top: 25px;
    box-sizing: border-box;
}

.shop-entrance-card {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 16px;
    background-image: url('images1/shop.jpg');
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, border-color 0.2s;
}

.shop-entrance-card:hover {
    transform: scale(1.01);
    border-color: rgba(229, 193, 125, 0.4);
}

.shop-entrance-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 28, 36, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.shop-entrance-title {
    color: #e5c17d;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 6px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.shop-entrance-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    letter-spacing: 1px;
}

/* 通用二级页面跳转卡片 */
.module-entrance-card {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s;
    margin-top: 15px;
}
.module-entrance-card:hover { transform: scale(1.01); border-color: rgba(229, 193, 125, 0.4); }

/* 各板块卡片专属背景 */
.baihong-card { background-image: url('images1/star-bg.jpg'); }

/* 新增：OC档案板块专属卡片背景样式 */
.oc-card { background-image: url('images1/star-bg.jpg'); }
/* =========================================
   🐱 底部吉祥物彩蛋样式
========================================= */
.chuanchuan-container {
    text-align: center;
    margin-top: 25px; /* 和上面的文字拉开一点距离 */
}

.chuanchuan-img {
    width: 160px; /* 图片大小你可以根据实际情况调整 */
    height: auto;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 鼠标按下去的时候图片会稍微缩小，增加手感 */
.chuanchuan-img:active {
    transform: scale(0.9);
}

/* 浮动文字的样式 */
.floating-meow {
    position: fixed; /* 固定定位，脱离文档流 */
    color: #e5c17d; /* 众星的高档淡金色 */
    font-size: 32px;
    font-weight: bold;
    pointer-events: none; /* 防止文字遮挡鼠标继续点击 */
    z-index: 10000;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    /* 播放 floatUp 动画，时长 0.5秒，匀速退出，并在结束后保持最后状态 */
    animation: floatUp 0.8s ease-out forwards; 
}

/* 浮动消失的动画帧 */
@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1.2); /* 向上飘并稍微放大 */
    }
}