/* ===========================
   通用样式 - 黄金白银价格页面
   =========================== */

/* 页面头部 - 通用样式 */
.header {
	color: #fff;
	padding: 30px 0;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	position: relative;
	overflow: hidden;
}

/* 黄金页面头部 - 金色渐变 */
body.gold-page .header {
	background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
}

/* 白银页面头部 - 银色渐变和光泽效果 */
body.silver-page .header {
	background: linear-gradient(135deg, #E8E8E8 0%, #D3D3D3 25%, #B8B8B8 50%, #A0A0A0 75%, #8B8B8B 100%);
	color: #2c2c2c;
	box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

body.silver-page .header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
	pointer-events: none;
}

/* 导航栏样式 */
.nav-tabs {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	padding: 5px 0 0;
	margin: 0;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	border-bottom: 2px solid #e6e6e6;
}

.nav-container {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
}

.nav-item {
	display: inline-block;
	padding: 15px 30px;
	margin: 0 5px;
	text-decoration: none;
	color: #666;
	font-size: 1.1rem;
	font-weight: 500;
	transition: all 0.3s ease;
	position: relative;
	border-radius: 8px 8px 0 0;
}

.nav-item:hover {
	color: #333;
	background: rgba(0,0,0,0.05);
	transform: translateY(-2px);
}

/* 黄金页面激活导航 */
body.gold-page .nav-item.active {
	color: #2c2c2c;
	background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
	box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

body.gold-page .nav-item.active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
}

/* 白银页面激活导航 */
body.silver-page .nav-item.active {
	color: #2c2c2c;
	background: linear-gradient(135deg, #E8E8E8 0%, #D3D3D3 100%);
	box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

body.silver-page .nav-item.active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, #E8E8E8 0%, #D3D3D3 100%);
}

.nav-item i {
	margin-right: 8px;
	font-size: 1.2em;
}

.nav-item.gold i {
	color: #FFD700;
}

.nav-item.silver i {
	color: #C0C0C0;
}

.nav-item.forex {
	font-size: 1rem;
	padding: 15px 20px;
}

.nav-item.forex i {
	color: #01AAED;
}

.header h1 {
	margin: 0;
	font-size: 2.8rem;
	font-weight: 400;
}

body.gold-page .header h1 {
	position: relative;
	z-index: 1;
}

body.silver-page .header h1 {
	position: relative;
	z-index: 1;
	text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.header p {
	margin: 15px 0 0 0;
	opacity: 0.9;
	font-size: 1.2rem;
}

body.gold-page .header p {
	position: relative;
	z-index: 1;
}

body.silver-page .header p {
	opacity: 0.8;
	position: relative;
	z-index: 1;
	text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

/* 主容器 */
.main-container {
	padding: 30px 15px 0px;
	max-width: 1400px;
	margin: 0 auto;
}

/* 价格卡片样式 */
.price-card {
	background: white;
	border: 1px solid #e6e6e6;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	text-align: center;
}

.price-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* 卡片顶部装饰条 - 黄金 */
body.gold-page .card-top-bar {
	height: 4px;
	background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
	width: 100%;
}

/* 卡片顶部装饰条 - 白银 */
body.silver-page .card-top-bar {
	height: 4px;
	background: linear-gradient(90deg, #C0C0C0 0%, #A8A8A8 100%);
	width: 100%;
}

/* 卡片内容 */
.card-content {
	padding: 30px 20px;
}

/* 卡片标题 */
.card-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: #333;
	margin: 0 0 8px 0;
}

.card-subtitle {
	font-size: 0.95rem;
	color: #999;
	margin: 0 0 25px 0;
}

/* 价格显示 */
.price-display {
	margin: 25px 0;
}

.current-price {
	font-size: 3rem;
	font-weight: 700;
	margin: 0;
	line-height: 1;
}

.price-change {
	font-size: 1.2rem;
	margin: 10px 0 0 0;
	font-weight: 500;
}

/* 价格颜色 */
.price-up {
	color: #FF5722;
}

.price-down {
	color: #5FB878;
}

.price-neutral {
	color: #333;
}

/* 价格详情框 */
.price-details {
	background: #f8f9fa;
	border: 1px solid #e6e6e6;
	padding: 20px;
	margin: 25px 0;
	border-radius: 4px;
}

.price-details .layui-row {
	margin: 0 -10px;
}

.price-details .layui-col-md6 {
	padding: 8px 10px;
	font-size: 0.9rem;
	color: #666;
}

/* 更新时间 */
.update-time {
	color: #999;
	font-size: 0.85rem;
	margin: 15px 0 10px 0;
}

/* 图表容器 */
.chart-container {
	margin: 25px 0 0 0;
	text-align: center;
}

.chart-image {
	max-width: 100%;
	height: auto;
	border: 1px solid #e6e6e6;
	border-radius: 4px;
}

/* 页脚 - 通用样式 */
.footer {
	background: #2c3e50;
	color: #ecf0f1;
	padding: 30px 20px;
	margin-top: 50px;
	text-align: center;
}

/* 黄金页面页脚 */
body.gold-page .footer {
	border-top: 3px solid #FFD700;
}

/* 白银页面页脚 */
body.silver-page .footer {
	border-top: 3px solid #C0C0C0;
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
}

.disclaimer {
	font-size: 0.95rem;
	margin: 0 0 15px 0;
	padding: 15px;
	border-left: 3px solid #FFD700;
	text-align: left;
	max-width: 800px;
	margin: 0 auto 15px;
}

/* 黄金页面免责声明 */
body.gold-page .disclaimer {
	background: rgba(255, 215, 0, 0.1);
	border-left: 3px solid #FFD700;
}

body.gold-page .disclaimer strong {
	color: #FFD700;
}

/* 白银页面免责声明 */
body.silver-page .disclaimer {
	background: rgba(192, 192, 192, 0.1);
	border-left: 3px solid #C0C0C0;
}

body.silver-page .disclaimer strong {
	color: #C0C0C0;
}

.disclaimer i {
	margin-right: 5px;
	vertical-align: middle;
}

.copyright {
	font-size: 0.85rem;
	color: #95a5a6;
	margin: 10px 0 0 0;
}

/* 加载动画 */
.loading {
	text-align: center;
	padding: 40px 20px;
	color: #999;
}

/* 错误提示 */
.error-message {
	background: #fff2f0;
	color: #ff4d4f;
	padding: 20px;
	border: 1px solid #ffccc7;
	margin: 20px 0;
	border-radius: 4px;
	text-align: center;
}

/* 价格闪烁动画 */
.price-flash-up {
	animation: flashUp 0.5s ease-in-out;
}

.price-flash-down {
	animation: flashDown 0.5s ease-in-out;
}

@keyframes flashUp {
	0% { background-color: #fff; }
	50% { background-color: #FF5722; color: white; }
	100% { background-color: #fff; }
}

@keyframes flashDown {
	0% { background-color: #fff; }
	50% { background-color: #5FB878; color: white; }
	100% { background-color: #fff; }
}

/* 响应式设计 - 移动端适配 */
@media screen and (max-width: 768px) {
	.nav-item {
		padding: 12px 15px;
		font-size: 0.95rem;
	}
	
	.nav-item.forex {
		font-size: 0.85rem;
		padding: 12px 10px;
	}
	
	.nav-item i {
		margin-right: 4px;
		font-size: 1em;
	}
	
	.header h1 {
		font-size: 2rem;
	}
	.header p {
		font-size: 1rem;
	}
	.price-card {
		padding: 20px 10px;
	}
	.card-title {
		font-size: 1.2rem;
	}
	.card-subtitle {
		font-size: 0.8rem;
	}
	.price-display {
		margin: 15px 0;
	}
	.current-price {
		font-size: 2.5rem;
	}
	.price-change {
		font-size: 1rem;
	}
	.price-details {
		padding: 15px;
	}
	.price-details .layui-row {
		margin: 0 -5px;
	}
	.price-details .layui-col-md6 {
		padding: 4px 5px;
	}
	.update-time {
		font-size: 0.75rem;
		margin: 10px 0 5px 0;
	}
	.chart-container {
		margin: 15px 0 0 0;
	}
	.chart-image {
		border-radius: 2px;
	}
	.footer {
		padding: 20px 15px;
		margin-top: 30px;
	}
	.disclaimer {
		font-size: 0.85rem;
		padding: 12px;
	}
	.copyright {
		font-size: 0.75rem;
	}
}

