/* 老河口之友｜单页轻量样式
   仅保留 index.html 实际使用的布局、组件和状态样式。 */

:root {
  color-scheme: light;
  --page-width: 1170px;
  --text: #555;
  --heading: #555;
  --dark: #1f282d;
  --brown: #7b5b42;
  --space-section: 3.3rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-family: sans-serif;
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Raleway", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 2.0286;
}

button,
a { -webkit-tap-highlight-color: transparent; }

a {
  color: #ccc;
  text-decoration: none;
}
a:hover,
a:focus { color: #fff; text-decoration: underline; }

img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; }
p { margin: 0 0 11px; text-indent: 2em; }
h1,h2,h3,h4,h5,h6 {
  margin-top: 22px;
  margin-bottom: 11px;
  color: var(--heading);
  font-family: "Roboto Slab", "Microsoft YaHei", "PingFang SC", serif;
  font-weight: 500;
  line-height: 1.2;
}
h1 { font-size: 62px; }
h2 { font-size: 40px; }
h3 { font-size: 34px; }
h4 { font-size: 26px; }
h5 { font-size: 22px; }
h6 { font-size: 14px; }
h2,h3,h4,h5,h6 { font-family: "Apple LiGothic Medium", "Microsoft YaHei", sans-serif; margin-bottom: 1.1em; }

.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.list-unstyled { margin: 0; padding: 0; list-style: none; }
.img-responsive { display: block; width: 100%; max-width: 100%; height: auto; }
.small-line { display: block; color: #ccc; font-size: 12px; }

/* Bootstrap 栅格：只实现当前页面实际用到的列、容器和偏移 */
.container,
.container-fluid { width: 100%; margin: 0 auto; padding-right: 15px; padding-left: 15px; }
.container { max-width: 100%; }
.row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
[class*="col-"] { position: relative; width: 100%; min-height: 1px; padding-right: 15px; padding-left: 15px; }
.col-xs-2 { width: 16.666667%; }
.col-xs-6 { width: 50%; }
.col-xs-10 { width: 83.333333%; }
.col-xs-offset-3 { margin-left: 25%; }
@media (min-width: 768px) {
  .container { max-width: 750px; }
  .col-sm-6 { width: 50%; }
  .col-md-1 { width: 8.333333%; }
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.333333%; }
  .col-md-5 { width: 41.666667%; }
  .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.333333%; }
  .col-md-8 { width: 66.666667%; }
  .col-md-10 { width: 83.333333%; }
  .col-md-offset-1 { margin-left: 8.333333%; }
  .col-md-offset-2 { margin-left: 16.666667%; }
  .col-md-offset-6 { margin-left: 50%; }
  .col-md-offset-8 { margin-left: 66.666667%; }
}
@media (min-width: 992px) {
  .container { max-width: 970px; }
  .col-lg-2 { width: 16.666667%; }
  .col-lg-4 { width: 33.333333%; }
  .col-lg-12 { width: 100%; }
  .col-lg-offset-1 { margin-left: 8.333333%; }
  .col-lg-offset-2 { margin-left: 16.666667%; }
}
@media (min-width: 1200px) { .container { max-width: var(--page-width); } }

/* 顶部与侧边菜单 */
header .container-fluid {
  padding-top: 36px;
  background: url("../../images/bj.jpg") center / cover no-repeat;
  min-height: clamp(600px, 75svh, 820px);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}


.logo { display: inline-block; padding: 4px; border: 0; background: transparent; }
.logo img { display: block; }
.jumbotron { padding: 30px 15px; background: transparent; text-align: center; }
.jumbotron h1 { color: #fff; }
.jumbotron h2,.jumbotron h3,.jumbotron h4,.jumbotron h5,.jumbotron h6,.jumbotron small,.jumbotron p { color: #fff; }
.jumbotron p { margin-bottom: 5%; }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; background: transparent; cursor: pointer;
}
.hamburger { color: #000; font-size: 2.3em; line-height: 1.3; }
.menu-btn:hover .hamburger,
.menu-btn:focus-visible .hamburger { color: #fff; }

.pushy {
  position: fixed; z-index: 1001; top: 0; bottom: 0; left: 0;
  width: 200px; overflow-y: auto; background: #333332;
  color: #b3b3b1; font-size: .9em; font-weight: 700;
  box-shadow: inset -10px 0 6px -9px rgb(0 0 0 / 70%);
  transform: translateX(-100%);
  transition: transform .22s cubic-bezier(.16,.68,.43,.99);
  -webkit-overflow-scrolling: touch;
}
.pushy a {
  display: block; padding: 15px 30px; color: #b3b3b1;
  border-top: 1px solid rgb(255 255 255 / 10%);
  border-bottom: 1px solid rgb(0 0 0 / 10%);
}
.pushy a:hover,.pushy a:focus { color: #fff; background: #00a9e8; text-decoration: none; }
.pushy-open { transform: translateX(0); }
.site-overlay { display: none; }
.pushy-active .site-overlay {
  display: block; position: fixed; z-index: 1000; inset: 0;
  background: rgb(0 0 0 / 52%);
}
.pushy-active { overflow: hidden; }

/* 内容区 */
.features,.blog,.gallery,.clients,.prefooter .container-fluid {
  padding-top: var(--space-section);
  padding-bottom: 4.2rem;
}
.features { padding-top: 3.3rem; }
.features .row { row-gap: 2rem; }
.features h4 { margin-top: 1.5rem; }
.icon { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; fill: currentColor; }
.icon-feature { width: 4.4em; height: 4.4em; }
.icon-large { width: 2em; height: 2em; }
.number .container-fluid {
  background: url("../../images/bj2.jpg") center / cover no-repeat;
}
.opaline {
  padding-top: 3em; padding-bottom: 3em;
  background: rgb(0 0 10 / 55%);
}
.opaline h1,.opaline h2,.opaline h3,.opaline h4,.opaline h5,.opaline h6,.opaline p { color: #fff; }
.opaline .boxes {
  margin-top: 30px; padding-top: 20px; padding-bottom: 5px;
  border: 1px solid #fff;
}
.stat-number { font-family: "Roboto Slab", Georgia, serif; font-variant-numeric: tabular-nums; }
.story .container-fluid {
  background: url("../../images/bj3.jpg") center / cover no-repeat;
}
.gallery { background: #dedede; }
.prefooter .container-fluid {
  background: linear-gradient(rgb(33 37 43 / 60%),rgb(33 37 43 / 60%)),url("images/111.jpg") center / cover no-repeat;
}
.prefooter h1,.prefooter h2,.prefooter h3,.prefooter h4,.prefooter h5,.prefooter h6,.prefooter p { color: #fff; }

/* 历史沿革表格 */
.table {
  width: 100%; max-width: 100%; margin-bottom: 22px;
  border-collapse: collapse; border-spacing: 0;
}
.table th,.table td { padding: 20px; border: 1px solid #ddd; text-align: left; vertical-align: top; }
.table thead th { color: #fff; background: #282828; border-bottom: 0; text-transform: uppercase; font-weight: 300; }
.table-bg tbody tr:nth-child(odd) > td,
.table-bg tbody tr:nth-child(odd) > th { background: #fff; }
.table-bg tbody tr:nth-child(even) > td,
.table-bg tbody tr:nth-child(even) > th { background: #f6f6f6; }
.td-font2 { color: #000; font-size: 62px; }
.td-font1 { color: #000; font-size: 36px; }
.td-font1 a { color: #fff; }
.td-font1 a:hover { color: #34414a; text-decoration: none; }
.td-font { color: #444; font-size: 28px; }
.tit_font { font-family: "LiSu","STLiti","KaiTi",serif; }

/* 人物介绍 */
.table-top {
  margin: 20px; color: var(--brown); text-align: center;
  font-family: "LiSu","KaiTi",serif; font-size: 60px; font-weight: 700;
}
.table-wrapper { width: 100%; margin: 20px auto; overflow: hidden; color: #fff; border: 1px solid var(--brown); border-radius: 5px; }
.table-header,.table-row { display: flex; }
.table-header { padding: 10px 0; color: #fff; background: var(--brown); }
.header-left,.header-right { padding: 10px; font-family: "LiSu","KaiTi",serif; font-size: 28px; text-align: center; }
.table-header .header-left,.table-row .content-left { flex: 0 0 20%; }
.table-header .header-right,.table-row .content-right { flex: 0 0 80%; }
.header-right,.content-right { border-left: 1px solid var(--brown); }
.table-header .header-right { border-left-color: #fff; }
.table-row { color: var(--brown); border-bottom: 1px solid var(--brown); }
.table-row:last-child { border-bottom: 0; }
.table-row .content-left { padding: 10px; font-size: 18px; text-align: center; }
.table-row .content-right { padding: 10px; font-size: 16px; line-height: 1.8; text-align: left; text-indent: 2ch; }

/* 瀑布流图片墙：CSS Grid + 原生 JS 计算行跨度 */
.masonry {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  grid-auto-rows: 8px; gap: 18px; margin: 2% 0;
}
.masonry .item { min-width: 0; margin: 0; overflow: hidden; }
.masonry .item img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.masonry .item a { display: block; overflow: hidden; cursor: zoom-in; }
.masonry .item a:hover img { transform: scale(1.035); }
.masonry .item-width2 { grid-column: span 2; }
.image-gallery a img { cursor: zoom-in; }

/* 图片区 */
.clients .item { display: flex; flex-wrap: wrap; }
.well-lg { padding: 24px; }
.well-lg img { width: 100%; }

/* 按钮 */
.btn {
  display: inline-block; padding: 10px 16px; border: 1px solid transparent;
  border-radius: 4px; font-size: 14px; line-height: 1.4; text-align: center;
  vertical-align: middle; cursor: pointer;
}
.btn-danger { color: #fff; background: #c9302c; border-color: #ac2925; }
.btn-danger:hover,.btn-danger:focus { color: #fff; background: #ac2925; text-decoration: none; }
.btn-lg { padding: 10px 16px; font-size: 18px; }

/* 页脚与二维码 */
footer { padding: 2em 0 1.2em; background: var(--dark); }
footer h1,footer h2,footer h3,footer h4,footer h5,footer h6,footer p { color: #fff; }
footer h3 a { color: #fff; }
.social { display: flex; justify-content: flex-end; align-items: center; gap: 18px; padding-top: 50px; }
.social a { position: relative; display: inline-flex; align-items: center; color: #fff; }
.weixin { position: relative; }
.weixin img.qrcode {
  position: absolute; z-index: 20; top: -135px; right: -28px;
  width: 12.5rem; max-width: none; height: 12.5rem; padding: 4px;
  border: 5px solid #0085ba; border-radius: 4px; background: #fff;
  opacity: 0; visibility: hidden; transform: scale(.85); transform-origin: bottom right;
  transition: opacity .2s ease,transform .2s ease,visibility .2s;
}
.weixin:hover img.qrcode,.weixin:focus-within img.qrcode {
  opacity: 1; visibility: visible; transform: scale(1);
}

/* 滚动进入效果：无 JS 时内容仍然正常显示 */
body.js-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease,transform .55s ease; }
body.js-ready .reveal.is-visible { opacity: 1; transform: none; }
.reveal[ data-reveal-delay="100ms" ] { transition-delay: .1s; }
.reveal[ data-reveal-delay="300ms" ] { transition-delay: .3s; }
.reveal[ data-reveal-delay="500ms" ] { transition-delay: .5s; }

/* 原生图片弹框 */
.image-lightbox {
  position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center;
  padding: 56px 64px 48px; background: rgb(0 0 0 / 92%);
  opacity: 0; visibility: hidden; transition: opacity .18s ease,visibility .18s;
}
.image-lightbox.is-open { opacity: 1; visibility: visible; }
.image-lightbox img {
  display: block; max-width: min(92vw,1500px); max-height: calc(100vh - 110px);
  width: auto; height: auto; object-fit: contain; box-shadow: 0 8px 36px rgb(0 0 0 / 45%);
}
.lightbox-close,.lightbox-prev,.lightbox-next {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgb(255 255 255 / 12%);
  font: 30px/1 Arial,sans-serif; cursor: pointer;
}
.lightbox-close { top: 16px; right: 18px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 15px; left: 0; width: 100%; color: #ddd; text-align: center; font: 13px/1.4 Arial,sans-serif; }
.lightbox-close:hover,.lightbox-prev:hover,.lightbox-next:hover { background: rgb(255 255 255 / 25%); }

@media (max-width: 767px) {
  body { font-size: 15px; }
  .jumbotron { padding: 22px 8px; }
  .jumbotron h1 { font-size: 42px; }
  h2 { font-size: 30px; }
  h3 { font-size: 26px; }
  .features,.blog,.gallery,.clients,.prefooter .container-fluid { padding-top: 2.5rem; padding-bottom: 2.8rem; }
  .masonry { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .masonry .item-width2 { grid-column: span 2; }
  .table { display: block; overflow-x: auto; white-space: normal; }
  .table th,.table td { min-width: 105px; padding: 10px; }
  .td-font1 { font-size: 24px; }
  .td-font { font-size: 20px; }
  .table-top { font-size: 42px; }
  .header-left,.header-right { font-size: 20px; }
  .table-header .header-left,.table-row .content-left { flex-basis: 28%; }
  .table-header .header-right,.table-row .content-right { flex-basis: 72%; }
  .table-row .content-left { font-size: 16px; }
  .table-row .content-right { font-size: 14px; }
  .social { justify-content: center; padding-top: 15px; }
  .image-lightbox { padding: 52px 12px 42px; }
  .image-lightbox img { max-width: 96vw; max-height: calc(100vh - 100px); }
  .lightbox-prev { left: 5px; }
  .lightbox-next { right: 5px; }
}
@media (max-width: 480px) {
  .masonry { grid-template-columns: 1fr; }
  .masonry .item-width2 { grid-column: span 1; }
  .col-xs-offset-3 { margin-left: 0; }
  .opaline { padding: 2rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  body.js-ready .reveal { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
  header .container-fluid {
    min-height: 72vh;
    min-height: 72svh;
    background-position: 87% center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}
