* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333;
    background-color: #f8f8f8;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    line-height: 1.6;
}

.logo-container {
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
    text-align: center;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.main-logo {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    box-shadow: 0 15px 35px rgba(45, 181, 93, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
}

.main-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(45, 181, 93, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
}

.highlight {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}

.back-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #4285F4;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.back-btn:hover {
    background: #3367d6;
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.4);
    transform: translateY(-3px);
}

.customer-service-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #2db55d;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(45, 181, 93, 0.2);
}

.customer-service-btn:hover {
    background-color: #259a4f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(45, 181, 93, 0.3);
}

.service-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* 新增页面包裹层 */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    margin: 0 auto;
}

.main-header {
    background-color: #ffffff; /* 背景改为白色，更现代 */
    padding: 12px 0; /* 调整上下内边距 */
    border-bottom: 1px solid #e9ecef; /* 更细致的底部分割线 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03); /* 轻微阴影 */
    position: sticky; /* 固定导航栏 */
    top: 0;
    z-index: 1000; /* 确保在最上层 */
    width: 100%;
}

.page-content {
    flex-grow: 1; /* 让主要内容区域占据剩余空间 */
}

/* ========== 优化后的头部导航样式 ========== */


.header-container {
    max-width: 1200px; /* 与页面内容宽度一致 */
    margin: 0 auto;
    padding: 0 20px; /* 左右内边距 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo区域 */
.nav-left .nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.nav-left .nav-logo:hover {
    opacity: 0.85;
}

.nav-logo-img {
    width: 38px; /* 调整Logo大小 */
    height: 38px;
    border-radius: 8px; /* 轻微圆角 */
    margin-right: 12px; /* Logo与文字间距 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-logo-text {
    font-size: 20px; /* 调整文字大小 */
    font-weight: 700; /* 加粗 */
    color: #343a40; /* 深色文字 */
    /* 如果仍想用渐变文字，可以保留之前的渐变样式 */
    /* background: linear-gradient(90deg, #2db55d, #4285F4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
}

/* 右侧导航和操作区 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px; /* 调整右侧各区块间距 */
}

/* 操作按钮区 (微信群, 客服) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px; /* 操作按钮之间的间距 */
}

.nav-action-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px; /* 按钮内边距 */
    border-radius: 20px; /* 圆角按钮 */
    text-decoration: none;
    font-size: 14px; /* 按钮字体大小 */
    font-weight: 500;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.nav-action-btn .iconfont {
    margin-right: 6px;
    font-size: 16px;
}

.wechat-btn {
    background-color: #f0fdf4; /* 微信绿背景 */
    color: #22c55e; /* 微信绿文字 */
    border-color: #bbf7d0;
}
.wechat-btn:hover {
    background-color: #dcfce7;
    color: #16a34a;
    border-color: #86efac;
}

/* 微信二维码弹出层样式 */
.wechat-container {
    position: relative;
}
.wechat-qrcode-popup { /* 修改类名以区分旧样式 */
    position: absolute;
    top: calc(100% + 12px); /* 与按钮的间距 */
    right: 0;
    width: 220px; /* 调整宽度 */
    background: white;
    border-radius: 10px; /* 更大的圆角 */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); /* 更柔和的阴影 */
    padding: 18px;
    text-align: center;
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.wechat-container:hover .wechat-qrcode-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.wechat-qrcode-popup img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 8px;
}
.wechat-qrcode-popup p {
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
}
.wechat-qrcode-popup::before { /* 三角箭头 */
    content: '';
    position: absolute;
    bottom: 100%; /* 指向上方 */
    right: 20px; /* 根据实际按钮位置调整 */
    margin-bottom: -1px; /* 与弹窗紧密连接 */
    border-width: 7px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

/* 主要导航链接 */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 5px; /* 导航链接之间的间距 */
}

.nav-link {
    padding: 8px 14px; /* 导航链接内边距 */
    color: #495057; /* 导航文字颜色 */
    text-decoration: none;
    font-weight: 500;
    font-size: 15px; /* 导航字体大小 */
    border-radius: 6px; /* 轻微圆角 */
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #007bff; /* 高亮颜色 */
    background-color: #e7f3ff; /* 高亮背景 */
}
/* 当前活动页面的下划线指示 */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px; /* 根据导航栏底部border调整 */
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #007bff;
    border-radius: 1px;
}

.nav-login-btn { /* 特殊高亮登录/注册按钮 */
    background-color: #007bff;
    color: white !important; /* important确保覆盖.nav-link的颜色 */
    padding: 8px 18px;
}
.nav-login-btn:hover {
    background-color: #0056b3;
}
.nav-login-btn.active::after { /* 登录按钮不需要下划线 */
    display: none;
}

/* 用户头像和下拉菜单 */
.nav-user-menu-container {
    position: relative;
}
.nav-user-link {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.nav-user-avatar {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    object-fit: cover;
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 10px); /* 与导航链接的间距 */
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 8px 0;
    min-width: 120px; /* 下拉菜单宽度 */
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    text-align: center;
}
.dropdown-item {
    display: block;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.dropdown-item:hover,
.dropdown-item.active {
    background-color: #f8f9fa;
    color: #007bff;
}
.dropdown-divider {
    height: 1px;
    margin: 8px 0;
    background-color: #e9ecef;
}
.dropdown-logout-btn {
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    color: #dc3545; /* 退出按钮用红色 */
}
.dropdown-logout-btn:hover {
    background-color: #f8f9fa;
    color: #c82333;
}

/* ========== 页脚样式 ========== */
.main-footer {
    background-color: #f8f9fa; /* 页脚背景色 */
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid #e9ecef;
    margin-top: auto; /* 将页脚推到底部，如果.page-wrapper是flex容器 */
}
.copyright-container p {
    margin: 0;
    color: #6c757d; /* 版权文字颜色 */
    font-size: 13px; /* 版权字体大小 */
}
.copyright-container a {
    color: #007bff; /* 链接颜色 */
    text-decoration: none;
    transition: color 0.2s ease;
}
.copyright-container a:hover {
    color: #0056b3;
    text-decoration: underline;
}

@media (max-width: 768px) { /* 小屏幕调整点 */
    .header-container {
        flex-direction: column; /* Logo和导航垂直排列 */
        gap: 15px;
        align-items: flex-start; /* 左对齐 */
    }
    .nav-right {
        width: 100%;
        flex-direction: column; /* 操作区和导航链接垂直排列 */
        align-items: flex-start; /* 左对齐 */
        gap: 10px;
    }
    .nav-actions, .main-navigation {
        flex-wrap: wrap; /* 允许换行 */
        gap: 8px;
    }
    .nav-link, .nav-action-btn {
        padding: 6px 10px;
        font-size: 14px;
    }
    .nav-user-dropdown {
        /* 调整下拉菜单位置，可能需要变为全宽或左对齐 */
        left: 0;
        right: auto;
    }
    .wechat-qrcode-popup { /* 微信二维码在小屏幕上的位置 */
        left: 0;
        right: auto;
        transform: translateX(0) translateY(8px) scale(0.95);
    }
     .wechat-container:hover .wechat-qrcode-popup {
        transform: translateX(0) translateY(0) scale(1);
    }
    .wechat-qrcode-popup::before {
        left: 20px; /* 调整箭头位置 */
        right: auto;
    }
}

/* 导航新标识样式 */
.nav-new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 6px;
    vertical-align: top;
    position: relative;
    top: -2px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    animation: newBadgePulse 2s infinite;
    letter-spacing: 0.5px;
}

/* 脉动动画效果 */
@keyframes newBadgePulse {
    0% {
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 71, 87, 0.8);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
        transform: scale(1);
    }
}

/* 鼠标悬停效果 */
.nav-link:hover .nav-new-badge {
    background: linear-gradient(135deg, #ff3742, #ff2f3a);
    transform: scale(1.1);
    animation: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-new-badge {
        font-size: 9px;
        padding: 1px 4px;
        margin-left: 4px;
    }
}