/* 品度新版首页样式（converted from pindu-index/css/body.css）
   全局元素规则已收敛到 .pd3-home（新版首页 body）与新版公共页头/页脚，
   避免影响内页旧样式。冲突的类名与 CSS 变量已加 pd3-/--pindo3- 前缀。 */
.pd3-home *,
.pd3-home *::before,
.pd3-home *::after,
.pd3-site-header,
.pd3-site-header *,
.pd3-site-header *::before,
.pd3-site-header *::after,
.pd3-site-footer,
.pd3-site-footer *,
.pd3-site-footer *::before,
.pd3-site-footer *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pindo3-orange: #f06423;
  --pindo3-text: #262626;
  --pindo3-muted: #999;
  --pindo3-line: #e6e6e6;
  --wrap: 1332px;
  --gap: 17px;
  --radius-card: 10px;
  --radius-panel: 12px;
  --radius-insight: 10px;
  --radius-pill: 999px;
  --radius-btn: 6px;
}

body.pd3-home,
.pd3-site-header,
.pd3-site-footer {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--pindo3-text);
  -webkit-font-smoothing: antialiased;
}

body.pd3-home {
  background: #fff;
}

.pd3-home a,
.pd3-site-header a,
.pd3-site-footer a {
  color: inherit;
  text-decoration: none;
}

.pd3-home ul,
.pd3-site-header ul,
.pd3-site-footer ul {
  list-style: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - 108px));
  margin-inline: auto;
}

.pd3-home button,
.pd3-site-header button,
.pd3-site-footer button {
  font-family: inherit;
}

/* ── 头部 ── */
.pd3-site-header {
  position: relative;
  height: 88px;
  background: #fff;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.logo-mark {
  display: block;
  width: 86px;
  height: auto;
}

.logo-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--pindo3-text);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 45px;
}

.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 16px;
  color: #444;
}

.nav a:hover,
.nav a.is-active {
  color: var(--pindo3-orange);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--pindo3-orange);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #333;
}

/* ── 首屏 ── */
.pd3-hero {
  height: 489px;
  background: #0b0d12;
}

.hero-inner {
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-title {
  margin-left: 6%;
  font-family: "Ma Shan Zheng", "Noto Sans SC", serif;
  font-weight: 400;
  font-size: 72px;
  line-height: 1.24;
  letter-spacing: 0.06em;
  color: #d9b978;
}

/* ── 区块间距（按设计稿 y 轴测量） ── */
.sec {
  padding-top: 33px;
}

.sec-case {
  padding-top: 56px;
}

.sec-shot {
  padding-bottom: 26px;
}

.sec-about {
  padding-top: 0;
}

.sec-insight {
  padding-top: 41px;
}

.sec-list {
  padding-top: 26px;
  padding-bottom: 40px;
}

/* ── 工具栏：标题 + 分类 + 查看全部 同一行 ── */
.toolbar {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  column-gap: 18px;
  margin-bottom: 14px;
}

.toolbar-plain {
  grid-template-columns: 1fr max-content;
}

.sec-title,
.panel-title {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding-left: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.sec-title {
  font-size: 30px;
}

.panel-title {
  font-size: 26px;
}

.sec-title::before,
.panel-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--pindo3-orange);
}

.sec-title small,
.panel-title small {
  font-size: 16px;
  font-weight: 400;
  color: #b5b5b5;
  letter-spacing: 0.04em;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.tab {
  flex: 0 0 auto;
  padding: 6px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #6b6b6b;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}

.tab:hover {
  color: var(--pindo3-orange);
}

.tab.is-on {
  background: var(--pindo3-orange);
  color: #fff;
}

.more {
  color: #9c9c9c;
  font-size: 15px;
  white-space: nowrap;
}

.more:hover {
  color: var(--pindo3-orange);
}

/* ── 案例网格 4×2 ── */
.case-grid,
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.case-card,
.shot-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.case-card {
  aspect-ratio: 1.441;
}

.shot-card {
  aspect-ratio: 1.818;
}

.case-card.is-hidden,
.shot-card.is-hidden {
  display: none;
}

/* 图片占位：纯色块，后续替换为真实图片 */
.case-media,
.shot-media,
.about-media {
  background: #2a2a2a;
}

.case-media,
.shot-media {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.case-card:nth-child(2) .case-media { background: #3d3d3d; }
.case-card:nth-child(3) .case-media { background: #4a4a4a; }
.case-card:nth-child(4) .case-media { background: #333; }
.case-card:nth-child(5) .case-media { background: #2e2e2e; }
.case-card:nth-child(6) .case-media { background: #454545; }
.case-card:nth-child(7) .case-media { background: #383838; }
.case-card:nth-child(8) .case-media { background: #3a3a3a; }

.shot-card:nth-child(2) .shot-media { background: #353535; }
.shot-card:nth-child(3) .shot-media { background: #424242; }
.shot-card:nth-child(4) .shot-media { background: #2f2f2f; }
.shot-card:nth-child(5) .shot-media { background: #3b3b3b; }
.shot-card:nth-child(6) .shot-media { background: #464646; }
.shot-card:nth-child(7) .shot-media { background: #323232; }
.shot-card:nth-child(8) .shot-media { background: #3e3e3e; }

.case-cap {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 14px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 72%);
  color: #fff;
}

.case-cap h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.case-cap p {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 摄影卡：左下角文字（不含图标） ── */
.shot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
}

.shot-cap {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 14px 13px;
  color: #fff;
}

.shot-cap strong {
  font-size: 17px;
  font-weight: 700;
}

.shot-cap em {
  font-style: normal;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 双栏面板 ── */
.duo {
  display: grid;
}

.duo-about {
  grid-template-columns: 183fr 277fr;
  gap: 23px;
}

.duo-list {
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.panel {
  position: relative;
  border: 1px solid var(--pindo3-line);
  border-radius: var(--radius-panel);
  background: #fff;
}

.duo-about .panel {
  height: 327px;
  overflow: hidden;
}

.panel-service {
  padding: 24px;
}

.panel-service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  z-index: 1;
  width: 18px;
  height: 3px;
  background: var(--pindo3-orange);
  transform: translateY(-50%);
}

.panel-service .panel-title {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 8px;
  padding: 0;
}

.panel-service .panel-title::before {
  content: none;
}

.panel-about {
  padding: 24px 0 0 24px;
}

.panel-about .panel-title {
  padding-left: 0;
  align-items: center;
  gap: 10px;
}

.panel-about .panel-title::before {
  content: none;
}

.panel-about .panel-title,
.panel-about p {
  position: relative;
  z-index: 2;
}

.panel-about p {
  width: 58%;
  margin-top: 16px;
  color: #7a7a7a;
  font-size: 13px;
  line-height: 2;
}

.btn-outline {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--pindo3-orange);
  border-radius: var(--radius-btn);
  background: #fff;
  color: var(--pindo3-orange);
  font-size: 14px;
}

.btn-outline:hover {
  background: var(--pindo3-orange);
  color: #fff;
}

.about-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #d8d8d8 url("../pindu.png") center / cover no-repeat;
  border-radius: inherit;
}

/* ── 核心服务 3 列 ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 46px;
}

.service-item {
  position: relative;
  text-align: center;
  padding: 0 12px;
}

.service-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 0;
  width: 1px;
  background: #ececec;
}

.service-ico {
  display: grid;
  place-items: center;
  width: 72px;
  height: 80px;
  margin: 0 auto 14px;
}

.service-ico img {
  width: 72px;
  height: auto;
  display: block;
}

.service-item h3 {
  font-size: 18px;
  font-weight: 700;
}

.service-item p {
  margin-top: 9px;
  color: #9a9a9a;
  font-size: 13px;
  line-height: 1.8;
}

/* ── 品度观点 4 卡 ── */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.insight-card {
  display: flex;
  flex-direction: column;
  min-height: 211px;
  padding: 22px 20px 16px;
  border: 1px solid #f0e4dc;
  border-radius: var(--radius-insight);
  background: linear-gradient(158deg, #fbe8dc 0%, #fdf4ee 42%, #fff 78%);
}

.insight-card h3 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.45;
}

.insight-card p {
  flex: 1;
  margin-top: 14px;
  color: #8f8f8f;
  font-size: 13px;
  line-height: 1.75;
}

.insight-foot {
  display: flex;
  align-items: center;
  margin-top: 12px;
  color: #a5a5a5;
  font-size: 13px;
}

/* ── 问题地图 / 新闻动态 ── */
.duo-list .panel {
  height: 339px;
  padding: 20px 22px 8px;
}

.panel-news::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  z-index: 1;
  width: 18px;
  height: 3px;
  background: var(--pindo3-orange);
  transform: translateY(-50%);
}

.panel-news .panel-title {
  padding-left: 0;
  align-items: baseline;
  gap: 8px;
}

.panel-news .panel-title::before {
  content: none;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.faq-list a,
.news-list a {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.5;
}

.faq-list li:last-child a,
.news-list li:last-child a {
  border-bottom: 0;
}

.faq-list a {
  grid-template-columns: minmax(96px, 10em) 1fr max-content;
}

.faq-list b {
  font-size: 17px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.faq-list span:not(.arrow) {
  color: #9a9a9a;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-list a {
  grid-template-columns: 1fr max-content max-content;
  padding: 9px 0;
}

.news-list span:not(.arrow) {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-list time {
  color: #a8a8a8;
  font-size: 13px;
}

.faq-list .arrow {
  color: #c9c9c9;
  font-size: 17px;
}

.news-list .arrow {
  color: var(--pindo3-orange);
  font-size: 17px;
}

.faq-list a:hover b,
.faq-list a:hover span:not(.arrow),
.news-list a:hover span:not(.arrow) {
  color: var(--pindo3-orange);
}

/* ── 页脚 ── */
.pd3-site-footer {
  background: #333;
  color: #b7b7b7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1.6fr;
  gap: 24px;
  padding: 48px 0 40px;
}

.logo-light .logo-name {
  color: #fff;
}

.pd3-footer-brand p {
  margin-top: 18px;
  color: #8d8d8d;
  font-size: 13px;
  line-height: 2;
}

.footer-col h4 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.footer-col li {
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--pindo3-orange);
}

.contact-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.8;
}

.contact-list svg {
  width: 16px;
  height: 16px;
  margin-top: 5px;
  color: #9a9a9a;
}

.pd3-footer-bottom {
  border-top: 1px solid #464646;
  padding: 15px 0;
  color: #8a8a8a;
  font-size: 13px;
  text-align: center;
}

/* ── 平板 ── */
@media (max-width: 1180px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 56px));
  }

  .toolbar {
    grid-template-columns: max-content max-content;
    row-gap: 12px;
  }

  .tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .more {
    justify-self: end;
  }

  .duo-about {
    grid-template-columns: 1fr;
  }

  .duo-about .panel {
    height: auto;
    min-height: 300px;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 32px;
  }
}

@media (max-width: 900px) {
  .case-grid,
  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duo-list {
    grid-template-columns: 1fr;
  }

  .duo-list .panel {
    height: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── 手机 ── */
@media (max-width: 768px) {
  .wrap,
  .hero-inner {
    width: calc(100% - 28px);
  }

  .pd3-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    border-bottom: 1px solid var(--pindo3-line);
  }

  .logo {
    gap: 8px;
    min-width: 0;
  }

  .logo-mark {
    width: 52px;
  }

  .logo-name {
    font-size: 15px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;
  }

  .nav-toggle span {
    width: 18px;
    margin: 3px auto;
  }

  .nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 12px;
    background: #fff;
    border-bottom: 1px solid var(--pindo3-line);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid #f2f2f2;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav a.is-active::after {
    display: none;
  }

  .pd3-hero {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .hero-title {
    margin-left: 0;
    font-size: 36px;
  }

  .sec,
  .sec-case,
  .sec-insight,
  .sec-list {
    padding-top: 28px;
  }

  .sec-shot {
    padding-bottom: 12px;
  }

  .sec-title {
    font-size: 18px;
    padding-left: 10px;
  }

  .panel-title {
    font-size: 18px;
  }

  .toolbar {
    grid-template-columns: 1fr max-content;
    column-gap: 8px;
    row-gap: 12px;
    margin-bottom: 12px;
  }

  .toolbar .tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .toolbar .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    padding: 6px 12px;
    font-size: 13px;
  }

  .more {
    font-size: 12px;
  }

  .case-grid,
  .shot-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .case-card {
    aspect-ratio: 16 / 10;
  }

  .shot-card {
    aspect-ratio: 16 / 9;
  }

  .case-cap h3,
  .shot-cap strong {
    font-size: 16px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 24px;
  }

  .service-item:not(:last-child)::after {
    display: none;
  }

  .duo-about .panel {
    min-height: 280px;
  }

  .panel-about {
    padding: 20px 20px 72px;
  }

  .panel-about p {
    width: 100%;
  }

  .btn-outline {
    left: 20px;
    bottom: 20px;
    position: absolute;
    margin-top: 0;
  }

  .about-media {
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: inherit;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .insight-card {
    min-height: 0;
  }

  .insight-card h3 {
    font-size: 18px;
  }

  .faq-list a {
    grid-template-columns: 1fr max-content;
    row-gap: 4px;
  }

  .faq-list b {
    grid-column: 1;
    font-size: 15px;
  }

  .faq-list span:not(.arrow) {
    grid-column: 1 / -1;
    font-size: 13px;
  }

  .faq-list .arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .news-list a {
    grid-template-columns: 1fr max-content;
    gap: 8px;
  }

  .news-list span:not(.arrow) {
    white-space: normal;
    font-size: 14px;
  }

  .news-list .arrow {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 32px 0 24px;
    gap: 28px;
  }

  .pd3-footer-bottom {
    padding: 14px 16px;
    line-height: 1.7;
  }
}

@media (max-width: 520px) {
  .logo-name {
    font-size: 14px;
  }

  .hero-title {
    font-size: 32px;
  }
}



/* 关于品度：后台富文本转纯文本展示，超出隐藏 */
.panel-about .about-text {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 首页 banner：只展示图片，不渲染标题文字；配置了链接时整幅可点击 */
.pd3-hero {
  position: relative;
}

.pd3-hero .hero-link {
  position: absolute;
  inset: 0;
  display: block;
}

/* 动态封面图铺满卡片媒体区 */
.case-media,
.shot-media,
.about-media {
  background-size: cover;
  background-position: center;
}

/* 友情链接：适配新版页脚（覆盖 home-v2.css 中旧页脚配套样式） */
.pindo-friendly-links {
  border-top: 0;
  border-bottom: 1px solid #464646;
  background: #333;
  padding: 18px 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.pindo-friendly-links .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
}

.pindo-friendly-links__title {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  flex: 0 0 auto;
}

.pindo-friendly-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pindo-friendly-links a.pindo-friendly-links__link {
  color: #8d8d8d;
  font-size: 13px;
  line-height: 1.7;
  transition: color 0.2s ease;
}

.pindo-friendly-links a.pindo-friendly-links__link:hover,
.pindo-friendly-links a.pindo-friendly-links__link:focus-visible {
  color: var(--pindo3-orange);
}
