/* ============================================================
   旅游站群官网 · 全局统一样式（白底、绿色主色、橙色价格）
   适配 PC + 移动端 H5
   技术支持：一秒互联公司 www.yimiaonet.com 400-716-8908
   ============================================================ */

:root {
  --primary: #00a97f;
  --primary-dark: #008f6b;
  --accent: #ff6a00;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --border: #e5e8ec;
  --bg: #fff;
  --bg-gray: #f5f7f9;
  --radius: 6px;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
}

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

.container { width: 1200px; margin: 0 auto; }

/* ---------- 顶部通栏 ---------- */
.topbar { background: var(--bg-gray); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.topbar .container { display: flex; justify-content: space-between; height: 34px; align-items: center; }
.topbar-links a { margin-left: 16px; }
.topbar a:hover { color: var(--primary); }

/* ---------- 页头 ---------- */
.header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; height: 70px; }
.logo { font-size: 26px; font-weight: 700; color: var(--primary); margin-right: 40px; white-space: nowrap; }
.logo span { color: var(--accent); }

.nav { display: flex; gap: 28px; }
.nav a { font-size: 16px; color: var(--text); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--primary); border-bottom-color: var(--primary); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.search-box { display: flex; border: 1px solid var(--primary); border-radius: var(--radius); overflow: hidden; }
.search-box input { width: 220px; height: 36px; border: none; outline: none; padding: 0 12px; font-size: 14px; }
.search-box button { width: 70px; background: var(--primary); color: #fff; border: none; cursor: pointer; font-size: 14px; }
.search-box button:hover { background: var(--primary-dark); }

.contact-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; background: var(--accent); color: #fff; border-radius: var(--radius); font-size: 14px; cursor: pointer; border: none; }
.contact-btn:hover { background: #e65f00; }

.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary); }

/* ---------- Hero 搜索区 ---------- */
.hero { background: linear-gradient(180deg, #eaf7f3 0%, var(--bg-gray) 100%); padding: 48px 0 56px; border-bottom: 1px solid var(--border); }
.hero h1 { font-size: 34px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.hero p { text-align: center; color: var(--text-light); margin-bottom: 26px; }
.hero-search { display: flex; max-width: 680px; margin: 0 auto; border: 1px solid var(--primary); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 4px 16px rgba(0,169,127,.08); }
.hero-search input { flex: 1; height: 48px; border: none; outline: none; padding: 0 16px; font-size: 15px; }
.hero-search button { width: 120px; background: var(--primary); color: #fff; border: none; cursor: pointer; font-size: 16px; }
.hero-search button:hover { background: var(--primary-dark); }
.hot-keywords { text-align: center; margin-top: 16px; color: var(--text-muted); font-size: 13px; }
.hot-keywords a { color: var(--text-light); margin: 0 8px; }
.hot-keywords a:hover { color: var(--primary); }

/* ---------- 区块标题 ---------- */
.section { padding: 40px 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.section-title h2 { font-size: 24px; font-weight: 700; position: relative; padding-left: 14px; }
.section-title h2::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 22px; background: var(--primary); border-radius: 2px; }
.section-title .more { color: var(--text-muted); font-size: 13px; }
.section-title .more:hover { color: var(--primary); }

/* ---------- 目的地卡片 ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.dest-card { display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s, border-color .2s; }
.dest-card:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(0,169,127,.12); }
.dest-card .img { height: 120px; background: #eef2f4; overflow: hidden; }
.dest-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.dest-card:hover .img img { transform: scale(1.06); }
.dest-card .name { padding: 10px 12px 4px; font-size: 15px; font-weight: 600; text-align: center; }
.dest-card .price { text-align: center; padding-bottom: 12px; color: var(--accent); font-size: 13px; }

/* ---------- 行程卡片 ---------- */
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.route-card { display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s, border-color .2s; }
.route-card:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(0,169,127,.12); }
.route-card .img { height: 190px; background: #eef2f4; position: relative; overflow: hidden; }
.route-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.route-card:hover .img img { transform: scale(1.05); }
.route-card .img .tag { position: absolute; left: 0; top: 12px; background: var(--primary); color: #fff; font-size: 12px; padding: 2px 10px; }
.route-card .body { padding: 14px 16px 16px; }
.route-card .title { font-size: 16px; font-weight: 600; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-card .meta { color: var(--text-muted); font-size: 12px; margin-bottom: 12px; }
.route-card .foot { display: flex; align-items: center; justify-content: space-between; }
.route-card .price { color: var(--accent); font-size: 20px; font-weight: 700; }
.route-card .price small { font-size: 12px; font-weight: 400; }

.btn-inquiry { height: 32px; padding: 0 16px; background: var(--accent); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; }
.btn-inquiry:hover { background: #e65f00; }
.btn-outline { height: 32px; padding: 0 14px; background: #fff; color: var(--primary); border: 1px solid var(--primary); border-radius: 4px; cursor: pointer; font-size: 13px; }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---------- 攻略文章 ---------- */
.article-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 30px; }
.article-item { display: flex; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.article-item .img { width: 160px; height: 100px; background: #eef2f4; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.article-item .img img { width: 100%; height: 100%; object-fit: cover; }
.article-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.article-item h3:hover { color: var(--primary); }
.article-item .summary { color: var(--text-muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-item .meta { color: var(--text-muted); font-size: 12px; margin-top: 6px; }

/* ---------- 页脚 ---------- */
.footer { background: #2b2f33; color: #b8bcc0; margin-top: 40px; }
.footer .container { padding: 36px 0; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; color: #b8bcc0; font-size: 13px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--primary); }
.footer-col p { font-size: 13px; line-height: 1.9; color: #9aa0a6; }
.footer-brand .brand { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-brand .brand span { color: var(--primary); }
.copyright { grid-column: 1 / -1; border-top: 1px solid #3a3f44; padding-top: 18px; text-align: center; font-size: 12px; color: #8a8f94; }
.copyright a { color: var(--primary); }

/* ---------- 面包屑 ---------- */
.breadcrumb { background: var(--bg-gray); border-bottom: 1px solid var(--border); padding: 12px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; color: #ccc; }
.breadcrumb em { font-style: normal; color: var(--text-light); }

/* ---------- 分页器 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 28px 0; }
.pagination a, .pagination span { display: inline-block; min-width: 34px; height: 34px; line-height: 34px; text-align: center; padding: 0 10px; border: 1px solid var(--border); border-radius: 4px; color: var(--text-light); font-size: 13px; background: #fff; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; color: #999; padding: 60px 0; font-size: 14px; }

/* ---------- 精选旅行社背书（低调小字，不喧宾夺主） ---------- */
.modal-agency { text-align:center; color:#7a8288; font-size:12px; margin:6px 0 10px; letter-spacing:.5px; }
.footer-agency { display:block; color:#8a9096; font-size:12px; margin-top:4px; }
.agency-note { color:#9aa0a6; font-size:12px; line-height:1.6; margin-top:10px; padding-top:8px; border-top:1px dashed #e8e8e8; text-align:center; }

/* ---------- 详情页通用 ---------- */
.page-main { display: flex; gap: 30px; padding: 24px 0 40px; }
.page-content { flex: 1; min-width: 0; }
.page-side { width: 320px; flex-shrink: 0; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.card h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--primary); }
.detail-title { font-size: 26px; font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.detail-meta { color: var(--text-muted); font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }

/* 文章正文（富文本） */
.article-body { line-height: 2; font-size: 15px; color: var(--text); }
.article-body h2 { font-size: 19px; margin: 24px 0 12px; color: #222; border-left: 3px solid var(--primary); padding-left: 10px; }
.article-body h3 { font-size: 17px; margin: 20px 0 10px; }
.article-body p { margin-bottom: 14px; }
.article-body img { max-width: 100%; border-radius: 4px; margin: 8px 0; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 14px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote { border-left: 3px solid var(--primary); background: var(--bg-gray); padding: 10px 16px; margin: 14px 0; color: var(--text-light); }

/* 分享栏 */
.share-bar { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--text-light); }
.share-bar button { height: 30px; padding: 0 14px; border: 1px solid var(--border); border-radius: 4px; background: #fff; cursor: pointer; font-size: 13px; color: var(--text-light); }
.share-bar button:hover { border-color: var(--primary); color: var(--primary); }

/* 相关推荐 */
.related-list { display: flex; flex-direction: column; }
.related-list a { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.related-list a:last-child { border-bottom: none; }
.related-list .ri-img { width: 110px; height: 70px; border-radius: 4px; background: #eef2f4; overflow: hidden; flex-shrink: 0; }
.related-list .ri-img img { width: 100%; height: 100%; object-fit: cover; }
.related-list .ri-title { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.related-list a:hover .ri-title { color: var(--primary); }
.related-list .ri-meta { font-size: 12px; color: var(--text-muted); }

/* 详情侧栏（询价卡） */
.side-card { text-align: center; position: sticky; top: 90px; }
.side-card .price { color: var(--accent); font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.side-card .price small { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.side-card .btn-block { display: block; width: 100%; height: 44px; line-height: 44px; text-align: center; border-radius: 4px; font-size: 15px; margin-top: 14px; cursor: pointer; border: none; }
.side-card .btn-primary { background: var(--accent); color: #fff; }
.side-card .btn-primary:hover { background: #e65f00; }
.side-card .btn-green { background: var(--primary); color: #fff; }
.side-card .btn-green:hover { background: var(--primary-dark); }
.side-card .qr-img { width: 160px; height: 160px; margin: 12px auto 0; border: 1px solid var(--border); border-radius: 4px; padding: 6px; }
.side-card .tips { margin-top: 14px; font-size: 12px; color: var(--text-muted); line-height: 1.8; }

/* ---------- 关于我们 / 入驻页 ---------- */
.page-banner { background: linear-gradient(120deg, var(--primary) 0%, #00c295 100%); color: #fff; padding: 48px 0; text-align: center; }
.page-banner h1 { font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.page-banner p { opacity: .92; }
.about-content { line-height: 2; font-size: 15px; color: var(--text-light); }
.about-content p { margin-bottom: 14px; }
.about-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.about-feature { text-align: center; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.about-feature .ico { font-size: 32px; margin-bottom: 10px; }
.about-feature h4 { font-size: 16px; margin-bottom: 6px; }
.about-feature p { font-size: 13px; color: var(--text-muted); }

/* 表单 */
.apply-form { max-width: 640px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.form-row label em { color: var(--accent); font-style: normal; }
.form-row input, .form-row select, .form-row textarea { width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 4px; padding: 0 12px; font-size: 14px; outline: none; font-family: inherit; }
.form-row textarea { height: 90px; padding: 10px 12px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--primary); }
.form-submit { width: 100%; height: 44px; background: var(--primary); color: #fff; border: none; border-radius: 4px; font-size: 15px; cursor: pointer; }
.form-submit:hover { background: var(--primary-dark); }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 999; }
.modal-mask.show { display: flex; }
.modal { width: 720px; max-width: 94vw; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 8px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 17px; }
.modal-close { cursor: pointer; font-size: 22px; color: var(--text-muted); border: none; background: none; }
.modal-body { display: flex; padding: 24px; gap: 24px; }
.modal-qrcode { width: 200px; flex-shrink: 0; text-align: center; }
.modal-qrcode .qr { width: 180px; height: 180px; margin: 0 auto 10px; border: 1px solid var(--border); border-radius: 4px; padding: 8px; }
.modal-qrcode .qr img { width: 100%; height: 100%; object-fit: contain; }
.modal-qrcode .qr-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #bbb; background: var(--bg-gray); }
.modal-qrcode p { font-size: 13px; color: var(--text-light); }
.modal-form { flex: 1; }
.form-row.half { display: inline-block; width: calc(50% - 6px); }
.form-row.half + .form-row.half { margin-left: 8px; }

/* ---------- 响应式（移动 H5） ---------- */
@media (max-width: 768px) {
  .container { width: 100%; padding: 0 14px; }
  .header .container { height: 58px; }
  .logo { font-size: 22px; margin-right: 0; }
  .nav { position: fixed; top: 92px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; display: none; border-bottom: 1px solid var(--border); box-shadow: 0 6px 12px rgba(0,0,0,.06); padding: 8px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav a.active { border-bottom-color: var(--primary); }
  .nav-toggle { display: block; }
  .search-box { display: none; }
  .contact-btn { display: none; }
  .hero { padding: 32px 0 40px; }
  .hero h1 { font-size: 26px; }
  .dest-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .dest-card .img { height: 80px; }
  .dest-card .name { font-size: 13px; }
  .route-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .route-card .img { height: 120px; }
  .article-list { grid-template-columns: 1fr; }
  .article-item .img { width: 120px; height: 80px; }
  .footer .container { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .page-main { flex-direction: column; }
  .page-side { width: 100%; }
  .side-card { position: static; }
  .about-features { grid-template-columns: 1fr; }
  .detail-title { font-size: 22px; }
  .modal-body { flex-direction: column; align-items: center; }
  .topbar-links a:first-child { display: none; }
}

@media (max-width: 480px) {
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .route-grid { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr; }
}
