.container {
	width: 1250px;
	margin: 30px auto;
	display: flex;
	gap: 30px;
}

/* 左侧导航 */
.nav-sidebar {
	width: 240px;
	background: white;
	border-radius: 15px;
	padding: 20px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	position: sticky;
	top: 30px;
	height: fit-content;
}




/* 右侧内容 */
.content-main {
	flex: 1;
	background: white;
	border-radius: 15px;
	padding: 14px 30px;
	margin:20px;
}

.rank-list {
	display: none;
	animation: fadeIn 0.3s;
}

.rank-list.active {
	display: block;
}

.rank-item {
	display: flex;
	align-items: center;
	padding: 15px;
	margin: 15px 0;
	background: #f8f9fa;
	border-radius: 8px;
	transition: transform 0.3s;
}

.title {
	color: #2d3436;
	font-size: 16px;
	font-weight: 600;
	flex: 1;
}

.hot {
	color: #ff7675;
	font-size: 14px;
	font-weight: 600;
	margin-left: 15px;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}
		/* TOP1 特殊样式 */
.top1-card {
    display: flex;
    gap: 25px;
    background: white;
    padding: 20px;
    margin: 20px 0;
    height: 190px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	position: relative; 
	overflow: hidden;
}
:root {
    --main-color: #3498db; 
}

.cover-img {
	width: 160px;
	max-height: 160px;
	object-fit: cover;
	transition: transform 0.3s;
}
.cover-img img{
	width: 140px;
    height: 140px;
}
.cover-img:hover {
	transform: scale(1.03);
}

.top1-content {
	flex: 1;
	position: relative;
}
.top1-content h2{
	font-size: 16px;
    font-weight: 100;
}
.top1-content .description{
    overflow: hidden;
    line-height: 1.6;
    font-size: 14px;
    margin-top: 0.8rem;
}

.tags {
	display: flex;
	gap: 10px;
	margin: 15px 0;
}

.tag {
    background: rgba(123, 104, 238, 0.1);
    color: #524d4d;
    padding: 6px 15px;
    border-radius: 0px;
    font-size: 14px;
}

.tag a{
    color: #2f3542;
}

.view-btn {
    position: absolute;
    bottom: 3px;
    right: 0;
    background: #5a67d8;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    padding: 6px 15px;
    font-size: 14px;
}
.view-btn a{color:#fff;}
.view-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(255,105,180,0.3);
}
@media (hover: none) {
.view-btn {
	min-width: 120px;
	padding: 10px!important;
}
}

:root {
	--main-color: #ff6b6b;
	--accent-color: #ff8e8e;
}

/* 基础样式 */
.nav-sidebar {
	position: sticky;
	top: 0;
	background: rgba(255,255,255,0.96);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.nav-scroll {
	display: flex;
	padding: 10px 15px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}


/* 桌面端优化 */
@media (min-width: 769px) {
	.container {
		display: flex;
		gap: 10px;
		max-width: 1280px;
		margin: 30px auto;
		background: #fff;
	}

	.nav-sidebar {
		position: sticky;
		top: 40px;
		width: 240px;
		height: fit-content;
		border-radius: 15px;
		padding: 20px;
		box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	}

	.nav-scroll {
		display: block;
		overflow: visible;
		padding: 0;
	}

}

/* 移动端优化 */
@media (max-width: 768px) {
	.nav-item {
		font-size: 14px;
		padding: 10px 20px;
	}

	.content-main {
		padding-top: 70px !important;
	}
	.container{
		width: 100%;
		overflow: hidden;
	}
	.nav-sidebar{
		width: 100%;
	}
	.nav-new{
		flex-shrink: 0;
		padding: 12px 25px;
		border-radius: 25px;
		margin: 0 8px;
		transition: all 0.3s;
		background: #f8f9fa;
		color: #666;
		font-weight: 500;
		white-space: nowrap;
	}
	.nav-scroll{
		padding: 0;
	}
}
.nav-sidebar {
	transition: all 0.3s ease;
	align-self: start; /* 重要！保持对齐方式 */
}

/* 悬浮状态样式 */
.nav-sidebar.fixed {
	position: fixed;
	top: 20px;
	width: 240px; /* 与侧边栏原始宽度一致 */
	z-index: 1000;
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
	animation: floatIn 0.5s ease;
}

/* 当侧边栏悬浮时给内容区补偿宽度 */
.has-fixed-sidebar .rank-container {
	margin-left: 270px; /* 240 + 30间隙 */
	transition: margin 0.3s ease;
}

@keyframes floatIn {
	from { transform: translateY(-10px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

/* 移动端适配 */
@media (max-width: 768px) {
	.nav-sidebar.fixed {
		width: 100%;
		top: 0;
		left: 0;
		border-radius: 0;
		box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	}
	
	.has-fixed-sidebar .rank-container {
		margin-left: 0;
		padding-top: 70px; /* 补偿顶部导航高度 */
	}
}
.nav-new {
	flex-shrink: 0;
	padding: 12px 25px;
	border-radius: 25px;
	margin: 0 8px;
	transition: all 0.3s;
	background: #f8f9fa;
	color: #666;
	font-weight: 500;
	white-space: nowrap;
	display: block;
	margin: 12px 0;
	padding: 15px;
	border-radius: 12px;
}

.nav-new.active {
	background: var(--main-color);
	color: white;
	box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}
.hotness{
	float: right;
    border-left: 1px solid #e6e6e6;
    padding-left: 20px;
    margin: 20px 0;
	min-width: 126px;
}
.hotness span{line-height: 8;}
/* 基础样式 */
.rank-item {
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 排名数字通用样式 */
.rank-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    color: white;
}
/* 通用排名样式 */
.rank-number {
	font-weight: bold;
    font-size: 1em;
    display: inline-block;
    text-align: center;
    border-radius: 15px;
    padding-top: 1px;
}

/* TOP4-10统一样式 */
.rank-number[data-rank]:not([data-rank="1"]):not([data-rank="2"]):not([data-rank="3"]) {
    background: #f0f0f0;
    color: #666;
}

/* 标题和热度样式 */
.title {
    flex: 1;
    font-size: 16px;
    color: #333;
}

.hot {
    font-size: 14px;
    color: #666;
    margin-left: 10px;
}

/* 悬停效果 */
.rank-item:hover {
    transform: translateY(-2px);
    transition: transform 0.2s;
}
.menu-item1 > a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #4a5568;
    text-decoration: none;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.menu-item1 > a::after {
    content: '❯';
    position: absolute;
    right: 20px;
    transition: transform 0.3s;
    color: #93a2ff;
}
.menu-list .active{
	color: #5a67d8;
    background: rgba(165, 180, 252, 0.1);
}
.rank-number {
  width: 30px;            /* 新宽度 */
  height: 30px;          /* 保持现有高度或按需调整 */
  background-image: url(/images1/top.png);
  background-repeat: no-repeat;
  display: inline-block;
  background-size: 50px auto;   /* 宽度固定40px，高度自适应 */
  background-position: center center; /* 水平和垂直居中 */
}

/* 特定样式覆盖 */
.rank-number-q3 {
  /* 若需要不同高度可在此覆盖 */
}

/* 雪碧图定位调整（按比例缩放后） */
.rank-number[data-rank="1"] { background-position: center 0; }
.rank-number[data-rank="2"] { background-position: center -43px; } /* 168*(40/200) */
.rank-number[data-rank="3"] { background-position: center -86px; }
.top-card1{background: #efdd3845; }
.top-card2{background: #c0c0c017;}
.top-card3{background: #d09d712e;}

.rank-number-q3{
	width: 55px;
    height: 45px;
    border-radius: 0;
    margin: 0;
}