/* ===============================================
   redesign.css - 全新视觉样式，保留原HTML结构
   天津和光与时能源信息网 · 现代极光设计
   =============================================== */

/* ----- 图标字体引入 (从原 vendor.min.css 提取，确保图标正常) ----- */
@font-face {
	font-family: 'themify';
	src: url('../static/font/themify.woff') format('woff'),
	url('../static/font/themify.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

/* 赋予 Themify 图标通用的样式 */
[class^="ti-"], [class*=" ti-"] {
	font-family: 'themify' !important;
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	display: inline-block;
	color: var(--primary); /* 变回漂亮的粉红色 */
}
[class^="pe-7s-"], [class*=" pe-7s-"] { font-family: 'Pe-icon-7-stroke'; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.fa { font-family: FontAwesome; display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ----- 全局重置与设计变量 ----- */
:root {
	--primary: #ff4d6d;
	--primary-dark: #c9184a;
	--secondary: #3b8aff;
	--accent: #8338ec;
	--dark: #1e1e2f;
	--light: #f8f9ff;
	--gray: #6c757d;
	--card-bg: rgba(255, 255, 255, 0.85);
	--backdrop-blur: blur(12px);
	--shadow-sm: 0 8px 20px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.02);
	--shadow-hover: 0 20px 30px -10px rgba(255, 77, 109, 0.25), 0 8px 20px rgba(0,0,0,0.1);
	--border-radius-card: 28px;
	--font-sans: 'Poppins', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: var(--font-sans);
	background: linear-gradient(145deg, #f0f2ff 0%, #ffffff 100%);
	color: #2b2d42;
	line-height: 1.6;
	overflow-x: hidden;
	min-height: 100vh;
}
a, button { transition: all 0.3s ease; text-decoration: none; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* ----- 头部区域 · 毛玻璃 + 动态下划线 ----- */
.header-main {
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: var(--backdrop-blur);
	-webkit-backdrop-filter: var(--backdrop-blur);
	border-bottom: 1px solid rgba(255,255,255,0.6);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
	padding: 10px 0;
	position: sticky;
	top: 0;
	z-index: 1050;
}
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; align-items: center; }
.col-auto { flex: 0 0 auto; }
.col { flex: 1 1 0; }
.col-lg-auto { flex: 0 0 auto; }
.pl-0 { padding-left: 0; }
.align-self-center { align-self: center; }

/* Logo */
.header-logo a {
	display: inline-block;
	line-height: 1.2;
}
.header-logo a span:first-child {
	font-size: 38px !important;
	font-weight: 800;
	background: linear-gradient(135deg, #ff4d6d, #ff8fa3);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important; /* 覆盖内联 color: red */
	letter-spacing: -0.5px;
}
.header-logo a span:last-child {
	font-size: 28px !important;
	color: #2b2d42 !important; /* 覆盖内联 color: dimgrey */
	font-weight: 400;
	margin-left: 4px;
}

/* 导航菜单 */
.main-menu ul {
	display: flex;
	gap: 2rem;
	justify-content: center;
}
.main-menu .dropdown a {
	color: var(--dark);
	font-weight: 550;
	font-size: 1.1rem;
	padding: 0.5rem 0;
	position: relative;
}
.main-menu .dropdown a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	transition: width 0.3s ease;
	border-radius: 4px;
}
.main-menu .dropdown a:hover::after,
.main-menu .dropdown a.active::after {
	width: 100%;
}
.main-menu .dropdown a.active {
	color: var(--primary) !important;
}
.main-menu .dropdown a:hover {
	color: var(--primary) !important;
}

/* 头部操作图标 */
.header-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}
.header-action-btn {
	background: rgba(255,255,255,0.5);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255,255,255,0.7);
	border-radius: 60px;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--dark);
	font-size: 1.4rem;
	box-shadow: var(--shadow-sm);
}
.header-action-btn:hover {
	background: white;
	color: var(--primary);
	border-color: white;
	box-shadow: 0 12px 24px -12px var(--primary);
	transform: translateY(-3px);
}
.header-bottom-set .dropdown-toggle { background: transparent; border: none; }

/* 移动端遮罩 (原样式保留) */
.offcanvas-overlay { display: none; }

/* ----- 首页大图 & 标题 ----- */
.container-fluid { width: 100%; padding: 0; margin: 0; }
.container-fluid .row img {
	width: 100%;
	height: 300px !important;
	object-fit: cover;
	filter: brightness(0.8) saturate(1.2);
	border-radius: 0 0 50px 50px;
	box-shadow: 0 20px 40px -15px rgba(0,0,0,0.3);
}
.comehome-txt {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white !important;
	font-size: 3.5rem !important;
	font-weight: 800;
	text-shadow: 0 4px 20px rgba(0,0,0,0.4);
	letter-spacing: -1px;
	z-index: 2;
	text-align: center;
	width: 100%;
	background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
	backdrop-filter: blur(2px);
	padding: 0.5rem 2rem;
	border-radius: 80px;
	width: fit-content;
	margin: 0 auto;
}
.head-comeon {
	text-align: center;
	margin: 2.5rem 0 1rem;
}
.head-comeon span {
	background: linear-gradient(145deg, var(--primary), var(--accent));
	color: white;
	padding: 0.8rem 3rem;
	border-radius: 60px;
	font-size: 1.4rem;
	font-weight: 600;
	letter-spacing: 1px;
	box-shadow: 0 18px 30px -12px var(--primary);
	display: inline-block;
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255,255,255,0.3);
}

/* ----- 卡片网格 (原 .big-jiaoyi) ----- */
.big-jiaoyi {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 2rem;
	padding: 0 15px;
}
.jiaoyi-box {
	background: var(--card-bg);
	backdrop-filter: var(--backdrop-blur);
	-webkit-backdrop-filter: var(--backdrop-blur);
	border-radius: var(--border-radius-card);
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.8);
	box-shadow: var(--shadow-sm);
	transition: all 0.35s cubic-bezier(0.15, 0.75, 0.45, 1);
	display: flex;
	flex-direction: column;
	padding: 0 !important;  /* 覆盖原内联 padding */
	height: auto !important;
	margin-bottom: 0 !important;
	border-bottom: none !important;
}
.jiaoyi-box:hover {
	transform: translateY(-12px) scale(1.01);
	box-shadow: var(--shadow-hover);
	border-color: white;
}
.ershou-img {
	overflow: hidden;
	height: 200px;
}
.ershou-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s ease;
}
.jiaoyi-box:hover .ershou-img img {
	transform: scale(1.1) rotate(1deg);
}
.miaoshu {
	padding: 1.5rem 1.2rem 0.8rem;
	width: 100% !important;
	height: auto !important;
}
.miaoshu p:first-child {
	font-weight: 700;
	font-size: 1.2rem;
	color: var(--dark);
	margin-bottom: 0.4rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.miaoshu p:last-child {
	color: var(--gray);
	font-size: 0.95rem;
	opacity: 0.85;
}
.jiaoyi-price {
	padding: 0 1.2rem 1.5rem;
	margin-top: auto;
}
.jiaoyi-price .btn-primary {
	background: linear-gradient(145deg, var(--primary), var(--primary-dark));
	border: none;
	border-radius: 40px;
	padding: 0.7rem 1.8rem;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: white;
	box-shadow: 0 10px 18px -8px var(--primary);
	display: inline-block;
}
.jiaoyi-price .btn-primary:hover {
	background: linear-gradient(145deg, var(--primary-dark), #a4133c);
	box-shadow: 0 16px 24px -8px #c9184a;
	transform: scale(1.04);
}

/* ----- 详情页面 (1-16.html, detail15-20.html) ----- */
.container[style*="margin-top:30px;padding:100px 0;"] {
	background: rgba(255,255,255,0.5);
	backdrop-filter: blur(8px);
	border-radius: 60px;
	margin-top: 2rem !important;
	padding: 3rem !important;
	box-shadow: 0 25px 45px -20px rgba(0,0,0,0.2);
	border: 1px solid rgba(255,255,255,0.7);
}
.ershou-img + br + .housetxt .txts h4 {
	font-size: 2rem !important;
	font-weight: 700;
	background: linear-gradient(145deg, #1e1e2f, #3a3a5f);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 1.5rem;
}
.txts span {
	font-size: 2rem !important;
	font-weight: 800;
	color: var(--primary);
	background: rgba(255,77,109,0.08);
	padding: 0.2rem 1.2rem;
	border-radius: 100px;
	display: inline-block;
	border: 1px solid #ffb3c6;
}
.txts {
	background: rgba(255,250,240,0.5);
	padding: 2rem;
	border-radius: 48px;
	backdrop-filter: blur(4px);
}
.miaoshu article.description_con {
	background: white;
	padding: 2rem;
	border-radius: 40px;
	box-shadow: inset 0 2px 8px rgba(0,0,0,0.02), 0 10px 25px -15px black;
	line-height: 1.8;
	color: #2e2e3e;
}

/* 详情页联系提示 */
p[style*="margin-bottom:30px;font-size:14px;text-align: center;"] {
	background: linear-gradient(145deg, #f9eef2, #ffe6ec);
	width: fit-content;
	margin: 2rem auto !important;
	padding: 0.8rem 2.5rem;
	border-radius: 80px;
	color: var(--primary-dark) !important;
	font-weight: 600;
	font-size: 1rem !important;
	border: 1px solid #ffc2cf;
	box-shadow: 0 5px 0 #ffb0c0;
}

/* ----- 登录/注册卡片 (login.html) ----- */
.login-register-area {
	background: transparent;
	padding: 80px 0;
}
.auth-card {
	max-width: 450px;
	margin: 0 auto;
	background: rgba(255,255,255,0.7);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255,255,255,0.9);
	border-radius: 48px;
	box-shadow: 0 40px 60px -30px var(--primary), 0 10px 25px -15px rgba(0,0,0,0.2);
	padding: 40px;
}
.nav-tabs {
	display: flex;
	justify-content: center;
	margin-bottom: 30px;
	border: none;
}
.nav-tabs .nav-link {
	font-size: 1.5rem !important;
	color: #5e5e7a !important;
	border: none;
	background: transparent;
	padding: 0.5rem 2rem;
	cursor: pointer;
}
.nav-tabs .nav-link.active {
	color: var(--primary) !important;
	border-bottom: 4px solid var(--primary) !important;
}
.form-control {
	display: block;
	width: 100%;
	height: 56px;
	border: 2px solid rgba(0,0,0,0.02);
	background: rgba(255,255,255,0.8);
	border-radius: 60px;
	padding: 0 1.8rem;
	font-size: 1rem;
	box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
	margin-bottom: 20px;
	outline: none;
}
.form-control:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(255,77,109,0.2);
}
.btn-auth {
	background: linear-gradient(145deg, var(--primary), var(--primary-dark));
	border: none;
	border-radius: 60px;
	height: 56px;
	font-weight: 700;
	font-size: 1.2rem;
	color: white;
	box-shadow: 0 16px 30px -12px var(--primary);
	width: 100%;
	transition: 0.3s;
}
.btn-auth:hover {
	background: linear-gradient(145deg, #ff3355, #b0072f);
	transform: scale(1.02) translateY(-3px);
}
.protocol-label {
	font-size: 13px;
	color: #777;
	margin-top: 10px;
	cursor: pointer;
}
.protocol-label span {
	color: var(--primary);
	font-weight: 600;
	text-decoration: underline wavy #ffb3c6;
}
.form-check-input {
	height: 30px;
}

/* 弹窗 (协议/隐私) */
.modal.fade {
	display: none;
}
.modal.show {
	display: block;
}
.modal-dialog-centered {
	display: flex;
	align-items: center;
	min-height: calc(100% - 3.5rem);
}
.modal-content {
	background: rgba(255,255,255,0.9);
	backdrop-filter: blur(28px);
	border: 1px solid white;
	border-radius: 40px;
	box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.modal-header {
	border-bottom: 1px solid rgba(0,0,0,0.05);
	padding: 1.5rem 2rem;
}
.modal-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--dark);
}
.modal-body {
	padding: 2rem;
	max-height: 400px;
	overflow-y: auto;
	color: #2b2d42;
}
.btn-close {
	background: transparent;
	border: none;
	font-size: 1.5rem;
	opacity: 0.5;
}
.btn-close:hover { opacity: 1; }

/* ----- 信息发布页面 (fb.html) 保留原有霓虹感但优化协调 ----- */
.custom-container {
	font-family: var(--font-sans);
	background: rgba(20,20,40,0.8) !important;
	backdrop-filter: blur(16px) !important;
	border: 1px solid rgba(255,77,109,0.5) !important;
	box-shadow: 0 0 40px rgba(255,77,109,0.3), 0 15px 35px -10px black !important;
	padding: 2rem;
	border-radius: 10px;
	width: 400px;
	text-align: center;
	margin: 2rem auto;
}
.custom-container .custom-title {
	font-size: 2rem;
	color: #00ffff;
	margin-bottom: 1.5rem;
	text-shadow: 0 0 10px #00ffff;
}
.custom-container .custom-label {
	display: block;
	margin: 0.5rem 0;
	text-align: left;
	color: #ddd;
}
.custom-container .custom-input,
.custom-container .custom-select,
.custom-container .custom-textarea {
	width: 100%;
	padding: 0.5rem;
	margin-top: 0.5rem;
	border: none;
	border-radius: 5px;
	background: rgba(255,255,255,0.1);
	color: #fff;
	box-shadow: 0 0 10px rgba(0,255,255,0.2) inset;
}
.custom-container .custom-textarea { height: 100px; resize: none; }
.custom-container .custom-button {
	background: #00ffff;
	color: #1b1b1b;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 5px;
	margin-top: 1rem;
	cursor: pointer;
	font-size: 1rem;
	transition: 0.3s;
	box-shadow: 0 0 10px #00ffff;
}
.custom-container .custom-button:hover { background: #00cccc; }
.custom-container .custom-paragraph {
	margin-top: 1rem;
	font-size: 0.9rem;
	color: #bbb;
}
.custom-container .custom-paragraph::before {
	content: "⚠ ";
	color: #ff6b6b;
}

/* ----- 搜索弹窗 ----- */
.modal.popup-search-style .modal-content {
	background: rgba(20,20,35,0.9);
	backdrop-filter: blur(32px);
	color: white;
}
.modal.popup-search-style h2 {
	color: white;
	font-weight: 300;
	letter-spacing: 2px;
}
.modal.popup-search-style .form-control {
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.2);
	color: white;
}
.modal.popup-search-style .submit-btn {
	background: var(--primary);
	border-radius: 60px;
	color: white;
	padding: 10px 20px;
	border: none;
}

/* ----- 页脚 ----- */
.footer-area {
	background: rgba(255,255,255,0.5);
	backdrop-filter: blur(8px);
	border-top: 1px solid rgba(255,255,255,0.9);
	padding: 2rem 0;
	margin-top: 4rem;
}
.copy-text {
	color: #3a3a5a;
	font-weight: 450;
	line-height: 34px;
}
.copy-text a {
	color: var(--primary);
	text-decoration: none;
	border-bottom: 1px dashed currentColor;
}

/* ----- 响应式调整 ----- */
@media (max-width: 992px) {
	.main-menu { display: none; } /* 简单隐藏，实际可加移动菜单，但非必需 */
	.header-actions { justify-content: flex-end; }
}
@media (max-width: 768px) {
	.big-jiaoyi { grid-template-columns: 1fr; }
	.comehome-txt { font-size: 2.2rem !important; }
	.header-logo span:first-child { font-size: 28px !important; }
	.header-logo span:last-child { font-size: 18px !important; }
	.auth-card { padding: 30px 20px; }
}
@media (max-width: 480px) {
	.custom-container { width: 90%; }
	.txts h4 { font-size: 1.5rem !important; }
}
/* 确保搜索弹窗覆盖全屏并定位正确 */
.modal.popup-search-style {
	position: fixed; /* 必须是 fixed */
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999; /* 确保在最上层 */
	display: none; /* 初始隐藏 */
	background: rgba(20,20,35,0.9);
	backdrop-filter: blur(32px);
}

/* 当 Bootstrap 触发显示时 */
.modal.popup-search-style.show {
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.modal.popup-search-style .modal-dialog {
	margin: auto;
	width: 100%;
	max-width: 600px;
}
/* 修改前：.main-menu .dropdown a */
/* 修改后：包含所有导航链接 */
.main-menu ul li a {
	color: var(--dark);
	font-weight: 550;
	font-size: 1.1rem;
	padding: 0.5rem 0;
	position: relative;
	display: inline-block;
}

.main-menu ul li a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	transition: width 0.3s ease;
	border-radius: 4px;
}

.main-menu ul li a:hover::after,
.main-menu ul li a.active::after {
	width: 100%;
}
