/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html, body {
    width: 100%;
    overflow-x: hidden; /* 彻底禁止横向滚动 */
}

body {
    background-color: #fff3d4;
    color: #333;
    line-height: 1.5;
    padding-top: 50px;
}

/* ===================================
   头部样式
=================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ff9500;
    color: white;
    padding: 12px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 99999;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 28px;
}

.nav-menu a {
    color: white !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}
.nav-menu a:hover {
    text-decoration: underline;
    color: white !important;
}


.user-area {
    display: flex;
    gap: 12px;
}


.login-btn {
    background-color: white;
    color: #ff9500;
    border: none;
    padding: 7px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.register-btn {
    background-color: #ff3b30;
    color: white;
    border: none;
    padding: 7px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

/* ===================================
   页脚样式
/* ========== 数据统计区 ========== */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 50px 20px;
  text-align: center;
  margin-top: 40px;
}

.stat-item {
  position: relative;
  font-size: 32px;
  font-weight: 700;
  color: #FF8A00;
  padding-bottom: 15px;
}

.stat-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: #FFCC80;
  border-radius: 3px;
}

.stat-label {
  font-size: 15px;
  color: #666;
  margin-top: 12px;
  font-weight: 500;
}

/* ========== 页脚 ========== */
.footer {
  text-align: center;
  padding: 10px;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #FFE082;
  background-color: #FFF8E1;
  height: 40px;
  margin-top: 30px;
}

/* 复制提示 */
.copy-toast {
    position: fixed;
    background: #333;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 9999;
}
.copy-toast.show { opacity:1; }
.copy-toast.error { background:#ff3b30; }
/* 用户区域整体 */
.user-area {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: 15px; /* 适配导航栏间距 */
}

/* 登录后用户区 */
.users {
    position: relative;
    display: flex;
    align-items: center;
}
/* 头像 */
.users-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    cursor: pointer;
}
.users-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 下拉菜单默认隐藏 */
.users-slide {
    position: absolute;
    top: 36px; /* 从45px改成36px，和头像底部对齐 */
    right: 0;
    width: 240px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px;
    display: none;
    z-index: 999;
    /* 核心：加10px透明上内边距，衔接头像和菜单 */
    padding-top: 25px;
    margin-top: -10px;
}
/* 鼠标悬浮显示菜单 */
.users:hover .users-slide {
    display: block;
}

/* 个人信息头部 */
.users-slide-inf {
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 10px;
}
.users-slide-inf-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}
.users-slide-inf-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.users-slide-inf-txt {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* 积分显示 */
.users-slide-balance {
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

/* 菜单列表 */
.users-slide-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.users-slide-list li {
    display: flex;
    align-items: center;
    height: 40px;
    line-height: 40px;
    border-radius: 4px;
}
.users-slide-list li a {
    display: flex;
    align-items: center;
    width: 100%;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.users-slide-list li:hover {
    background: #f5f7fa;
}
.users-slide-list-ico {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}
.users-slide-list-ico img {
    width: 100%;
    height: 100%;
}

/* 退出按钮 */
.users-slide-exit {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
    text-align: center;
}
.users-slide-exit a {
    display: inline-block;
    width: 100%;
    height: 36px;
    line-height: 36px;
    background: #f5f5f5;
    color: #f56c6c;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}
.users-slide-exit a:hover {
    background: #fee;
}

/* ========== 适配橙黄色导航的登录/注册按钮 ========== */
.login {
    display: flex;
    align-items: center;
    gap: 8px; /* 按钮间距 */
}
.login .button {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 3px; /* 简约小圆角，贴合页面风格 */
    text-decoration: none;
    font-size: 14px;
    color: #fff;
    font-weight: 400; /* 取消粗体，更简约 */
    cursor: pointer;
    transition: all 0.2s ease; /* 过渡动画更丝滑 */
}
/* 登录按钮（白色文字+透明边框，适配橙色导航） */
.dlbutton {
    color: #fff;
    background: transparent;
    border: 1px solid #fff;
}
.dlbutton:hover {
    background: rgba(255,255,255,0.2); /* 悬浮浅白色背景 */
    border-color: #fff;
}
/* 注册按钮（白色背景+橙色文字，和导航形成对比） */
.reg.button {
    background: #fff;
    color: #ff9800; /* 页面主橙色 */
    border: 1px solid #fff;
}
.reg.button:hover {
    background: #f9f9f9; /* 悬浮浅灰背景 */
    color: #f57c00; /* 深一点的橙色 */
}

/* 浮动辅助类 */
.fl { float: left; }
.fr { float: right; }

/* 导航栏VIP文字样式 */
.vip-text {
    display: inline-block;
    color: #ffd700;
    font-size: 14px;
    font-weight: bold;
    margin-right: 8px;
    vertical-align: middle;
    text-shadow: 0 0 3px rgba(255,215,0,0.5);
}

/* 修复用户区域对齐 */
.users {
    display: flex;
    align-items: center;
    position: relative;
}

/* ========== 弹窗头像VIP角标核心样式 ========== */
.users-slide-inf-img {
    position: relative; /* 让角标能绝对定位 */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}
/* VIP角标样式（弹窗头像右上角） */
.vip-avatar-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: url(/images/user/vip_logo2.png) no-repeat center;
    background-size: 100% 100%;
    z-index: 10;
    /* 加个白色描边，更醒目 */
    border: 1px solid #fff;
    border-radius: 50%;
}