/* ===== 海旅艺 · 海南旅游博客 ===== */

:root {
  --sea-blue: #0d6b8c;
  --sea-dark: #084a66;
  --coral: #e87461;
  --sand: #f5ede0;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --gray-900: #212529;
  --font-main: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --shadow: 0 2px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 5px 30px rgba(0,0,0,0.15);
  --radius: 12px;
}

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

body {
  font-family: var(--font-main);
  color: var(--gray-800);
  background: var(--sand);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--sea-blue);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: var(--coral);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== 导航栏 ===== */
.navbar {
  background: var(--sea-dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
}
.navbar .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.navbar .logo:hover {
  color: var(--white);
  opacity: 0.9;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover {
  color: var(--white);
}
.nav-links a.active {
  color: var(--white);
}

/* ===== 底部 ===== */
.footer {
  background: var(--sea-dark);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 48px 24px 32px;
  margin-top: auto;
}
.footer-brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.footer p {
  max-width: 600px;
  margin: 0 auto 16px;
  font-size: 14px;
  line-height: 1.8;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.footer-links a:hover {
  color: var(--coral);
}
.footer-divider {
  width: 60px;
  height: 2px;
  background: var(--coral);
  margin: 0 auto 16px;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(8,74,102,0.75), rgba(13,107,140,0.55));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 24px;
}
.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  letter-spacing: 4px;
}
.hero-content .subtitle {
  font-size: 20px;
  opacity: 0.95;
  margin-bottom: 12px;
  font-weight: 300;
}
.hero-tag {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ===== 页面标题 ===== */
.page-header {
  text-align: center;
  padding: 48px 24px 32px;
  background: var(--white);
  border-bottom: 3px solid var(--sea-blue);
}
.page-header h1 {
  font-size: 36px;
  color: var(--sea-dark);
  margin-bottom: 8px;
}
.page-header p {
  color: var(--gray-600);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== 主内容区 ===== */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  flex: 1;
  width: 100%;
}

/* ===== 简介区 ===== */
.intro-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}
.intro-section p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray-800);
}

/* ===== 景点&美食网格 ===== */
.grid-section {
  margin-bottom: 48px;
}
.grid-section h2 {
  font-size: 26px;
  color: var(--sea-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--coral);
  display: flex;
  align-items: center;
  gap: 10px;
}
.grid-section h2 .icon {
  font-size: 28px;
}
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-item {
  background: var(--white);
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 4px solid var(--sea-blue);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-item h3 {
  font-size: 17px;
  color: var(--sea-dark);
  margin-bottom: 6px;
}
.card-item p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== 标签 ===== */
.region-tag {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--sea-blue), var(--sea-dark));
  color: var(--white);
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.region-tag::before {
  content: '📍 ';
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--sea-dark), var(--sea-blue));
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--white);
  margin-top: 48px;
}
.cta-section h2 {
  font-size: 26px;
  margin-bottom: 8px;
}
.cta-section p {
  opacity: 0.9;
  margin-bottom: 24px;
  font-size: 15px;
}
.btn {
  display: inline-block;
  padding: 12px 36px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
}
.btn-primary:hover {
  background: #d45a4a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232,116,97,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--sea-dark);
}
.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

/* ===== 首页市县网格 ===== */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.city-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.city-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.city-card-img {
  height: 180px;
  overflow: hidden;
}
.city-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.city-card:hover .city-card-img img {
  transform: scale(1.08);
}
.city-card-body {
  padding: 16px 20px 20px;
}
.city-card-body h3 {
  font-size: 20px;
  color: var(--sea-dark);
  margin-bottom: 4px;
}
.city-card-body .tagline {
  font-size: 13px;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 8px;
}
.city-card-body p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.city-card-body .region-badge {
  display: inline-block;
  background: var(--sea-blue);
  color: var(--white);
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 8px;
}

/* ===== 博客卡片 ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.blog-card-img {
  height: 200px;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}
.blog-card-body {
  padding: 20px 24px 24px;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 10px;
}
.blog-card-category {
  background: var(--coral);
  color: var(--white);
  padding: 2px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.blog-card-body h3 {
  font-size: 18px;
  color: var(--sea-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card-body p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== 博客详情页 ===== */
.blog-detail {
  max-width: 800px;
  margin: 0 auto;
}
.blog-detail-header {
  margin-bottom: 32px;
}
.blog-detail-header h1 {
  font-size: 32px;
  color: var(--sea-dark);
  line-height: 1.3;
  margin-bottom: 12px;
}
.blog-detail-meta {
  display: flex;
  gap: 20px;
  color: var(--gray-600);
  font-size: 14px;
  flex-wrap: wrap;
}
.blog-detail-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-detail-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.blog-detail-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 40px;
  box-shadow: var(--shadow);
  line-height: 2;
  font-size: 16px;
}
.blog-detail-content p {
  margin-bottom: 16px;
}
.blog-detail-content strong {
  color: var(--sea-dark);
}

/* ===== 关于页面 ===== */
.about-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.about-section h2 {
  font-size: 24px;
  color: var(--sea-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--coral);
}
.about-section p {
  font-size: 16px;
  line-height: 2;
  margin-bottom: 16px;
  color: var(--gray-800);
}
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.value-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--sand);
  border-radius: var(--radius);
  transition: transform 0.3s;
}
.value-card:hover {
  transform: translateY(-4px);
}
.value-card .icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.value-card h3 {
  font-size: 18px;
  color: var(--sea-dark);
  margin-bottom: 8px;
}
.value-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== 首页欢迎区 ===== */
.welcome-section {
  text-align: center;
  padding: 60px 24px 48px;
  background: linear-gradient(135deg, var(--sea-dark), var(--sea-blue));
  color: var(--white);
}
.welcome-section h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 3px;
}
.welcome-section .tagline {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 24px;
}
.welcome-section .intro-text {
  max-width: 600px;
  margin: 0 auto;
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.8;
}

/* ===== 过滤器 ===== */
.filter-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 24px;
  border-radius: 20px;
  border: 2px solid var(--sea-blue);
  background: transparent;
  color: var(--sea-blue);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--sea-blue);
  color: var(--white);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .navbar-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
  }
  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero {
    height: 300px;
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .hero-content .subtitle {
    font-size: 16px;
  }
  .grid-2col, .grid-3col {
    grid-template-columns: 1fr;
  }
  .city-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .about-values {
    grid-template-columns: 1fr;
  }
  .main-content {
    padding: 24px 16px;
  }
  .intro-section {
    padding: 20px;
  }
  .blog-detail-content {
    padding: 20px;
  }
  .cta-section {
    padding: 24px 20px;
  }
  .welcome-section h1 {
    font-size: 30px;
  }
  .page-header h1 {
    font-size: 28px;
  }
}
