/*
Theme Name: Acrylic Studio
Description: Huise Acrylic 静态首页与全站共享页头页脚，仅导航接入 WordPress。
Version: 0.3.15
Requires at least: 7.1
Requires PHP: 8.3
Author: Acrylic Site Team
License: GPL-2.0-or-later
Text Domain: acrylic-studio
Domain Path: /languages
Update URI: https://github.com/yong-sir/acrylic-wordpress
*/
:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #082f2b; background: #fff; font-synthesis: none; }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { color: #092f2c; background: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; width: 100%; }
.site-header { height: 76px; position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 0 4.2vw; background: rgba(255,255,255,.97); border-bottom: 1px solid #e5ece8; }
.brand { white-space: nowrap; font-size: 25px; letter-spacing: -.7px; color: #3e6f68; }
.brand strong { color: #063d35; }
.desktop-nav { display: flex; align-self: stretch; align-items: stretch; gap: clamp(12px,1.35vw,24px); margin-left: auto; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { display: flex; align-items: center; gap: 4px; height: 100%; font-size: 12px; font-weight: 700; color: #344c4a; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #23833e; transform: scaleX(0); transition: transform .18s ease; }
.nav-item:hover > .nav-link::after, .nav-item:focus-within > .nav-link::after { transform: scaleX(1); }
.dropdown { position: absolute; left: -18px; top: calc(100% - 1px); width: 304px; padding: 10px; background: #fff; border: 1px solid #dfe8e3; box-shadow: 0 18px 38px rgba(7,45,38,.14); }
.dropdown-row-wrap { position: relative; }
.dropdown-row-wrap:has(.flyout)::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 18px; }
.dropdown-row, .flyout a { display: flex; justify-content: space-between; align-items: center; min-height: 50px; padding: 12px 14px; font-size: 15px; font-weight: 650; }
.dropdown-row:hover, .dropdown-row:focus, .dropdown-row-wrap:hover > .dropdown-row { background: #e9f5ea; outline: none; }
.flyout { position: absolute; left: calc(100% + 18px); top: -10px; width: 300px; padding: 10px; background: #fff; border: 1px solid #dfe8e3; box-shadow: 0 18px 38px rgba(7,45,38,.14); }
.flyout a:hover, .flyout a:focus { background: #e9f5ea; outline: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language { height: 42px; display: flex; align-items: center; gap: 6px; padding: 0 12px; color: #173b37; background: #fff; border: 1px solid #dbe4e0; cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; color: #fff; background: #0b5b37; border: 1px solid #0b5b37; font-weight: 750; transition: background .18s ease, transform .18s ease; }
.button:hover, .button:focus { background: #167744; transform: translateY(-1px); }
.button-small { min-height: 42px; padding: 0 20px; font-size: 13px; }
.button-outline { color: #154b3f; background: rgba(255,255,255,.85); }
.button-outline:hover, .button-outline:focus { color: #fff; }
.menu-toggle { display: none; padding: 8px; background: none; border: 0; color: #0a4038; }
.mobile-nav { display: none; }
.hero { position: relative; min-height: 560px; background: #f6f8f5; overflow: hidden; }
.hero-viewport { overflow: hidden; }
.hero-container { display: flex; touch-action: pan-y pinch-zoom; will-change: transform; backface-visibility: hidden; }
.hero-slide { flex: 0 0 100%; min-width: 0; min-height: 560px; display: grid; grid-template-columns: 1.05fr 1fr; backface-visibility: hidden; }
.hero-copy { z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 72px 4.2vw; background: linear-gradient(90deg,#f8faf7 80%,rgba(248,250,247,.2)); }
.eyebrow { margin: 0 0 12px; color: #2b7a51; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
h1,h2,h3,p { margin-top: 0; }
h1, .hero-heading { margin-bottom: 20px; max-width: 760px; font-size: clamp(46px,4.4vw,72px); line-height: .99; letter-spacing: -.055em; }
h1 span, .hero-heading span { color: #3c943b; }
.hero-heading { margin-top: 0; }
.hero-copy > p:not(.eyebrow) { max-width: 570px; margin-bottom: 26px; color: #526967; font-size: 20px; line-height: 1.45; }
.hero-copy > .hero-proof { margin: 22px 0 0; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-image { min-width: 0; background: #dde7e0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; transform: scale(1.02); }
.hero-copy > .eyebrow, .hero-copy > h1, .hero-copy > .hero-heading, .hero-copy > .hero-description, .hero-copy > .hero-actions, .hero-copy > .hero-proof { opacity: 0; transform: translate3d(0,32px,0); }
.hero-slide.is-active .hero-copy > .eyebrow { animation: hero-text-in .52s var(--hero-text-delay,80ms) cubic-bezier(.22,1,.36,1) both; }
.hero-slide.is-active .hero-copy > h1, .hero-slide.is-active .hero-copy > .hero-heading { animation: hero-text-in .66s calc(var(--hero-text-delay,80ms) + 80ms) cubic-bezier(.22,1,.36,1) both; }
.hero-slide.is-active .hero-copy > .hero-description { animation: hero-text-in .6s calc(var(--hero-text-delay,80ms) + 180ms) cubic-bezier(.22,1,.36,1) both; }
.hero-slide.is-active .hero-copy > .hero-actions { animation: hero-text-in .6s calc(var(--hero-text-delay,80ms) + 280ms) cubic-bezier(.22,1,.36,1) both; }
.hero-slide.is-active .hero-copy > .hero-proof { animation: hero-text-in .55s calc(var(--hero-text-delay,80ms) + 360ms) cubic-bezier(.22,1,.36,1) both; }
@keyframes hero-text-in {
  from { opacity: 0; transform: translate3d(0,32px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}
.hero-arrow { position: absolute; z-index: 4; top: 50%; display: grid; width: 46px; height: 46px; place-items: center; padding: 0; color: #123d37; background: rgba(255,255,255,.88); border: 1px solid rgba(15,77,61,.15); border-radius: 50%; box-shadow: 0 8px 22px rgba(7,45,38,.1); cursor: pointer; transform: translateY(-50%); transition: background .2s ease, transform .2s ease; }
.hero-arrow:hover, .hero-arrow:focus-visible { background: #fff; transform: translateY(-50%) scale(1.06); outline: 2px solid #2b7a51; outline-offset: 2px; }
.hero-arrow-prev { left: 18px; }
.hero-arrow-next { right: 18px; }
.hero-dots { position: absolute; z-index: 4; left: 50%; bottom: 24px; display: flex; gap: 10px; transform: translateX(-50%); }
.hero-dots button { width: 10px; height: 10px; padding: 0; background: #c6d2cc; border: 0; border-radius: 50%; cursor: pointer; transition: width .22s ease, background .22s ease; }
.hero-dots button.is-active { width: 28px; background: #23834e; border-radius: 999px; }
.proof { display: grid; grid-template-columns: repeat(4,1fr); padding: 26px 4.2vw; background: #f3f8f2; border-bottom: 1px solid #dce8de; }
.proof div { display: flex; flex-direction: column; padding: 6px 26px; border-right: 1px solid #cad9cf; }
.proof div:last-child { border: 0; }
.proof strong { font-size: clamp(22px,2.2vw,34px); line-height: 1; }
.proof span { margin-top: 7px; color: #3a5a54; font-size: 15px; }
.section { padding: 72px 4.2vw; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 34px; }
.section-heading h2, .project-title h2 { margin: 0; font-size: clamp(35px,3.4vw,52px); line-height: 1.03; letter-spacing: -.045em; }
.section-heading > p { max-width: 500px; margin: 0; color: #5c716e; font-size: 16px; }
.capability-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.capability-grid article img { aspect-ratio: 1.52; object-fit: cover; background: #e6ece8; }
.capability-grid h3, .example-grid h3 { margin: 0; padding: 14px 16px 18px; font-size: 17px; line-height: 1.25; }
.examples-section { background: #f5f9f5; }
.example-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
.example-grid img { aspect-ratio: 1 / 1.03; object-fit: cover; background: #fff; }
.example-grid h3 { font-size: 15px; }
.projects { background: #fcfdfc; }
.project-title { margin-bottom: 34px; }
.project-title > div:first-child { display: block; }
.project-links { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.project-title a, .text-link { padding-bottom: 4px; border-bottom: 1px solid #2c7451; color: #17553d; font-weight: 750; }
.project-grid { display: grid; grid-template-columns: .8fr .8fr 1.6fr; gap: 18px; }
figure { margin: 0; }
.project-grid img { height: 330px; object-fit: cover; background: #e8eeea; }
.project-grid figcaption { padding: 14px 16px 18px; font-weight: 700; }
.resources { padding-top: 60px; }
.resource-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.resource-grid article { border: 1px solid #dfe7e3; background: #fff; }
.resource-grid img { height: 180px; object-fit: cover; background: #e8eeea; }
.resource-grid small { display: block; padding: 16px 18px 5px; color: #5b716d; }
.resource-grid h3 { margin: 0; padding: 0 18px 20px; font-size: 21px; line-height: 1.25; }
:is(.capability-grid article, .example-grid article, .project-grid figure, .resource-grid article) {
  position: relative;
  z-index: 0;
  background: #fff;
  transform: translateZ(0) scale(1);
  transform-origin: center;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  :is(.capability-grid article, .example-grid article, .project-grid figure, .resource-grid article):hover {
    z-index: 2;
    transform: translateZ(0) scale(1.025);
    box-shadow: 0 18px 38px rgba(7,45,38,.14);
  }
}
.quote { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 58px 4.2vw; color: #fff; background: #064332; }
.quote .eyebrow { color: #a6d896; }
.quote h2 { margin: 0; font-size: clamp(36px,4vw,58px); line-height: 1; letter-spacing: -.045em; }
.button-light { color: #124a39; background: #fff; border-color: #fff; }
.site-footer { display: grid; grid-template-columns: auto 1fr 1fr auto; align-items: center; gap: 38px; padding: 40px 4.2vw; background: #f8faf8; color: #49645e; }
.site-footer p, .site-footer small { margin: 0; }
.site-footer .footer-brand { min-width:0; }
.site-footer .footer-brand.brand-logo .custom-logo { max-width:220px; max-height:56px; }

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: block; }
  .mobile-nav { display: block; position: absolute; top: 76px; left: 0; right: 0; max-height: calc(100vh - 76px); overflow-y: auto; padding: 12px 4.2vw 28px; background: #fff; border-top: 1px solid #e0e8e3; box-shadow: 0 16px 32px rgba(7,45,38,.13); }
  .mobile-nav-top { display: flex; align-items: center; border-bottom: 1px solid #e4ebe7; }
  .mobile-nav-top > a { flex: 1; padding: 17px 4px; font-weight: 750; }
  .mobile-nav-top button { padding: 14px; border: 0; background: transparent; }
  .mobile-submenu { display: grid; padding: 8px 12px 15px; background: #f3f8f3; }
  .mobile-submenu a { padding: 11px 8px; color: #34534d; }
  .hero-slide { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header { height: 66px; padding: 0 20px; }
  .brand { font-size: 20px; }
  .language, .header-actions .button-small { display: none; }
  .mobile-nav { top: 66px; max-height: calc(100vh - 66px); }
  .hero { min-height: 0; }
  .hero-slide { display: flex; min-height: 0; flex-direction: column; }
  .hero-copy { padding: 58px 20px 44px; }
  h1 { font-size: clamp(42px,13vw,60px); }
  .hero-copy > p:not(.eyebrow) { font-size: 18px; }
  .hero-image { height: 330px; }
  .hero-arrow { width: 40px; height: 40px; }
  .hero-arrow-prev { left: 10px; }
  .hero-arrow-next { right: 10px; }
  .hero-dots { bottom: 14px; }
  .proof { grid-template-columns: repeat(2,1fr); padding: 20px; gap: 1px; }
  .proof div { padding: 18px 12px; border-right: 0; border-bottom: 0; }
  .proof div:nth-child(-n+2) { border-bottom: 1px solid #d4e0d8; }
  .section { padding: 56px 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .capability-grid { grid-template-columns: repeat(2,1fr); }
  .example-grid { grid-template-columns: repeat(2,1fr); }
  .example-grid article:last-child { grid-column: 1 / -1; width: calc(50% - 7px); }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-grid .factory { grid-column: 1 / -1; }
  .project-grid img { height: 260px; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-grid img { height: 220px; }
  .quote { align-items: flex-start; flex-direction: column; padding: 52px 20px; }
  .site-footer { grid-template-columns: 1fr; gap: 12px; padding: 34px 20px; }
}

@media (max-width: 430px) {
  .hero-actions .button { width: 100%; }
  .capability-grid { grid-template-columns: 1fr; }
  .example-grid { grid-template-columns: 1fr; }
  .example-grid article:last-child { grid-column: auto; width: auto; }
  .project-grid { grid-template-columns: 1fr; }
  .project-grid .factory { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > .eyebrow, .hero-copy > h1, .hero-copy > .hero-heading, .hero-copy > .hero-description, .hero-copy > .hero-actions, .hero-copy > .hero-proof {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  :is(.capability-grid article, .example-grid article, .project-grid figure, .resource-grid article) {
    transform: none;
    transition: none;
  }
  :is(.capability-grid article, .example-grid article, .project-grid figure, .resource-grid article):hover {
    transform: none;
  }
}
