/* ===========================================================
   泓途旅游 · 官网动态页面共享样式 (site.css)
   设计系统提取自 server_index.html，供 线路中心/资讯中心 使用
   主色：teal #0D7C8C / 金 #D4A24E / 正文 #2C2C2A / 浅字 #888780
   =========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "微软雅黑", sans-serif;
    color: #2C2C2A;
    line-height: 1.6;
    background: #ffffff;
    overflow-x: hidden;
    padding-top: 70px; /* 让位固定导航栏 */
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ========== 导航栏 ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}
.navbar .logo { display: flex; align-items: center; }
.navbar .logo img { height: 42px; width: auto; }
.navbar .logo span { color: #D4A24E; }
.navbar nav a {
    margin-left: 32px; font-size: 15px; color: #444441;
    transition: color 0.3s;
}
.navbar nav a:hover, .navbar nav a.active { color: #0D7C8C; }

/* 移动端汉堡菜单 */
.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; background: none; border: none; cursor: pointer;
    padding: 6px; margin-left: auto;
}
.nav-toggle span { display: block; height: 2px; width: 24px; background: #2C2C2A; border-radius: 2px; transition: all .3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 999; max-height: 82vh; overflow-y: auto;
}
.mobile-menu a { display: block; padding: 15px 24px; font-size: 16px; color: #444441; border-bottom: 1px solid #f2f2f2; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active { color: #0D7C8C; }
.mobile-menu.open { display: block; }

/* ========== 按钮 ========== */
.btn-primary {
    background: #D4A24E; color: #fff;
    padding: 14px 40px; border-radius: 50px; font-size: 16px; font-weight: 600;
    transition: all 0.3s; border: none; cursor: pointer; display: inline-block;
}
.btn-primary:hover { background: #B08830; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,162,78,0.4); }
.btn-outline {
    background: transparent; color: #0D7C8C;
    padding: 13px 36px; border-radius: 50px; font-size: 16px; font-weight: 600;
    border: 2px solid #0D7C8C; cursor: pointer; transition: all 0.3s; display: inline-block;
}
.btn-outline:hover { background: rgba(13,124,140,0.08); }

/* ========== 通用区块 ========== */
.section { padding: 70px 40px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 34px; font-weight: 700; color: #2C2C2A; margin-bottom: 12px; }
.section-header p { font-size: 16px; color: #888780; }
.section-header .tag {
    display: inline-block; background: #E6F4F7; color: #0D7C8C;
    padding: 10px 28px; border-radius: 50px; font-size: 16px; font-weight: 700;
    margin-bottom: 16px; border: 1px solid rgba(13,124,140,0.15);
    box-shadow: 0 2px 10px rgba(13,124,140,0.08); letter-spacing: 0.5px;
}

/* 子页头部 banner */
.page-hero {
    background: linear-gradient(135deg, #0D7C8C 0%, #0a6470 100%);
    color: #fff; text-align: center; padding: 64px 20px 56px;
}
.page-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; letter-spacing: 1px; }
.page-hero p { font-size: 16px; opacity: 0.9; }

/* ========== 筛选栏 ========== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 36px; }
.search-input {
    flex: 1; min-width: 220px; padding: 12px 18px; border: 1.5px solid #e3e8e8; border-radius: 50px;
    font-size: 15px; outline: none; transition: border-color .3s;
}
.search-input:focus { border-color: #0D7C8C; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    padding: 9px 20px; border-radius: 50px; border: 1.5px solid #e3e8e8; background: #fff;
    color: #555; font-size: 14px; cursor: pointer; transition: all .25s; white-space: nowrap;
}
.chip:hover { border-color: #0D7C8C; color: #0D7C8C; }
.chip.active { background: #0D7C8C; color: #fff; border-color: #0D7C8C; }

/* ========== 线路卡片网格 ========== */
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tour-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.3s; cursor: pointer;
    display: flex; flex-direction: column;
}
.tour-card:hover { transform: translateY(-8px); box-shadow: 0 14px 36px rgba(13,124,140,0.16); }
.tour-cover { position: relative; height: 200px; overflow: hidden; }
.tour-cover img { width: 100%; height: 100%; object-fit: cover; }
.tour-cover-ph {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #0D7C8C 0%, #16a0b3 60%, #D4A24E 140%);
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 46px;
}
.badge-featured {
    position: absolute; top: 14px; left: 14px; background: #D4A24E; color: #fff;
    padding: 5px 14px; border-radius: 50px; font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.tour-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.tour-body h3 { font-size: 19px; font-weight: 700; color: #2C2C2A; margin-bottom: 8px; line-height: 1.4; }
.tour-sub { font-size: 13.5px; color: #888780; line-height: 1.6; margin-bottom: 12px; min-height: 42px; }
.tour-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; color: #555; margin-bottom: 14px; }
.tour-meta span { display: inline-flex; align-items: center; gap: 4px; }
.tour-price-row { margin-top: auto; display: flex; align-items: baseline; gap: 10px; }
.tour-price { font-size: 22px; font-weight: 700; color: #0D7C8C; }
.tour-price small { font-size: 13px; color: #888780; font-weight: 400; }
.tour-origin { font-size: 14px; color: #aaa; text-decoration: line-through; }

/* 类型徽标 */
.type-badge {
    display: inline-block; padding: 3px 12px; border-radius: 50px; font-size: 12.5px; font-weight: 600;
    background: #E6F4F7; color: #0D7C8C;
}
.type-badge.notice { background: #FDECEC; color: #C0392B; }
.type-badge.promotion { background: #FBF3E0; color: #B08830; }
.type-badge.guide { background: #E6F4F7; color: #0D7C8C; }
.type-badge.news { background: #EEF1F4; color: #555; }

/* ========== 详情页 ========== */
.detail-wrap { max-width: 1000px; margin: 0 auto; padding: 40px 24px 70px; }
.breadcrumb { font-size: 14px; color: #888780; margin-bottom: 18px; }
.breadcrumb a:hover { color: #0D7C8C; }
.detail-hero { width: 100%; height: 360px; border-radius: 18px; overflow: hidden; margin-bottom: 28px; background: linear-gradient(135deg, #0D7C8C 0%, #16a0b3 60%, #D4A24E 140%); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 70px; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: 30px; font-weight: 700; color: #2C2C2A; margin-bottom: 10px; }
.detail-sub { font-size: 16px; color: #888780; margin-bottom: 22px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 14px 28px; padding: 20px 24px; background: #F1F8F9; border-radius: 14px; margin-bottom: 32px; }
.detail-meta .mi { font-size: 15px; color: #444; }
.detail-meta .mi b { color: #0D7C8C; font-weight: 700; margin-right: 6px; }
.detail-section { margin-bottom: 30px; }
.detail-section h3 { font-size: 21px; font-weight: 700; color: #0D7C8C; margin-bottom: 14px; padding-left: 14px; border-left: 4px solid #D4A24E; }
.detail-section p { font-size: 15.5px; color: #444; line-height: 1.9; white-space: pre-wrap; }
.detail-list { list-style: none; }
.detail-list li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15.5px; color: #444; line-height: 1.8; }
.detail-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #0D7C8C; font-weight: 700; }
.detail-price { font-size: 30px; font-weight: 700; color: #D4A24E; }
.detail-price small { font-size: 15px; color: #888780; font-weight: 400; text-decoration: line-through; margin-left: 10px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }
.detail-cta { text-align: center; margin-top: 40px; padding: 36px; background: linear-gradient(135deg, #0D7C8C, #0a6470); border-radius: 18px; color: #fff; }
.detail-cta h3 { font-size: 22px; margin-bottom: 10px; }
.detail-cta p { opacity: .9; margin-bottom: 20px; }

/* 行程（JSON 渲染） */
.itinerary-day { padding: 16px 20px; background: #F7FBFB; border-radius: 12px; margin-bottom: 12px; border-left: 4px solid #0D7C8C; }
.itinerary-day .d-title { font-weight: 700; color: #2C2C2A; margin-bottom: 6px; }
.itinerary-day .d-content { font-size: 15px; color: #555; line-height: 1.8; white-space: pre-wrap; }

/* ========== 资讯卡片 ========== */
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.article-card {
    background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    transition: all .3s; cursor: pointer; display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(13,124,140,0.14); }
.article-cover { height: 180px; background: linear-gradient(135deg, #0D7C8C, #16a0b3); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 40px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.article-body h3 { font-size: 19px; font-weight: 700; color: #2C2C2A; margin: 10px 0 8px; line-height: 1.45; }
.article-summary { font-size: 14px; color: #888780; line-height: 1.7; margin-bottom: 14px; flex: 1; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #999; }
.article-meta .top-tag { color: #C0392B; font-weight: 700; }

.article-detail { max-width: 820px; margin: 0 auto; padding: 40px 24px 70px; }
.article-detail .ad-cover { width: 100%; height: 320px; border-radius: 16px; overflow: hidden; margin: 18px 0 28px; background: linear-gradient(135deg, #0D7C8C, #16a0b3); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 60px; }
.article-detail .ad-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-detail .ad-title { font-size: 30px; font-weight: 700; color: #2C2C2A; line-height: 1.4; }
.article-detail .ad-meta { font-size: 14px; color: #999; margin: 14px 0 8px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-content { font-size: 16.5px; color: #444; line-height: 2; white-space: pre-wrap; margin-top: 20px; }

/* ========== 状态提示 ========== */
.state-msg { text-align: center; padding: 60px 20px; color: #888780; font-size: 16px; }
.state-msg .em { font-size: 46px; display: block; margin-bottom: 14px; }

/* ========== 页脚 ========== */
.footer { background: #0B2E33; color: #cfe3e6; padding: 60px 40px 30px; margin-top: 40px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1fr; gap: 30px; }
.footer-col h3 { font-size: 16px; color: #fff; margin-bottom: 18px; }
.footer-col a { display: block; color: #8BBABF; font-size: 14px; margin-bottom: 10px; transition: color .3s; }
.footer-col a:hover { color: #E8C85A; }
.footer-brand .logo img { height: 36px; width: auto; }
.footer-brand p { font-size: 14px; color: #8BBABF; line-height: 1.6; margin: 16px 0 18px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: #cfe3e6; font-size: 18px; transition: all .3s; }
.footer-social a:hover { background: #0D7C8C; color: #fff; }
.footer-bottom { max-width: 1200px; margin: 36px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; line-height: 2; font-size: 13px; color: #8BBABF; }
.footer-bottom a { color: #8BBABF; text-decoration: none; }
.footer-bottom a:hover { color: #E8C85A; }
.footer-slogan { margin-top: 12px; font-size: 15px; color: #E8C85A; }

/* ========== 动画 ========== */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .navbar { padding: 0 20px; }
    .navbar nav { display: none; }
    .nav-toggle { display: flex; }
    .section { padding: 50px 20px; }
    .tour-grid { grid-template-columns: 1fr 1fr; }
    .article-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .page-hero h1 { font-size: 28px; }
    .detail-meta { gap: 10px 18px; }
}
@media (max-width: 600px) {
    body { padding-top: 64px; }
    .navbar { height: 64px; }
    .tour-grid { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .detail-hero { height: 220px; }
    .section-header h2 { font-size: 26px; }
    .detail-title { font-size: 24px; }
}
