/* =====================================================
   tcbhy.com 前台样式
   复刻旧站 greatwall 视觉：浅灰底 + 白色投影卡片 +
   蓝橙双色模块标题条 + 深蓝渐变导航 + 深色页脚
   现代响应式重写（手机端自适应），无第三方框架依赖
   ===================================================== */

:root {
  --blue: #255486;
  --blue-2: #266587;
  --title-blue: #114f90;
  --orange: #f06522;
  --red: #d30000;
  --bg: #f4f4f4;
  --text: #404040;
  --muted: #888;
  --line: #e5e5e5;
  --card-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 14px/1.7 "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; border: 0; vertical-align: middle; }
a { color: #0088cc; text-decoration: none; transition: color .15s; }
a:hover { color: var(--orange); }
ul, ol, dl, dd { list-style: none; }
em, i { font-style: normal; }
time { color: var(--muted); }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: -10px; }
.col-3 { flex: 0 0 25%; max-width: 25%; padding: 10px; }
.col-4 { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 10px; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 10px; }
.col-9 { flex: 0 0 75%; max-width: 75%; padding: 10px; }

/* ── 卡片与模块标题条 ── */
.card {
  background: #fff;
  box-shadow: var(--card-shadow);
  padding: 18px;
  margin-bottom: 20px;
}
.mod-title {
  display: flex; align-items: baseline; justify-content: space-between;
  background: linear-gradient(#f8f8f8, #f2f2f2);
  border-top: 5px solid var(--blue);
  padding: 8px 14px;
  margin: -18px -18px 15px;
}
.mod-title.mod-orange { border-top-color: var(--orange); }
.mod-title h2, .mod-title h3 {
  font-size: 17px; color: var(--title-blue); font-weight: bold; letter-spacing: 1px;
}
.mod-title h2 span, .mod-title h3 span {
  font-size: 12px; color: var(--orange); font-weight: normal; font-style: italic;
  margin-left: 10px; letter-spacing: 0;
}
.empty { color: var(--muted); text-align: center; padding: 30px 0; }
.sec-label {
  font-size: 15px; color: var(--title-blue); font-weight: bold;
  border-left: 4px solid var(--blue); padding-left: 10px; margin: 0 0 12px;
}
.sec-label span { font-size: 12px; color: var(--orange); font-style: italic; font-weight: normal; margin-left: 8px; }

.logo-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.logo img { max-height: 74px; }
.search-form { display: flex; }
.search-form input {
  width: 240px; height: 36px; border: 1px solid #d5dce4; border-right: 0; padding: 0 12px;
  font-size: 13px; outline: none;
}
.search-form input:focus { border-color: var(--blue-2); }
.search-form button {
  height: 36px; padding: 0 20px; border: 0; color: #fff; font-size: 14px;
  background: linear-gradient(var(--blue-2), var(--blue));
}
.search-form button:hover { background: var(--orange); }

.mainnav { background: linear-gradient(var(--blue-2), var(--blue)); box-shadow: 0 2px 4px rgba(0,0,0,.18); }
.nav-toggle { display: none; }
.nav-list { display: flex; flex-wrap: wrap; }
.nav-list a {
  display: block; padding: 0 22px; line-height: 44px; color: #fff; font-size: 15px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
}
.nav-list a:hover, .nav-list a.active { background: #343c46; color: #00b6ff; }

/* ── 面包屑 ── */
.breadcrumb {
  padding: 14px 2px; color: var(--muted); font-size: 13px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb em { color: var(--title-blue); }

/* ── 轮播图 ── */
.carousel { position: relative; overflow: hidden; background: #22303c; margin-bottom: 20px; }
.car-track { position: relative; height: 420px; }
.car-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s; display: block;
}
.car-slide.on { opacity: 1; z-index: 1; }
.car-slide img { width: 100%; height: 100%; object-fit: cover; }
.car-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
  padding: 40px 6% 16px; color: #fff;
}
.car-cap h4 { font-size: 20px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.car-dots {
  position: absolute; z-index: 2; bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
}
.car-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .45);
}
.car-dots button.on { background: var(--orange); }
.car-arrow {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
  width: 44px; height: 64px; line-height: 60px; text-align: center;
  color: #fff; font-size: 42px; font-family: Georgia, serif;
  background: rgba(0, 0, 0, .22); opacity: 0; transition: opacity .25s;
}
.carousel:hover .car-arrow { opacity: 1; }
.car-arrow:hover { background: rgba(0, 0, 0, .45); color: #fff; }
.car-prev { left: 0; border-radius: 0 4px 4px 0; }
.car-next { right: 0; border-radius: 4px 0 0 4px; }

/* ── 产品卡片网格 ── */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.prod-grid-page { grid-template-columns: repeat(3, 1fr); }
.prod-grid a { display: block; }
.prod-thumb {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; background: #eef1f4;
}
.prod-thumb img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .35s;
}
.prod-grid a:hover .prod-thumb img { transform: scale(1.06); }
.prod-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(17, 46, 74, .78); color: #fff; font-size: 13px;
  padding: 5px 8px; text-align: center;
  opacity: 0; transition: opacity .25s;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.prod-grid a:hover .prod-name, .home-products .prod-name { opacity: 1; }
.no-img {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: #b6bfc8; font-size: 14px; background: #eef1f4;
}
.no-img.big { font-size: 16px; min-height: 300px; }
.prod-grid-page h3 {
  font-size: 15px; color: var(--title-blue); margin: 10px 0 4px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.prod-grid-page a:hover h3 { color: var(--orange); }
.pg-sum { color: var(--muted); font-size: 12px; line-height: 1.6; height: 38px; overflow: hidden; }
.pg-meta { display: block; font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.btn-detail {
  display: inline-block; font-size: 12px; color: #fff;
  background: var(--blue-2); padding: 3px 12px; border-radius: 3px;
}
.prod-grid-page a:hover .btn-detail { background: var(--orange); }

/* ── 生产实况照片墙 ── */
.photo-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.photo-strip img { height: 200px; width: auto; flex: 0 0 auto; border-radius: 3px; }
.photo-strip a { flex: 0 0 auto; }

/* ── 技术优势/支持 Tab ── */
.tab-nav { border-bottom: 2px solid var(--blue); margin: -6px 0 14px; display: flex; gap: 6px; }
.tab-nav button {
  border: 0; background: #eef1f4; color: #567; font-size: 15px;
  padding: 9px 26px; border-radius: 4px 4px 0 0;
}
.tab-nav button.on { background: var(--blue); color: #fff; }
.tab-pane { display: none; }
.tab-pane.on { display: block; }
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.feat-list li { display: flex; align-items: flex-start; gap: 12px; }
.feat-img { flex: 0 0 84px; }
.feat-img img {
  width: 84px; height: 84px; object-fit: cover; border-radius: 50%;
  border: 3px solid #e8edf2;
}
.feat-list dt { font-size: 15px; font-weight: bold; margin-bottom: 4px; }
.feat-list dt a { color: var(--title-blue); }
.feat-list dt a:hover { color: var(--orange); }
.feat-list dd { color: #667; font-size: 13px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── FAQ / 关于 / 动态 ── */
.faq-list dt { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dotted #ddd; }
.faq-list dd { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0 10px; border-bottom: 1px dotted #ddd; color: #667; font-size: 13px; }
.q, .a {
  flex: 0 0 20px; width: 20px; height: 20px; line-height: 20px; border-radius: 3px;
  color: #fff; text-align: center; font-size: 12px;
}
.q { background: linear-gradient(#4dd6fb, #0493c9); }
.a { background: linear-gradient(#aab4bd, #7e8891); }
.faq-list dt a {
  color: var(--title-blue); font-weight: bold;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.faq-list dt a:hover { color: var(--orange); }
.faq-list dd { -webkit-line-clamp: 2; }

.about-box { text-align: center; }
.about-img { border-radius: 3px; margin-bottom: 12px; }
.about-text { text-align: left; text-indent: 2em; color: #556; font-size: 13px; }
.about-more { display: inline-block; margin-top: 8px; font-size: 13px; }

.news-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px dotted #ddd;
}
.news-list li::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; background: var(--blue-2); border-radius: 1px; }
.news-list a {
  flex: 1; color: #445; font-size: 13px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.news-list a:hover { color: var(--orange); }
.news-list time { flex: 0 0 auto; font-size: 12px; }

/* ── 内页侧栏 ── */
.side .side-mod { background: #fff; box-shadow: var(--card-shadow); padding: 0 0 14px; margin-bottom: 20px; }
.side .mod-title { margin: 0 0 10px; }
.side-cats li { border-bottom: 1px dotted #e2e6ea; margin: 0 14px; }
.side-cats li:last-child { border-bottom: 0; }
.side-cats a {
  display: block; padding: 9px 4px; color: #445; font-size: 14px;
}
.side-cats a:hover { color: var(--orange); padding-left: 10px; }
.side-cats-box ul.side-cats { margin-top: -6px; }
.side-contact { padding: 4px 16px 0; }
.side-contact li { font-size: 13px; color: #556; padding: 4px 0; line-height: 1.6; }
.side-contact strong { color: var(--title-blue); }
.btn-msg {
  display: block; margin: 14px 16px 0; text-align: center;
  background: linear-gradient(var(--blue-2), var(--blue)); color: #fff !important;
  padding: 9px 0; border-radius: 3px; font-size: 14px;
}
.btn-msg:hover { background: var(--orange); }

/* ── 文章列表 ── */
.article-list .list-item { border-bottom: 1px dashed #d9d9d9; padding: 16px 0; }
.article-list .list-item:first-child { padding-top: 0; }
.list-item h3 { font-size: 17px; margin-bottom: 6px; }
.list-item h3 a { color: var(--title-blue); }
.list-item h3 a:hover { color: var(--orange); }
.meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.li-body { display: flex; gap: 14px; align-items: flex-start; }
.li-body p { flex: 1; color: #667; font-size: 13px; }
.li-thumb { flex: 0 0 150px; }
.li-thumb img { width: 150px; height: 100px; object-fit: cover; border-radius: 3px; }
.more { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--blue-2); }
.more:hover { color: var(--orange); }

/* ── 详情页 ── */
.detail-title { font-size: 23px; color: #333; line-height: 1.45; margin-bottom: 10px; }
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px;
}
.detail-content { font-size: 15px; line-height: 2; color: #333; overflow-wrap: break-word; }
.detail-content p { margin-bottom: 12px; text-indent: 2em; }
.detail-content img { max-width: 100%; height: auto; border-radius: 3px; }
.detail-thumb { text-align: center; }
.detail-thumb img { max-width: 60%; }
.pn-box { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; font-size: 13px; }
.pn-box p { margin-bottom: 6px; }
.pn-box strong { color: var(--title-blue); }
.pn-lists { margin-top: 0; }
.plain-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px dotted #e3e3e3; font-size: 13px;
}
.plain-list li::before { content: ""; flex: 0 0 5px; width: 5px; height: 5px; background: var(--blue-2); border-radius: 1px; }
.plain-list a { flex: 1; color: #445; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.plain-list a:hover { color: var(--orange); }
.plain-list time { font-size: 12px; }

/* ── 产品详情 ── */
.prod-detail-top { display: flex; gap: 22px; margin-bottom: 18px; flex-wrap: wrap; }
.pd-img { flex: 0 0 340px; max-width: 100%; }
.pd-img img { width: 100%; border: 1px solid var(--line); border-radius: 3px; }
.pd-info { flex: 1; min-width: 260px; }
.pd-info h2 { font-size: 21px; color: var(--title-blue); margin-bottom: 10px; }
.attr-list { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.attr-list li { display: flex; border-bottom: 1px solid var(--line); font-size: 13px; }
.attr-list li:last-child { border-bottom: 0; }
.attr-k {
  flex: 0 0 96px; background: #f5f8fb; color: var(--title-blue);
  font-weight: bold; padding: 7px 10px;
}
.attr-list li { line-height: 1.7; }
.attr-list li > :last-child { padding: 7px 10px; color: #556; }
.pd-note { font-size: 13px; color: #667; background: #f8fafc; border: 1px dashed #d8e0e8; padding: 9px 12px; border-radius: 3px; }
.pd-note a { color: var(--orange); }
.prod-content .sec-label { margin-bottom: 14px; }

/* ── 分页 ── */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 22px 0 4px; }
.pagination a, .pagination span {
  padding: 5px 12px; border: 1px solid #d8dee5; border-radius: 3px;
  font-size: 13px; color: #456; background: #fff;
}
.pagination a:hover { border-color: var(--blue-2); color: var(--blue-2); }
.pagination .pg-cur { background: var(--blue-2); border-color: var(--blue-2); color: #fff; }
.pagination .pg-dis { color: #b6bfc8; background: #f6f8fa; }
.pg-info { border: 0 !important; background: none !important; color: var(--muted) !important; }

/* ── 搜索页 ── */
.search-inline { display: flex; gap: 8px; margin-bottom: 16px; }
.search-inline input { flex: 0 0 300px; max-width: 100%; height: 36px; border: 1px solid #d5dce4; padding: 0 12px; outline: none; }
.search-inline input:focus { border-color: var(--blue-2); }
.search-inline button { height: 36px; padding: 0 18px; border: 0; color: #fff; background: linear-gradient(var(--blue-2), var(--blue)); border-radius: 3px; }
.search-sum { color: #667; margin-bottom: 14px; }
.search-sum strong { color: var(--orange); }

/* ── 留言页 ── */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.cc { background: #f8fafc; border: 1px solid #e6ecf2; border-radius: 4px; padding: 12px 14px; }
.cc h4 { font-size: 14px; color: var(--title-blue); border-left: 3px solid var(--orange); padding-left: 8px; margin-bottom: 6px; }
.cc p { font-size: 13px; color: #667; line-height: 1.9; }
.map-line { font-size: 13px; color: #667; margin-bottom: 16px; }
.map-line a { color: var(--blue-2); font-weight: bold; }
.alert { padding: 10px 14px; border-radius: 3px; margin-bottom: 14px; font-size: 13px; }
.alert-ok { background: #eef9f0; border: 1px solid #bfe6c8; color: #2e7d43; }
.alert-err { background: #fdf2f0; border: 1px solid #f2cfc8; color: #c0392b; }
.msg-form { max-width: 640px; }
.frow { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.frow label { flex: 0 0 88px; text-align: right; color: #456; font-size: 14px; padding-top: 8px; }
.frow label i { color: var(--red); font-style: normal; }
.frow input[type="text"], .frow textarea {
  flex: 1; border: 1px solid #d5dce4; border-radius: 3px; padding: 8px 10px;
  font-size: 14px; font-family: inherit; outline: none; resize: vertical;
}
.frow input:focus, .frow textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 2px rgba(38, 101, 135, .12); }
.cap-row { display: flex; gap: 10px; align-items: center; flex: 1; }
.cap-row input { flex: 0 0 140px; }
.cap-img { height: 40px; cursor: pointer; border-radius: 3px; border: 1px solid var(--line); }
.frow-btn { padding-left: 100px; }
.btn-primary {
  display: inline-block; border: 0; color: #fff; font-size: 15px;
  background: linear-gradient(var(--blue-2), var(--blue));
  padding: 10px 34px; border-radius: 3px; text-decoration: none;
}
.btn-primary:hover { background: var(--orange); }
.hp-field { position: absolute !important; left: -9999px; height: 0; width: 0; opacity: 0; }

/* ── 友情链接条 ── */
.foot-links {
  background: #636363; color: #fff; border-radius: 3px;
  padding: 10px 14px; font-size: 13px; margin-bottom: 20px;
}
.foot-links .fl-title { font-weight: bold; margin-right: 6px; }
.foot-links a { color: #e8e8e8; margin-right: 14px; line-height: 2; }
.foot-links a:hover { color: #ffd200; }

/* ── 404 ── */
.notfound { text-align: center; padding: 70px 20px; }
.notfound h2 { font-size: 34px; color: var(--title-blue); margin-bottom: 14px; }
.notfound p { color: var(--muted); margin-bottom: 8px; }
.nf-actions { margin-top: 20px; display: flex; gap: 16px; justify-content: center; align-items: center; }
.nf-actions a { color: var(--blue-2); }

/* ── 页脚 ── */
.site-footer { background: #2a2a2a; color: #747474; margin-top: 10px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 20px; padding: 30px 15px; }
.f-col h4 { color: #52a7ea; font-size: 14px; margin-bottom: 10px; }
.f-qr { flex: 0 0 150px; text-align: center; }
.f-qr img { width: 120px; border: 4px solid #424242; border-radius: 3px; }
.f-contact { flex: 1; min-width: 280px; }
.f-nav { flex: 0 0 200px; }
.f-col ul li { padding: 3px 0; font-size: 13px; }
.f-nav a { color: #747474; }
.f-nav a:hover { color: #fff; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 16px; }
.badges img { height: 42px; opacity: .85; }
.copyright { border-top: 1px solid #3a3a3a; padding: 14px 0; font-size: 12px; text-align: center; }
.copyright a { color: #747474; }
.copyright a:hover { color: #fff; }

/* ── 响应式 ── */
@media (max-width: 991px) {
  .col-3, .col-4, .col-9 { flex: 0 0 50%; max-width: 50%; }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .car-track { height: 300px; }
  .feat-list { grid-template-columns: 1fr; }
  .logo-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 767px) {
  .col-3, .col-4, .col-6, .col-9 { flex: 0 0 100%; max-width: 100%; }
  .nav-toggle {
    display: block; width: 100%; background: none; border: 0; color: #fff;
    font-size: 15px; line-height: 44px; text-align: left;
  }
  .nav-list { display: none; padding-bottom: 8px; }
  .nav-list.open { display: block; }
  .nav-list a { padding: 0 16px; line-height: 40px; }
  .car-track { height: 190px; }
  .car-arrow { display: none; }
  .prod-grid, .prod-grid-page { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .contact-cards { grid-template-columns: 1fr; }
  .li-body { flex-direction: column-reverse; }
  .li-thumb { flex: 0 0 auto; }
  .li-thumb img { width: 100%; height: 150px; }
  .search-form input { width: 100%; flex: 1; }
  .search-form { width: 100%; }
  .prod-detail-top { flex-direction: column; }
  .pd-img { flex: 0 0 auto; }
  .frow { flex-direction: column; gap: 4px; }
  .frow label { text-align: left; padding-top: 0; }
  .frow-btn { padding-left: 0; }
  .frow-btn button { width: 100%; }
  .footer-cols { flex-direction: column; }
  .f-qr { text-align: left; }
}
