:root {
  --primary: #bb272e;
  --footer: #e76e5b;
  --footerText: #fffaf7;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --fade-duration: 2s;
  --autoplay-interval: 7s;
  --top-height: 95px;
  --sticky-height: 80px;
  --slide-duration: 0.5s;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Quill 对齐类：用于前台展示后台富文本的对齐效果 */
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

/* ========================================
   轮播图样式
   ======================================== */

/* 轮播容器 */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1920/800;
  min-height: 360px;
  overflow: hidden;
  background: #000;
}

.hero.no-aspect::before {
  content: "";
  display: block;
  width: 100%;
  padding-top: 41.67%;
}

/* 幻灯片容器 */
.slides {
  position: absolute;
  inset: 0;
}

/* 单张幻灯片 */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--fade-duration) ease-in-out;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
}

/* 幻灯片图片 - Ken Burns 效果 */
.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 7s ease-out;
}

.slide.active.animate img {
  transform: scale(1.15);
}

/* 幻灯片遮罩层 */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.15)
  );
  pointer-events: none;
}

/* 轮播导航圆点容器 */
.slide-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 10px;
}

/* 轮播导航圆点 */
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: 2px solid rgba(255, 255, 255, 0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

.dot.active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.2);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

/* 轮播样式 */
.carousel {
  position: relative;
  min-height: 360px;
}

.carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 36%);
  pointer-events: none;
  z-index: 1;
}

/* ========================================
   顶部覆盖头部样式
   ======================================== */

.top-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 10;
  height: var(--top-height);
  color: #fff;
  background: transparent;
}

.top-overlay .inner {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 200px;
  padding-left: 200px;
}

.top-overlay .brand {
  position: absolute;
  left: 200px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo {
  height: 48px;
}

.title {
  font-weight: 600;
  font-size: 18px;
}

.navlinks {
  display: flex;
  gap: 6px;
}

.navlinks a {
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.navlinks a:hover {
  background: rgba(255, 255, 255, 0.18);
  
}

/* ========================================
   吸顶导航样式
   ======================================== */

.sticky-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1000;
  height: var(--sticky-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px) saturate(180%);
  color: #111;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
}

.sticky-header .inner {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 200px;
  padding-left: 200px;
}

.sticky-header .brand {
  position: absolute;
  left: 200px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky-header .logo {
  height: 38px;
  transform: scale(0.9);
}

.sticky-header .navlinks a:hover {
  background: rgba(17, 24, 39, 0.08);
}

.sticky-header.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform var(--slide-duration) ease, opacity var(--slide-duration) ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ========================================
   移动端汉堡菜单
   ======================================== */

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.hamburger span,
.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  height: 2px;
  background: #fff;
  margin: 8px 0;
  transition: 0.25s;
  border-radius: 2px;
}

.sticky-header .hamburger span,
.sticky-header .hamburger::before,
.sticky-header .hamburger::after {
  background: #111;
}

/* ========================================
   抽屉菜单样式
   ======================================== */

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  height: 100vh;
  width: min(78vw, 320px);
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.18);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  z-index: 1100;
  display: flex;
  flex-direction: column;
}

.drawer.show {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.drawer-title {
  font-weight: 600;
}

.drawer-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
  position: relative;
}

.drawer-close::before,
.drawer-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #111;
  border-radius: 2px;
}

.drawer-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.drawer-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.drawer-nav {
  padding: 8px 0;
  overflow: auto;
}

.drawer-nav a {
  display: block;
  padding: 14px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.drawer-nav a:first-child {
  border-top: none;
}

.drawer-nav a.active {
  background: #111;
  color: #fff;
}

.drawer-nav a:hover {
  background: rgba(17, 24, 39, 0.06);
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1090;
}

.backdrop.show {
  opacity: 1;
  pointer-events: auto;
}



/* ========================================
   旧版导航样式（兼容性保留）
   ======================================== */

.site-header {
  display: none;
}

.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 200px;
  max-width: none;
  margin: 0;
  position: relative;
}

.site-header .nav .brand {
  flex: 0 0 auto;
  margin-left: 0;
}

.site-header .nav .navlinks {
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: 0;
}

.site-header .logo {
  height: 56px;
  transition: height 0.25s, transform 0.25s;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .logo-img {
  height: 56px;
}

.site-header .navlinks {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.site-header .navlinks a {
  padding: 8px 5px;
  border-radius: 7px;
}

.site-header .navlinks a:hover,
.site-header .navlinks a.active {
  background: rgba(255, 255, 255, 0.18);
}

.burger {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: transparent;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.site-header.is-sticky,
.site-header.force-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  z-index: 100;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.site-header.is-sticky .logo,
.site-header.force-sticky .logo {
  height: 32px;
}

.site-header.is-top {
  color: #fff;
}

.site-header.is-top .navlinks a {
  color: #fff;
}

.site-header.is-sticky .navlinks a,
.site-header.force-sticky .navlinks a {
  color: #fff;
}

/* ========================================
   面包屑导航
   ======================================== */

.breadcrumb {
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
}

.breadcrumb .container {
  padding: 10px 16px;
  color: #6b7280;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #6b7280;
  text-decoration: underline;
}

/* ========================================
   卡片和网格布局
   ======================================== */



.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.news-card img,
.member-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
}

.news-card,
.member-card {
  transition: transform 0.25s, box-shadow 0.25s;
}

.news-card:hover,
.member-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* 新闻条目点击高亮效果 */
a[href*="news_detail.php"]:hover,
a.news-active {
  background: rgba(187, 39, 46, 0.08) !important;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

/* 商会简介内容样式 */
.intro-content {
  display: block;
  color: inherit;
  padding: 20px 0;
  border-bottom: 1px solid #eeeeee;
  cursor: default;
  padding-left: 20px;
  padding-right: 20px;
  background-color: #fff;
  text-align: left;
}

.intro-content:hover {
  background-color: #fff !important;
}

/* ========================================
   新闻列表样式 (根据提供样法更新)
   ======================================== */

.news-list-container {
  width: 100%;
  max-width: 960px;
  background-color: #ffffff;
  padding: 0;
  border-top: 1px solid #eeeeee;
  flex-wrap: wrap;
  text-align: center;

}

.news-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 20px 0;
  border-bottom: 1px solid #eeeeee;
  transition: background-color 0.3s ease;
  cursor: pointer;
  padding-left: 20px;
  padding-right: 20px;
  overflow-wrap: break-word;

}

.news-item:hover {
  background-color: #f7f7f7;
}

.news-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  
}


.news-meta i {
  margin-right: 5px;
  color: #aaa;
}

.news-meta .fa-newspaper {
  margin-left: 15px;
}

.news-title {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
  font-weight: normal;
  
}

.more-button-container {
  padding: 30px 20px 0;
  text-align: center;
}

.more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border: 1px solid #ccc;
  border-radius: 30px;
  text-decoration: none;
  color: #666;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #fff;
  width: 30vw;
  padding: 12px 0;
}

.more-button:hover {
  background-color: #d61f15;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.more-button i {
  margin-left: 10px;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.more-button:hover i {
  transform: translateX(3px);
}

/* 会员卡片点击高亮效果 */
.member-active,
.member-card:hover:not(.member-active) {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* ========================================
   页脚样式
   ======================================== */

.footer-map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 0;
}

.footer {
  background: #000;
  color: #fff;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  font-size: 1rem;
  line-height: 2;
  /* 底部导航文字调整为中文 */
}

.footer a {
  color: #ffffffcc;
  text-decoration: underline;
}

.footer a:hover {
  color: #fff;
}

/* ========================================
   按钮和表单
   ======================================== */

.pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 18px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn.danger {
  background: #d23c3c;
  color: #fff;
  border-color: #d23c3c;
}

.btn:hover {
  filter: brightness(0.98);
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.input,
.textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.input:focus,
.textarea:focus,
select:focus {
  outline: none;
  background: #fff7f7;
  border-color: #f2b3a8;
  box-shadow: 0 0 0 4px rgba(231, 110, 91, 0.18);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 4px 0 10px;
}

/* ========================================
   Hero 标题动画
   ======================================== */

.hero-title {
  position: absolute;
  left: 150px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 32px;
  font-weight: 800;
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid rgba(255, 255, 255, 0.8);
  animation: typing 2.8s steps(28, end), blink 0.7s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* ========================================
   表格样式
   ======================================== */

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.table th,
.table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  background: #f9fafb;
  font-weight: 600;
}

.table tr:hover {
  background: #fafafa;
}

/* ========================================
   移动端适配
   ======================================== */

@media (max-width: 820px) {
  /* 轮播图移动端适配 */
  .hero {
    min-height: 42vh;
  }

  .slide-dots {
    bottom: 12px;
    gap: 8px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  /* 网格布局 */
  .grid-3 {
    grid-template-columns: 1fr;
  }

  /* 表格 */
  .table {
    font-size: 0.85rem;
  }

  .table th,
  .table td {
    padding: 6px;
  }

  /* 顶部覆盖头部：改为 汉堡(左) | logo(中) | 空白(右) */
  .top-overlay .inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 2px;
  }

  .top-overlay .brand {
    position: static;
    grid-column: 2;
    justify-self: center;
  }

  .top-overlay .navlinks {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hamburger-wrap {
    grid-column: 1;
    justify-self: start;
  }

  /* 吸顶头部：改为 汉堡(左) | logo(中) | 空白(右) */
  :root {
    --sticky-height: 43px;
  }

  .sticky-header .logo {
    height: 33px;
  }

  .sticky-header .inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 12px;
  }

  .sticky-header .brand {
    position: static;
    grid-column: 2;
    justify-self: center;
  }

  .sticky-header .navlinks {
    display: none;
  }

  /* 旧版导航移动端适配 */
  .site-header .nav {
    padding: 12px 16px;
  }

  .site-header .nav .brand {
    margin-left: 0;
  }

  .site-header .nav .navlinks {
    margin-right: 0;
  }

  .burger {
    display: block;
  }

  .site-header .navlinks {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 64px;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    flex-direction: column;
    padding: 10px;
  }

  .site-header .navlinks.open {
    display: flex;
  }

  .site-header .navlinks a:hover,
  .site-header .navlinks a.active {
    background: rgba(187, 39, 46, 0.1);
  }

  .site-header.is-top .burger {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
  }

  .carousel {
    min-height: 42vh;
  }

  /* 移动端图片比例保持2.4:1 */
 
}
        /* ============================
           nav_sub_title 组件样式
        ============================ */
        .nav-sub-title {
            margin-bottom: 20px;
            width: 100%;
            align-self: flex-start;
        }

        .nav-sub-title__text {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 6px;
            color: #222;
        }

        /* 双色线：左边黑色、右边浅灰 */
        .nav-sub-title__line {
            width: 100%;
            height: 1px;
            background: linear-gradient(
                to right,
                #222 0,
                #222 120px,   /* 左边黑线长度 */
                #ddd 120px,
                #ddd 100%
            );
        }

        /* 可选：不同尺寸变体 */
        .nav-sub-title--large .nav-sub-title__text {
            font-size: 32px;
        }

        .nav-sub-title--small .nav-sub-title__text {
            font-size: 18px;
        }

        /* 可选：不同颜色主题 */
        .nav-sub-title--blue .nav-sub-title__text {
            color: #171f76;
        }

        .nav-sub-title--blue .nav-sub-title__line {
            background: linear-gradient(
                to right,
                #171f76 0,
                #171f76 120px,
                #ddd 120px,
                #ddd 100%
            );
        }

        .nav-sub-title--red .nav-sub-title__text {
            color: #e60012;
        }

        .nav-sub-title--red .nav-sub-title__line {
            background: linear-gradient(
                to right,
                #e60012 0,
                #e60012 120px,
                #ddd 120px,
                #ddd 100%
            );
        }
		
		.title_nav_date_block_item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

/* 左侧日期区域 */
.title_nav_date_block_date {
    text-align: center;
    color: #777;
    font-size: 13px;
    padding-right: 15px;
    border-right: 1px solid #ddd;
    white-space: nowrap;
}

.title_nav_date_block_year {
    font-size: 12px;
    color: #999;
}

.title_nav_date_block_day {
    font-size: 26px;
    font-weight: 600;
    margin-top: -3px;
    color: #777;
}

/* 标题 */
.title_nav_date_block_title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    letter-spacing: 1.1px;
    line-height: 1.5;
}

/* 标签 + 时间 */
.title_nav_date_block_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #999;
    font-size: 13px;
}

.title_nav_date_block_tag {
    background: #000;
    color: #fff;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 11px;
    white-space: nowrap;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title_nav_date_block_meta i {
    font-style: normal;
}

/* 手机端优化 */
@media (max-width: 480px) {
    .title_nav_date_block_item {
        gap: 12px;
    }
    .title_nav_date_block_title {
        font-size: 18px;
        line-height: 1.4;
    }
}
