@charset "UTF-8";
* {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
 }
 
 :root {
     --primary: black;/* #6366f1; */
     --primary-light: #818cf8;
     --primary-dark: #4f46e5;
     --gray-100: #f3f4f6;
     --gray-200: #e5e7eb;
     --gray-300: #d1d5db;
     --gray-500: gray;
     --gray-700: #374151;
     --gray-800: #1f2937;
     --white: #ffffff;
     --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
     --radius: 8px;
     --transition: all 0.3s ease;
 }
 
 body {
     background-color: #f9fafb;
     color: var(--gray-800);
     min-height: 100vh;
 }
 .btn {
    padding: 8px 16px;
    border-radius: var(--radius);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}
 .container {
     margin: 0 auto;
     padding: 0 20px;
 }
 
 /* 顶部导航 */
 header {
     box-shadow: var(--shadow);
     position: fixed;
     top: 0;
     left:0;
     z-index: 100;
     width: 100%;
     background: #f9fafb;
     
 }
 
 .header-content {
     display: flex;
     justify-content: space-between;
     align-items: center;
     height: 70px;
 }
 
 .logo {
     font-size: 22px;
     font-weight: 700;
     color: var(--primary);
     text-decoration: none;
     display: flex;
     align-items: center;
     gap: 8px;
 }
 
 .logo i {
     font-size: 24px;
 }
 
 .nav-buttons {
     display: flex;
     gap: 12px;
 }

 .btn-outline {
     border: 1px solid var(--primary);
     color: var(--white);
     background: var(--primary);
 }
 
 
 .btn-primary {
     background-color: var(--primary);
     color: var(--white);
 }
 
 .btn-primary:hover {
     background-color: var(--primary-dark);
 }
 
 /* 用户信息区 */
 .user-info {
     display: none;
     align-items: center;
     gap: 8px;
     cursor: pointer;
 }
 
 .header-menu{
    align-items: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap:1px;
    padding: 0px 10px;
    color: #333; 
    min-width: 48px;
 }
  .header-menu:hover{
  	  color: black; 
  }
 .header-menu i{
 	color: #E53E3E; 
  	font-size: 25px; /* 图标大小 */
 }
 .header-menu span{
	cursor:pointer;
	font-size: 14px;
	font-weight: 700;
 }
 
 .user-avatar {
     width: 30px;
     height: 30px;
     border-radius: 50%;
     color: var(--white);
     display: flex;
     justify-content: center;
     align-items: center;
 }
 
 .dropdown-menu {
    position: absolute;
    top: 60px;
    right: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    z-index: 1000;
    display: none;
}
.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.3s;
}
.menu-item:hover {
    background: #f5f5f5;
}
.menu-item i {
    font-size: 18px;
    color: #666;
    margin-right: 12px;
    width: 18px;
    text-align: center;
}

/* 通用环形容器样式（迷你版） */
.word-circle {
  width: 90px; /* 从180px缩小到100px */
  height: 90px;
  border-radius: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease; /* 缩短动画时长 */
}

.word-circle:hover {
  transform: scale(1.03); /* 缩小悬浮放大比例 */
}

/* 总剩余字数环形样式（主蓝色） */
.total-circle {
  border: 4px solid #e8f4fc; /* 边框从8px缩到4px */
  outline: 4px solid #2196f3;
}

/* 最近到期字数环形样式（辅助蓝紫） */
.expire-circle {
  border: 4px solid #f0e8fc;
  outline: 4px solid #9c27b0;
}

/* 顶部小挂点（迷你版） */
.word-circle::before {
  content: '';
  position: absolute;
  top: -2px; /* 调整挂点位置 */
  left: 50%;
  transform: translateX(-50%);
  width: 8px; /* 挂点从16px缩到8px */
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  z-index: 2;
}

.total-circle::before {
  border: 4px solid #2196f3; /* 挂点边框缩到4px */
  border-bottom: none;
}

.expire-circle::before {
  border: 4px solid #9c27b0;
  border-bottom: none;
}

/* 数字样式（迷你版） */
.word-num {
  font-size: 18px; /* 从32px缩到18px */
  font-weight: 700;
  margin-bottom: 2px; /* 缩小间距 */
  line-height: 1; /* 保证垂直居中 */
}

.total-circle .word-num {
  color: #2196f3;
}

.expire-circle .word-num {
  color: #9c27b0;
}

/* 说明文字（迷你版） */
.word-desc {
  font-size: 13px; /* 从14px缩到11px */
  color: #666;
  text-align: center;
  line-height: 1.2;
}

/* 到期日期补充（迷你版） */
.expire-date {
  font-size: 10px; /* 从12px缩到10px */
  color: #888;
  margin-top: 2px;
  line-height: 1.2;
}
    
    
 /* 登录弹窗 */
 .modal {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.5);
     display: flex;
     justify-content: center;
     align-items: center;
     z-index: 1000;
     opacity: 0;
     visibility: hidden;
     transition: var(--transition);
 }
 
 .modal.active {
     opacity: 1;
     visibility: visible;
 }
 
 .modal-content {
     background-color: var(--white);
     border-radius: var(--radius);
     width: 100%;
     max-width: 400px;
     padding: 24px;
     box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
     transform: translateY(-20px);
     transition: var(--transition);
 }
 
 .modal.active .modal-content {
     transform: translateY(0);
 }
 
 .modal-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 20px;
 }
 
 .modal-title {
     font-size: 18px;
     font-weight: 600;
     color: var(--gray-800);
 }
 
 .close-modal {
     cursor: pointer;
     font-size: 20px;
     color: var(--gray-700);
 }
 
 /* 核心卡片容器 */
 .payment-card {
    border-radius: 20px;
    text-align: center;
    /* max-width: 320px; */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
 }

 /* 微信图标样式 */
 .wechat-icon {
     font-size: 28px;
     color: #07C160; /* 微信绿 */
     margin-bottom: 8px;
 }

 /* 主标题 */
 .payment-title {
     font-size: 18px;
     font-weight: 600;
     color: #333333;
     margin-bottom: 4px;
 }

 /* 副标题 */
 .payment-subtitle {
     font-size: 14px;
     color: #999999;
     margin-bottom: 20px;
 }

 /* 二维码图片容器 */
 .qr-code-wrapper {
     margin-bottom: 20px;
 }

 /* 确保二维码尺寸且保持比例 */
 .qr-code-img {
     width: 260px;
     height: 260px;
     /* 防止图片拉伸 */
     object-fit: contain; 
     border-radius: 8px;
 }

 /* 底部提示文字 */
 .payment-tip {
     font-size: 13px;
     color: #666666;
     line-height: 1.5;
 }
 
 #topup{
		display: none;
 }
  /* 响应式适配 */
 @media (max-width: 768px) {
    .logo {
		padding-left: 0px !important;
		font-size: 18px;
	}
	.header-content{
		height: 60px;
	}
	.logo img{
		height: 40px !important;
	}
	.header-menu{
		display: none !important;
	}
	#topup{
		display: block;
	}
	#logout{
		/* display: none; */
	}
	.dropdown-menu .menu-item-word {
		border-bottom: 0px !important;
	}
 }
