/* ============================================
   臻途旅行社 - 韦依美途旗下深度体验品牌
   配色：深海蓝（区别于韦依美途的青绿）
   ============================================ */

:root {
  --zt-blue:    #1a5276;
  --zt-dark:     #0e344a;
  --zt-light:    #2e86c1;
  --zt-pale:     #d6eaf8;
  --rice-paper:  #faf6f0;
  --rice-dark:   #f0ebe0;
  --text-main:   #2c3e50;
  --text-light:  #7f8c8d;
  --gold:        #b8914d;
  --gold-light:  #d4b872;
  --font-heading: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', Georgia, serif;
  --font-body:   'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 30px rgba(0,0,0,0.1);
  --radius:      10px;
  --max-width:   1200px;
  --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--rice-paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.4; color: var(--text-main); }
a { color: var(--zt-blue); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--zt-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* 导航栏 */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 82, 118, 0.1);
  z-index: 1000;
  display: flex; align-items: center;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--zt-dark); }
.navbar-brand .brand-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--zt-blue), var(--zt-dark)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; flex-shrink: 0; overflow: hidden; }
.navbar-links { display: flex; align-items: center; gap: 4px; }
.navbar-links a { padding: 8px 14px; border-radius: 6px; font-size: 0.9rem; color: var(--text-main); white-space: nowrap; transition: all 0.3s ease; }
.navbar-links a:hover, .navbar-links a.active { background: var(--zt-pale); color: var(--zt-dark); }
.navbar-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.navbar-toggle span { width: 24px; height: 2px; background: var(--text-main); border-radius: 2px; transition: all 0.3s ease; }

/* 页头横幅 */
.page-header {
  margin-top: var(--header-height);
  padding: 80px 0 50px;
  background: linear-gradient(135deg, var(--zt-dark), var(--zt-blue));
  text-align: center;
  color: #fff;
}
.page-header h1 { font-size: 2.2rem; color: #fff; margin-bottom: 10px; }
.page-header p { font-size: 1rem; opacity: 0.85; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 0.85rem; margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb span { color: rgba(255,255,255,0.6); }

/* 通用区块 */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2rem; margin-bottom: 12px; position: relative; display: inline-block; color: var(--zt-dark); }
.section-header h2::after { content: ''; display: block; width: 60px; height: 3px; background: linear-gradient(90deg, var(--zt-blue), var(--gold)); margin: 12px auto 0; border-radius: 2px; }
.section-header p { color: var(--text-light); font-size: 1rem; margin-top: 8px; }

/* 卡片 */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: all 0.3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 200px; object-fit: cover; background: var(--zt-pale); }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; background: var(--zt-pale); color: var(--zt-blue); }
.tag-gold { background: rgba(184, 145, 77, 0.12); color: var(--gold); }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--rice-dark); }
.price { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--gold); }
.price small { font-size: 0.75rem; font-weight: 400; color: var(--text-light); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 24px; border-radius: 6px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; border: none; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.btn-primary { background: var(--zt-blue); color: #fff; }
.btn-primary:hover { background: var(--zt-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26, 82, 118, 0.3); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a67d3a; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(184, 145, 77, 0.3); }
.btn-outline { background: transparent; color: var(--zt-blue); border: 2px solid var(--zt-blue); }
.btn-outline:hover { background: var(--zt-blue); color: #fff; }
.btn-sm { padding: 6px 16px; font-size: 0.82rem; }

/* 网格 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* 特色卡片 */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: #fff; padding: 32px 24px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-sm); transition: all 0.3s ease; border-top: 3px solid var(--zt-blue); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card .icon { width: 56px; height: 56px; margin: 0 auto 16px; background: var(--zt-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--zt-blue); }
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--text-light); }

/* 步骤 */
.steps-row { display: flex; justify-content: space-between; gap: 16px; position: relative; }
.steps-row::before { content: ''; position: absolute; top: 32px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--zt-blue), var(--gold)); z-index: 0; }
.step-item { text-align: center; position: relative; z-index: 1; flex: 1; }
.step-number { width: 64px; height: 64px; margin: 0 auto 12px; background: linear-gradient(135deg, var(--zt-blue), var(--zt-dark)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: #fff; box-shadow: 0 4px 12px rgba(26, 82, 118, 0.25); }
.step-item h4 { font-size: 0.92rem; margin-bottom: 4px; }
.step-item p { font-size: 0.8rem; color: var(--text-light); }

/* 页脚 */
.footer { background: var(--zt-dark); color: rgba(255,255,255,0.85); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer p, .footer a { font-size: 0.85rem; color: rgba(255,255,255,0.7); line-height: 2; }
.footer a:hover { color: var(--gold-light); }
.footer-bottom { margin-top: 40px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* 侧边栏 - 微信二维码卡片 */
.sidebar-float { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 999; display: flex; flex-direction: column; align-items: center; gap: 6px; }

.sidebar-float .qr-card {
  width: 130px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.12);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sidebar-float .qr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}
.sidebar-float .qr-card img {
  width: 102px; height: 102px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  cursor: pointer;
}
.sidebar-float .qr-card .qr-label {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 6px;
  line-height: 1.3;
}
.sidebar-float .qr-card .qr-label strong {
  color: #07C160;
  font-weight: 600;
}
.sidebar-float .qr-card::before {
  content: '微信咨询';
  position: absolute;
  top: -10px;
  right: -8px;
  background: #07C160;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 500;
}

.sidebar-float .side-btn { width: 48px; height: 48px; border-radius: 10px; background: #fff; border: 1px solid var(--rice-dark); box-shadow: 0 2px 10px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--zt-blue); cursor: pointer; transition: all 0.25s ease; text-decoration: none; position: relative; }
.sidebar-float .side-btn:hover { background: var(--zt-blue); color: #fff; border-color: var(--zt-blue); }
.sidebar-float .side-btn .tooltip { position: absolute; right: 58px; background: var(--zt-dark); color: #fff; padding: 5px 12px; border-radius: 6px; font-size: 0.75rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.sidebar-float .side-btn:hover .tooltip { opacity: 1; }
.sidebar-float .side-btn .tooltip::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-left-color: var(--zt-dark); }
.sidebar-float .back-to-top { margin-top: 4px; }

@media (max-width: 768px) {
  .sidebar-float { right: 10px; }
  .sidebar-float .qr-card { width: 100px; padding: 10px; }
  .sidebar-float .qr-card img { width: 80px; height: 80px; }
  .sidebar-float .side-btn { width: 40px; height: 40px; font-size: 0.95rem; }
  .sidebar-float .side-btn .tooltip { display: none; }
}

/* Lightbox */
.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 3000; align-items: center; justify-content: center; cursor: pointer; }
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: lightboxIn 0.3s ease; cursor: default; }
@keyframes lightboxIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.lightbox-overlay .lightbox-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; background: rgba(255,255,255,0.2); border: none; border-radius: 50%; color: #fff; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover { background: rgba(255,255,255,0.35); }
.lightbox-overlay .lightbox-caption { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); font-size: 0.85rem; background: rgba(0,0,0,0.4); padding: 8px 20px; border-radius: 20px; }

/* 响应式 */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .navbar-links { display: flex; position: fixed; top: 0; right: 0; width: 80%; max-width: 320px; height: 100vh; background: rgba(250,246,240,0.98); backdrop-filter: blur(16px); flex-direction: column; padding: 80px 24px; gap: 2px; border-left: 1px solid var(--rice-dark); transform: translateX(100%); transition: transform 0.3s; z-index: 999; overflow-y: auto; box-shadow: -4px 0 20px rgba(0,0,0,0.08); }
  .navbar-links.open { transform: translateX(0); }
  .navbar-links a { padding: 12px 16px; font-size: 1rem; border-radius: 8px; }
  .navbar-links a:hover, .navbar-links a.active { background: var(--zt-pale); }
  .navbar-toggle { display: flex; z-index: 1000; }
  .section { padding: 48px 0; }
  .section-header h2 { font-size: 1.4rem; }
  .grid-3, .grid-4, .grid-2, .features-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; gap: 24px; }
  .steps-row::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-header { padding: 60px 0 36px; }
  .page-header h1 { font-size: 1.5rem; }
  .sidebar-float { right: 10px; }
  .sidebar-float .side-btn, .sidebar-float .wechat-wrap .qr-tab { width: 40px; height: 40px; font-size: 0.95rem; }
  .sidebar-float .wechat-wrap .qr-pop { right: 46px; padding: 10px; }
  .sidebar-float .wechat-wrap .qr-pop img { width: 120px; height: 120px; }
}
@media (max-width: 375px) {
  .container { padding: 0 12px; }
}

/* 品牌关系提示 */
.brand-note {
  background: var(--zt-pale);
  text-align: center;
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--zt-blue);
}
.brand-note strong { font-weight: 600; }

/* 特色徽章 */
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.72rem; font-weight: 500; }
.badge-blue { background: var(--zt-pale); color: var(--zt-blue); }
.badge-gold { background: rgba(184,145,77,0.12); color: var(--gold); }
