:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #f72585;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #4cc9f0;
    --warning-color: #f9c74f;
    --danger-color: #f94144;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fb;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
}

/* 导航栏样式 */
header {
    height: 86px;
    background-color: #FCFCFC;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.user-actions {
    display: flex;
    align-items: center;
}

/* 登录框 start */
.login-modal {
    background-color: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-container {
    background: white;
    border-radius: 16px;
    width: 500px;
    min-height: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 24px 32px;
    text-align: center;
}
    
.login-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 24px;
}

.qr-section,
.phone-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code {
    width: 180px;
    height: 180px;
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    overflow: hidden;
    background: white;
}

.qr-refresh {
    color: var(--gray-color);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 24px;
}

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

.input-field {
    width: 100%;
    margin-bottom: 16px;
}

.code-input {
    display: flex;
    gap: 12px;
}

.el-input__inner {
    border-color: var(--light-gray);
    border-radius: 4px;
    font-size: 14px;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.login-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--gray-color);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--light-gray);
}

.divider::before {
    margin-right: 16px;
}

.divider::after {
    margin-left: 16px;
}

.login-methods {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--gray-color);
}

.method-btn:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--light-color);
    margin-bottom: 8px;
    font-size: 18px;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 24px;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-color);
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-item.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}
/* 登录框 end */




/* 悬浮按钮容器 */
.floating-buttons {
    position: fixed;
    bottom: 60px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* 按钮之间的间距 */
    z-index: 1000; /* 确保按钮在其他元素之上 */
}

/* 基础悬浮按钮样式 */
.floating-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease; /* 添加过渡效果 */
}

/* 按钮悬停效果 */
.floating-button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1); /* 悬停时轻微放大 */
}

/* 返回顶部按钮的背景色 */
.back-to-top-button {
    background-color: var(--accent-color);
}

/* 客服信息弹出框 */
.contact-info {
    position: absolute;
    bottom: 0;
    right: 100%; /* 定位在按钮的左侧 */
    margin-right: 15px; /* 与按钮的间距 */
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px); /* 初始位置稍微向右偏移 */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

/* 弹出框显示状态 */
.contact-info.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 弹出框标题 */
.contact-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 16px;
}

/* 二维码图片样式 */
.qr-code {
    width: 100%;
    height: auto;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    margin-bottom: 10px;
}

/* 联系电话样式 */
.contact-phone {
    font-size: 14px;
    color: var(--gray-color);
    text-align: center;
}





/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}