﻿/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基础样式 */
body {
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic Pro', 'Meiryo', 'MS PGothic', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  font-size: 16px;
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 15px;
  color: #2E7D32;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 20px;
}

/* 段落样式 */
p {
  margin-bottom: 15px;
}

/* 链接样式 */
a {
  color: #2E7D32;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #2E7D32;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #1B5E20;
  text-decoration: none;
}

.btn-secondary {
  background-color: #388E3C;
}

.btn-secondary:hover {
  background-color: #388E3C;
}

/* 卡片样式 */
.card {
  width: 100%;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 30px;
  cursor: pointer;
}

a.card,
a.card:hover,
a.card:visited {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.card-image {
  height: 200px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-image:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 150px; /* 确保内容区域有最小高�?*/
}

.card-content p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 10px 0;
}

.card-content h3:hover,
.card-content p:hover,
.card-footer .price:hover,
.card-footer .more:hover {
  text-decoration: underline;
}

.card-content .btn {
  margin-top: auto; /* 让按钮自动推到底�?*/
  align-self: flex-start; /* 让按钮不被拉伸，只保持文字宽�?*/
  width: fit-content; /* 确保按钮宽度只容纳文�?*/
}

.card-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: #2E7D32;
}

.card-text {
  margin-bottom: 15px;
  color: #666;
  /* 固定高度�?行，确保按钮对齐 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  height: 4.5em; /* 固定3行高�?*/
  min-height: 4.5em; /* 确保最小高度也�?�?*/
}

.card-price {
  font-weight: bold;
  color: #2E7D32;
  margin-bottom: 15px;
  min-height: 1.5em;
}

/* 通用卡片底部栏 */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.card-footer .price {
  font-size: 16px;
  font-weight: bold;
  color: #2E7D32;
}

.card-footer .more {
  font-size: 13px;
  color: #2E7D32;
  font-weight: 500;
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-control:focus {
  outline: none;
  border-color: #2E7D32;
  box-shadow: 0 0 0 2px rgba(44, 82, 52, 0.2);
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  h1 {
    font-size: 28px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  h3 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  h3 {
    font-size: 18px;
  }
  
  .card img {
    height: 150px;
  }
}

@media (max-width: 576px) {
  .container {
    max-width: 100%;
  }
  
  h1 {
    font-size: 20px;
  }
  
  h2 {
    font-size: 18px;
  }
  
  h3 {
    font-size: 16px;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* 图片轮播样式 */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 40px;
}

.carousel-inner {
  display: block;
  position: relative;
  width: 100%;
  height: 400px;
}

.carousel-inner.server-rendered {
  display: block;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 20px;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

/* 网格布局 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* 一行三个的网格布局 */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  /* 强制三列布局，不管有多少项目 */
  width: 100%;
}

.grid-3 .card {
  /* 确保卡片内容不会过度拉伸 */
  display: flex;
  flex-direction: column;
  margin-bottom: 0 !important; /* 移除卡片底部外边距，grid的gap已经处理了间�?*/
  /* 强制卡片只占分配到的空间 */
  width: 100% !important;
  box-sizing: border-box;
}

/* 一行四个的网格布局 */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.grid-4 .card {
  display: flex;
  flex-direction: column;
  margin-bottom: 0 !important;
  width: 100% !important;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}

.grid-4 .card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 高尔夫球场卡片样�?*/
.golf-card {
  position: relative;
  overflow: hidden;
}

.golf-card .card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e53935;
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 10;
}

.golf-card .card-rating {
  margin-bottom: 6px;
}

.golf-card .card-rating .star {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
}

.golf-card .card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2E7D32;
}

.golf-card .card-text {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.golf-card .card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.golf-card .meta-item {
  font-size: 12px;
  color: #999;
  padding: 4px 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.golf-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.golf-card .card-footer .price {
  font-size: 16px;
  font-weight: bold;
  color: #2E7D32;
}

.golf-card .card-footer .more {
  font-size: 13px;
  color: #2E7D32;
  font-weight: 500;
}

.golf-card .card-image {
  overflow: hidden;
}

.golf-card .card-image img {
  transition: transform 0.3s ease;
}

.golf-card:hover .card-image img {
  transform: scale(1.05);
}

.grid-placeholder {
  /* 空占位符，确保三列布局 */
  visibility: hidden;
  pointer-events: none;
  min-height: 350px; /* 与卡片高度一�?*/
}

/* 列表样式 */
.list-group {
  list-style: none;
}

.list-group-item {
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
}

.list-group-item:last-child {
  border-bottom: none;
}

/* 边距工具�?*/
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 1rem; }
.ml-4 { margin-left: 1.5rem; }
.ml-5 { margin-left: 3rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.mr-4 { margin-right: 1.5rem; }
.mr-5 { margin-right: 3rem; }

/* 填充工具�?*/
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 3rem; }

.pl-1 { padding-left: 0.25rem; }
.pl-2 { padding-left: 0.5rem; }
.pl-3 { padding-left: 1rem; }
.pl-4 { padding-left: 1.5rem; }
.pl-5 { padding-left: 3rem; }

.pr-1 { padding-right: 0.25rem; }
.pr-2 { padding-right: 0.5rem; }
.pr-3 { padding-right: 1rem; }
.pr-4 { padding-right: 1.5rem; }
.pr-5 { padding-right: 3rem; }

/* 头部样式 */
.header {
  background-color: #2E7D32;
  color: white;
  padding: 12px 0 8px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: visible;
}
/* 主内容样�?*/
.main {
  padding: 20px 20px 40px;
  min-height: 600px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 190px;
  overflow-x: hidden;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: white;
  cursor: default;
}

.nav ul {
  display: flex;
  list-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav li {
  margin-left: 20px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 10px 10px;
  display: block;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ff9933;
  border-radius: 4px;
  font-weight: bold;
}



/* 页脚样式 */
.footer {
  background-color: #2E7D32;
  color: white;
  padding: 40px 0;
  margin-top: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: white;
}

.footer-section p {
  color: white;
  margin: 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  color: white;
}

.qr-codes {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.3);
}

.qr-code {
  text-align: center;
}

.qr-code img {
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.qr-code img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.qr-code h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: white;
  font-weight: normal;
}

.qr-code p {
  margin: 0;
  font-size: 14px;
  color: white;
}

.subscribe-form {
  display: flex;
}

.subscribe-form input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.subscribe-form button {
  background-color: #388E3C;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.subscribe-form button:hover {
  background-color: #388E3C;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

/* 球场和酒店详情页样式 */
.course-detail,
.hotel-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.course-images,
.hotel-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

.course-info,
.hotel-info {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.course-info h2,
.hotel-info h2 {
  margin-bottom: 20px;
  color: #2E7D32;
}

.info-item {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.info-item:last-child {
  border-bottom: none;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: white;
}

.info-item {
  display: flex;
  border: 1px solid #ddd;
}

.info-label {
  font-weight: 500;
  color: #2E7D32;
  font-size: 15px;
  padding: 12px 15px;
  background: #f8f9fa;
  width: 150px;
  white-space: nowrap;
  word-break: keep-all;
  flex-shrink: 0;
  border-right: 1px solid #ddd;
}

.info-value {
  font-size: 15px;
  color: #333;
  padding: 12px 15px;
  flex: 1;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.info-table th,
.info-table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
}

.info-table th {
  background: #f8f9fa;
  color: #2E7D32;
  font-weight: 500;
  width: 150px;
  white-space: nowrap;
  word-break: keep-all;
}

.booking-form {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.booking-form h2 {
  margin-bottom: 30px;
  color: #2E7D32;
}

/* 首页样式 */
.home {
  padding-bottom: 40px;
}

.main.home {
  padding-top: 15px;
  margin-top: 145px;
}

.section {
  padding: 20px 0 60px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
  color: #2E7D32;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.section-line {
  width: 4px;
  height: 20px;
  background-color: #2E7D32;
  margin-right: 10px;
}

.section-header .section-title {
  text-align: left;
  margin-bottom: 0;
  font-size: 18px;
  color: #333;
}

.bg-light {
  background-color: #f9f9f9;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-item {
  text-align: center;
}

.contact-item h3 {
  margin-bottom: 15px;
  color: #2E7D32;
}



/* 滚动字幕*/
.marquee-item {
  display: inline-block;
  margin-right: 50px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  line-height: 20px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  background: transparent;
  text-decoration: none;
}

a.marquee-item,
a.marquee-item:visited {
  text-decoration: none;
  color: #333;
}

.marquee-item span {
  display: inline;
  padding: 2px 0;
  transition: all 0.3s ease;
}

.marquee-item:hover span {
  color: white;
  text-decoration: none;
  background-color: #2E7D32;
  border-radius: 4px;
  line-height: 1.5;
  padding: 6px 10px;
}

/* 图片轮播样式 */
.image-slider {
  margin-bottom: 8px;
}
.main-slider-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.4s ease-in-out;
}
.slider-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 40px;
  overflow-x: auto;
}
.thumbnail {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
  flex-shrink: 0;
}
.thumbnail:hover,
.thumbnail.active {
  border-color: #2E7D32;
}
.slider-nav {
  display: flex;
  justify-content: space-between;
  position: relative;
  top: -215px;
  padding: 0 10px;
}
.slider-btn {
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s;
}
.slider-btn:hover {
  background: rgba(0,0,0,0.8);
}

/* =============================================
   强制样式 - 必须生效！
   ============================================= */
.image-slider {
  margin-bottom: 8px !important;
}
.slider-thumbnails {
  margin-top: 40px !important;
}


.marquee-item.golf::before { content: '⛳'; margin-right: 5px; font-size: 12px; }
.marquee-item.hotel::before { content: '🏨 '; margin-right: 5px; font-size: 12px; }
.marquee-item.package::before { content: '📦 '; margin-right: 5px; font-size: 12px; }
.marquee-item.news::before { content: '📰 '; margin-right: 5px; font-size: 12px; }
.marquee-item.contact::before { content: '📞 '; margin-right: 5px; font-size: 12px; }

@keyframes fadeIn {

/* 企业信息样式 */
.company-info {
  background-color: #f9f9f9;
  padding: 40px 0;
}

.company-info-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.company-info-item {
  text-align: center;
}

.company-info-item h3 {
  margin-bottom: 15px;
  color: #2E7D32;
}

/* 社交媒体标志样式 */
.social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: #2E7D32;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: #1B5E20;
}

/* 轮播样式 - 与上方定义保持一�?*/
.carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #f0f0f0;
  margin-bottom: 10px;
}

.carousel-inner {
  position: relative;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
}

.carousel-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
}

.carousel-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ccc;
  margin-right: 8px;
}

.carousel-username {
  margin-right: 10px;
}

.carousel-time {
  color: #aaa;
}

.carousel-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.carousel-actions {
  display: flex;
  gap: 15px;
}

.carousel-action {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.carousel-follow {
  background-color: #1890ff;
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.5);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

.carousel-indicators {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.carousel-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-indicator.active {
  background: white;
  width: 16px;
  border-radius: 3px;
}

/* 天气展示样式 - 已废弃，使用上方的天气信息样�?*/
/* 
.weather-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.weather-card {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.weather-city {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #2E7D32;
}

.weather-icon {
  font-size: 48px;
  margin: 10px 0;
}

.weather-temp {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.weather-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.weather-details {
  font-size: 12px;
  color: #999;
}

.weather-loading {
  text-align: center;
  padding: 40px;
  grid-column: 1 / -1;
}
*/

/* 响应式导�?*/
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .main-nav {
    margin-top: 20px;
    flex-wrap: wrap;
  }
  
  .main-nav a {
    margin-left: 0;
    margin-right: 20px;
  }
  
  .course-detail,
  .hotel-detail {
    grid-template-columns: 1fr;
  }
  
  .main-image {
    height: 300px;
  }
  
  .gallery img {
    height: 80px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .qr-codes {
    flex-direction: column;
    align-items: center;
  }
  
  .social-icons {
    flex-wrap: wrap;
  }
}

/* 首页新闻列表项悬停效果 */
.news-item-link {
  display: block;
  width: 100%;
  padding: 0.45rem 0;
  border-radius: 4px;
  transition: all 0.2s ease;
  color: #333;
  text-decoration: none;
  position: relative;
}

.news-title {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.news-summary {
  display: block;
  font-size: 0.78rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.news-item-link:hover {
  background-color: var(--accent-light);
  text-decoration: none;
}

.news-item-link:hover .news-title {
  color: var(--accent2) !important;
}

.news-item-link:hover .news-summary {
  color: var(--accent) !important;
}

/* 首页新闻板块样式 */
.news-panel {
  flex: 0 0 35%;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 20px;
  height: 400px;
  display: flex;
  flex-direction: column;
}

.news-panel-title {
  font-size: 16px;
  color: #2E7D32;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #2E7D32;
}

.news-panel-title::before {
  content: '📰 ';
  margin-right: 8px;
  font-size: 16px;
}

.news-panel-title::after {
  content: ' NEWS';
  margin-left: 8px;
  font-size: 10px;
  font-weight: bold;
  color: #ff9933;
  background-color: #2E7D32;
  padding: 3px 10px;
  border-radius: 15px;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.news-panel-title:hover::after {
  transform: scale(1.05);
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.news-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}

.news-panel-list li {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.news-panel-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}

.news-list-loading {
  text-align: center;
  color: #666;
  padding: 40px 0;
}

.news-list-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-list-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-date {
  display: inline-block;
  font-size: 12px;
  color: #999;
  background-color: #f5f5f5;
  padding: 3px 8px;
  border-radius: 4px;
  min-width: 45px;
  text-align: center;
  flex-shrink: 0;
}

.news-list .news-list-item .news-list-link {
  display: block !important;
  color: #333 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  padding: 5px 10px !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
  flex: 1;
}

.news-list .news-list-item .news-list-link:hover {
  color: white !important;
  background-color: #2E7D32 !important;
  text-decoration: none !important;
}

/* 二维码样�?*/
.qr-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #e0e0e0;
}

.qr-item {
  margin-bottom: 25px;
  text-align: center;
}

.qr-label {
  color: #2E7D32;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
}

.qr-image {
  width: 140px;
  height: 140px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.qr-image:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* 二维码样�?- 与contact页面一�?*/
.qrcode-container {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed #e0e0e0;
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
}

.qrcode-item {
  text-align: center;
}

.qrcode-item h4 {
  color: white;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.9;
}

.qrcode-item img {
  width: 140px;
  height: 140px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.qrcode-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* 高尔夫球场详情页样式 */
.access-facility {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.access-item {
  padding: 12px;
  background: white;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.access-item strong {
  color: #2E7D32;
  font-weight: 500;
}

.access-item span {
  color: #666;
}

.facility-tag {
  display: inline-block;
  padding: 8px 16px;
  background-color: #2E7D32;
  color: white;
  border-radius: 20px;
  margin: 5px;
  font-size: 14px;
}

.course-intro {
  background: white;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.8;
}

.price-notes {
  margin-top: 20px;
  padding: 15px;
  background-color: #fff8e6;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
}

.price-notes p {
  margin: 8px 0;
  font-size: 14px;
}



/* ============================================
   移动端响应式优化 - 添加于文件末尾
   ============================================ */

/* 阶段一：完善媒体查询断点 */
/* 480px - 手机 */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  h1 {
    font-size: 18px;
  }
  
  h2 {
    font-size: 16px;
  }
  
  h3 {
    font-size: 14px;
  }
  
  .section {
    padding: 30px 0;
  }
}

/* 360px - 小手机 */
@media (max-width: 360px) {
  .container {
    padding: 0 8px;
  }
  
  .btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* 阶段二：网格布局响应式改造 */
/* 平板：2列 */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* 手机：1列 */
@media (max-width: 576px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .grid-3 .card,
  .grid-4 .card {
    margin-bottom: 0;
  }
}

/* 阶段三：首页布局响应式 */
@media (max-width: 768px) {
  /* 轮播图和新闻面板垂直堆叠 */
  .home .main > div:first-child {
    flex-direction: column;
  }
  
  .carousel {
    flex: 1 1 100% !important;
    width: 100%;
    margin-bottom: 20px;
  }
  
  .carousel-inner {
    height: 250px;
  }
  
  .news-panel {
    flex: 1 1 100% !important;
    width: 100%;
    height: auto;
    max-height: 350px;
  }
}

@media (max-width: 576px) {
  .carousel-inner {
    height: 200px;
  }
  
  .carousel-control {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* 阶段四：导航栏移动端改造 */
/* 汉堡菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  /* 显示汉堡按钮 */
  .menu-toggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }
  
  /* 导航栏容器相对定位 */
  .site-header .header-inner {
    position: relative;
  }
  
  /* 移动端导航样式 */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2E7D32;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav {
    flex-direction: column;
    padding: 10px 0;
  }
  
  .main-nav a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    width: 100%;
  }
  
  .main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .main-nav a:last-child {
    border-bottom: none;
  }
}

/* 阶段五：详情页响应式 */
@media (max-width: 900px) {
  .detail-layout {
    flex-direction: column;
  }
  
  .main-content {
    min-width: auto;
    max-width: 100%;
    width: 100%;
  }
  
  .sidebar {
    width: 100%;
    margin-top: 30px;
  }
  
  .contact-sidebar {
    position: static;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .access-facility {
    grid-template-columns: 1fr;
  }
  
  .facility-tag {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* 阶段六：头部优化 */
@media (max-width: 768px) {
  .header {
    padding: 8px 0;
  }
  
  .logo {
    font-size: 18px;
  }
  
  .header-content {
    flex-wrap: wrap;
  }
  
}

@media (max-width: 576px) {
  .logo {
    font-size: 16px;
  }
}

/* 阶段七：触摸优化 */
@media (max-width: 768px) {
  .btn,
  .nav a,
  .card,
  .carousel-control,
  .news-list-link {
    min-height: 44px;
    min-width: 44px;
  }
  
  .carousel-control {
    width: 44px;
    height: 44px;
  }
  
  /* 增大点击区域 */
  .card-title a {
    padding: 5px 0;
    display: inline-block;
  }
  
  .facility-tag {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
}

/* 阶段八：图片响应式 */
img {
  max-width: 100%;
  height: auto;
}

.carousel {
  height: auto;
  aspect-ratio: 16 / 9;
}

@media (max-width: 576px) {
  .carousel {
    aspect-ratio: 4 / 3;
  }
  
  .card img {
    height: 180px;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .card img {
    height: 150px;
  }
}

/* 额外优化：表单响应式 */
@media (max-width: 768px) {
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group label {
    font-size: 14px;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 10px;
    font-size: 16px; /* 防止iOS缩放 */
  }
  
  .contact-form {
    padding: 20px;
  }
}

/* 额外优化：表格响应式 */
@media (max-width: 768px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    min-width: 600px;
  }
}

/* 额外优化：页脚响应式 */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .qrcode-container {
    flex-direction: column;
    align-items: center;
  }
}

/* 额外优化：管理员后台响应式 */
@media (max-width: 768px) {
  .admin-nav {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .admin-nav a {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .admin-content {
    padding: 15px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* 打印样式优化 */
@media print {
  .header,
  .footer,
  .nav,
  .menu-toggle,
  .carousel-control {
    display: none !important;
  }
  
  .container {
    max-width: 100%;
  }
  
  body {
    font-size: 12pt;
  }
}

/* 链接化组件样式 - 统一处理 target="_blank" 链接的视觉行为 */
a.carousel-item,
a.carousel-item:visited,
a.carousel-item:hover {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* 推荐列表项 (featured-item) - 作为链接的基础样式 */
.featured-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 8px;
  background: #f9f9f9;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

a.featured-item,
a.featured-item:visited {
  text-decoration: none;
  color: inherit;
}

a.featured-item:hover {
  background-color: #e8f5e9;
  text-decoration: none;
}

.featured-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.featured-number {
  width: 24px;
  height: 24px;
  background-color: #2E7D32;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.featured-name {
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.featured-price {
  font-size: 14px;
  color: #2E7D32;
  font-weight: bold;
}

.hot-badge {
  background-color: #e74c3c;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}
