/* 全局重置 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }

body {
    margin: 0; padding: 0;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../images/login-bg.jpg'); 
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    color: #333;
    overflow: hidden; /* 防止滚动条出现 */
    position: relative;
}

/* 背景装饰（选做，增加现代感） */
.bg-circle { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.1); }
.circle-1 { width: 200px; height: 200px; top: -50px; right: -50px; }
.circle-2 { width: 300px; height: 300px; bottom: -100px; left: -100px; }

/* 主卡片样式 */
.login-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9); 
    width: 85%;
    max-width: 340px;
    padding: 60px 30px 30px 30px; /* 顶部留出空间给Logo */
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-align: center;
    margin-top: 20px; /* 视觉修正 */
}

/* 悬浮 Logo */
.logo-container {
    position: absolute;
    top: -40px; /* 向上突出一半 */
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px; /* 圆角矩形 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.logo-container img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
}

.login-header h2 { margin: 10px 0 5px; color: #333; font-size: 20px; }
.login-header p { color: #aaa; font-size: 13px; margin: 0 0 25px 0; }

/* 胶囊输入框 (图二风格) */
.input-wrapper {
    margin-bottom: 15px;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 50px; /* 胶囊形状 */
    font-size: 14px;
    transition: all 0.3s;
    background: #f9f9f9;
    text-align: center; /* 像图二一样文字居中，如果不习惯可以改为 left */
}

.input-wrapper input:focus {
    border-color: #4facfe;
    background: #fff;
    box-shadow: 0 0 8px rgba(79, 172, 254, 0.2);
}

/* 验证码特殊布局 */
.captcha-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.captcha-wrapper input { width: 60%; }
.captcha-wrapper img { 
    width: 35%; height: 42px; 
    border-radius: 20px; 
    cursor: pointer; 
    object-fit: cover; 
    border: 1px solid #eee;
}

/* 协议勾选 */
.agreement-box {
    font-size: 12px;
    color: #999;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.agreement-box input { margin-right: 5px; vertical-align: middle; }
.agreement-box span { vertical-align: middle; }

/* 辅助链接区域 */
.secondary-links {
    display: flex;
    justify-content: space-between; /* 一左一右对齐 */
    width: 100%;
    padding: 0 15px; /* 与输入框边缘对齐 */
    margin-bottom: 25px; /* 与下方登录按钮拉开距离 */
    font-size: 13px;
}

.link-text {
    color: #666666; /* 默认灰色，不抢眼 */
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.link-text:active {
    color: #4facfe; /* 变为主题蓝 */
}

.link-text:before {
    font-family: FontAwesome;
    margin-right: 4px;
}
.secondary-links a:nth-child(1)::before {
    content: "\f023"; 
}
.secondary-links a:nth-child(2)::before {
    content: "\f0e0"; 
}
.secondary-links a:nth-child(3)::before {
    content: "\f1da";
}

/* 圆形按钮区域 */
.action-area {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-circle:active { transform: scale(0.95); }
.btn-circle:disabled { background: #ccc; box-shadow: none; cursor: not-allowed; }

/* 底部公告栏 */
.notice-board {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 12px;
    font-size: 13.5px;
    color: #555;
    text-align: left;
    border-left: 4px solid #4facfe;
}
.notice-title {
    display: flex;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    color: #2c6afb;
    margin-bottom: 4px;
}

/* 底部版权信息样式 */
.card-footer {
    margin-top: 20px;       /* 与上方公告栏拉开距离 */
    text-align: center;     
    padding-top: 15px;
}

.card-footer p {
    margin: 0;              
    font-size: 11px;        
    color: #aaa;         
    line-height: 1.6;       
    font-weight: 400;
}

/* --- 公告弹窗样式 --- */

/* 1. 遮罩层：带模糊效果 */
.announce-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px); /* 毛玻璃背景 */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 遮罩层淡入动画 */
    animation: fadeInBg 0.3s ease-out forwards;
}

/* 2. 卡片主体 */
.announce-card {
    width: 85%;
    max-width: 320px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    
    /* 卡片弹出动画：弹性效果 */
    animation: popInCard 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.1s; /* 稍微晚于遮罩层 */
}

/* 3. 标题栏 */
.announce-header {
    background: #4facfe;
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* 4. 内容区域 */
.announce-content {
    padding: 25px 20px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
}
.announce-content p { margin-bottom: 8px; margin-top: 0; }

/* 5. 底部区域 */
.announce-footer {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* 6. 按钮样式 */
.btn-know {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: #4facfe;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
    box-shadow: 0 4px 10px rgba(79, 172, 254, 0.3);
}
.btn-know:active {
    transform: scale(0.96);
    background: #00f2fe;
}

/* 7. 自定义选框样式 */
.no-disturb-check {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #888;
    user-select: none;
}

.no-disturb-check input {
    display: none; /* 隐藏原生 checkbox */
}

/* 自定义方框 */
.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s;
}

/* 选中状态 */
.no-disturb-check input:checked ~ .checkmark {
    background: #4facfe;
    border-color: #4facfe;
}

/* 对勾图标 */
.no-disturb-check input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 动画关键帧 */
@keyframes fadeInBg {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popInCard {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}