/* 绍兴旅游攻略 - 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #2c3e50; background: #f5f5f5; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* 容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 导航 */
.nav { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav-logo { font-size: 20px; font-weight: bold; color: #c0392b; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { font-size: 15px; color: #2c3e50; padding: 8px 0; border-bottom: 2px solid transparent; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #c0392b; border-bottom-color: #c0392b; }
.menu-btn { display: none; font-size: 24px; cursor: pointer; background: none; border: none; }

/* Hero */
.hero { background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #f39c12 100%); color: #fff; text-align: center; padding: 80px 15px; }
.hero h1 { font-size: 36px; margin-bottom: 10px; }
.hero p { font-size: 18px; opacity: 0.9; }

/* 区块 */
.section { padding: 50px 0; }
.section-title { text-align: center; font-size: 28px; margin-bottom: 10px; color: #2c3e50; }
.section-sub { text-align: center; color: #7f8c8d; margin-bottom: 30px; }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; display: block; height: 260px; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
a.card { text-decoration: none; color: inherit; }
a.card:hover { text-decoration: none; color: inherit; }
.card-img { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 48px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); z-index: 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { position: absolute; bottom: 0; left: 0; right: 0; background: transparent; padding: 14px 16px; z-index: 1; border-radius: 0 0 12px 12px; }
.card-body h3 { font-size: 17px; margin-bottom: 4px; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.95); }
.card-body p { font-size: 13px; color: #eee; text-shadow: 0 1px 5px rgba(0,0,0,0.9); margin: 0; }

/* 路线卡片 */
.route-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.route-card h3 { color: #c0392b; margin-bottom: 12px; font-size: 20px; }
.route-card ul { padding-left: 20px; }
.route-card li { margin-bottom: 8px; color: #555; }

/* 美食列表 */
.food-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.food-item { background: #fff; border-radius: 10px; padding: 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.food-icon { font-size: 40px; margin-bottom: 8px; }
.food-item h4 { margin-bottom: 6px; }
.food-item p { font-size: 13px; color: #999; }

/* 推荐酒店 */
.hotel-card { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: #fff; border-radius: 16px; padding: 40px; display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.hotel-info { flex: 1; min-width: 280px; }
.hotel-info h3 { font-size: 26px; margin-bottom: 12px; color: #f1c40f; }
.hotel-info p { margin-bottom: 8px; opacity: 0.9; }
.hotel-features { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.hotel-features span { background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 20px; font-size: 13px; }
.btn { display: inline-block; background: #c0392b; color: #fff; padding: 12px 28px; border-radius: 8px; font-size: 16px; margin-top: 16px; transition: background 0.3s; }
.btn:hover { background: #e74c3c; }

/* 文章页 */
.article { background: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); max-width: 900px; margin: 0 auto; }
.article h1 { font-size: 28px; margin-bottom: 20px; color: #2c3e50; }
.article h2 { font-size: 22px; margin: 24px 0 12px; color: #c0392b; border-left: 4px solid #c0392b; padding-left: 12px; }
.article p { margin-bottom: 16px; }
.article .meta { color: #999; font-size: 14px; margin-bottom: 20px; }
.info-box { background: #fef9e7; border-left: 4px solid #f39c12; padding: 16px; margin: 16px 0; border-radius: 0 8px 8px 0; }
.info-box strong { color: #e67e22; }
.article-hero { width: 100%; height: 300px; object-fit: cover; border-radius: 12px; margin-bottom: 24px; }

/* 分类筛选 */
.filter-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.filter-tab { padding: 8px 20px; border: 2px solid #ddd; border-radius: 25px; cursor: pointer; transition: 0.3s; font-size: 14px; background: #fff; }
.filter-tab:hover, .filter-tab.active { border-color: #c0392b; color: #c0392b; background: #fdf2f2; }

/* 面包屑 */
.breadcrumb { padding: 15px 0; font-size: 14px; color: #999; }
.breadcrumb a { color: #c0392b; }

/* FAQ */
.faq-section { margin-top: 40px; }
.faq-section h2 { margin-bottom: 20px; }
.faq-item { background: #f8f9fa; border-radius: 10px; padding: 20px; margin-bottom: 12px; }
.faq-item h3 { font-size: 17px; color: #2c3e50; margin-bottom: 8px; }
.faq-item p { font-size: 15px; color: #555; margin-bottom: 0; }

/* 页脚 */
.footer { background: #2c3e50; color: #bdc3c7; padding: 40px 0 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer h4 { color: #fff; margin-bottom: 12px; }
.footer a { color: #bdc3c7; display: block; margin-bottom: 6px; font-size: 14px; }
.footer a:hover { color: #f39c12; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #34495e; font-size: 13px; }

/* 响应式 */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .nav-links.show { display: flex; }
  .menu-btn { display: block; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .section { padding: 30px 0; }
  .section-title { font-size: 22px; }
  .hotel-card { padding: 24px; }
  .article { padding: 20px; }
  .article-hero { height: 200px; }
}

/* 幻灯片图片轮播 */
.slideshow { position: relative; width: 100%; border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.slideshow-inner { display: flex; transition: transform 0.5s ease; }
.slideshow-inner img { width: 100%; min-height: 300px; max-height: 450px; object-fit: cover; flex-shrink: 0; }
.slideshow-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: #fff; border: none; font-size: 24px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; }
.slideshow-btn:hover { background: rgba(0,0,0,0.8); }
.slideshow-btn.prev { left: 10px; }
.slideshow-btn.next { right: 10px; }
.slideshow-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.slideshow-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; border: none; }
.slideshow-dots .dot.active { background: #fff; }
@media (max-width: 768px) { .slideshow-inner img { min-height: 200px; max-height: 300px; } }
