/* ============================================
  子页面样式 — 关于/作品集/新闻/服务/联系
  配合 modern-style.css 使用
============================================ */

/* ===== 关于我们 — company profile ===== */
.about-page { background: var(--light); padding-top: var(--header-h); }
.profile {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px;
  align-items: center;
  padding: 80px 0 90px;
}
.profile-text .pt-label { font-size: 15px; color: var(--text-gray); letter-spacing: 2px; margin-bottom: 18px; }
.profile-text h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: var(--black); margin-bottom: 30px; letter-spacing: -0.5px; }
.profile-text p { font-size: 15px; line-height: 2; color: var(--text-gray); margin-bottom: 18px; }
.profile-img {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3.4;
  background: #ddd;
}
.profile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.profile-img:hover img { transform: scale(1.05); }

.about-stats { padding: 0 0 100px; }
.about-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.about-stat .as-num { font-size: clamp(40px, 4.5vw, 56px); font-weight: 800; color: var(--black); line-height: 1; margin-bottom: 14px; }
.about-stat .as-name { font-size: 16px; font-weight: 600; color: var(--text-gray); }

/* ===== 作品集/案例 ===== */
.case-page { background: var(--light); padding-top: var(--header-h); }
.case-filter { display: flex; flex-wrap: wrap; gap: 16px; padding: 60px 0 50px; }
.case-filter a {
  padding: 11px 28px; font-size: 15px; font-weight: 500;
  color: var(--text-gray); border: 1px solid transparent;
  transition: var(--transition); cursor: pointer;
}
.case-filter a.active, .case-filter a:hover { background: var(--orange); color: var(--white); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 30px; padding-bottom: 100px; }
.case-card { cursor: pointer; }
.case-card.hide { display: none; }
.case-card .cc-thumb {
  aspect-ratio: 1 / 0.92; overflow: hidden;
  background: linear-gradient(135deg, #e4e4e4, #d6d6d6);
  margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
}
.case-card .cc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.case-card:hover .cc-thumb img { transform: scale(1.06); }
.case-card .cc-meta { font-size: 13px; color: var(--text-gray); margin-bottom: 10px; }
.case-card .cc-title { font-size: 21px; font-weight: 700; color: var(--black); margin-bottom: 14px; }
.case-card:hover .cc-title { color: var(--orange); }
.case-card .cc-more { font-size: 14px; color: var(--text-gray); display: inline-flex; align-items: center; gap: 6px; }
.case-card:hover .cc-more { color: var(--orange); }

/* ===== 案例弹窗 ===== */
.case-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(4px);
  animation: cm-fadein .25s vars(--ease);
}
.case-modal-overlay.open { display: flex; }
@keyframes cm-fadein { from { opacity: 0; } to { opacity: 1; } }
.case-modal {
  background: var(--white);
  width: 100%;
  max-width: 780px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: cm-slidein .35s var(--ease);
}
@keyframes cm-slidein { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.case-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--black); color: var(--white);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; z-index: 2; transition: var(--transition);
}
.case-modal-close:hover { background: var(--orange); }
.case-modal-body { padding: 48px 48px 36px; }
.case-modal-title { font-size: 24px; font-weight: 700; color: var(--black); margin-bottom: 8px; }
.case-modal-cate { font-size: 13px; color: var(--orange); font-weight: 500; margin-bottom: 24px; }
.case-modal-content { font-size: 15px; line-height: 1.9; color: #555; margin-bottom: 28px; }
.case-modal-images { display: flex; flex-wrap: wrap; gap: 16px; }
.case-modal-images img {
  width: calc(50% - 8px); height: auto; border-radius: 4px;
  cursor: pointer; transition: transform .3s vars(--ease);
}
.case-modal-images img:hover { transform: scale(1.02); }
.case-modal .cm-website {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; padding: 12px 28px;
  background: var(--orange); color: var(--white);
  font-size: 14px; font-weight: 600; transition: var(--transition);
}
.case-modal .cm-website:hover { background: var(--orange-hover); }

@media (max-width: 768px) {
  .case-modal-overlay { padding: 16px; }
  .case-modal-body { padding: 32px 24px; }
  .case-modal-images img { width: 100%; }
}

/* ===== 新闻 ===== */
.newspage { background: var(--light); }

/* 深色标题区 — 呼应首页新闻区块 */
.news-hero {
  background: var(--black); color: var(--white);
  padding: calc(var(--header-h) + 60px) 0 60px;
  text-align: center;
}
.news-hero .sec-label { color: var(--orange); }
.news-hero h1 { font-size: clamp(32px, 4vw, 50px); font-weight: 800; color: var(--white); margin-bottom: 18px; letter-spacing: -0.5px; }
.news-hero p { font-size: 15px; color: var(--text-muted-dark); max-width: 560px; margin: 0 auto 36px; line-height: 1.8; }
.news-hero .news-tabs { display: inline-flex; gap: 12px; }
.news-hero .news-tabs a {
  padding: 11px 30px; font-size: 15px; font-weight: 500;
  color: var(--text-gray-light); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px; transition: var(--transition);
}
.news-hero .news-tabs a.active, .news-hero .news-tabs a:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

/* 新闻卡片网格（带封面图） */
.news-grid-sec { padding: 70px 0 100px; }
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.nc {
  background: var(--white); overflow: hidden;
  border: 1px solid var(--border-light);
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.nc:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(0,0,0,0.1); border-color: transparent; }
.nc-img { height: 210px; overflow: hidden; position: relative; background: #e0e0e0; }
.nc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.nc:hover .nc-img img { transform: scale(1.07); }
.nc-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--orange); color: var(--white);
  font-size: 12px; font-weight: 600; padding: 6px 14px;
}
.nc-body { padding: 26px 28px; display: flex; flex-direction: column; flex: 1; }
.nc-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-gray); margin-bottom: 14px; }
.nc-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.nc-title {
  font-size: 18px; font-weight: 700; color: var(--black); line-height: 1.5; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nc:hover .nc-title { color: var(--orange); }
.nc-desc {
  font-size: 14px; line-height: 1.8; color: var(--text-gray);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 22px;
}
.nc-more { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--black); display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); }
.nc:hover .nc-more { color: var(--orange); gap: 12px; }
.news-empty { text-align: center; padding: 80px 0; color: var(--text-gray); font-size: 16px; }

/* ===== 新闻详情 info ===== */
.article-page { background: var(--light); }
.article-hero {
  background: var(--black); color: var(--white);
  padding: calc(var(--header-h) + 56px) 0 56px;
}
.article-hero .ah-crumb { font-size: 13px; color: var(--text-gray-light); margin-bottom: 22px; }
.article-hero .ah-crumb a { color: var(--text-gray-light); }
.article-hero .ah-crumb a:hover { color: var(--orange); }
.article-hero .ah-cate { display: inline-block; background: var(--orange); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 16px; margin-bottom: 22px; }
.article-hero h1 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; line-height: 1.35; color: #fff; max-width: 900px; letter-spacing: -0.5px; }
.article-hero .ah-meta { display: flex; align-items: center; gap: 20px; margin-top: 26px; font-size: 14px; color: var(--text-gray-light); }
.article-hero .ah-meta span { display: inline-flex; align-items: center; gap: 7px; }

.article-body { padding: 70px 0 90px; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start; }
.article-main { background: var(--white); padding: 50px 56px; }
.article-content { font-size: 16px; line-height: 2; color: #444; }
.article-content p { margin-bottom: 22px; }
.article-content strong { color: var(--black); font-weight: 700; }
.article-content img { width: 100%; height: auto; margin: 26px 0; border-radius: 4px; display: block; }

/* 上一篇/下一篇 */
.article-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border-light); }
.article-nav a { flex: 1; min-width: 0; font-size: 14px; transition: var(--transition); }
.article-nav a .an-label { font-size: 12px; color: var(--text-gray); margin-bottom: 6px; }
.article-nav a .an-title { font-size: 15px; font-weight: 600; color: var(--black); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-nav a:hover .an-title { color: var(--orange); }
.article-nav a.next { text-align: right; }
.article-nav a.disabled { opacity: .4; pointer-events: none; }

/* 侧栏 */
.article-side .side-box { background: var(--white); padding: 32px 30px; margin-bottom: 24px; }
.article-side .side-title { font-size: 18px; font-weight: 700; color: var(--black); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--orange); display: inline-block; }
.side-news { display: flex; flex-direction: column; gap: 18px; }
.side-news a { display: flex; gap: 14px; align-items: flex-start; }
.side-news a .sn-thumb { width: 78px; height: 58px; flex-shrink: 0; overflow: hidden; background: #e5e5e5; }
.side-news a .sn-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.side-news a:hover .sn-thumb img { transform: scale(1.08); }
.side-news a .sn-info { min-width: 0; }
.side-news a .sn-title { font-size: 14px; font-weight: 500; color: var(--black); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-news a:hover .sn-title { color: var(--orange); }
.side-news a .sn-date { font-size: 12px; color: var(--text-gray); margin-top: 6px; }
.side-cta { background: var(--black); color: #fff; padding: 36px 30px; text-align: center; }
.side-cta h4 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.side-cta p { font-size: 13px; color: var(--text-gray-light); margin-bottom: 22px; }
.side-cta .btn-orange { width: 100%; }

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .article-main { padding: 32px 24px; }
  .article-content { font-size: 15px; }
  .article-nav { flex-direction: column; }
  .article-nav a.next { text-align: left; }
}

/* ===== 服务 ===== */
.server-page { background: var(--light); padding-top: var(--header-h); }
.server-list { padding: 70px 0 100px; display: flex; flex-direction: column; gap: 30px; }
.server-row {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 36px; align-items: center;
  background: var(--white); padding: 44px 48px; border: 1px solid var(--border-light);
  transition: var(--transition);
}
.server-row:hover { background: var(--black); transform: translateX(8px); }
.server-row .sr-icon {
  width: 80px; height: 80px; flex-shrink: 0;
  background: var(--orange); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 34px;
}
.server-row .sr-body h3 { font-size: 24px; font-weight: 700; color: var(--black); margin-bottom: 12px; transition: var(--transition); }
.server-row .sr-body p { font-size: 15px; line-height: 1.8; color: var(--text-gray); max-width: 620px; transition: var(--transition); white-space: pre-line; }
.server-row:hover .sr-body h3 { color: var(--white); }
.server-row:hover .sr-body p { color: var(--text-gray-light); }
.server-row .sr-arrow {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center; color: var(--black); transition: var(--transition); flex-shrink: 0;
}
.server-row:hover .sr-arrow { background: var(--orange); border-color: var(--orange); color: var(--white); transform: rotate(-45deg); }

/* ===== 联系 ===== */
.contact-page { background: var(--light); padding-top: var(--header-h); }
.contact-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; padding: 70px 0 100px; }
.contact-map { overflow: hidden; background: #e0e0e0; min-height: 480px; position: relative; }
.contact-map #map { width: 100%; height: 100%; min-height: 480px; z-index: 1; }
.contact-map img { width: 100%; height: 100%; object-fit: cover; }
.contact-info { background: var(--white); padding: 50px 50px; display: flex; flex-direction: column; justify-content: center; }
.contact-info h2 { font-size: 26px; font-weight: 800; color: var(--black); margin-bottom: 28px; }
.contact-info .ci-row { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border-light); }
.contact-info .ci-row:last-child { border-bottom: none; }
.contact-info .ci-icon {
  width: 46px; height: 46px; flex-shrink: 0; background: var(--orange); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.contact-info .ci-icon svg { width: 20px; height: 20px; }
.contact-info .ci-detail { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-info .ci-label { font-size: 13px; color: var(--text-gray); }
.contact-info .ci-text { font-size: 16px; color: var(--black); font-weight: 600; }

/* Leaflet 公司定位标记 */
.company-marker { background: none; border: none; }
.company-marker .cm-pin {
  width: 40px; height: 40px;
  background: var(--orange);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(236,102,8,0.5);
  display: flex; align-items: center; justify-content: center;
  animation: cm-bounce 1.5s ease-in-out infinite;
}
.company-marker .cm-dot { width: 14px; height: 14px; background: #fff; border-radius: 50%; transform: rotate(45deg); }
@keyframes cm-bounce { 0%,100% { transform: rotate(-45deg) translateY(0); } 50% { transform: rotate(-45deg) translateY(-6px); } }
.leaflet-popup-content { font-size: 13px; line-height: 1.6; }
.leaflet-popup-content b { color: var(--orange); }

@media (max-width: 1024px) {
  .profile { grid-template-columns: 1fr; gap: 40px; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .news-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .profile { padding: 50px 0 60px; }
  .about-stats-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .case-grid { grid-template-columns: 1fr; }
  .news-cards { grid-template-columns: 1fr; }
  .news-hero .news-tabs { flex-wrap: wrap; justify-content: center; }
  .server-row { grid-template-columns: 60px 1fr; padding: 28px 24px; gap: 20px; }
  .server-row .sr-arrow { display: none; }
  .server-row .sr-icon { width: 60px; height: 60px; font-size: 26px; }
  .contact-info { padding: 32px 24px; }
  .contact-map, .contact-map #map { min-height: 320px; }
  .case-filter, .newspage-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .case-filter a, .newspage-tabs a { white-space: nowrap; }
}
