﻿        :root {
            --primary-color: #601685;
            --secondary-color: #8c50fb;
            --accent-color: #e59e00;
            --light-bg: #F3FBFE;
            --text-dark: #333;
            --text-light: #666;
            --border-color: #e0e0e0;
        }
        
        html {
            font-size: 625%;
            -webkit-text-size-adjust: none;
            max-height: 100%;
            background-color: #f5f5f5;
        }
/*font*/
@font-face {
	font-family: 'iconfont';
	src: url('/font_qbl/iconfont.eot');
	src: url('/font_qbl/iconfont.eot?#iefix') format('embedded-opentype'),
		url('/font_qbl/iconfont.woff2') format('woff2'),
		url('/font_qbl/iconfont.woff') format('woff'),
		url('/font_qbl/iconfont.ttf') format('truetype'),
		url('/font_qbl/iconfont.svg#iconfont') format('svg');
}
.ico {
	font-family: "iconfont" !important;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.icoo {
	font-size: 30px;
	color:#CCCCCC;
	margin-left:10px;
	border:1px solid #ccc;
}
/*会员中心_会员权限*/
        
        @media only screen and (max-width: 479px) and (min-width: 321px) {
            html { font-size: 70px; }
        }
        
        @media only screen and (max-width: 320px) {
            html { font-size: 60px; }
        }
        
        body {
            font-family: "Microsoft YaHei", sans-serif;
            color: var(--text-dark);
            background-color: #f5f5f5;
        }
        
        .user-header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 15px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        
        .user-info {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .user-avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            border: 3px solid rgba(255,255,255,0.3);
            margin-right: 15px;
            object-fit: cover;
        }
        
        .user-details {
            flex: 1;
        }
        
        .user-name {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .user-id {
            font-size: 14px;
            opacity: 0.9;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .stat-item {
            text-align: center;
            padding: 10px;
            background: rgba(255,255,255,0.2);
            border-radius: 8px;
        }
        
        .stat-value {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 5px;
			color:#FFFFFF;
        }
        
        .stat-label {
            font-size: 12px;
            opacity: 0.9;
			color:#FFFFFF;
        }
        
        .card {
            background: white;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        
        .card-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .card-title a {
            font-size: 14px;
            font-weight: normal;
            color: var(--primary-color);
        }
        
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
        }
        
        .feature-item {
            text-align: center;
            padding: 15px 0px;
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        
        .feature-item:hover {
            background-color: var(--light-bg);
            transform: translateY(-3px);
        }
        
        .feature-icon {
            font-size: 36px;
            margin-bottom: 10px;
            color: var(--primary-color);
        }
        
        .feature-name {
            font-size: 14px;
            color: var(--text-light);
        }
        
        .viewers-grid {
            display: flex;
            overflow-x: hidden;
            padding: 10px 0;
            gap: 10px;
        }
        
        .viewer-item {
            flex: 0 0 auto;
            text-align: center;
        }
        
        .viewer-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--border-color);
        }
        
        .viewer-name {
            font-size: 12px;
            margin-top: 5px;
            color: var(--text-light);
        }
        
        .progress-bar {
            height: 8px;
            background-color: #e0e0e0;
            border-radius: 4px;
            overflow: hidden;
            margin: 10px 0;
        }
        
        .progress-fill {
            height: 100%;
            background-color: var(--accent-color);
            border-radius: 4px;
            width: <%=baifen%>%;
        }
        
        .status-badge {
            display: inline-block;
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 12px;
            font-weight: bold;
            margin-right: 10px;
        }
        
        .status-on {
            background-color: #4caf50;
            color: white;
        }
        
        .status-off {
            background-color: #ccc;
            color: white;
        }
        
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 24px;
        }
        
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .toggle-slider {
            background-color: var(--primary-color);
        }
        
        input:checked + .toggle-slider:before {
            transform: translateX(26px);
        }
        
        .settings-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        
        .setting-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 15px 0px;
            background: var(--light-bg);
            border-radius: 8px;
            text-align: center;
        }
        
        .setting-icon {
            font-size: 36px;
            margin-bottom: 10px;
            color: var(--primary-color);
        }
        
        .setting-name {
            font-size: 14px;
            margin-bottom: 10px;
            color: var(--text-dark);
        }
        .jrxq {
            position:absolute;
			right:5px;
			top:-10px;
			width:20px;
			height:20px;
			background-color:#FF0000;
			color:#FFFFFF;
			font-size:14px;
			border-radius:50%;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
        .user-header {
            margin-top: 15px;
        }
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .feature-grid, .settings-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            .feature-grid4 {
                grid-template-columns: repeat(4, 1fr);
            }
        .feature-icon {
            font-size: 24px;
        }
        .setting-icon {
            font-size: 32px;
        }
        .jrxq {
			right:-5px;
        }
        }
        
        @media (max-width: 480px) {
            
            .user-avatar {
                width: 60px;
                height: 60px;
            }
        }
        
        /* 消息提示样式 */
        .message-notification {

            position: relative;
            display: inline-block;
        }
        
        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: #ff4757;
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 12px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
/* 开关容器 */
.toggle-container {
  position: relative;
  display: inline-block;
  width: 120px; /* 总宽度 */
  height: 34px; /* 总高度 */
  cursor: pointer;
}

/* 隐藏原生复选框 */
.toggle-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* 开关背景 */
.toggle-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px; /* 圆角 */
  transition: background-color 0.3s ease;
  background-color: #e5e7eb; /* 关闭状态背景 */
}

/* 开关滑块 */
.toggle-slider2 {
  position: absolute;
  content: "";
  height: 28px; /* 滑块高度 */
  width: 28px;  /* 滑块宽度 */
  left: 2px;    /* 左侧间距 */
  top:3px;
  bottom: 2px;  /* 底部间距 */
  border-radius: 50%; /* 圆形滑块 */
  background-color: white;
  transition: transform 0.3s ease;
}

/* 选中状态样式 */
input:checked + .toggle-bg {
  background-color: #7b61ff; /* 开启状态背景 */
}

input:checked + .toggle-bg .toggle-slider2 {
  transform: translateX(88px); /* 滑块移动距离 */
}

/* 状态文字 */
.toggle-text {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

/* 开启状态文字 */
.toggle-text-on {
  justify-content: flex-start;
  padding-left: 12px;
  color: white;
  opacity: 0;
}

/* 关闭状态文字 */
.toggle-text-off {
  justify-content: flex-end;
  padding-right: 12px;
  color: #6b7280;
}

/* 选中时切换文字显示 */
input:checked + .toggle-bg .toggle-text-on {
  opacity: 1;
}

input:checked + .toggle-bg .toggle-text-off {
  opacity: 0;
}