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

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 32px;
    padding: 48px 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    text-align: center;
}

.login-card h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

.login-card .sub {
    color: #666;
    margin-bottom: 40px;
    font-size: 14px;
}

.login-card input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    font-size: 16px;
    outline: none;
}

.login-card input:focus {
    border-color: #667eea;
}

.login-card button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    margin-top: 16px;
}

.register-note {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eef2ff;
    color: #888;
    font-size: 14px;
}

@media (max-width: 640px) {
    .login-card {
        padding: 32px 24px;
    }
}

/* ========== 友情链接样式 ========== */
.friend-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eef2ff;
}

.friend-title {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}

.friend-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.friend-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    cursor: pointer;
}

.friend-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ========== 二维码弹窗样式 ========== */
.qrcode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.qrcode-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.qrcode-close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.qrcode-close:hover {
    color: #333;
}

.qrcode-modal-content img {
    width: 250px;
    height: 250px;
    margin: 10px 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
}

.qrcode-modal-content p {
    margin-top: 12px;
    font-size: 14px;
    color: #333;
}

/* ========== 友情链接样式 ========== */
.friend-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eef2ff;
}

.friend-title {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}

.friend-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.friend-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    cursor: pointer;
}

.friend-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ========== 二维码弹窗样式 ========== */
.qrcode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.qrcode-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.qrcode-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.qrcode-close:hover {
    color: #333;
}

/* 第一排：自定义文本 */
.qrcode-text {
    font-size: 16px;
    font-weight: normal;
    color: #333;
    margin-bottom: 20px;
    padding-right: 20px;
}

/* 第二排：账号+复制按钮 */
.qrcode-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.qrcode-account span {
    font-size: 14px;
    color: #333;
    font-family: monospace;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.copy-btn:hover {
    background: #5a67d8;
}

/* 第三排：二维码图片区域 */
.qrcode-image-area {
    min-height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qrcode-image-area img {
    width: 250px;
    height: 250px;
    object-fit: contain;
}

.qrcode-placeholder {
    width: 250px;
    height: 250px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
    text-align: center;
    white-space: pre-line;
}

/* 提示信息框 */
.message-box {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.message-box.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.message-box.success {
    background: #d1fae5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

/* 联系文本样式 */
.contact-text {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

/* 联系文本样式 */
.contact-text {
    font-size: 14px;
    color: #888;
    margin: 10px 0 15px 0;
    text-align: center;
}

/* 修改链接颜色为 #333333 */
.register-note a,
.friend-link,
.friend-title {
    color: #888888 !important;
}

.register-note a:hover,
.friend-link:hover {
    color: #888888 !important;
    text-decoration: underline;
}

/* 统一链接样式 */
.register-note a,
.friend-link,
.friend-title {
    font-size: 14px !important;
    font-weight: normal !important;
    color: #888888 !important;
}

.register-note a:hover,
.friend-link:hover {
    color: #888888 !important;
    text-decoration: underline;
}

/* 强制统一所有链接样式 */
.register-note a,
.register-note span a,
.friend-link,
.friend-title,
.bottom-links a {
    font-size: 14px !important;
    font-weight: normal !important;
    color: #888888 !important;
    font-family: inherit !important;
    letter-spacing: normal !important;
}

.register-note a:hover,
.friend-link:hover {
    color: #888888 !important;
    text-decoration: underline;
}

/* 覆盖 register-note 的默认颜色 */
.register-note {
    color: #888888 !important;
}
