/* 明堂木屋 · 中文首页  设计稿 1440 基准 */
:root {
  --cream: #f6f1e8;
  --cream-2: #f3eee4;
  --white: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #2c2c2c;
  --muted: #6b6b6b;
  --muted-2: #8a857c;
  --line: #e6dfd2;
  --green: #2f6b3a;
  --green-2: #3a7a46;
  --green-dark: #1b4d2e;
  --green-deeper: #163f26;
  --green-soft: #e8f0e6;
  --radius: 4px;
  --header-h: 72px;
  --wrap: 1200px;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

#contact,
#consult,
#vision,
#products,
#solutions,
#dims-grid,
#std {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.more-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.06em;
}

.more-link:hover {
  color: var(--green-2);
}

.more-link.on-dark {
  color: rgba(255, 255, 255, 0.92);
}

.more-link.on-dark:hover {
  color: #fff;
}

.p-card,
.pcard,
.ncard,
.case-card,
.rel-card,
.news-feature,
.scene-card {
  cursor: pointer;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body.home {
  --wrap: 1440px;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea,
select {
  font-family: inherit;
}

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

section[id] {
  scroll-margin-top: 80px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

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

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 52px;
  overflow: hidden;
}

.logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.nav a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #4a4a4a;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

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

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 16px;
  height: 2px;
  background: var(--green);
  transform: translateX(-50%);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s;
}

.header-cta:hover {
  background: var(--green-2);
}

.nav-cta {
  display: none;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.menu-btn span {
  display: block;
  height: 1.5px;
  width: 20px;
  background: var(--ink);
  margin: 0 auto;
  transition: 0.2s;
}

/* Hero */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 760px;
  max-height: 920px;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 20, 12, 0.12) 0%,
    rgba(8, 20, 12, 0.04) 42%,
    rgba(8, 20, 12, 0.1) 100%
  );
}

.hero-title {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 136px;
  font-family: var(--serif);
  font-size: 62px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.28;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.hero-explore {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-explore i {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.7);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Vision */
.vision {
  padding: 96px 0 72px;
  background: var(--cream);
}

.vision-top {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 48px 64px;
  align-items: center;
  margin-bottom: 24px;
}

.vision-copy {
  padding-top: 0;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--green);
}

.vision h2 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.vision h2 em {
  font-style: normal;
  color: var(--green);
  display: block;
}

.vision-lead {
  margin-top: 22px;
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.vision-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.v-card {
  background: #fff;
  padding: 22px 20px 24px;
  min-height: 0;
  border-radius: 2px;
  border: 1px solid rgba(45, 90, 65, 0.06);
  box-shadow: 0 1px 2px rgba(30, 50, 40, 0.04);
  display: flex;
  flex-direction: column;
}

.v-card .ico {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 6px;
  background: #eaf2e9;
  display: grid;
  place-items: center;
  color: #2d5a41;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.v-card .ico svg,
.v-card .ico img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.v-card .num {
  color: #b59a7d;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.v-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.v-card p {
  display: block;
  flex: 0 1 auto;
  min-height: 0;
  overflow: visible;
  white-space: normal;
  word-break: break-word;
  text-overflow: clip;
  font-size: 13px;
  color: #666;
  line-height: 1.75;
  margin: 0;
}

.vision-photo {
  position: relative;
}

.vision-photo img {
  /* width: 100%;
  height: 280px; */
  object-fit: cover;
}

.vision-caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Products */
.products {
  padding: 88px 0 100px;
  background: #fff;
}

.products-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 40px;
}

.en-kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.products h2,
.standards h2,
.cta-panel h2 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.products-desc {
  max-width: 340px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  text-align: right;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.p-card {
  background: #fff;
}

.p-card .thumb {
  height: 340px;
  overflow: hidden;
}

.p-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.p-card:hover .thumb img {
  transform: scale(1.04);
}

.p-body {
  padding: 24px 8px 4px;
}

.p-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.p-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  min-height: 48px;
}

.p-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted-2);
}

.p-meta a {
  color: var(--green);
  letter-spacing: 0.04em;
}

.p-meta a:hover {
  text-decoration: underline;
}

/* Solutions */
.solutions {
  position: relative;
  padding: 100px 0 90px;
  color: #fff;
  overflow: hidden;
}

.solutions-bg {
  position: absolute;
  inset: 0;
}

.solutions-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.solutions-mask {
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 16, 0.62);
}

.solutions .wrap {
  position: relative;
  z-index: 1;
}

.solutions-head {
  text-align: center;
  margin-bottom: 48px;
}

.solutions-head .en-kicker {
  color: rgba(255, 255, 255, 0.65);
}

.solutions-head h2 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin: 10px 0 14px;
}

.solutions-head p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.solutions-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 18px;
  align-items: stretch;
}

.sol-photo {
  min-height: 420px;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
}

.sol-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.sol-item {
  background: #fff;
  color: var(--ink);
  padding: 20px 22px 16px;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
}

.sol-item .num {
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.sol-item h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.sol-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}

/* Standards */
.standards {
  padding: 96px 0 88px;
  background: var(--cream);
}

.standards-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 24px;
}

.standards-note {
  max-width: 320px;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  line-height: 1.8;
}

.std-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.std-card {
  position: relative;
  background: #fff;
  padding: 32px 28px 28px;
  min-height: 292px;
  display: flex;
  flex-direction: column;
}

.std-card.is-accent {
  background: var(--green-dark);
  color: #fff;
}

.std-en {
  position: absolute;
  top: 32px;
  right: 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}

.std-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 18px;
}

.std-card h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
}

.std-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  flex: 1;
}

.std-foot {
  margin-top: 22px;
  font-size: 13px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 仅首页 standards 区块的默认圆点；解决方案页 .std-foot 勿用此伪元素 */
.standards .std-foot:not(.has-icon-img):not(.has-icon-key)::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, currentColor 0 3px, transparent 3.5px);
  flex-shrink: 0;
}

.std-foot-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.std-foot-icon-img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.std-foot-icon--shield {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b3a' stroke-width='1.8'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8.5-8 9-4.5-.5-8-4-8-9V6l8-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

.std-foot-icon--design {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b3a' stroke-width='1.8'%3E%3Cpath d='M4 18l8-8 4 4-8 8H4v-4z'/%3E%3Cpath d='M14 6l4 4'/%3E%3C/svg%3E");
}

.std-foot-icon--factory {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b3a' stroke-width='1.8'%3E%3Cpath d='M3 21V9l6 4V9l6 4V5l6 4v12H3z'/%3E%3C/svg%3E");
}

.std-card.is-accent .std-foot-icon--shield,
.std-card.is-accent .std-foot-icon--design,
.std-card.is-accent .std-foot-icon--factory {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.std-card.is-accent .std-foot-icon-img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.std-card.is-accent .std-en {
  color: rgba(255, 255, 255, 0.45);
}

.std-card.is-accent h4,
.std-card.is-accent p {
  color: rgba(255, 255, 255, 0.88);
}

.std-card.is-accent .std-foot {
  color: #fff;
}

/* Advantages */
.advantages {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 860px;
  align-items: stretch;
}

.adv-photo {
  min-height: 860px;
  overflow: hidden;
}

.adv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 860px;
}

.adv-panel {
  background: #1f6a3c;
  color: #fff;
  padding: 64px 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.adv-panel .en-kicker {
  color: rgba(255, 255, 255, 0.55);
}

.adv-panel h2 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 10px 0 14px;
}

.adv-lead {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
  max-width: 440px;
  margin-bottom: 28px;
}

.adv-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adv-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  color: var(--ink);
  padding: 16px 18px 14px;
  border-radius: 2px;
}

.adv-ico {
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}

.adv-item h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--ink);
}

.adv-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* CTA / form */
.cta-panel {
  padding: 88px 0 72px;
  background: var(--cream);
  text-align: center;
}

.cta-card {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  padding: 56px 64px 40px;
}

.cta-panel h2 {
  margin: 8px 0 14px;
}

.cta-panel .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.form {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  text-align: left;
}

.home-form {
  max-width: 640px;
  grid-template-columns: 1fr 1fr;
}

.home-form .span-2,
.home-form .form-submit,
.home-form .form-msg {
  grid-column: 1 / -1;
}

.home-form input {
  background: var(--cream);
  border-color: transparent;
}

.home-form .form-submit {
  width: 240px;
  justify-self: center;
}

.form input,
.form textarea {
  width: 100%;
  height: 48px;
  border: 1px solid #ddd6c8;
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.form input:focus {
  border-color: var(--green);
}

.form-submit {
  grid-column: 1 / -1;
  height: 48px;
  border: 0;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover {
  background: var(--green-2);
}

.form-msg {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--green);
  text-align: center;
  min-height: 20px;
}

.contact-row {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.contact-row a {
  color: var(--muted);
}

.contact-row a:hover {
  color: var(--green);
}

.contact-wechat-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(90, 86, 78, 0.35);
}

.contact-wechat-btn:hover {
  color: var(--green);
  text-decoration-color: currentColor;
}

/* 预约咨询弹窗 */
.inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.inquiry-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.inquiry-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 20, 16, 0.52);
}

.inquiry-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  z-index: 1;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.inquiry-modal.is-open .inquiry-modal-dialog {
  transform: translateY(0);
}

.inquiry-modal-card {
  padding: 48px 40px 32px;
  box-shadow: 0 24px 64px rgba(28, 24, 18, 0.18);
  text-align: center;
}

.inquiry-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #555;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.inquiry-modal-close:hover {
  color: var(--green);
}

body.inquiry-modal-open {
  overflow: hidden;
}

/* 微信二维码弹窗 */
.wechat-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.wechat-qr-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.wechat-qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 20, 16, 0.48);
}

.wechat-qr-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  padding: 28px 24px 32px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 20px 56px rgba(28, 24, 18, 0.16);
  transform: translateY(10px);
  transition: transform 0.22s ease;
}

.wechat-qr-modal.is-open .wechat-qr-modal-dialog {
  transform: translateY(0);
}

.wechat-qr-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #888;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.wechat-qr-modal-close:hover {
  color: var(--green);
}

.wechat-qr-modal-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--green);
}

.wechat-qr-modal-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.wechat-qr-modal-hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.wechat-qr-modal-img-wrap {
  display: inline-block;
  padding: 10px;
  border-radius: 8px;
  background: #faf9f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.wechat-qr-modal-img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
}

body.wechat-qr-modal-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .inquiry-modal-card {
    padding: 40px 20px 28px;
  }

  .inquiry-modal .home-form .form-submit {
    width: 100%;
  }
}

/* Footer 社交二维码（右下角） */
.footer.site-footer .footer-inner {
  position: relative;
  padding: 40px 0 36px;
  box-sizing: border-box;
}

.footer-social {
  position: absolute;
  right: 0;
  bottom: 8px;
  z-index: 1;
  padding: 0;
  pointer-events: none;
}

.footer-social-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: auto;
}

.footer-social-item {
  margin: 0;
}

.footer-social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #666;
  font-size: 10px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.footer-social-link:hover {
  color: var(--green);
}

.footer-social-link img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #faf8f3;
  border: 1px solid #ebe4d8;
  border-radius: 6px;
  padding: 2px;
  box-sizing: border-box;
}

/* Footer（全站共用双行备案，效果图） */
.footer.site-footer {
  padding: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: #3d3d3d;
  background: #fff;
  border-top: 0;
}

.footer.site-footer .footer-lines {
  max-width: 100%;
  margin: 0 auto;
  padding-right: 0;
  padding-left: 0;
}

.footer.site-footer:has(.footer-social) .footer-lines {
  padding-right: min(42vw, 220px);
}

.footer.site-footer .footer-line {
  margin: 0;
}

.footer.site-footer .footer-line + .footer-line {
  margin-top: 2px;
}

.footer.site-footer .footer-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.footer.site-footer .footer-link:hover {
  color: var(--green);
}

@media (max-width: 860px) {
  .footer.site-footer .footer-inner {
    padding: 32px 0 28px;
  }

  .footer-social {
    right: 0;
    bottom: 4px;
  }

  .footer-social-list {
    gap: 8px 10px;
  }

  .footer-social-link img {
    width: 48px;
    height: 48px;
  }

  .footer-social-link {
    font-size: 9px;
  }

  .footer.site-footer:has(.footer-social) .footer-lines {
    padding-right: 168px;
    padding-left: 12px;
  }
}

.footer:not(.site-footer) {
  padding: 22px 0 28px;
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
  background: var(--cream);
}

/* Mobile nav overlay */
.nav-mask {
  display: none;
}

@media (max-width: 1100px) {
  .hero-title {
    font-size: 42px;
  }

  .vision-top,
  .solutions-layout,
  .advantages {
    grid-template-columns: 1fr;
  }

  .vision-cards {
    grid-template-columns: 1fr 1fr;
  }

  .products-desc,
  .standards-note {
    text-align: left;
  }

  .adv-panel {
    padding: 48px 28px 40px;
  }

  .adv-photo,
  .adv-photo img {
    min-height: 420px;
  }

  .advantages {
    min-height: 0;
  }

  .vision-photo img {
    height: 320px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 60px;
  }

  .menu-btn {
    display: flex;
  }

  .logo,
  .logo img {
    height: 40px;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    z-index: 120;
    width: min(320px, 86vw);
    height: calc(100vh - var(--header-h));
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px 32px;
    gap: 20px;
    margin-left: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.08);
  }

  .nav.is-open {
    transform: none;
  }

  .nav a:not(.nav-cta) {
    font-size: 16px;
    align-self: flex-start;
  }

  .nav-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    min-height: 48px;
    margin-top: 28px;
    padding: 14px 24px;
    box-sizing: border-box;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: center;
  }

  .nav-cta::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--green);
    border-radius: 1px;
  }

  .nav-cta::after {
    display: none !important;
  }

  .nav-cta:hover,
  .nav-cta:focus {
    background: var(--green-2);
    color: #fff !important;
  }

  .nav-mask {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: min(320px, 86vw);
    bottom: 0;
    z-index: 110;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }

  .nav-mask.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    height: 620px;
    min-height: 0;
    max-height: none;
  }

  .hero-title {
    font-size: 32px;
    padding-top: 90px;
    letter-spacing: 0.14em;
  }

  .vision,
  .products,
  .solutions,
  .standards,
  .cta-panel {
    padding: 64px 0;
  }

  .vision h2,
  .products h2,
  .solutions-head h2,
  .standards h2,
  .adv-panel h2,
  .cta-panel h2 {
    font-size: 28px;
  }

  .vision-cards,
  .product-grid,
  .sol-grid,
  .std-grid,
  .form {
    grid-template-columns: 1fr;
  }

  .vision-photo img,
  .p-card .thumb {
    height: 260px;
  }

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

  .sol-photo {
    min-height: 280px;
    height: auto;
  }

  .vision-photo {
    min-height: 0;
  }

  .products-head,
  .standards-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-card {
    padding: 40px 24px 32px;
  }

  .home-form .form-submit {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .hero {
    height: 480px;
  }

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