/* 海南旅人旅行社 — 全局样式 江南水墨风格 */
:root {
  --ink-green:    #4a7c59;
  --ink-dark:     #2d5016;
  --ink-light:    #7aa87e;
  --ink-pale:     #dce8db;
  --rice-paper:   #faf6f0;
  --rice-dark:    #f0ebe0;
  --text-main:    #3a3a3a;
  --text-light:   #7a7a7a;
  --gold:         #b8914d;
  --gold-light:   #d4b872;
  --font-heading: 'Noto Serif SC', 'Noto Serif CJK 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.10);
  --shadow-lg:    0 8px 30px rgba(0,0,0,0.12);
  --radius:       10px;
  --radius-lg:    16px;
  --transition:   0.3s ease;
}
*, *::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; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; outline: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title { font-family: var(--font-heading); font-size: 2rem; color: var(--ink-dark); text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 48px; font-size: 0.95rem; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--gold); margin: 16px auto 0; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* 导航栏 */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(250,246,240,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(74,124,89,0.10); height: 72px; 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; color: var(--ink-dark); font-weight: 700; }
.navbar-brand img { height: 36px; width: auto; object-fit: contain; }
.navbar-links { display: flex; align-items: center; gap: 4px; }
.navbar-links a { padding: 8px 16px; font-size: 0.9rem; color: var(--text-main); border-radius: 6px; transition: var(--transition); white-space: nowrap; }
.navbar-links a:hover, .navbar-links a.active { background: var(--ink-pale); color: var(--ink-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--ink-dark); cursor: pointer; padding: 8px; }

/* 轮播 */
.hero-slider { position: relative; margin-top: 72px; height: 75vh; min-height: 450px; max-height: 650px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-slide.active { opacity: 1; }
.hero-slide .bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.3), rgba(0,0,0,0.55)); z-index: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 800px; padding: 0 20px; }
.hero-content h1, .hero-content h2 { font-family: var(--font-heading); font-size: 2.6rem; margin-bottom: 16px; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.1rem; margin-bottom: 28px; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.hero-btn { display: inline-block; padding: 14px 40px; background: var(--ink-green); color: #fff; border-radius: 50px; font-size: 1rem; font-weight: 600; transition: var(--transition); border: none; cursor: pointer; }
.hero-btn:hover { background: var(--ink-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: var(--transition); }
.hero-dots span.active { background: #fff; width: 28px; border-radius: 6px; }

/* 品牌简介条 */
.brand-intro { background: var(--ink-pale); padding: 40px 0; text-align: center; }
.brand-intro .stats { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.brand-intro .stat-item h3 { font-family: var(--font-heading); font-size: 2.2rem; color: var(--ink-dark); }
.brand-intro .stat-item p { color: var(--text-light); font-size: 0.9rem; margin-top: 4px; }

/* 卡片通用 */
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 200px; object-fit: cover; background: var(--ink-pale); }
.card-body { padding: 20px; }
.card-body h3 { font-family: var(--font-heading); font-size: 1.15rem; color: var(--ink-dark); margin-bottom: 8px; }
.card-body p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 0.85rem; }
.card-meta .price { color: #d9534f; font-weight: 700; font-size: 1.1rem; }
.grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 按钮 */
.btn { display: inline-block; padding: 10px 28px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; border: none; cursor: pointer; transition: var(--transition); text-align: center; }
.btn-primary { background: var(--ink-green); color: #fff; }
.btn-primary:hover { background: var(--ink-dark); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a07d3d; }
.btn-outline { background: transparent; color: var(--ink-green); border: 2px solid var(--ink-green); }
.btn-outline:hover { background: var(--ink-green); color: #fff; }

/* 页脚 */
.footer { background: #2d3a2d; color: #ccc; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-col h4 { font-family: var(--font-heading); color: #fff; margin-bottom: 20px; font-size: 1.1rem; }
.footer-col p, .footer-col a { font-size: 0.88rem; line-height: 2; color: #aaa; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding: 20px; text-align: center; font-size: 0.82rem; color: #888; }

/* 侧边悬浮 */
.sidebar-float { position: fixed; right: 20px; bottom: 120px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.side-btn { width: 52px; height: 52px; border-radius: 50%; background: var(--ink-green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; position: relative; box-shadow: var(--shadow-md); border: none; }
.side-btn:hover { background: var(--ink-dark); }
.side-btn .tooltip { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); background: #333; color: #fff; padding: 6px 14px; border-radius: 6px; font-size: 0.8rem; white-space: nowrap; opacity: 0; pointer-events: none; }
.side-btn:hover .tooltip { opacity: 1; }
.side-btn.wechat-btn { background: #07C160; }
.side-btn.wechat-btn .qr-popup { position: absolute; right: 58px; top: 50%; transform: translateY(-50%); background: #fff; padding: 14px; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.18); text-align: center; opacity: 0; visibility: hidden; transition: all 0.25s ease; z-index: 1000; min-width: 175px; }
.side-btn.wechat-btn:hover .qr-popup { opacity: 1; visibility: visible; }
.side-btn.wechat-btn .qr-popup img { width: 130px; height: 130px; border-radius: 6px; cursor: pointer; object-fit: contain; }
.side-btn.wechat-btn .qr-popup p { margin-top: 8px; font-size: 0.75rem; color: var(--text-light); }

/* Lightbox */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 0 40px rgba(0,0,0,0.4); }
.lightbox-close { position: absolute; top: 20px; right: 30px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }

/* 面包屑 */
.breadcrumb { padding: 16px 0; font-size: 0.85rem; color: var(--text-light); }
.breadcrumb a { color: var(--ink-green); }
.breadcrumb a:hover { text-decoration: underline; }

/* FAQ手风琴 */
.faq-item { border: 1px solid var(--rice-dark); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-q { padding: 18px 20px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.faq-q:hover { background: var(--ink-pale); }
.faq-q .icon { transition: transform 0.3s ease; }
.faq-item.open .faq-q .icon { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 500px; padding: 0 20px 18px; }
.faq-a p { font-size: 0.88rem; color: var(--text-light); line-height: 1.8; }

/* 筛选栏 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; padding: 20px 0; align-items: center; }
.filter-bar select { padding: 10px 18px; border: 1px solid #ddd; border-radius: 6px; background: #fff; font-size: 0.88rem; cursor: pointer; }

/* 分类标签 */
.tag { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; background: var(--ink-pale); color: var(--ink-dark); }
.tag-gold { background: var(--gold-light); color: #7a5c00; }

/* 评分星星 */
.stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 2px; }

/* 预定流程 */
.steps { display: flex; justify-content: space-between; position: relative; }
.steps::before { content: ''; position: absolute; top: 24px; left: 50px; right: 50px; height: 2px; background: var(--ink-pale); z-index: 0; }
.step { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; flex: 1; }
.step-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--ink-pale); color: var(--ink-green); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.step.active .step-circle { background: var(--ink-green); color: #fff; }
.step-label { font-size: 0.82rem; color: var(--text-light); text-align: center; }

/* 目的地卡片 */
.dest-card { position: relative; border-radius: var(--radius); overflow: hidden; height: 260px; cursor: pointer; }
.dest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.dest-card:hover img { transform: scale(1.08); }
.dest-card .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%); }
.dest-card .dest-name { position: absolute; bottom: 20px; left: 20px; color: #fff; font-family: var(--font-heading); font-size: 1.3rem; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }

/* 表单 */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.9rem; background: #fff; }
.form-control:focus { border-color: var(--ink-green); box-shadow: 0 0 0 3px rgba(74,124,89,0.15); }

/* 时间轴 */
.timeline { position: relative; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--ink-pale); }
.timeline-item { position: relative; padding-left: 50px; padding-bottom: 32px; }
.timeline-item::before { content: ''; position: absolute; left: 14px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-green); border: 3px solid var(--ink-pale); }
.timeline-item h4 { font-family: var(--font-heading); color: var(--ink-dark); }
.timeline-item .date { color: var(--gold); font-size: 0.85rem; margin-bottom: 4px; }
.timeline-item p { font-size: 0.88rem; color: var(--text-light); }

/* 模态框 */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9998; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-content { background: #fff; border-radius: var(--radius-lg); padding: 40px; max-width: 480px; width: 90%; max-height: 85vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.5rem; color: var(--text-light); cursor: pointer; }

/* 响应式 */
/* 页面头部 */
.page-header { padding: 110px 0 40px; background: linear-gradient(135deg, var(--ink-green), var(--ink-dark)); color: #fff; text-align: center; }
.page-header h1 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 8px; }
.page-header h1 i { margin-right: 10px; }
.page-header p { font-size: 0.95rem; opacity: 0.85; }
.page-header-sm { padding: 100px 0 30px; }
.page-header-sm h1 { font-size: 1.6rem; }

/* 定制游页面 - 左右布局 */
.custom-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.custom-cases { }
.custom-case { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 20px; transition: var(--transition); }
.custom-case:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.custom-case-img { width: 100%; height: 180px; border-radius: 8px; object-fit: cover; margin-bottom: 14px; background: var(--ink-pale); }
.custom-case h4 { font-family: var(--font-heading); color: var(--ink-dark); margin-bottom: 6px; font-size: 1.05rem; }
.custom-case p { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; }
.custom-case .case-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.custom-case .case-tags span { font-size: 0.75rem; padding: 3px 10px; border-radius: 12px; background: var(--ink-pale); color: var(--ink-dark); }

/* 表单区域 */
.booking-form-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px; max-width: 720px; margin: 0 auto; }
.booking-form-wrap h3 { font-family: var(--font-heading); color: var(--ink-dark); margin-bottom: 20px; font-size: 1.2rem; }
.booking-form-wrap h3 i { color: var(--ink-green); margin-right: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { text-align: center; margin-top: 20px; }
.help-text { font-size: 0.8rem; color: var(--text-light); }
.help-text a { color: var(--ink-green); font-weight: 600; }
.required { color: #d9534f; }

/* 产品详情页 */
.product-hero { padding: 110px 0 50px; background: linear-gradient(135deg, var(--ink-green), var(--ink-dark)); color: #fff; position: relative; }
.product-hero .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.product-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.product-hero-img { width: 100%; height: 340px; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow-lg); }
.product-hero-info h1 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 10px; }
.product-hero-info .product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.product-hero-info .product-tags span { font-size: 0.78rem; padding: 3px 12px; border-radius: 14px; background: rgba(255,255,255,0.2); }
.product-hero-info .product-price { font-size: 2rem; font-weight: 700; margin-bottom: 6px; }
.product-hero-info .product-price .original { font-size: 1rem; font-weight: 400; text-decoration: line-through; opacity: 0.6; margin-left: 10px; }
.product-hero-info .product-meta { font-size: 0.88rem; opacity: 0.85; margin-bottom: 16px; line-height: 1.8; }
.product-hero-info .product-meta i { width: 20px; }
.product-detail-section { padding: 50px 0; }
.product-tabs { display: flex; gap: 0; margin-bottom: 30px; border-bottom: 2px solid var(--rice-dark); }
.product-tab { padding: 12px 28px; cursor: pointer; font-size: 0.92rem; font-weight: 600; color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.product-tab:hover { color: var(--ink-green); }
.product-tab.active { color: var(--ink-green); border-bottom-color: var(--ink-green); }
.product-tab-content { display: none; }
.product-tab-content.active { display: block; }
.cost-list { list-style: none; padding: 0; }
.cost-list li { padding: 8px 0; font-size: 0.9rem; color: var(--text-main); border-bottom: 1px solid var(--rice-dark); }
.cost-list li i { width: 24px; color: var(--ink-green); }
.cost-list li .fa-times { color: #d9534f; }

/* 评价 */
.review-item { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.review-item .review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.review-item .reviewer { font-weight: 600; font-size: 0.9rem; }
.review-item .review-date { font-size: 0.8rem; color: var(--text-light); }
.review-item p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }

/* 博客页面 */
.chip-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; justify-content: center; }
.chip { display: inline-block; padding: 8px 22px; border-radius: 50px; font-size: 0.88rem; cursor: pointer; background: #fff; border: 1px solid #ddd; color: var(--text-main); transition: var(--transition); user-select: none; }
.chip:hover { border-color: var(--ink-green); color: var(--ink-green); }
.chip.active { background: var(--ink-green); color: #fff; border-color: var(--ink-green); }

/* 两列布局工具 */
.col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

@media (max-width: 768px) {
  .navbar-links { position: fixed; top: 72px; right: 0; flex-direction: column; background: var(--rice-paper); width: 80%; height: calc(100vh - 72px); padding: 20px; box-shadow: -4px 0 20px rgba(0,0,0,0.1); transform: translateX(100%); transition: 0.3s; }
  .navbar-links.active { transform: translateX(0); }
  .nav-toggle { display: block; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { height: 55vh; min-height: 350px; }
  .hero-content h1, .hero-content h2 { font-size: 1.8rem; }
  .section { padding: 50px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .sidebar-float { right: 10px; bottom: 80px; }
  .side-btn { width: 44px; height: 44px; font-size: 1rem; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-content h1, .hero-content h2 { font-size: 1.4rem; }
}
