:root {
  --ink: #17212b;
  --muted: #647083;
  --line: #dfe7ec;
  --paper: #f4f7f6;
  --brand: #17684f;
  --brand-2: #0f3f35;
  --coral: #c9552d;
  --gold: #c89434;
  --sky: #2f87b7;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(15, 40, 35, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(23, 104, 79, .08), transparent 560px),
    var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(223, 231, 236, .9);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; }
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--sky));
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 104, 79, .22);
  font-weight: 900;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.site-nav a { padding: 9px 12px; border-radius: 6px; }
.site-nav a:hover { color: var(--brand); background: rgba(23, 104, 79, .08); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(420px, 1.18fr);
  gap: 42px;
  align-items: center;
  width: min(1240px, 90vw);
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 54px 0 78px;
}
.hero::before {
  content: "SHANYI ART";
  position: absolute;
  top: 34px;
  right: -3vw;
  color: rgba(23, 33, 43, .05);
  font-size: clamp(54px, 10vw, 150px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.1;
}
.hero-copy p { color: var(--muted); font-size: 18px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
  font-weight: 800;
  letter-spacing: 0;
}
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 26px 0 0;
}
.hero-highlights span {
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(23, 104, 79, .16);
  border-radius: 8px;
  background: rgba(255,255,255,.74);
}
.hero-highlights b {
  display: block;
  color: var(--brand);
  font-size: 22px;
  line-height: 1.2;
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 40, 35, .08);
}
.button.primary { background: var(--brand); color: #fff; border-color: var(--brand); }

.hero-carousel {
  position: relative;
  height: min(70vh, 650px);
  min-height: 460px;
  overflow: hidden;
  border: 10px solid #fff;
  border-radius: 8px;
  background: #111;
  box-shadow: var(--shadow);
}
.slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.02); transition: opacity .6s ease, transform 1.2s ease; }
.slide.active { opacity: 1; transform: scale(1); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 30%, rgba(0,0,0,.72));
}
.slide span {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 44px;
  z-index: 1;
  color: #fff;
}
.slide strong { display: block; font-size: 30px; line-height: 1.3; }
.slide em { display: block; max-width: 680px; margin-top: 8px; font-style: normal; color: rgba(255,255,255,.86); }
.carousel-dots {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.46);
  cursor: pointer;
}
.carousel-dots button.active { width: 28px; border-radius: 10px; background: #fff; }

.showcase-strip {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr 1.25fr;
  gap: 12px;
  width: min(1240px, 90vw);
  margin: -36px auto 38px;
  position: relative;
  z-index: 3;
}
.showcase-strip a {
  position: relative;
  height: 150px;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 40, 35, .12);
}
.showcase-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.showcase-strip a:hover img { transform: scale(1.06); }
.showcase-strip span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(15, 63, 53, .82);
  font-size: 13px;
}

.section { width: min(1180px, 90vw); margin: 0 auto; padding: 76px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}
.section h2, .page-hero h1, .detail h1 { margin: 0; font-size: clamp(28px, 3vw, 44px); line-height: 1.24; }
.text-link { color: var(--brand); font-weight: 800; }
.service-grid, .article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-card, .article-card, .project-card, .article-row {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.service-card {
  min-height: 190px;
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23,104,79,.3);
  box-shadow: 0 18px 45px rgba(15, 40, 35, .1);
}
.service-index { color: var(--gold); font-size: 26px; font-weight: 900; }
.service-card h3, .project-card h3, .article-card h3, .article-row h2 { margin: 8px 0; line-height: 1.35; }
.service-card p, .project-card p, .article-card p, .article-row p, .split-section p, .contact-section p, .lead { color: var(--muted); }

.portfolio-band {
  width: 100%;
  max-width: none;
  padding-left: 5vw;
  padding-right: 5vw;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.portfolio-band .section-head, .portfolio-band .project-grid { width: min(1180px, 100%); margin-left: auto; margin-right: auto; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { padding-bottom: 18px; transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover, .article-card:hover, .article-row:hover { transform: translateY(-4px); box-shadow: 0 20px 54px rgba(20, 40, 35, .13); }
.project-card img, .article-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-card h3, .project-card p, .project-meta, .article-card h3, .article-card p, .article-card span { display: block; margin-left: 18px; margin-right: 18px; }
.project-meta, .article-card span, .article-row span { margin-top: 14px; color: var(--brand); font-size: 13px; font-weight: 800; }

.split-section, .contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.split-section > div, .contact-section {
  border-radius: 8px;
}
.split-section > div {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(15, 40, 35, .08);
}
.process-band {
  padding: 24px 5vw;
  background: var(--brand-2);
  color: #fff;
}
.process-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: min(1180px, 100%);
  margin: 0 auto;
}
.process-step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}
.process-step span { color: var(--gold); font-size: 24px; font-weight: 900; }
.process-step strong { font-size: 18px; }
.contact-section {
  align-items: center;
  padding: 48px;
  background:
    linear-gradient(135deg, rgba(23,104,79,.96), rgba(47,135,183,.9)),
    var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}
.contact-section .eyebrow, .contact-section p { color: rgba(255,255,255,.82); }
.phone-list { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.phone-list a { color: #fff; font-size: 22px; font-weight: 900; }
.qr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.qr-grid figure { margin: 0; padding: 16px; background: #fff; border-radius: 8px; text-align: center; }
.qr-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.qr-grid figcaption { margin-top: 10px; color: var(--muted); }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 5vw;
  color: #fff;
  background: #111b22;
}
.site-footer span { color: rgba(255,255,255,.72); }
.icp-link { width: 100%; text-align: center; color: rgba(255,255,255,.78); font-size: 14px; }
.icp-link:hover { color: #fff; text-decoration: underline; }

.page-hero {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 86px 0 34px;
}
.article-list { display: grid; gap: 18px; }
.article-row { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 16px; transition: transform .2s ease, box-shadow .2s ease; }
.article-row img { width: 100%; height: 188px; object-fit: cover; border-radius: 6px; }
.detail { width: min(920px, 90vw); margin: 0 auto; padding: 66px 0 86px; }
.detail-cover { width: 100%; max-height: 560px; object-fit: cover; margin: 28px 0; border-radius: 8px; box-shadow: var(--shadow); }
.content-body { color: #2d3748; font-size: 17px; }
.content-body img { margin: 22px 0; border-radius: 8px; }
.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0; }
.project-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 12px 34px rgba(15, 40, 35, .1); }

@media (max-width: 960px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 14px 5vw; }
  .hero, .split-section, .contact-section, .article-row { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-carousel { min-height: 360px; height: 55vh; }
  .service-grid, .article-grid, .project-grid, .qr-grid, .process-inner { grid-template-columns: 1fr; }
  .showcase-strip { grid-template-columns: 1fr 1fr; margin-top: -24px; }
  .showcase-strip a { height: 130px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .hero-highlights { grid-template-columns: 1fr; }
  .contact-section { padding: 30px; }
}
