* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px;
    padding-bottom: 80px; /* 为备案号留出空间 */
}

/* PC端背景 */
@media screen and (min-width: 769px) {
    body {
        background-image: url('../../images/pc.jpg');
    }
}

/* 手机端背景 */
@media screen and (max-width: 768px) {
    body {
        background-image: url('../../images/phone.jpg');
    }
}

/* 白色窗口透明度70%，模糊效果降低一半 */
.container {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(5px); /* 原来是10px，降低一半 */
    -webkit-backdrop-filter: blur(5px);
}

.login-section,
.form-section {
    padding: 40px 30px;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

#qrcode-container {
    text-align: center;
    padding: 20px;
}

/* 二维码样式 */
#qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    overflow: hidden;
    position: relative;
}

#qrcode img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    background: #fff;
    margin: auto;
}

/* 打开哔哩哔哩按钮 - 粉色主题 */
.bilibili-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    margin-top: 20px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fa3 50%, #ffb6c1 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bilibili-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
    background: linear-gradient(135deg, #ff5a8f 0%, #ff7a9a 50%, #ffa5b8 100%);
}

.bilibili-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.required {
    color: #ff4757;
}

input[type="text"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
}

input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    background: #fff;
}

input[readonly] {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ===== 备案号样式 ===== */
.footer-beian {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
}

.footer-beian a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin: 0 8px;
}

.footer-beian a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-beian .divider {
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式优化 */
@media screen and (max-width: 480px) {
    body {
        padding-bottom: 100px; /* 小屏幕备案号更高 */
    }
    
    .login-section,
    .form-section {
        padding: 30px 20px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    #qrcode {
        width: 160px;
        height: 160px;
    }
    
    .footer-beian {
        font-size: 10px;
        padding: 10px 5px;
    }
    
    .footer-beian a {
        margin: 0 4px;
    }
}

/* 防止图片被下载的CSS保护 */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
}