/* ========================================
   山东省旅游饭店协会 - 首页专属样式表
   ======================================== */

/* Home main wrapper */
.home-wrapper {
  width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.home-gap {
  margin-bottom: 20px;
}

/* ========================================
   Home Page Specific
   ======================================== */

/* Hero Carousel */
.hero-carousel {
  width: 1200px;
  height: 450px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  display: block;
}

.hero-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dots span {
  width: 16px;
  height: 8px;
  background: #fff;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dots span.active {
  background: #DF0024;
}

/* Home banner images */
.home-banner {
  margin: 0 0 50px;
  line-height: 0;
  overflow: hidden;
  border-radius: 3px;
}

.home-banner img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  object-position: center;
  display: block;
}
.home-banner.banner-law  {
margin-top: 50px;
margin-bottom: 30px;  
}
.home-banner.banner-law img {
  height: 100px;
  
  object-fit: cover;
  object-position: center;
}

/* Party image list */
.party-img-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.party-img-list img {
  width: 320px;
  height: 120px;
  object-fit: cover;
  display: block;
  margin-top: 20px;
  border-radius: 3px;
}

/* News image carousel */
.news-img-carousel {
  width: 100%;
  height: 350px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.news-img-slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s;
}

.news-img-slide.active {
  opacity: 1;
  position: relative;
}

.news-img-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.news-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 15px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

.news-img-dots {
  position: absolute;
  bottom: 12px;
  right: 15px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.news-img-dots span {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s;
}

.news-img-dots span.active {
  background: #DF0024;
}

/* Home sections */
.home-section {
  padding: 25px 0;
}

.home-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #004ea2;
}

.home-section .section-header .title-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-section .section-header .icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #004ea2, #1a6fc4);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

/* 荣誉资质图标 */
.home-section:nth-of-type(6) .section-header .icon {
  width: 19px;
  height: 24px;
}

/* 友情链接图标 */
.home-section:nth-of-type(7) .section-header .icon {
  width: 22px;
  height: 22px;
}

.home-section .section-header h2 {
  font-size: 17px;
  color: #004ea2;
  font-weight: bold;
}

.home-section .section-header .more-link {
  font-size: 13px;
  color: #999;
}

/* Four column layout: left 2x2 box + right quick channel */
.four-col-layout {
  display: flex;
  gap: 20px;
}

.four-col-box {
  flex: 1;
  min-width: 0;
}

.four-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.four-col-item {
  padding: 0 15px;
}

.four-col-item:nth-child(odd) {
  padding-left: 0;
  /* border-right: 1px solid #e8e8e8; */
}

.four-col-item:nth-child(even) {
  padding-right: 0;
}

.four-col-item:nth-child(1),
.four-col-item:nth-child(2) {
  padding-bottom: 12px;
  /* border-bottom: 1px solid #e8e8e8; */
  margin-bottom: 12px;
}

.quick-channel {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

/* Quick Links */
.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:6px;
  justify-content: space-between;
  /* flex: 1; */
}

.quick-link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: row-reverse;
  background: #0056b3;
  color: #fff;
  width: 100%;
  height: 60px;
  border-radius: 3px;
  font-size: 13px;
  transition: background 0.2s;
  cursor: pointer;
  letter-spacing: 1px;
}

.quick-link-item:hover {
  background: #003d80;
  color: #fff;
}

.quick-link-item .ql-icon {
  font-size: 18px;
}

.ql-icon-img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1);
}

/* Party building images */
.party-banners {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.party-banner {
  width: 100%;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
}

.party-banner-1 {
  background: linear-gradient(135deg, #c00, #e00);
}

.party-banner-2 {
  background: linear-gradient(135deg, #d4a017, #c00);
}

.party-banner-1::before,
.party-banner-2::before {
  content: '★';
  margin-right: 10px;
  font-size: 20px;
}

/* Red banner */
.red-banner {
  width: 100%;
  height: 60px;
  background: linear-gradient(90deg, #c00, #e00, #c00);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 6px;
  margin: 20px 0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.red-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.03) 20px,
    rgba(255,255,255,0.03) 40px
  );
}

.red-banner .banner-text {
  position: relative;
  z-index: 1;
}

/* Law banner */
.law-banner {
  width: 100%;
  height: 70px;
  background: linear-gradient(135deg, #8b0000, #c00, #ff4500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 4px;
  margin: 20px 0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.law-banner::before {
  content: '';
  position: absolute;
  left: 20px;
  width: 40px;
  height: 40px;
  background: #ffd700;
  border-radius: 50%;
}

/* Awards Section - Marquee */
.awards-marquee {
  overflow: hidden;
  width: 100%;
  padding: 30px;
}

.awards-track {
  display: flex;
  gap: 20px;
  animation: marquee 20s linear infinite;
  width: max-content;
}

.awards-marquee:hover .awards-track {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 荣誉资质 - 整图样式 */
.honor-img-item {
  flex-shrink: 0;
  width: 221px;
  height: 154px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.honor-img-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.award-item {
  flex-shrink: 0;
  width: 210px;
  height: 130px;
  background: linear-gradient(145deg, #d4a857 0%, #c49a3c 40%, #b8942e 100%);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8b0000;
  padding: 12px 10px;
  position: relative;
  overflow: hidden;
  border: 2px solid #a88525;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
}

.award-item::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(139,0,0,0.25);
  border-radius: 2px;
}

.award-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
  pointer-events: none;
}

.award-item .award-title {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 6px;
  text-align: center;
  color: #8b0000;
  position: relative;
  z-index: 1;
}

.award-item .award-badge {
  font-size: 26px;
  font-weight: bold;
  color: #8b0000;
  position: relative;
  z-index: 1;
  letter-spacing: 2px;
}

/* Partner Links */
.partner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  font-size: 16px;
  align-items: center;
  padding: 15px 0;
}

.partner-link {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
}

.partner-link:hover {
  opacity: 0.75;
}

.partner-link img {
  height: 40px;
  width: auto;
  display: block;
}

/* ========================================
   Home News Section Layout
   ======================================== */
.home-news-layout {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.home-news-layout .news-img-col {
  width: 590px;
  flex-shrink: 0;
}

.home-news-layout .news-list-col {
  flex: 1;
  min-width: 0;
}

/* ========================================
   H5 Mobile Styles - Home Page
   ======================================== */
@media (max-width: 768px) {
  .home-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Hero Carousel */
  .hero-carousel {
    width: 100% !important;
    max-width: 100%;
    height: 160px;
    border-radius: 0;
    margin: 0;
  }

  .hero-slide img {
    object-fit: cover;
  }

  .hero-dots {
    bottom: 8px;
  }

  .hero-dots span {
    width: 10px;
    height: 5px;
  }

  /* News Image Carousel */
  .home-news-layout {
    flex-direction: column;
    gap: 12px;
  }

  .home-news-layout .news-img-col {
    width: 100%;
  }

  .news-img-carousel {
    height: 200px;
  }

  .news-img-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .news-img-caption {
    font-size: 12px;
    padding: 20px 10px 8px;
    line-height: 1.4;
  }

  .news-img-dots {
    bottom: 10px;
    right: 10px;
  }

  .news-img-dots span {
    width: 8px;
    height: 8px;
  }

  /* Home Sections */
  .home-section {
    padding: 12px 0;
  }

  .home-section .section-header {
    padding: 0 10px 6px;
    margin-bottom: 8px;
  }

  .home-section .section-header .icon {
    width: 18px;
    height: 18px;
  }

  .home-section .section-header h2 {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .home-section .section-header .more-link {
    font-size: 11px;
  }

  /* Four Column Layout */
  .four-col-layout {
    flex-direction: column;
    gap: 12px;
  }

  .four-col-box {
    width: 100%;
  }

  .four-col-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .four-col-item {
    padding: 0 10px;
    border-right: none !important;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 8px;
    margin-bottom: 4px;
  }

  .four-col-item:nth-child(1),
  .four-col-item:nth-child(2) {
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 4px;
  }

  .four-col-item:nth-child(odd) {
    padding-left: 10px;
  }

  .quick-channel {
    width: 100%;
  }

  .quick-links {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .quick-link-item {
    width: 100%;
    height: 44px;
    font-size: 11px;
  }

  /* News List */
  .news-list-col .news-item {
    padding: 6px 10px;
  }

  .news-list-col .news-title {
    font-size: 12px;
  }

  .news-list-col .news-date {
    font-size: 10px;
    width: 55px;
  }

  /* Party Banners */
  .party-banners {
    padding: 0 10px;
    gap: 6px;
  }

  .party-banner {
    height: 44px;
    font-size: 12px;
    letter-spacing: 1px;
  }

  /* Red Banner */
  .red-banner {
    height: 40px;
    font-size: 14px;
    letter-spacing: 2px;
    margin: 12px 0;
  }

  /* Law Banner */
  .law-banner {
    height: 44px;
    font-size: 13px;
    letter-spacing: 1px;
    margin: 12px 0;
  }

  /* Awards Marquee */
  .awards-marquee {
    margin: 0 10px;
  }

  .awards-track {
    gap: 8px;
  }

  .award-item {
    width: 110px;
    height: 80px;
  }

  .award-item .award-title {
    font-size: 9px;
    margin-bottom: 3px;
  }

  .award-item .award-badge {
    font-size: 16px;
  }

  /* Partner Links */
  .partner-links {
    gap: 12px;
    padding: 8px 10px;
    justify-content: center;
  }

  .partner-link img {
    height: 22px;
  }

  /* Home Banner */
  .home-banner {
    margin: 8px 10px;
    border-radius: 4px;
  }

  .home-banner img {
    height: 60px;
  }

  /* Party Image List */
  .party-img-list {
    padding: 0 10px;
  }

  .party-img-list img {
    width: 100%;
    height: 90px;
    /* margin-top: 10px; */
  }

  /* Sidebar QR Code */
  .sidebar-qrcode {
    display: none;
  }

  .sidebar-qr-img {
    width: 100px;
    height: 100px;
  }

  .sidebar-qrcode .qr-label {
    font-size: 13px;
  }

  /* Section Title */
  .section-title {
    /* padding: 0 10px 6px; */
  }

  .section-title h2 {
    font-size: 14px;
  }

  .section-title .more-link {
    font-size: 11px;
  }
}
