/* ========================================
   郑州中牟同程旅行社 全站样式
   ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: #333; font-size: 14px; line-height: 1.6; background: #f5f5f5; }
a { color: #333; text-decoration: none; }
a:hover { color: #e74c3c; }
ul { list-style: none; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 顶部栏 */
.top-bar { background: #1a1a2e; color: #fff; padding: 8px 0; }
.top-bar .container { display: flex; align-items: center; gap: 20px; }
.brand-title { font-size: 18px; font-weight: bold; color: #f39c12; }
.top-phone { margin-left: auto; font-size: 16px; color: #f39c12; }
.top-links { font-size: 12px; color: #aaa; }
.top-links a { color: #aaa; }
.top-links a:hover { color: #fff; }

/* 头部导航 */
.header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 40px; padding: 0 15px; max-width: 1200px; margin: 0 auto; }
.logo { font-size: 22px; font-weight: bold; color: #e74c3c; white-space: nowrap; }
.main-nav { display: flex; gap: 0; margin-left: auto; }
.main-nav a { display: block; padding: 15px 18px; font-size: 15px; color: #333; transition: color 0.3s; }
.main-nav a:hover, .main-nav a.active { color: #e74c3c; background: #fdf3f2; }

/* 搜索横幅 */
.search-banner { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 25px 0; }
.search-box { display: flex; max-width: 600px; margin: 0 auto; }
.search-box input { flex: 1; padding: 12px 20px; border: none; border-radius: 25px 0 0 25px; font-size: 14px; outline: none; }
.search-box button { padding: 12px 30px; background: #e74c3c; color: #fff; border: none; border-radius: 0 25px 25px 0; cursor: pointer; font-size: 14px; }
.search-box button:hover { background: #c0392b; }
.hot-tags { text-align: center; margin-top: 10px; color: rgba(255,255,255,0.8); font-size: 13px; }
.hot-tags a { color: rgba(255,255,255,0.9); margin: 0 5px; }
.hot-tags a:hover { color: #fff; text-decoration: underline; }

/* 轮播Banner */
.hero-banner { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; padding: 60px 0; text-align: center; }
.banner-inner h1 { font-size: 36px; margin-bottom: 10px; color: #f39c12; }
.banner-inner .subtitle { font-size: 18px; color: #ccc; margin-bottom: 30px; }
.banner-cta { display: flex; justify-content: center; gap: 20px; }
.btn-primary { display: inline-block; padding: 12px 35px; background: #e74c3c; color: #fff; border-radius: 4px; font-size: 16px; }
.btn-primary:hover { background: #c0392b; color: #fff; }
.btn-outline { display: inline-block; padding: 12px 35px; border: 2px solid #fff; color: #fff; border-radius: 4px; font-size: 16px; }
.btn-outline:hover { background: #fff; color: #333; }

/* 分类导航 */
.category-nav { background: #fff; padding: 30px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.cat-item { display: flex; flex-direction: column; align-items: center; padding: 20px 15px; background: #f8f9fa; border-radius: 8px; transition: all 0.3s; text-align: center; }
.cat-item:hover { background: #e74c3c; color: #fff; transform: translateY(-3px); box-shadow: 0 5px 20px rgba(231,76,60,0.3); }
.cat-icon { font-size: 36px; margin-bottom: 8px; }
.cat-name { font-size: 16px; font-weight: bold; margin-bottom: 4px; }
.cat-desc { font-size: 12px; color: #888; }
.cat-item:hover .cat-desc { color: rgba(255,255,255,0.8); }

/* 区块通用 */
.section { padding: 50px 0; }
.bg-light { background: #fff; }
.section-header { text-align: center; margin-bottom: 35px; }
.section-header h2 { font-size: 28px; color: #333; margin-bottom: 8px; }
.section-header p { color: #888; font-size: 14px; }
.section-more { text-align: center; margin-top: 30px; }
.section-more a { color: #e74c3c; font-size: 16px; }
.section-more a:hover { text-decoration: underline; }

/* 线路卡片网格 */
.route-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.route-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; }
.route-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.route-img { height: 160px; overflow: hidden; }
.route-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.route-card:hover .route-img img { transform: scale(1.05); }
.route-info { padding: 15px; }
.route-info h3 { font-size: 14px; color: #333; margin-bottom: 8px; line-height: 1.4; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.route-desc { font-size: 12px; color: #888; margin-bottom: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.route-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.route-price { color: #e74c3c; font-size: 16px; font-weight: bold; }
.route-days { font-size: 12px; color: #888; background: #f0f0f0; padding: 2px 8px; border-radius: 3px; }
.route-btn { display: block; text-align: center; padding: 8px; background: #e74c3c; color: #fff; border-radius: 4px; font-size: 13px; }
.route-btn:hover { background: #c0392b; color: #fff; }

/* 为什么选择我们 */
.why-us { background: #1a1a2e; color: #fff; }
.why-us .section-header h2 { color: #fff; }
.why-us .section-header p { color: rgba(255,255,255,0.6); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.why-item { text-align: center; padding: 30px 20px; background: rgba(255,255,255,0.05); border-radius: 10px; }
.why-icon { font-size: 48px; margin-bottom: 15px; }
.why-item h3 { font-size: 18px; margin-bottom: 10px; color: #f39c12; }
.why-item p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.8; }

/* 页脚 */
.footer { background: #2c2c2c; color: #ccc; padding: 40px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 30px; }
.footer-col h4 { color: #f39c12; font-size: 16px; margin-bottom: 15px; border-bottom: 1px solid #444; padding-bottom: 8px; }
.footer-col p { font-size: 13px; color: #999; margin-bottom: 5px; line-height: 1.8; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #999; font-size: 13px; }
.footer-col ul li a:hover { color: #f39c12; }
.contact-col p { display: flex; align-items: center; gap: 8px; }
.footer-bottom { border-top: 1px solid #444; padding: 20px 0; text-align: center; font-size: 12px; color: #666; }
.footer-bottom p:first-child { margin-bottom: 5px; }

/* 悬浮咨询 */
.float-contact { position: fixed; right: 15px; bottom: 80px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.float-phone, .float-online { display: block; padding: 10px 18px; background: #e74c3c; color: #fff; border-radius: 25px; font-size: 14px; text-align: center; box-shadow: 0 3px 15px rgba(0,0,0,0.2); white-space: nowrap; }
.float-phone:hover, .float-online:hover { background: #c0392b; color: #fff; }
.float-online { background: #27ae60; }
.float-online:hover { background: #1e8449; }

/* 列表页通用 */
.page-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 40px 0; text-align: center; }
.page-header h1 { font-size: 32px; margin-bottom: 8px; }
.page-header p { font-size: 14px; opacity: 0.8; }
.breadcrumb { background: #fff; border-bottom: 1px solid #eee; padding: 12px 0; font-size: 13px; color: #888; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #e74c3c; }
.breadcrumb span { margin: 0 8px; }

/* 分类筛选 */
.filter-bar { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.filter-row { display: flex; align-items: center; margin-bottom: 12px; }
.filter-row:last-child { margin-bottom: 0; }
.filter-label { font-weight: bold; color: #333; width: 70px; font-size: 14px; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.filter-tag { padding: 5px 15px; background: #f5f5f5; border-radius: 20px; font-size: 13px; cursor: pointer; transition: all 0.3s; }
.filter-tag:hover, .filter-tag.active { background: #e74c3c; color: #fff; }

/* 线路列表 */
.route-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.route-list-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); transition: all 0.3s; display: flex; flex-direction: column; }
.route-list-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.12); transform: translateY(-3px); }
.route-list-img { height: 180px; overflow: hidden; position: relative; }
.route-list-img img { width: 100%; height: 100%; object-fit: cover; }
.route-tag { position: absolute; top: 10px; left: 10px; background: #e74c3c; color: #fff; padding: 3px 10px; border-radius: 3px; font-size: 12px; }
.route-list-body { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.route-list-body h3 { font-size: 15px; color: #333; margin-bottom: 8px; line-height: 1.4; }
.route-list-body .route-desc { font-size: 12px; color: #888; margin-bottom: 10px; }
.route-list-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid #f0f0f0; }
.route-list-price { color: #e74c3c; font-size: 18px; font-weight: bold; }
.route-list-price small { font-size: 12px; color: #888; font-weight: normal; }
.route-list-btn { padding: 6px 18px; background: #e74c3c; color: #fff; border-radius: 4px; font-size: 13px; }
.route-list-btn:hover { background: #c0392b; color: #fff; }

/* 关于/联系页 */
.about-content { background: #fff; padding: 50px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: 26px; color: #333; margin-bottom: 15px; }
.about-text p { color: #666; font-size: 14px; line-height: 2; margin-bottom: 15px; }
.about-img img { width: 100%; border-radius: 8px; }
.contact-info { background: #fff; padding: 50px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 15px; font-size: 14px; font-family: inherit; }
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form button { padding: 12px 35px; background: #e74c3c; color: #fff; border: none; border-radius: 4px; font-size: 15px; cursor: pointer; }
.contact-form button:hover { background: #c0392b; }
.contact-details h3 { font-size: 18px; margin-bottom: 20px; color: #333; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; font-size: 14px; color: #666; }
.contact-item-icon { font-size: 24px; width: 40px; flex-shrink: 0; }
.contact-map { height: 300px; background: #e8e8e8; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #999; font-size: 14px; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; background: #fff; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; color: #666; }
.pagination a:hover { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.pagination .active { background: #e74c3c; color: #fff; border-color: #e74c3c; }

/* 悬浮拨号按钮 */
.float-call {
position: fixed;
bottom: 80px;
right: 20px;
z-index: 9999;
animation: floatPulse 2s infinite;
}
.float-call a {
display: flex;
align-items: center;
gap: 8px;
background: linear-gradient(135deg, #e74c3c, #c0392b);
color: #fff;
padding: 14px 22px;
border-radius: 50px;
font-size: 18px;
font-weight: bold;
box-shadow: 0 4px 20px rgba(231,76,60,0.5);
text-decoration: none;
white-space: nowrap;
}
.float-call a:hover {
background: linear-gradient(135deg, #c0392b, #a93226);
color: #fff;
transform: scale(1.05);
}
@keyframes floatPulse {
0%,100% { transform: translateY(0); }
50% { transform: translateY(-8px); }
}

/* 中段电话横条 */
.mid-phone-bar {
background: linear-gradient(90deg, #e74c3c, #c0392b, #e74c3c);
color: #fff;
text-align: center;
padding: 18px 0;
margin: 20px 0;
border-radius: 4px;
}
.mid-phone-bar .phone-num {
font-size: 28px;
font-weight: bold;
letter-spacing: 3px;
}
.mid-phone-bar .phone-label {
font-size: 14px;
opacity: 0.9;
margin-top: 4px;
}

/* 页面顶部电话高亮 */
.page-header-phone {
background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
color: #fff;
padding: 8px 0;
text-align: center;
}
.page-header-phone .phone-big {
font-size: 24px;
font-weight: bold;
letter-spacing: 2px;
}
.page-header-phone .phone-sub {
font-size: 13px;
opacity: 0.9;
}

/* 底部电话强化 */
.footer-phone-highlight {
background: #c0392b;
color: #fff;
text-align: center;
padding: 20px 0;
margin-top: 20px;
border-radius: 0 0 8px 8px;
}
.footer-phone-highlight .fp-num {
font-size: 30px;
font-weight: bold;
letter-spacing: 4px;
}
.footer-phone-highlight .fp-label {
font-size: 13px;
opacity: 0.85;
margin-top: 5px;
}

@media (max-width: 1024px) {
.route-grid { grid-template-columns: repeat(3, 1fr); }
.why-grid { grid-template-columns: repeat(2, 1fr); }
.cat-grid { grid-template-columns: repeat(3, 1fr); }
.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
.route-grid { grid-template-columns: repeat(2, 1fr); }
.route-list { grid-template-columns: 1fr; }
.cat-grid { grid-template-columns: repeat(2, 1fr); }
.main-nav { gap: 0; }
.main-nav a { padding: 15px 12px; font-size: 13px; }
.about-grid, .contact-grid { grid-template-columns: 1fr; }
.footer-grid { grid-template-columns: 1fr; }
.why-grid { grid-template-columns: 1fr; }
.banner-inner h1 { font-size: 24px; }
}
@media (max-width: 480px) {
.route-grid { grid-template-columns: 1fr; }
.cat-grid { grid-template-columns: repeat(2, 1fr); }
.main-nav a { padding: 12px 8px; font-size: 12px; }
.logo { font-size: 18px; }
}
