/* ========== 全局重置 & 基础变量 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 主色调：闽南红棕 + 山海青蓝，国风配色 */
  --primary: #c86028;
  --primary-light: #f7e3d0;
  --secondary: #428bca;
  --secondary-light: #e8f4ff;
  /* 中性色 */
  --text-main: #2d2d2d;
  --text-sub: #666;
  --text-light: #999;
  --bg-body: linear-gradient(135deg, #fff7ef 0%, #f0f8ff 100%);
  --bg-white: #ffffff;
  --bg-dark: #3a322c;
  /* 圆角 & 阴影 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 3px 12px rgba(200, 110, 50, 0.1);
  --shadow-deep: 0 6px 24px rgba(200, 110, 50, 0.18);
  /* 动画 */
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "宋体", sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 2;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ========== 核心居中容器（全站强制居中） ========== */
.container {
  width: 94%;
  max-width: 1240px;
  margin: 0 auto;
}

/* ========== 顶部导航栏 悬浮固定 ========== */
header {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.logo span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-sub);
}

.nav-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-list a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* ========== 顶部通栏横幅 ========== */
.banner {
  height: 440px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 36px auto;
  position: relative;
  box-shadow: var(--shadow-deep);
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.banner:hover img {
  transform: scale(1.06);
}

.banner-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: 92%;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.banner-text h1 {
  font-size: 46px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.banner-text p {
  font-size: 20px;
  opacity: 0.95;
}

/* ========== 分区标题模块 ========== */
.section-title {
  text-align: center;
  margin: 70px 0 38px;
}

.section-title h2 {
  font-size: 34px;
  color: var(--primary);
  display: inline-block;
  padding-bottom: 14px;
  border-bottom: 4px solid #f2c498;
  position: relative;
}

.section-title p {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 17px;
}

/* 分割线 */
.split-line {
  width: 100px;
  height: 2px;
  background: #f2c498;
  margin: 40px auto;
}

/* ========== 白色内容容器（正文详情） ========== */
.box-white {
  background: var(--bg-white);
  padding: 38px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin-bottom: 60px;
}

.box-white h3 {
  font-size: 22px;
  color: var(--primary);
  margin: 24px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.box-white p {
  margin-bottom: 16px;
  text-align: justify;
}

/* ========== 卡片布局（景点/美食/机位通用） ========== */
.card-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-deep);
}

.card-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ========== 标签样式（多色系区分） ========== */
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: var(--radius-lg);
  margin-right: 8px;
  margin-bottom: 14px;
}

.tag.orange {
  background: var(--primary-light);
  color: var(--primary);
}

.tag.blue {
  background: var(--secondary-light);
  color: var(--secondary);
}

.tag.gray {
  background: #f1f1f1;
  color: var(--text-sub);
}

/* ========== 闽南特色小贴士模块 ========== */
.dialect-tip {
  background: var(--secondary-light);
  border-left: 5px solid var(--secondary);
  padding: 18px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  font-size: 15px;
}

/* ========== 交互按钮 ========== */
.collect-btn {
  border: none;
  background: var(--primary-light);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  margin-top: 14px;
  transition: var(--transition);
  font-size: 14px;
}

.collect-btn:active {
  background: var(--primary);
  color: #fff;
}

/* ========== 全站导航网格 ========== */
.grid-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 70px;
}

.grid-nav a {
  text-align: center;
  padding: 16px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  font-weight: 500;
}

.grid-nav a:hover {
  background: var(--primary-light);
  transform: translateY(-4px);
}

/* ========== 列表样式（交通/行程/问答专用） ========== */
.list-item {
  padding: 12px 0;
  border-bottom: 1px dashed #eee;
}

.list-item:last-child {
  border-bottom: none;
}

/* ========== 页脚 ========== */
footer {
  background: var(--bg-dark);
  color: #dddddd;
  text-align: center;
  padding: 50px 0;
  margin-top: 100px;
}

footer p {
  margin: 12px 0;
  font-size: 14px;
}

/* ========== 响应式适配 手机/平板 ========== */
@media (max-width: 768px) {
  .nav-wrap {
    flex-direction: column;
    gap: 20px;
  }
  .banner {
    height: 280px;
  }
  .banner-text h1 {
    font-size: 30px;
  }
  .banner-text p {
    font-size: 16px;
  }
  .section-title h2 {
    font-size: 26px;
  }
  .card-wrap {
    grid-template-columns: 1fr;
  }
  .grid-nav {
    grid-template-columns: repeat(3, 1fr);
  }
  .box-white {
    padding: 24px;
  }
}