3341 行
64 KiB
CSS
3341 行
64 KiB
CSS
/* CSS变量定义 - 亮色主题(默认) */
|
|
:root {
|
|
--bg-primary: #f5f5f5;
|
|
--bg-secondary: #ffffff;
|
|
--bg-tertiary: #fafafa;
|
|
--bg-hover: #f5f5f5;
|
|
--bg-active: #e8f5e8;
|
|
--text-primary: #333333;
|
|
--text-secondary: #666666;
|
|
--text-tertiary: #999999;
|
|
--border-color: #e0e0e0;
|
|
--border-light: #f0f0f0;
|
|
--border-lighter: #eeeeee;
|
|
--accent-color: #07c160;
|
|
--accent-hover: #06ad56;
|
|
--shadow-color: rgba(0, 0, 0, 0.1);
|
|
--shadow-hover: rgba(0, 0, 0, 0.15);
|
|
--input-bg: #ffffff;
|
|
--input-border: #dddddd;
|
|
--input-focus: #07c160;
|
|
--online-status: #07c160;
|
|
--divider: #e0e0e0;
|
|
--banner-bg: #fff3cd;
|
|
--banner-text: #856404;
|
|
--banner-btn: #ffc107;
|
|
--banner-btn-hover: #e0a800;
|
|
--group-announcement-bg: #f0f9ff;
|
|
--group-announcement-border: #e0f2fe;
|
|
--group-announcement-color: #1890ff;
|
|
--error-bg: #ffebee;
|
|
--error-text: #c62828;
|
|
--success-bg: #e8f5e8;
|
|
--success-text: #2e7d32;
|
|
--warning-bg: #fff3cd;
|
|
--warning-text: #856404;
|
|
--modal-overlay: rgba(0, 0, 0, 0.5);
|
|
--modal-bg: #ffffff;
|
|
--scrollbar-track: #f1f1f1;
|
|
--scrollbar-thumb: #c1c1c1;
|
|
--scrollbar-thumb-hover: #a8a8a8;
|
|
}
|
|
|
|
/* 暗色主题变量 */
|
|
body.dark-mode {
|
|
--bg-primary: #121212;
|
|
--bg-secondary: #1e1e1e;
|
|
--bg-tertiary: #2d2d2d;
|
|
--bg-hover: #2a2a2a;
|
|
--bg-active: #1b5e20;
|
|
--text-primary: #e0e0e0;
|
|
--text-secondary: #b0b0b0;
|
|
--text-tertiary: #808080;
|
|
--border-color: #3d3d3d;
|
|
--border-light: #2a2a2a;
|
|
--border-lighter: #333333;
|
|
--accent-color: #4caf50;
|
|
--accent-hover: #43a047;
|
|
--shadow-color: rgba(0, 0, 0, 0.3);
|
|
--shadow-hover: rgba(0, 0, 0, 0.4);
|
|
--input-bg: #2d2d2d;
|
|
--input-border: #3d3d3d;
|
|
--input-focus: #4caf50;
|
|
--online-status: #4caf50;
|
|
--divider: #3d3d3d;
|
|
--banner-bg: #4a3f00;
|
|
--banner-text: #ffd54f;
|
|
--banner-btn: #ff9800;
|
|
--banner-btn-hover: #f57c00;
|
|
--group-announcement-bg: #0f172a;
|
|
--group-announcement-border: #1e293b;
|
|
--group-announcement-color: #3b82f6;
|
|
--error-bg: #5c2b2b;
|
|
--error-text: #ef9a9a;
|
|
--success-bg: #1b5e20;
|
|
--success-text: #a5d6a7;
|
|
--warning-bg: #4a3f00;
|
|
--warning-text: #ffd54f;
|
|
--modal-overlay: rgba(0, 0, 0, 0.7);
|
|
--modal-bg: #1e1e1e;
|
|
--scrollbar-track: #2d2d2d;
|
|
--scrollbar-thumb: #4d4d4d;
|
|
--scrollbar-thumb-hover: #5d5d5d;
|
|
}
|
|
|
|
/* 全局样式 */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
background-color: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
transition: background-color 0.3s ease, color 0.3s ease;
|
|
}
|
|
|
|
/* 登录/注册页面样式 */
|
|
.login-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
background: linear-gradient(135deg, #07c160 0%, #00a86b 100%);
|
|
}
|
|
|
|
.login-box {
|
|
background: var(--bg-secondary);
|
|
border-radius: 10px;
|
|
box-shadow: 0 2px 10px var(--shadow-color);
|
|
padding: 30px;
|
|
width: 100%;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.app-title {
|
|
text-align: center;
|
|
color: var(--accent-color);
|
|
font-size: 28px;
|
|
margin-bottom: 20px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.login-tabs {
|
|
display: flex;
|
|
margin-bottom: 20px;
|
|
border-bottom: 1px solid var(--border-lighter);
|
|
}
|
|
|
|
.tab-btn {
|
|
flex: 1;
|
|
background: none;
|
|
border: none;
|
|
padding: 10px;
|
|
font-size: 16px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.tab-btn.active {
|
|
color: var(--accent-color);
|
|
border-bottom: 2px solid var(--accent-color);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
.input-group {
|
|
position: relative;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.input-group i {
|
|
position: absolute;
|
|
left: 16px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: #999;
|
|
font-size: 16px;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.input-group input {
|
|
width: 100%;
|
|
padding: 14px 16px 14px 48px;
|
|
border: 2px solid #e0e0e0;
|
|
border-radius: 12px;
|
|
font-size: 15px;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
background: white;
|
|
color: #333;
|
|
}
|
|
|
|
.input-group input:hover {
|
|
border-color: #ccc;
|
|
}
|
|
|
|
.input-group input:focus {
|
|
outline: none;
|
|
border-color: #07c160;
|
|
box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1), 0 4px 12px rgba(7, 193, 96, 0.15);
|
|
}
|
|
|
|
.input-group input:focus + i,
|
|
.input-group input:focus ~ i {
|
|
color: #07c160;
|
|
}
|
|
|
|
.input-group input::placeholder {
|
|
color: #aaa;
|
|
}
|
|
|
|
/* 输入框错误状态 */
|
|
.input-group.error input {
|
|
border-color: #ff4d4f;
|
|
background-color: #fff8f8;
|
|
box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.1), 0 4px 12px rgba(255, 77, 79, 0.1);
|
|
animation: shake 0.4s ease;
|
|
}
|
|
|
|
.input-group.error i {
|
|
color: #ff4d4f;
|
|
}
|
|
|
|
.input-group.error .required-mark {
|
|
color: #ff4d4f;
|
|
}
|
|
|
|
.input-group .error-message {
|
|
display: none;
|
|
align-items: center;
|
|
color: #d93026;
|
|
font-size: 12px;
|
|
margin-top: 8px;
|
|
margin-left: 0;
|
|
padding: 8px 12px;
|
|
background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
|
|
border-radius: 8px;
|
|
border: 1px solid #ffe0e0;
|
|
box-shadow: 0 2px 8px rgba(255, 77, 79, 0.08);
|
|
}
|
|
|
|
.input-group.error .error-message {
|
|
display: flex;
|
|
}
|
|
|
|
/* 必填标记 */
|
|
.input-group .required-mark {
|
|
position: absolute;
|
|
right: 15px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: #999;
|
|
font-size: 12px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
/* 复选框错误状态 */
|
|
.terms-checkbox.error {
|
|
padding: 10px 12px;
|
|
background: rgba(255, 77, 79, 0.05);
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(255, 77, 79, 0.2);
|
|
}
|
|
|
|
.terms-checkbox.error input[type="checkbox"] {
|
|
border-color: #ff4d4f;
|
|
}
|
|
|
|
.terms-checkbox.error label {
|
|
color: #555;
|
|
}
|
|
|
|
.terms-checkbox .error-message {
|
|
display: none;
|
|
align-items: center;
|
|
color: #ff4d4f;
|
|
font-size: 12px;
|
|
margin-top: 8px;
|
|
padding: 6px 10px;
|
|
background: rgba(255, 77, 79, 0.08);
|
|
border-radius: 6px;
|
|
border-left: 3px solid #ff4d4f;
|
|
}
|
|
|
|
.terms-checkbox.error .error-message {
|
|
display: flex;
|
|
}
|
|
|
|
/* 抖动动画 */
|
|
@keyframes shake {
|
|
0%, 100% { transform: translateX(0); }
|
|
10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
|
|
20%, 40%, 60%, 80% { transform: translateX(4px); }
|
|
}
|
|
|
|
.login-btn {
|
|
width: 100%;
|
|
padding: 15px;
|
|
background: linear-gradient(135deg, #07c160 0%, #00a86b 100%);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 12px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.login-btn::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
|
|
transition: left 0.5s ease;
|
|
}
|
|
|
|
.login-btn:hover::before {
|
|
left: 100%;
|
|
}
|
|
|
|
.login-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
|
|
}
|
|
|
|
.login-btn:active {
|
|
transform: translateY(0);
|
|
box-shadow: 0 2px 8px rgba(7, 193, 96, 0.3);
|
|
}
|
|
|
|
/* 第三方登录样式 */
|
|
.third-party-login {
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.login-divider {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.login-divider::before,
|
|
.login-divider::after {
|
|
content: '';
|
|
flex: 1;
|
|
height: 1px;
|
|
background-color: var(--border-color);
|
|
}
|
|
|
|
.login-divider span {
|
|
padding: 0 15px;
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.third-party-btn {
|
|
width: 100%;
|
|
padding: 12px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 25px;
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
margin-bottom: 12px;
|
|
background-color: #fff;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.third-party-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px var(--shadow-hover);
|
|
}
|
|
|
|
.third-party-btn:active {
|
|
transform: translateY(0);
|
|
box-shadow: 0 2px 6px var(--shadow-color);
|
|
}
|
|
|
|
.third-party-btn i {
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* QQ登录按钮 */
|
|
.qq-login-btn {
|
|
color: #12B7F5;
|
|
border-color: #12B7F5;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.qq-login-btn:hover {
|
|
background-color: #12B7F5;
|
|
color: #fff;
|
|
border-color: #12B7F5;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(18, 183, 245, 0.3);
|
|
}
|
|
|
|
/* GitHub登录按钮 */
|
|
.github-login-btn {
|
|
color: #333;
|
|
border-color: #333;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.github-login-btn:hover {
|
|
background-color: #333;
|
|
color: #fff;
|
|
border-color: #333;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3);
|
|
}
|
|
|
|
/* 微软登录按钮 */
|
|
.microsoft-login-btn {
|
|
color: #00A4EF;
|
|
border: 2px solid #00A4EF;
|
|
background-color: linear-gradient(135deg, #F25022 0%, #7FBA00 50%, #00A4EF 100%);
|
|
}
|
|
|
|
.microsoft-login-btn:hover {
|
|
background: linear-gradient(135deg, #F25022 0%, #7FBA00 50%, #00A4EF 100%);
|
|
color: #fff;
|
|
border: 2px solid #00A4EF;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 164, 239, 0.3);
|
|
}
|
|
|
|
/* Steam登录按钮 */
|
|
.steam-login-btn {
|
|
color: #1B2838;
|
|
border-color: #1B2838;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.steam-login-btn:hover {
|
|
background-color: #1B2838;
|
|
color: #fff;
|
|
border-color: #1B2838;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(27, 40, 56, 0.3);
|
|
}
|
|
|
|
/* Discord登录按钮 */
|
|
.discord-login-btn {
|
|
color: #5865F2;
|
|
border-color: #5865F2;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.discord-login-btn:hover {
|
|
background-color: #5865F2;
|
|
color: #fff;
|
|
border-color: #5865F2;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
|
|
}
|
|
|
|
.remember-me {
|
|
margin: 12px 0 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 14px;
|
|
color: #666;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.remember-me input[type="checkbox"] {
|
|
position: relative;
|
|
width: 18px;
|
|
height: 18px;
|
|
margin-right: 10px;
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
background-color: white;
|
|
border: 2px solid #ddd;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.remember-me input[type="checkbox"]:hover {
|
|
border-color: #07c160;
|
|
background-color: rgba(7, 193, 96, 0.05);
|
|
}
|
|
|
|
.remember-me input[type="checkbox"]:checked {
|
|
background: linear-gradient(135deg, #07c160 0%, #00a86b 100%);
|
|
border-color: #07c160;
|
|
box-shadow: 0 2px 8px rgba(7, 193, 96, 0.3);
|
|
}
|
|
|
|
.remember-me input[type="checkbox"]:checked::after {
|
|
content: '\2714';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
color: white;
|
|
font-size: 11px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.terms-checkbox {
|
|
margin: 15px 0;
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.terms-checkbox input[type="checkbox"] {
|
|
position: relative;
|
|
width: 20px;
|
|
height: 20px;
|
|
margin-right: 10px;
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
background-color: var(--bg-secondary);
|
|
border: 2px solid var(--border-color);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.terms-checkbox input[type="checkbox"]:hover {
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0 8px rgba(7, 193, 96, 0.2);
|
|
}
|
|
|
|
.terms-checkbox input[type="checkbox"]:checked {
|
|
background-color: var(--accent-color);
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.terms-checkbox input[type="checkbox"]:checked::after {
|
|
content: '\2714';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
color: white;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.terms-checkbox input[type="checkbox"]:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.2);
|
|
}
|
|
|
|
.terms-checkbox a {
|
|
color: var(--accent-color);
|
|
text-decoration: none;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.terms-checkbox a:hover {
|
|
color: #05a850;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* 设置项样式 */
|
|
.setting-item {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.setting-label {
|
|
font-size: 16px;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.setting-description {
|
|
font-size: 14px;
|
|
color: var(--text-tertiary);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
/* 开关样式 */
|
|
.switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 60px;
|
|
height: 34px;
|
|
}
|
|
|
|
.switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: #ccc;
|
|
transition: .4s;
|
|
border-radius: 34px;
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 26px;
|
|
width: 26px;
|
|
left: 4px;
|
|
bottom: 4px;
|
|
background-color: white;
|
|
transition: .4s;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
input:checked + .slider {
|
|
background-color: var(--accent-color);
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
transform: translateX(26px);
|
|
}
|
|
|
|
.error {
|
|
background: var(--error-bg);
|
|
color: var(--error-text);
|
|
padding: 10px;
|
|
border-radius: 5px;
|
|
margin-bottom: 15px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.notification.error {
|
|
background: var(--error-bg);
|
|
color: var(--error-text);
|
|
}
|
|
|
|
/* 邮箱绑定提醒横幅样式 */
|
|
.email-banner {
|
|
background: var(--banner-bg);
|
|
border-bottom: 1px solid var(--banner-btn);
|
|
padding: 15px 20px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.banner-content {
|
|
display: flex;
|
|
align-items: center;
|
|
max-width: 1200px;
|
|
width: 100%;
|
|
}
|
|
|
|
.banner-content i {
|
|
font-size: 24px;
|
|
color: var(--banner-text);
|
|
margin-right: 15px;
|
|
}
|
|
|
|
.banner-text {
|
|
flex: 1;
|
|
}
|
|
|
|
.banner-text h4 {
|
|
margin: 0 0 5px 0;
|
|
color: var(--banner-text);
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.banner-text p {
|
|
margin: 0;
|
|
color: var(--banner-text);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.banner-btn {
|
|
background: var(--banner-btn);
|
|
color: var(--banner-text);
|
|
border: none;
|
|
border-radius: 4px;
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.banner-btn:hover {
|
|
background: var(--banner-btn-hover);
|
|
}
|
|
|
|
/* 群公告样式 */
|
|
.group-announcement {
|
|
padding: 10px;
|
|
background: var(--group-announcement-bg);
|
|
border-bottom: 1px solid var(--group-announcement-border);
|
|
margin: 0 20px;
|
|
}
|
|
|
|
.group-announcement i {
|
|
color: var(--group-announcement-color);
|
|
margin-right: 10px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.group-announcement .announcement-title {
|
|
font-weight: bold;
|
|
margin-bottom: 5px;
|
|
color: var(--group-announcement-color);
|
|
}
|
|
|
|
.group-announcement .announcement-time {
|
|
font-size: 12px;
|
|
color: var(--text-tertiary);
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.group-announcement .close-announcement-btn {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-tertiary);
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.group-announcement .close-announcement-btn:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* 主聊天界面样式 */
|
|
.chat-app {
|
|
display: flex;
|
|
height: 100vh;
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
/* 当横幅存在时调整高度 */
|
|
.email-banner + .chat-app {
|
|
height: calc(100vh - 70px);
|
|
}
|
|
|
|
/* 左侧边栏样式 */
|
|
.sidebar {
|
|
width: 400px;
|
|
border-right: 1px solid var(--border-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg-secondary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px;
|
|
background: var(--bg-tertiary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.avatar {
|
|
position: relative;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: var(--accent-color);
|
|
color: white;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 20px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.username {
|
|
font-weight: bold;
|
|
color: var(--text-primary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 200px;
|
|
}
|
|
|
|
.header-actions, .chat-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.action-btn {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: none;
|
|
background: none;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-secondary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.action-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* 搜索框样式 */
|
|
.search-box {
|
|
position: relative;
|
|
padding: 10px;
|
|
background: var(--bg-tertiary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* 电脑版标签页样式 */
|
|
.tabs {
|
|
display: flex;
|
|
border-bottom: 1px solid var(--border-color);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.tab-btn {
|
|
flex: 1;
|
|
padding: 15px;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
transition: all 0.3s ease;
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
|
|
.tab-btn.active {
|
|
color: var(--accent-color);
|
|
border-bottom-color: var(--accent-color);
|
|
}
|
|
|
|
.tab-btn:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* 电脑版分开的聊天列表 */
|
|
.chat-lists {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
height: 100%;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
/* 手机版合并的聊天列表 */
|
|
.mobile-chat-list {
|
|
display: none;
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* 好友和群组列表样式 - 确保在不同设备上都能正确显示 */
|
|
.friends-list,
|
|
.groups-list,
|
|
.friends-list-mobile,
|
|
.groups-list-mobile {
|
|
padding: 0;
|
|
margin: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.friend-item,
|
|
.group-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.friend-item:hover,
|
|
.group-item:hover {
|
|
background-color: var(--bg-hover);
|
|
}
|
|
|
|
.friend-item.active,
|
|
.group-item.active {
|
|
background-color: var(--bg-active);
|
|
}
|
|
|
|
/* 聊天区域 */
|
|
.chat-section {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
/* 区域标题 */
|
|
.section-header {
|
|
padding: 8px 16px;
|
|
background: var(--bg-tertiary);
|
|
border-bottom: 1px solid var(--border-lighter);
|
|
}
|
|
|
|
.section-header h3 {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
margin: 0;
|
|
}
|
|
|
|
/* 好友列表 */
|
|
.friends-list {
|
|
padding: 0;
|
|
}
|
|
|
|
/* 群组列表 */
|
|
.groups-list {
|
|
padding: 0;
|
|
}
|
|
|
|
.search-box i {
|
|
position: absolute;
|
|
left: 20px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.search-box input {
|
|
width: 100%;
|
|
padding: 10px 15px 10px 40px;
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 20px;
|
|
font-size: 14px;
|
|
background: var(--input-bg);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.search-box input:focus {
|
|
outline: none;
|
|
border-color: var(--input-focus);
|
|
}
|
|
|
|
/* 好友列表样式 */
|
|
.friends-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.friend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 15px;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid var(--border-light);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.friend-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.friend-item.active {
|
|
background: var(--bg-active);
|
|
}
|
|
|
|
/* 群组列表样式 */
|
|
.groups-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.group-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 15px;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid var(--border-light);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.group-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.group-item.active {
|
|
background: var(--bg-active);
|
|
}
|
|
|
|
.group-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.group-name {
|
|
font-weight: bold;
|
|
margin-bottom: 5px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.group-last-message {
|
|
font-size: 13px;
|
|
color: var(--text-tertiary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.group-time {
|
|
font-size: 12px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.friend-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.friend-name {
|
|
font-weight: bold;
|
|
margin-bottom: 5px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.friend-last-message {
|
|
font-size: 13px;
|
|
color: var(--text-tertiary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.friend-time {
|
|
font-size: 12px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.online-status {
|
|
width: 10px;
|
|
height: 10px;
|
|
background: var(--online-status);
|
|
border-radius: 50%;
|
|
margin-left: 10px;
|
|
border: 2px solid white;
|
|
box-shadow: 0 0 0 1px var(--border-color);
|
|
}
|
|
|
|
/* 右侧聊天区域样式 */
|
|
.chat-main {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.chat-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px;
|
|
background: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* 聊天搜索栏样式 */
|
|
.chat-search {
|
|
background: var(--bg-secondary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
padding: 10px 15px;
|
|
}
|
|
|
|
.chat-search .search-box {
|
|
position: relative;
|
|
margin: 0;
|
|
background: var(--bg-hover);
|
|
border-radius: 20px;
|
|
padding: 5px 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.chat-search .search-box i {
|
|
position: static;
|
|
margin-right: 10px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.chat-search .search-box input {
|
|
flex: 1;
|
|
border: none;
|
|
background: transparent;
|
|
padding: 8px 0;
|
|
font-size: 14px;
|
|
outline: none;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.chat-search .close-search-btn {
|
|
width: 30px;
|
|
height: 30px;
|
|
border: none;
|
|
background: none;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-tertiary);
|
|
transition: all 0.3s ease;
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.chat-search .close-search-btn:hover {
|
|
background: var(--border-color);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* 搜索结果样式 */
|
|
.search-results {
|
|
margin-top: 10px;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.search-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid var(--border-light);
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.search-count {
|
|
color: var(--accent-color);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.search-list {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.search-item {
|
|
padding: 12px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.search-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.search-item-content {
|
|
font-size: 14px;
|
|
line-height: 1.4;
|
|
margin-bottom: 5px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.search-item-time {
|
|
font-size: 12px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.search-highlight {
|
|
background: #fff9c4;
|
|
color: #ff6f00;
|
|
padding: 0 2px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.chat-user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* 聊天内容样式 */
|
|
.chat-content {
|
|
flex: 1;
|
|
padding: 20px;
|
|
overflow-y: auto;
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.empty-chat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.empty-chat i {
|
|
font-size: 64px;
|
|
margin-bottom: 20px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.message {
|
|
display: flex;
|
|
margin-bottom: 20px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.message.sent {
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
.message.received {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.message-avatar {
|
|
width: 35px;
|
|
height: 35px;
|
|
border-radius: 50%;
|
|
background: var(--accent-color);
|
|
color: white;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 16px;
|
|
margin: 0 10px;
|
|
}
|
|
|
|
.message-content {
|
|
max-width: 60%;
|
|
}
|
|
|
|
.message-text {
|
|
padding: 12px 16px;
|
|
border-radius: 18px;
|
|
font-size: 14px;
|
|
line-height: 1.4;
|
|
word-wrap: break-word;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.message.sent .message-text {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border-top-right-radius: 4px;
|
|
}
|
|
|
|
.message.received .message-text {
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
border-top-left-radius: 4px;
|
|
}
|
|
|
|
.message-sender {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 4px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.message-time {
|
|
font-size: 11px;
|
|
color: var(--text-tertiary);
|
|
margin-top: 5px;
|
|
text-align: right;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 4px;
|
|
}
|
|
|
|
.message.received .message-time {
|
|
text-align: left;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
/* 消息状态指示器 */
|
|
.message-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.message-status i {
|
|
margin-left: 2px;
|
|
}
|
|
|
|
/* 图片消息样式 */
|
|
.message-image {
|
|
position: relative;
|
|
max-width: 200px;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.message-image img {
|
|
width: 100%;
|
|
height: auto;
|
|
border-radius: 10px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.message-image img:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.message-image img.expanded {
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
max-width: 90%;
|
|
max-height: 90vh;
|
|
z-index: 9999;
|
|
border-radius: 5px;
|
|
box-shadow: 0 0 20px var(--modal-overlay);
|
|
}
|
|
|
|
/* 发送的图片消息样式 */
|
|
.message.sent .message-image {
|
|
background: var(--accent-color);
|
|
padding: 4px;
|
|
border-bottom-right-radius: 4px;
|
|
}
|
|
|
|
/* 接收的图片消息样式 */
|
|
.message.received .message-image {
|
|
background: var(--bg-secondary);
|
|
padding: 4px;
|
|
border-bottom-left-radius: 4px;
|
|
box-shadow: 0 1px 2px var(--shadow-color);
|
|
}
|
|
|
|
/* 附件消息样式 */
|
|
.message-attachment {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
background: var(--bg-hover);
|
|
border-radius: 8px;
|
|
gap: 12px;
|
|
}
|
|
|
|
.attachment-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
background: var(--accent-color);
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 24px;
|
|
color: white;
|
|
}
|
|
|
|
.attachment-info {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.attachment-name {
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.attachment-download {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 6px 12px;
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border-radius: 4px;
|
|
text-decoration: none;
|
|
font-size: 13px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.attachment-download:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
/* 在线状态样式 */
|
|
.online-indicator {
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
width: 10px;
|
|
height: 10px;
|
|
background: var(--online-status);
|
|
border-radius: 50%;
|
|
border: 2px solid white;
|
|
box-shadow: 0 0 0 1px var(--border-color);
|
|
}
|
|
|
|
.online-status-text {
|
|
font-size: 12px;
|
|
color: var(--online-status);
|
|
margin-left: 8px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
/* 设置菜单样式 */
|
|
.settings-menu {
|
|
position: fixed;
|
|
background: var(--bg-secondary);
|
|
border-radius: 5px;
|
|
box-shadow: 0 2px 10px var(--shadow-hover);
|
|
z-index: 9999;
|
|
display: none;
|
|
min-width: 150px;
|
|
}
|
|
|
|
.settings-menu.active {
|
|
display: block;
|
|
}
|
|
|
|
.settings-menu ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.settings-menu li {
|
|
padding: 10px 15px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: all 0.3s ease;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.settings-menu li:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* 右键菜单样式 */
|
|
.context-menu {
|
|
position: fixed;
|
|
background: var(--bg-secondary);
|
|
border-radius: 5px;
|
|
box-shadow: 0 2px 10px var(--shadow-hover);
|
|
z-index: 9999;
|
|
display: none;
|
|
min-width: 120px;
|
|
}
|
|
|
|
.context-menu.active {
|
|
display: block;
|
|
}
|
|
|
|
.context-menu ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.context-menu li {
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: all 0.3s ease;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.context-menu li:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* 头像上传样式 */
|
|
.avatar-upload-container {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.avatar-preview {
|
|
width: 120px;
|
|
height: 120px;
|
|
border-radius: 50%;
|
|
background: var(--bg-hover);
|
|
margin: 0 auto 20px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 2px solid var(--border-color);
|
|
}
|
|
|
|
.avatar-preview img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
#choose-avatar-btn {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* Emoji选择器样式 */
|
|
.emoji-selector {
|
|
position: absolute;
|
|
bottom: 100px;
|
|
left: 20px;
|
|
width: 300px;
|
|
background: var(--bg-secondary);
|
|
border-radius: 10px;
|
|
box-shadow: 0 2px 15px var(--shadow-hover);
|
|
z-index: 1000;
|
|
display: none;
|
|
animation: slideUp 0.3s ease;
|
|
}
|
|
|
|
.emoji-selector.active {
|
|
display: block;
|
|
}
|
|
|
|
.emoji-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10px 15px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
|
|
.emoji-header h4 {
|
|
margin: 0;
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.close-emoji {
|
|
background: none;
|
|
border: none;
|
|
font-size: 18px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.close-emoji:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.emoji-categories {
|
|
display: flex;
|
|
padding: 10px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
gap: 5px;
|
|
}
|
|
|
|
.emoji-category {
|
|
width: 36px;
|
|
height: 36px;
|
|
border: none;
|
|
background: var(--bg-hover);
|
|
border-radius: 6px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.emoji-category:hover {
|
|
background: var(--border-color);
|
|
}
|
|
|
|
.emoji-category.active {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
}
|
|
|
|
.emoji-content {
|
|
padding: 10px;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
display: grid;
|
|
grid-template-columns: repeat(8, 1fr);
|
|
gap: 5px;
|
|
}
|
|
|
|
.emoji-item {
|
|
width: 36px;
|
|
height: 36px;
|
|
border: none;
|
|
background: none;
|
|
border-radius: 6px;
|
|
font-size: 18px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.emoji-item:hover {
|
|
background: var(--bg-hover);
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
/* 聊天输入框样式 */
|
|
.chat-input-container {
|
|
background: var(--bg-secondary);
|
|
padding: 15px;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.input-tools {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.tool-btn {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: none;
|
|
background: none;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-secondary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.tool-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.input-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
background: var(--bg-hover);
|
|
border-radius: 25px;
|
|
padding: 5px 10px;
|
|
}
|
|
|
|
#message-input {
|
|
flex: 1;
|
|
border: none;
|
|
background: transparent;
|
|
padding: 10px;
|
|
font-size: 14px;
|
|
resize: none;
|
|
outline: none;
|
|
color: var(--text-primary);
|
|
min-height: 20px;
|
|
max-height: 120px;
|
|
overflow-y: auto;
|
|
line-height: 1.5;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.send-btn {
|
|
width: 35px;
|
|
height: 35px;
|
|
border: none;
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.send-btn:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
/* 模态框样式 */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: var(--modal-overlay);
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
.modal.active {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--modal-bg);
|
|
border-radius: 10px;
|
|
box-shadow: 0 5px 25px var(--shadow-hover);
|
|
width: 90%;
|
|
max-width: 400px;
|
|
animation: slideUp 0.3s ease;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px;
|
|
border-bottom: 1px solid var(--border-lighter);
|
|
}
|
|
|
|
.modal-header h3 {
|
|
margin: 0;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.close-btn {
|
|
background: none;
|
|
border: none;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
color: var(--text-tertiary);
|
|
padding: 0;
|
|
width: 30px;
|
|
height: 30px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.close-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 20px;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
padding: 20px;
|
|
border-top: 1px solid var(--border-lighter);
|
|
}
|
|
|
|
.btn {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 5px;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-cancel {
|
|
background: var(--bg-hover);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.btn-cancel:hover {
|
|
background: var(--border-color);
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
/* 动画效果 */
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* 滚动条样式 */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--scrollbar-track);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--scrollbar-thumb);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--scrollbar-thumb-hover);
|
|
}
|
|
|
|
/* @mention功能样式 */
|
|
.mention-dropdown {
|
|
position: absolute;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
box-shadow: 0 2px 8px var(--shadow-hover);
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
z-index: 1000;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.mention-user-item {
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.mention-user-item:hover {
|
|
background-color: var(--bg-hover);
|
|
}
|
|
|
|
.mention-user-item.selected {
|
|
background-color: var(--bg-active);
|
|
}
|
|
|
|
.mention-user-item img {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
margin-right: 8px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
/* 消息中的@提及样式 */
|
|
.mention {
|
|
color: var(--accent-color);
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.mention:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
/* 容器布局 */
|
|
.chat-app-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
}
|
|
|
|
.chat-app-container .chat-app {
|
|
flex: 1;
|
|
height: calc(100vh - 48px);
|
|
overflow: visible;
|
|
}
|
|
|
|
/* 侧边栏样式 - 主页显示所有好友/群聊 */
|
|
.sidebar {
|
|
width: 100%;
|
|
position: absolute;
|
|
z-index: 100;
|
|
height: calc(100vh - 48px);
|
|
transform: translateX(-100%);
|
|
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: 2px 0 10px var(--shadow-color);
|
|
background: var(--bg-secondary);
|
|
overflow: visible;
|
|
}
|
|
|
|
.sidebar.active {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
/* 侧边栏背景遮罩 */
|
|
.sidebar-backdrop {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: var(--modal-overlay);
|
|
z-index: 99;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.sidebar-backdrop.active {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
/* 聊天主区域样式 - 单独的聊天界面 */
|
|
.chat-main {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
/* 手机端侧边栏切换按钮 */
|
|
.toggle-sidebar-btn {
|
|
display: flex !important;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
/* 调整聊天头部布局 */
|
|
.chat-header {
|
|
padding: 10px 12px !important;
|
|
background: var(--bg-tertiary) !important;
|
|
border-bottom: 1px solid var(--border-color) !important;
|
|
}
|
|
|
|
.chat-user-info {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chat-user-info .username {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.chat-actions {
|
|
gap: 5px !important;
|
|
}
|
|
|
|
.chat-actions .action-btn {
|
|
width: 32px !important;
|
|
height: 32px !important;
|
|
}
|
|
|
|
/* 显示底部导航栏 */
|
|
.bottom-nav {
|
|
display: flex;
|
|
}
|
|
|
|
/* 当有邮箱横幅时调整高度 */
|
|
.email-banner + .chat-app-container .chat-app {
|
|
height: calc(100vh - 70px - 48px);
|
|
}
|
|
|
|
.email-banner + .chat-app-container .sidebar {
|
|
height: calc(100vh - 70px - 48px);
|
|
}
|
|
|
|
/* 手机版显示合并的列表 */
|
|
.mobile-chat-list {
|
|
display: flex !important;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* 手机版隐藏标签页和分开的列表 */
|
|
.tabs {
|
|
display: none !important;
|
|
}
|
|
|
|
.chat-lists {
|
|
display: none !important;
|
|
}
|
|
|
|
/* 手机版聊天界面优化 - 更像微信 */
|
|
.chat-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
background: var(--bg-primary) !important;
|
|
padding: 12px !important;
|
|
}
|
|
|
|
.message {
|
|
margin-bottom: 12px !important;
|
|
}
|
|
|
|
.message-avatar {
|
|
width: 32px !important;
|
|
height: 32px !important;
|
|
margin: 0 6px !important;
|
|
}
|
|
|
|
.message-content {
|
|
max-width: 75% !important;
|
|
}
|
|
|
|
.message-text {
|
|
padding: 9px 12px !important;
|
|
font-size: 14px !important;
|
|
border-radius: 18px !important;
|
|
}
|
|
|
|
.message.sent .message-text {
|
|
background: var(--accent-color) !important;
|
|
color: white !important;
|
|
border-top-right-radius: 4px !important;
|
|
}
|
|
|
|
.message.received .message-text {
|
|
background: var(--bg-secondary) !important;
|
|
color: var(--text-primary) !important;
|
|
border-top-left-radius: 4px !important;
|
|
}
|
|
|
|
.message-time {
|
|
font-size: 10px !important;
|
|
margin-top: 3px !important;
|
|
padding: 0 6px !important;
|
|
}
|
|
|
|
/* 优化聊天输入框 */
|
|
.chat-input-container {
|
|
padding: 8px 10px !important;
|
|
background: var(--bg-secondary) !important;
|
|
border-top: 1px solid var(--border-color) !important;
|
|
}
|
|
|
|
.input-wrapper {
|
|
background: var(--bg-hover) !important;
|
|
border-radius: 20px !important;
|
|
padding: 3px 6px !important;
|
|
}
|
|
|
|
#message-input {
|
|
padding: 6px 10px !important;
|
|
font-size: 14px !important;
|
|
}
|
|
|
|
.send-btn {
|
|
width: 30px !important;
|
|
height: 30px !important;
|
|
}
|
|
|
|
/* 优化空聊天状态 */
|
|
.empty-chat {
|
|
background: var(--bg-primary) !important;
|
|
}
|
|
|
|
.empty-chat i {
|
|
font-size: 56px !important;
|
|
margin-bottom: 16px !important;
|
|
}
|
|
|
|
.empty-chat p {
|
|
font-size: 14px !important;
|
|
color: var(--text-tertiary) !important;
|
|
}
|
|
}
|
|
|
|
/* 桌面端布局优化 */
|
|
@media (min-width: 769px) {
|
|
.chat-app {
|
|
display: flex;
|
|
height: 100vh;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 400px;
|
|
border-right: 1px solid var(--border-color);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.chat-main {
|
|
flex: 1;
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.toggle-sidebar-btn {
|
|
display: none !important;
|
|
}
|
|
|
|
.bottom-nav {
|
|
display: none;
|
|
}
|
|
|
|
.chat-app-container {
|
|
height: 100vh;
|
|
}
|
|
|
|
.chat-app-container .chat-app {
|
|
height: 100vh;
|
|
}
|
|
|
|
.email-banner + .chat-app-container .chat-app {
|
|
height: calc(100vh - 70px);
|
|
}
|
|
|
|
.email-banner + .chat-app-container .sidebar {
|
|
height: calc(100vh - 70px);
|
|
}
|
|
}
|
|
|
|
/* 引用消息样式 */
|
|
.message-quote {
|
|
margin-bottom: 8px;
|
|
padding: 8px 12px;
|
|
border-left: 3px solid #d9d9d9;
|
|
background: var(--bg-hover);
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
line-height: 1.3;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.sent .message-quote {
|
|
background: rgba(255, 255, 255, 0.9);
|
|
border-left-color: var(--accent-color);
|
|
}
|
|
|
|
body.dark-mode .sent .message-quote {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.quote-header {
|
|
font-weight: 500;
|
|
margin-bottom: 4px;
|
|
color: var(--text-tertiary);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.sent .quote-header {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.quote-content {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.sent .quote-content {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* 触摸反馈效果 - 全局样式 */
|
|
button {
|
|
-webkit-tap-highlight-color: transparent;
|
|
transition: transform 0.1s;
|
|
}
|
|
|
|
/* 触摸反馈效果 - 仅在移动设备上生效 */
|
|
@media (max-width: 768px) {
|
|
/* 禁用高亮效果 */
|
|
* {
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
/* 手机版显示删除按钮 */
|
|
.friends-list-mobile .friend-actions {
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
/* 手机版分享窗口优化 */
|
|
.share-link-container {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.share-link-input {
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.share-link-container .btn {
|
|
width: 100%;
|
|
padding: 12px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.qrcode-actions {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.qrcode-actions .btn {
|
|
width: 100%;
|
|
padding: 12px;
|
|
}
|
|
|
|
#qrcode {
|
|
padding: 15px;
|
|
}
|
|
|
|
#qrcode canvas {
|
|
max-width: 150px;
|
|
max-height: 150px;
|
|
}
|
|
|
|
.share-tip {
|
|
font-size: 13px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.modal-content {
|
|
max-width: 95% !important;
|
|
}
|
|
|
|
/* 手机版隐藏二维码操作按钮 */
|
|
#download-qrcode,
|
|
#refresh-qrcode {
|
|
display: none !important;
|
|
}
|
|
|
|
/* 可交互元素的触摸反馈 */
|
|
button:active,
|
|
.btn:active,
|
|
.nav-item:active,
|
|
.friend-item:active,
|
|
.group-item:active,
|
|
.chat-item:active,
|
|
.message-item:active,
|
|
.message-avatar:active,
|
|
.sidebar-header:active,
|
|
.mobile-menu-btn:active,
|
|
.add-friend-btn:active,
|
|
.send-btn:active,
|
|
.tab-btn:active,
|
|
.login-btn:active,
|
|
.register-btn:active,
|
|
.confirm-add-friend-btn:active,
|
|
.cancel-add-friend-btn:active,
|
|
.close-modal:active,
|
|
.share-link-container .btn:active,
|
|
.qrcode-actions .btn:active {
|
|
transform: scale(0.97);
|
|
opacity: 0.7;
|
|
transition: transform 0.1s, opacity 0.1s;
|
|
}
|
|
|
|
/* 导航栏按钮的触摸反馈 */
|
|
.nav-item:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* 消息头像的触摸反馈 */
|
|
.message-avatar:active {
|
|
transform: scale(0.95);
|
|
}
|
|
}
|
|
|
|
/* 输入框中的引用样式 */
|
|
.quote-input-container {
|
|
margin: 10px 15px;
|
|
padding: 10px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
background: var(--bg-tertiary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.quote-input-container .quote-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.quote-input-container .quote-header span {
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.quote-input-container .close-quote {
|
|
background: none;
|
|
border: none;
|
|
font-size: 16px;
|
|
color: #999;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
width: 20px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.quote-input-container .close-quote:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.quote-input-container .quote-content {
|
|
color: var(--text-primary);
|
|
word-wrap: break-word;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
/* 群组成员列表样式 */
|
|
.group-member-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.group-member-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.member-info {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.member-info .avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: #f0f0f0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: 12px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.member-info .avatar img {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.member-info div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.member-info div div:first-child {
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.member-info div div:last-child {
|
|
font-size: 12px;
|
|
color: #999;
|
|
}
|
|
|
|
/* 成员操作按钮容器 */
|
|
.member-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* 禁言按钮样式 */
|
|
.btn-warning {
|
|
background-color: #faad14;
|
|
color: white;
|
|
}
|
|
|
|
.btn-warning:hover {
|
|
background-color: #d48806;
|
|
}
|
|
|
|
/* 解禁按钮样式 */
|
|
.btn-success {
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-success:hover {
|
|
background-color: var(--accent-hover);
|
|
}
|
|
|
|
/* 邀请好友复选框样式 */
|
|
.friend-checkbox-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.friend-checkbox-item:hover {
|
|
background-color: var(--bg-hover);
|
|
}
|
|
|
|
/* 邀请好友复选框 */
|
|
.invite-friend-checkbox {
|
|
margin-left: 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* 邀请好友复选框标签 */
|
|
.invite-friend-checkbox + label {
|
|
margin-left: 5px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* 好友请求列表样式 */
|
|
.friend-request-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.friend-request-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.request-info {
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.request-info .avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: #f0f0f0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: 12px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.request-info .avatar img {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.request-info div {
|
|
flex: 1;
|
|
}
|
|
|
|
.request-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* 好友列表项样式 */
|
|
.friend-item {
|
|
position: relative;
|
|
}
|
|
|
|
.friend-actions {
|
|
display: flex;
|
|
gap: 5px;
|
|
margin-right: 10px;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.friend-item:hover .friend-actions {
|
|
opacity: 1;
|
|
}
|
|
|
|
.delete-friend-btn {
|
|
width: 30px;
|
|
height: 30px;
|
|
border: none;
|
|
background: none;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #999;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.delete-friend-btn:hover {
|
|
background: var(--error-bg);
|
|
color: var(--error-text);
|
|
}
|
|
|
|
/* 按钮样式 */
|
|
.btn-danger {
|
|
background-color: #ff4d4f;
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background-color: var(--error-text);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* 好友请求徽章样式 */
|
|
#request-badge {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
background: var(--error-text);
|
|
color: white;
|
|
border-radius: 50%;
|
|
width: 16px;
|
|
height: 16px;
|
|
font-size: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.action-btn {
|
|
position: relative;
|
|
}
|
|
|
|
/* 手机端侧边栏切换按钮 */
|
|
.toggle-sidebar-btn {
|
|
display: none;
|
|
}
|
|
|
|
/* 底部导航栏容器 */
|
|
.chat-app-container {
|
|
height: 100vh;
|
|
}
|
|
|
|
.chat-app-container .chat-app {
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* 底部导航栏样式 */
|
|
.bottom-nav {
|
|
display: none;
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: var(--bg-secondary);
|
|
border-top: 1px solid var(--border-color);
|
|
height: 48px;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
z-index: 999;
|
|
box-shadow: 0 -2px 10px var(--shadow-color);
|
|
}
|
|
|
|
.nav-item {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: none;
|
|
border: none;
|
|
padding: 4px 0;
|
|
color: var(--text-secondary);
|
|
font-size: 10px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.nav-item i {
|
|
font-size: 18px;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.nav-item.active {
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* 下拉菜单容器 */
|
|
.dropdown-menu-container {
|
|
position: relative;
|
|
}
|
|
|
|
/* 下拉菜单 */
|
|
.dropdown-menu {
|
|
position: absolute;
|
|
top: 100%;
|
|
right: 0;
|
|
background: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 10px var(--shadow-color);
|
|
min-width: 160px;
|
|
margin-top: 5px;
|
|
z-index: 1000;
|
|
display: none;
|
|
animation: slideDown 0.3s ease;
|
|
}
|
|
|
|
.dropdown-menu.active {
|
|
display: block;
|
|
}
|
|
|
|
/* 下拉菜单列表 */
|
|
.dropdown-menu ul {
|
|
list-style: none;
|
|
padding: 8px 0;
|
|
margin: 0;
|
|
}
|
|
|
|
/* 下拉菜单项 */
|
|
.dropdown-menu li {
|
|
padding: 10px 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.dropdown-menu li:hover {
|
|
background-color: var(--bg-hover);
|
|
}
|
|
|
|
/* 下拉菜单项图标 */
|
|
.dropdown-menu li i {
|
|
margin-right: 10px;
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* 下拉菜单项文本 */
|
|
.dropdown-menu li span {
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* 分隔线 */
|
|
.dropdown-menu li.divider {
|
|
height: 1px;
|
|
background: var(--border-color);
|
|
margin: 8px 0;
|
|
padding: 0;
|
|
cursor: default;
|
|
}
|
|
|
|
.dropdown-menu li.divider:hover {
|
|
background: #e8e8e8;
|
|
}
|
|
|
|
/* 动画 */
|
|
@keyframes slideDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* 右键菜单 */
|
|
.context-menu {
|
|
position: fixed;
|
|
background: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 20px var(--shadow-color);
|
|
min-width: 160px;
|
|
z-index: 9999;
|
|
display: none;
|
|
animation: slideDown 0.15s ease;
|
|
}
|
|
|
|
.context-menu.show {
|
|
display: block;
|
|
}
|
|
|
|
.context-menu ul {
|
|
list-style: none;
|
|
padding: 8px 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.context-menu li {
|
|
padding: 10px 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.context-menu li:hover {
|
|
background-color: var(--bg-hover);
|
|
}
|
|
|
|
.context-menu li i {
|
|
margin-right: 10px;
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.context-menu li span {
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* 分享群组样式 */
|
|
.share-group-info {
|
|
padding: 20px 0;
|
|
}
|
|
|
|
.share-group-info h4 {
|
|
margin-bottom: 20px;
|
|
color: var(--text-primary);
|
|
font-size: 18px;
|
|
}
|
|
|
|
.share-link-container {
|
|
display: flex;
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.share-link-input {
|
|
flex: 1;
|
|
padding: 10px 15px;
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 4px 0 0 4px;
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.share-link-input:focus {
|
|
outline: none;
|
|
border-color: var(--input-focus);
|
|
box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.1);
|
|
}
|
|
|
|
.share-tip {
|
|
margin-top: 15px;
|
|
font-size: 14px;
|
|
color: #999;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* 二维码相关样式 */
|
|
.qrcode-section {
|
|
margin-top: 30px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.qrcode-container {
|
|
position: relative;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
#qrcode {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 20px;
|
|
background: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px var(--shadow-color);
|
|
}
|
|
|
|
#qrcode canvas {
|
|
max-width: 200px;
|
|
max-height: 200px;
|
|
}
|
|
|
|
.qrcode-loading {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
body.dark-mode .qrcode-loading {
|
|
background: rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
.qrcode-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin: 20px 0;
|
|
justify-content: center;
|
|
}
|
|
|
|
.qrcode-actions .btn {
|
|
flex: 1;
|
|
max-width: 150px;
|
|
}
|
|
|
|
/* 辅助类 */
|
|
.btn-secondary {
|
|
background-color: #6c757d;
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background-color: #5a6268;
|
|
}
|
|
|
|
/* 暗色系切换按钮样式 */
|
|
.theme-toggle-btn {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: none;
|
|
background: none;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-secondary);
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.theme-toggle-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.theme-toggle-btn i {
|
|
font-size: 18px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* 暗色系切换按钮 - 太阳图标 */
|
|
.theme-toggle-btn .sun-icon {
|
|
display: block;
|
|
}
|
|
|
|
.theme-toggle-btn .moon-icon {
|
|
display: none;
|
|
}
|
|
|
|
/* 暗色系模式下的图标切换 */
|
|
body.dark-mode .theme-toggle-btn .sun-icon {
|
|
display: none;
|
|
}
|
|
|
|
body.dark-mode .theme-toggle-btn .moon-icon {
|
|
display: block;
|
|
}
|
|
|
|
/* 暗色系切换按钮动画 */
|
|
.theme-toggle-btn:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* 主题切换提示 */
|
|
.theme-toggle-tooltip {
|
|
position: absolute;
|
|
top: -35px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: var(--text-primary);
|
|
color: var(--bg-primary);
|
|
padding: 5px 10px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.3s ease;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.theme-toggle-btn:hover .theme-toggle-tooltip {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
top: -40px;
|
|
}
|
|
|
|
/* 暗色系切换按钮在侧边栏中的位置 */
|
|
.sidebar-header .theme-toggle-btn {
|
|
margin-left: 5px;
|
|
}
|
|
|
|
/* 暗色系切换按钮在底部导航栏中的位置 */
|
|
.bottom-nav .theme-toggle-btn {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 0;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
|
|
.bottom-nav .theme-toggle-btn i {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.bottom-nav .theme-toggle-btn .theme-toggle-tooltip {
|
|
display: none;
|
|
}
|
|
|
|
/* 自定义弹窗提醒样式 */
|
|
.custom-alert-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
backdrop-filter: blur(5px);
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 1000;
|
|
animation: fadeIn 0.2s ease;
|
|
}
|
|
|
|
.custom-alert-overlay.show {
|
|
display: flex;
|
|
}
|
|
|
|
.custom-alert {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 30px;
|
|
min-width: 300px;
|
|
max-width: 90%;
|
|
text-align: center;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
|
|
animation: slideUp 0.3s ease;
|
|
}
|
|
|
|
.custom-alert-icon {
|
|
width: 60px;
|
|
height: 60px;
|
|
margin: 0 auto 20px;
|
|
background: linear-gradient(135deg, #ff6b6b, #ff8e53);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 28px;
|
|
color: white;
|
|
}
|
|
|
|
.custom-alert-title {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: #333;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.custom-alert-message {
|
|
font-size: 14px;
|
|
color: #666;
|
|
line-height: 1.6;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.custom-alert-btn {
|
|
width: 100%;
|
|
padding: 12px;
|
|
background: linear-gradient(135deg, #07c160, #00a86b);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 15px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.custom-alert-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Terms of Service Page Styles */
|
|
body.terms-page {
|
|
background-color: #f5f5f5 !important;
|
|
margin: 0 !important;
|
|
padding: 20px !important;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
|
|
color: #333 !important;
|
|
line-height: 1.6 !important;
|
|
height: auto !important;
|
|
}
|
|
|
|
body.terms-page .terms-container {
|
|
max-width: 900px;
|
|
margin: 20px auto 40px !important;
|
|
background: #ffffff !important;
|
|
padding: 40px !important;
|
|
border-radius: 10px !important;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
|
|
}
|
|
|
|
body.terms-page .terms-header {
|
|
text-align: center !important;
|
|
margin-bottom: 40px !important;
|
|
padding-bottom: 20px !important;
|
|
border-bottom: 2px solid #07c160 !important;
|
|
}
|
|
|
|
body.terms-page .terms-header h1 {
|
|
color: #07c160 !important;
|
|
font-size: 32px !important;
|
|
margin-bottom: 10px !important;
|
|
}
|
|
|
|
body.terms-page .terms-header p {
|
|
color: #999 !important;
|
|
font-size: 14px !important;
|
|
}
|
|
|
|
body.terms-page .terms-update-date {
|
|
color: #999 !important;
|
|
font-size: 12px !important;
|
|
text-align: center !important;
|
|
margin-bottom: 20px !important;
|
|
}
|
|
|
|
body.terms-page .terms-section {
|
|
margin-bottom: 30px !important;
|
|
}
|
|
|
|
body.terms-page .terms-section h2 {
|
|
color: #333 !important;
|
|
font-size: 22px !important;
|
|
margin-bottom: 15px !important;
|
|
padding-left: 10px !important;
|
|
border-left: 4px solid #07c160 !important;
|
|
}
|
|
|
|
body.terms-page .terms-section h3 {
|
|
color: #555 !important;
|
|
font-size: 18px !important;
|
|
margin: 15px 0 10px 0 !important;
|
|
}
|
|
|
|
body.terms-page .terms-section p {
|
|
color: #666 !important;
|
|
line-height: 1.8 !important;
|
|
margin-bottom: 15px !important;
|
|
text-align: justify !important;
|
|
}
|
|
|
|
body.terms-page .terms-section ul {
|
|
color: #666 !important;
|
|
line-height: 1.8 !important;
|
|
margin: 10px 0 15px 30px !important;
|
|
}
|
|
|
|
body.terms-page .terms-section li {
|
|
margin-bottom: 8px !important;
|
|
}
|
|
|
|
body.terms-page .terms-highlight {
|
|
color: #ff4d4f !important;
|
|
font-weight: bold !important;
|
|
}
|
|
|
|
body.terms-page .terms-footer {
|
|
margin-top: 40px !important;
|
|
padding-top: 20px !important;
|
|
border-top: 1px solid #eee !important;
|
|
text-align: center !important;
|
|
color: #999 !important;
|
|
font-size: 14px !important;
|
|
}
|
|
|
|
body.terms-page .back-btn {
|
|
display: inline-block !important;
|
|
margin-top: 20px !important;
|
|
padding: 12px 24px !important;
|
|
background: #07c160 !important;
|
|
color: white !important;
|
|
text-decoration: none !important;
|
|
border-radius: 25px !important;
|
|
font-weight: bold !important;
|
|
transition: all 0.3s ease !important;
|
|
border: none !important;
|
|
cursor: pointer !important;
|
|
}
|
|
|
|
body.terms-page .back-btn:hover {
|
|
background: #00a86b !important;
|
|
transform: translateY(-2px) !important;
|
|
box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3) !important;
|
|
}
|
|
|
|
/* OAuth绑定页面样式 */
|
|
.oauth-info {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 16px;
|
|
margin-bottom: 28px;
|
|
padding: 20px;
|
|
background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(0, 0, 0, 0.05);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.oauth-icon-wrapper {
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #07c160 0%, #00a86b 100%);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
color: white;
|
|
font-size: 26px;
|
|
box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.oauth-info:hover .oauth-icon-wrapper {
|
|
transform: scale(1.05);
|
|
box-shadow: 0 6px 16px rgba(7, 193, 96, 0.4);
|
|
}
|
|
|
|
.oauth-text {
|
|
text-align: left;
|
|
}
|
|
|
|
.oauth-provider {
|
|
font-size: 13px;
|
|
color: #888;
|
|
margin-bottom: 4px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.oauth-username {
|
|
font-size: 18px;
|
|
color: #222;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.oauth-title {
|
|
text-align: center;
|
|
font-size: 20px;
|
|
color: #222;
|
|
font-weight: 700;
|
|
margin-bottom: 10px;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
.oauth-desc {
|
|
text-align: center;
|
|
font-size: 14px;
|
|
color: #666;
|
|
margin-bottom: 28px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.oauth-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
margin-bottom: 28px;
|
|
}
|
|
|
|
.oauth-action-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
padding: 14px 24px;
|
|
border: none;
|
|
border-radius: 10px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.oauth-action-btn::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
|
|
transition: left 0.5s ease;
|
|
}
|
|
|
|
.oauth-action-btn:hover::before {
|
|
left: 100%;
|
|
}
|
|
|
|
.oauth-register-btn {
|
|
background: linear-gradient(135deg, #07c160 0%, #00a86b 100%);
|
|
color: white;
|
|
box-shadow: 0 4px 14px rgba(7, 193, 96, 0.3);
|
|
}
|
|
|
|
.oauth-register-btn:hover {
|
|
background: linear-gradient(135deg, #06ad56 0%, #00945e 100%);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 20px rgba(7, 193, 96, 0.4);
|
|
}
|
|
|
|
.oauth-bind-btn {
|
|
background: #ffffff;
|
|
color: #333;
|
|
border: 2px solid #e8e8e8;
|
|
}
|
|
|
|
.oauth-bind-btn:hover {
|
|
background: #f8fdfa;
|
|
border-color: #07c160;
|
|
color: #07c160;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(7, 193, 96, 0.15);
|
|
}
|
|
|
|
.oauth-form-section {
|
|
display: none;
|
|
padding: 24px;
|
|
background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
|
|
border-radius: 12px;
|
|
margin-bottom: 24px;
|
|
border: 1px solid rgba(0, 0, 0, 0.06);
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
.oauth-form-section.active {
|
|
display: block;
|
|
animation: fadeInUp 0.3s ease;
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.oauth-form-section h3 {
|
|
text-align: center;
|
|
color: #222;
|
|
font-size: 17px;
|
|
margin-bottom: 22px;
|
|
font-weight: 600;
|
|
letter-spacing: -0.3px;
|
|
}
|
|
|
|
.oauth-form-section .input-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.oauth-form-section .input-group input:focus {
|
|
border-color: #07c160;
|
|
box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
|
|
}
|
|
|
|
.oauth-form-section .login-btn {
|
|
width: 100%;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.oauth-back-link {
|
|
display: block;
|
|
text-align: center;
|
|
color: #666;
|
|
font-size: 13px;
|
|
text-decoration: none;
|
|
padding: 10px;
|
|
border-radius: 8px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.oauth-back-link:hover {
|
|
color: #07c160;
|
|
background: rgba(7, 193, 96, 0.05);
|
|
} |