/* 全局样式重置 + 基础变量 */
:root {
--primary-color: #409eff;
--primary-hover: #3390e7;
--primary-active: #2680dc;
--success-color: #67c23a;
--error-color: #f56c6c;
--warning-color: #e6a23c;
--text-main: #303133;
--text-secondary: #606266;
--text-placeholder: #909399;
--border-light: #e5e6eb;
--bg-white: #ffffff;
--bg-gray: #f5f7fa;
--shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 12px;
--transition: all 0.2s ease;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", sans-serif;
}
a{
	color:#fff;
	text-decoration: none;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: #1a1a1a;
  background: url() no-repeat center top fixed;
  color: #fff;
  min-width: 1200px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}
/* 容器样式 */
.w1200 {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  box-sizing: border-box;
}

/* 顶部导航栏 */
.top-nav {
  background-color: rgba(44, 44, 44, 0.8);
  border-bottom: 1px solid #444;
  padding: 10px 0;
}

/* 左侧用户信息区域 */
.user-info {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 15px;
  box-sizing: border-box;
}

/* 登录状态框 */
.loginuser {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 290px;
  height: 50px;
  border: 1px solid #454545;
  border-radius: 4px;
  background: #333;
  transition: all 0.3s ease;
}

.loginuser:hover {
  background: #444;
}

/* 未登录状态链接样式 */
.user-info a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
  font-size: 14px;
}

.user-info a:hover {
  color: #ffcc00;
}

/* 已登录用户链接样式 */
.user-link {
  color: #fff;
  text-decoration: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* 已登录状态样式 */
.welcome-text {
  color: #fff;
  font-size: 1rem;
  margin-right: 1rem;
  font-weight: 500;
}

.logout-btn {
  color: #d93025;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.logout-btn:hover {
  background-color: #fce8e6;
}

/* 未登录状态样式 */
.auth-link {
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.login-link {
  color: #555;
}

.login-link:hover {
  color: #333;
  background-color: #f5f5f5;
}

.register-link {
  color: #4285f4;
  font-weight: 500;
}

.register-link:hover {
  color: #3367d6;
  background-color: #f0f7ff;
}

.separator {
  color: #ddd;
  margin: 0 0.3rem;
}

/* 等级样式 */
.level {
  font-size: 12px;
  color: #ccc;
}

.progress {
  height: 100%;
  background-color: #ffcc00;
}

/* 右侧导航按钮区域 */
.nav-buttons {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-end;
  padding: 0;
}

.nav-buttons ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.nav-buttons li:last-child {
  margin-right: 0;
}

.nav-buttons li {
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #a3a3a3;
}

.nav-buttons li:hover {
  color: #ffcc00;
}

.nav-buttons li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.nav-buttons li i {
  font-size: 28px;
  color: #a3a3a3;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.nav-buttons li:hover i {
  color: #ffcc00;
}

.nav-buttons li span {
  font-size: 12px;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

/* 主体内容区 */
.content {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 15px;
  padding: 15px 0;
  flex: 1;
  min-height: calc(100vh - 120px);
}

/* 左侧边栏 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ad-banner {
  padding: 10px;
  border-radius: 4px;
  background-color: rgba(44, 44, 44, 0.8);
}

/* 幻灯片样式 */
.slide-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 10px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}
.slide-item {
  width: 100%; 
  flex-shrink: 0;
}


.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 16px;
  z-index: 10;
}

.prev { left: 8px; }
.next { right: 8px; }

.dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}

.dot.active {
  background: #fff;
}

.slide-container .no-slides {
  padding: 40px;
  text-align: center;
}

/* 左侧功能按钮 */
.grid-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.grid-buttons span {
  padding: 12px 8px;
  background-color: #333;
  text-align: center;
  border: 1px solid #555;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.grid-buttons span:hover {
  background-color: #444;
}

/* 金币道具区域 */
.gold-item {
  background-color: #2c2c2c;
  padding: 15px 10px;
  text-align: center;
  color: #ff9900;
  font-weight: bold;
  font-size: 16px;
  border-radius: 4px;
}

/* 好友列表区域 */
.friend-list {
  background-color: rgba(44, 44, 44, 0.8);
  padding: 10px;
  flex-grow: 1;
  border-radius: 4px;
}

.tabs {
  display: flex;
  margin-bottom: 10px;
  border-bottom: 1px solid #444;
}

.tabs button {
  padding: 8px 15px;
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
  border-bottom: none;
  cursor: pointer;
  font-size: 14px;
}

.tabs button.active {
  background-color: #444;
  color: #ffcc00;
}

.list-area {
    height: 298px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
}

/* 右侧主内容区 */
.main-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
  background-color: rgba(30, 30, 30, 0.9);
  border-radius: 8px;
  padding: 15px;
}

/* 服务器列表 */
.server-list {
  padding: 15px;
  flex: 1;
  border-radius: 8px;
  min-height: 0;
  overflow-y: auto;
}

.server-list h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-list h2 .fa-volume-up {
  font-size: 19px;
  color: #fff;
}

/* iframe样式修复 */
.server-list iframe {
  width: 100%;
  border: none;
  display: block;
}

/* 底部横幅图 */
.map-area {
  background-color: rgba(44, 44, 44, 0.8);
  padding: 15px;
  border-radius: 4px;
}

.map-banner {
  height: 200px;
  overflow: hidden;
  border-radius: 4px;
}

.map-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .w1200 {
    width: 95%;
  }
  
  .nav-buttons li {
    width: 60px;
  }
  
  .loginuser {
    width: 250px;
  }
}

@media (max-width: 900px) {
  .content {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    width: 100%;
  }
  
  .top-nav .w1200 {
    flex-direction: column;
    height: auto;
    padding: 15px 10px;
    gap: 15px;
  }
  
  .loginuser, .nav-buttons ul {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .loginuser {
    width: 240px;
    height: 45px;
  }
  
  .welcome-text {
    font-size: 0.9rem;
  }
}
/* 新增CDK兑换区域的基础样式 */
.cdk-container {
  padding: 20px;
}
.cdk-form {
  margin-bottom: 20px;
}
.cdk-input {
  padding: 8px 12px;
  width: 250px;
  margin-right: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.cdk-btn {
  padding: 8px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.cdk-btn:hover {
  background-color: #0056b3;
}
.cdk-result {
  padding: 10px;
  border-radius: 4px;
  margin-top: 15px;
  display: none;
}
.success {
  background-color: #d4edda;
  color: #155724;
  display: block;
}
.error {
  background-color: #f8d7da;
  color: #721c24;
  display: block;
}
.no-login-tip {
  color: #721c24;
  padding: 15px;
  background-color: #f8d7da;
  border-radius: 4px;
}
/* 悬浮提示样式（替代原cdk-result，避免元素依赖） */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  padding: 16px 24px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show {
  opacity: 1;
}
.toast.success i { color: #67c23a; }
.toast.error i { color: #f56c6c; }
/* 容器样式 - 响应式适配 */
	.cdk-container {
		max-width: 500px;
		width: 90%;
		margin: 40px auto;
		padding: 30px;
		box-shadow: var(--shadow-md);
		transition: var(--transition);
	}

	.cdk-container:hover {
		box-shadow: var(--shadow-sm);
	}


	/* 未登录提示样式 - 优化视觉 */
	.no-login-tip {
		padding: 20px;
		background: rgba(245, 108, 108, 0.08);
		border: 1px solid var(--error-color);
		border-radius: var(--radius-md);
		color: var(--error-color);
		font-size: 15px;
		line-height: 1.6;
		text-align: center;
		margin-bottom: 20px;
	}

	.no-login-tip a {
		color: var(--error-color);
		text-decoration: none;
		font-weight: 500;
		border-bottom: 1px solid var(--error-color);
		padding-bottom: 2px;
		transition: var(--transition);
	}

	.no-login-tip a:hover {
		color: #e4393c;
		border-color: #e4393c;
	}

	.no-login-tip i {
		margin-right: 8px;
		font-size: 16px;
	}

	/* CDK表单样式 - 优化交互 */
	.cdk-form {
		display: flex;
		gap: 12px;
		margin-bottom: 24px;
		align-items: center;
	}

	.cdk-input {
		flex: 1;
		height: 48px;
		padding: 0 16px;
		border: 1px solid var(--border-light);
		border-radius: var(--radius-md);
		font-size: 15px;
		outline: none;
		transition: var(--transition);
		background-color: var(--bg-white);
	}

	.cdk-input:focus {
		border-color: var(--primary-color);
		box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.1);
	}

	.cdk-input::placeholder {
		color: var(--text-placeholder);
	}

	.cdk-input:disabled {
		background-color: var(--bg-gray);
		cursor: not-allowed;
	}

	.cdk-btn {
		width: 122px;
		height: 48px;
		background: var(--primary-color);
		border: none;
		border-radius: var(--radius-md);
		color: #fff;
		font-size: 15px;
		font-weight: 500;
		cursor: pointer;
		transition: var(--transition);
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
	}

	.cdk-btn:hover {
		background: var(--primary-hover);
		transform: translateY(-1px);
	}

	.cdk-btn:active {
		background: var(--primary-active);
		transform: translateY(0);
	}

	.cdk-btn:disabled {
		background: var(--text-placeholder);
		cursor: not-allowed;
		transform: none;
	}

	/* 加载动画 */
	.loading-icon {
		animation: spin 1s linear infinite;
		font-size: 16px;
	}

	@keyframes spin {
		0% { transform: rotate(0deg); }
		100% { transform: rotate(360deg); }
	}

	/* 兑换结果提示样式 - 优化视觉+动画 */
	.cdk-result {
		padding: 16px 20px;
		border-radius: var(--radius-md);
		margin-bottom: 24px;
		font-size: 14px;
		line-height: 1.6;
		display: none; /* 默认隐藏 */
		align-items: center;
		gap: 10px;
		animation: fadeIn 0.3s ease;
	}

	@keyframes fadeIn {
		from { opacity: 0; transform: translateY(10px); }
		to { opacity: 1; transform: translateY(0); }
	}

	.cdk-result.success {
		display: flex;
		background: rgba(103, 194, 58, 0.08);
		color: var(--success-color);
		border: 1px solid var(--success-color);
	}

	.cdk-result.error {
		display: flex;
		background: rgba(245, 108, 108, 0.08);
		color: var(--error-color);
		border: 1px solid var(--error-color);
	}

	.cdk-result.warning {
		display: flex;
		background: rgba(230, 162, 60, 0.08);
		color: var(--warning-color);
		border: 1px solid var(--warning-color);
	}

	.cdk-result i {
		font-size: 18px;
		flex-shrink: 0;
	}

	/* 兑换说明样式 - 优化排版 */
	.cdk-desc {
		margin-top: 20px;
		color: fff;
		font-size: 14px;
		padding: 16px;
		border-radius: var(--radius-md);
	}

	.cdk-desc-title {
		margin-bottom: 12px;
		font-weight: 500;
		color: fff
		display: flex;
		align-items: center;
		gap: 6px;
		font-size: 16px;
	}

	.cdk-desc-title i {
		color: var(--primary-color);
		font-size: 16px;
	}

	.cdk-desc-item {
		padding: 8px 0;
		line-height: 1.8;
		border-bottom: 1px dashed var(--border-light);
		position: relative;
		padding-left: 18px;
	}

	.cdk-desc-item:last-child {
		border-bottom: none;
	}

	.cdk-desc-item::before {
		content: "";
		position: absolute;
		left: 0;
		top: 17px;
		width: 6px;
		height: 6px;
		background: var(--primary-color);
		border-radius: 50%;
	}

	/* 响应式适配 - 小屏幕优化 */
	@media (max-width: 480px) {
		.cdk-container {
			padding: 20px;
			margin: 20px auto;
		}

		.cdk-form {
			flex-direction: column;
			gap: 10px;
		}

		.cdk-input {
			width: 100%;
		}

		.cdk-btn {
			width: 100%;
		}

		.cdk-header h2 {
			font-size: 18px;
		}
	}

/* 排名系统样式 */
.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}

.ranking-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.rank-badge {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: #333;
    font-weight: bold;
    font-size: 14px;
    margin-right: 10px;
    color: #fff;
}

.rank-badge.rank-gold {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
}

.rank-badge.rank-silver {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #000;
}

.rank-badge.rank-bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #000;
}

.rank-icon {
    margin-right: 10px;
    font-size: 16px;
}

.rank-username {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
    color: #fff;
}

.rank-level {
    padding: 2px 8px;
    background: linear-gradient(135deg, #409eff, #67c23a);
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 15px;
    color: #fff;
}

.rank-kills,
.rank-wins,
.rank-headshots,
.rank-kd {
    margin-right: 15px;
    font-size: 13px;
    color: #999;
}

.rank-kills {
    color: #f56c6c;
}

.rank-wins {
    color: #67c23a;
}

.rank-headshots {
    color: #e6a23c;
}

.rank-kd {
    color: #409eff;
    margin-right: 0;
}

/* 大赛系统样式 */
.tournament-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.tournament-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.tournament-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-status {
    padding: 4px 12px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    margin-left: 10px;
}

/* 隐藏不需要的元素 */
.tournament-info,
.tournament-description,
.tournament-rewards {
    display: none !important;
}

/* 大赛详情样式 */
.tournament-detail-modal {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tournament-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tournament-detail-header h2 {
    margin: 0;
    font-size: 22px;
    color: #fff;
    font-weight: bold;
}

.close-detail {
    font-size: 32px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-detail:hover {
    color: #fff;
}

.tournament-detail-content {
    color: #ccc;
}

.detail-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.detail-section strong {
    color: #ffd700;
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.detail-section p {
    margin: 0;
    color: #ccc;
    line-height: 1.8;
}

.detail-description {
    color: #ccc;
    line-height: 1.8;
    word-wrap: break-word;
}

.tournament-rewards-detail {
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.reward-item-detail {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.tournament-rules-detail ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.tournament-rules-detail li {
    margin-bottom: 5px;
}

/* 排行榜表头 */
.rank-header {
    display: grid;
    grid-template-columns: 60px 1fr 80px 70px 70px 80px 80px;
    background: #2d2d2d;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    color: #ffcc00;
    font-size: 14px;
}

/* 排名列表 */
.rank-list {
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.rank-item {
    display: grid;
    grid-template-columns: 60px 1fr 80px 70px 70px 80px 80px;
    padding: 12px 15px;
    align-items: center;
    border-bottom: 1px solid #333;
    transition: background 0.2s;
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-item:hover {
    background: #333;
}

/* 前三名特殊样式 */
.rank-item.top1 {
    background: rgba(255, 215, 0, 0.15);
}
.rank-item.top2 {
    background: rgba(192, 192, 192, 0.15);
}
.rank-item.top3 {
    background: rgba(205, 127, 50, 0.15);
}

.rank-item .num {
    font-size: 16px;
    font-weight: bold;
}
.rank-item.top1 .num { color: #ffd700; }
.rank-item.top2 .num { color: #c0c0c0; }
.rank-item.top3 .num { color: #cd7f32; }

.rank-item .name {
    font-size: 14px;
    color: #fff;
}

.rank-item .level {
    color: #409eff;
    font-size: 13px;
}

.rank-item .kill { color: #4cd964; }
.rank-item .death { color: #ff3b30; }
.rank-item .kd { color: #00bfff; }
.rank-item .rate { color: #ff9500; }

/* 响应式适配手机 */
@media (max-width: 768px) {
    .rank-header, .rank-item {
        grid-template-columns: 50px 1fr 60px 50px 50px 60px 60px;
        padding: 10px 8px;
        font-size: 12px;
    }
}

/* 战队表头样式 */
.clan-header {
    background: #2d2d2d;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.clan-header-row {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #444;
}

.clan-header-row span {
    width: 25%;
    text-align: center;
    font-weight: bold;
    color: #ffcc00;
    font-size: 14px;
}

/* 战队数据容器 */
.clan-list-container {
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* 战队数据行 */
.clan-data-row {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    align-items: center;
    transition: background 0.2s;
}

.clan-data-row:last-child {
    border-bottom: none;
}

.clan-data-row:hover {
    background: #333;
}

.clan-data-row span {
    width: 25%;
    text-align: center;
    color: #ccc;
    font-size: 14px;
}

.clan-data-row .clan-name {
    color: #fff;
    font-weight: 500;
}

/* ========== 公告弹窗样式 ========== */
.detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
}
.detail-modal.show {
    display: block;
}
.modal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 920px;
    background: #2c303a;
    border-radius: 10px;
    display: flex;
    overflow: hidden;
    position: relative;
}
.modal-close-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #383c48;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}
.modal-close-icon:hover {
    background: #dd4444;
}
.modal-cate-side {
    width: 260px;
    background: #252931;
    padding: 30px 16px;
    border-right: 1px solid #383c48;
    overflow-y: auto;
}
.cate-item {
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #aaa;
    text-align: center;
    transition: all 0.2s;
}
.cate-item:hover {
    background: rgba(255,255,255,0.05);
}
.cate-item.active {
    background: #4477dd;
    color: #fff;
}
.modal-detail-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}
.modal-top-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.back-btn {
    padding: 7px 16px;
    background: #555a68;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    transition: background 0.2s;
}
.back-btn:hover {
    background: #444955;
}
.back-btn.show {
    display: block;
}
.modal-title-wrap {
    display: flex;
    align-items: center;
    flex: 1;
}
.modal-title-wrap h2 {
    color: #fff;
    font-size: 22px;
    margin: 0;
}
.modal-time-text {
    font-size: 12px;
    color: #aaa;
    margin-left: 10px;
}
.modal-content-text {
    color: #ddd;
    line-height: 1.8;
    font-size: 15px;
}
.modal-notice-card {
    width: 100%;
    background: #383c48;
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.modal-notice-card:hover {
    background: #454a58;
}
.card-left-text h3 {
    font-size: 18px;
    color: #ffffff;
    font-weight: normal;
    margin: 0 0 4px 0;
}
.card-left-text .card-time {
    font-size: 12px;
    color: #bbbbbb;
}
.card-detail-btn {
    padding: 6px 16px;
    background: #4477dd;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.card-detail-btn:hover {
    background: #3366cc;
}

/* 新闻列表项样式 */
.news-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background 0.2s;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.news-item.active {
    background: rgba(255, 255, 255, 0.1);
}

.news-item .fenlei {
    color: #4477dd;
    font-size: 13px;
    margin-right: 10px;
    flex-shrink: 0;
}

.news-item .news-title {
    flex: 1;
    color: #ddd;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 15px;
}

.news-item .news-time {
    color: #888;
    font-size: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}


