@import url("https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css");

:root {
  color-scheme: light;
  --green: #0E662E;
  --green-2: #38BB64;
  --black: #121212;
  --gray: #666666;
  --soft: #f7f7f7;
  --line: rgba(18, 18, 18, .12);
  --shadow: 0 24px 70px rgba(14, 102, 46, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--black);
  background: #fff;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.en, .eyebrow, .nav, .btn, .meta { font-family: "Montserrat", "Noto Sans SC", sans-serif; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: linear-gradient(135deg, #072716, #0E662E 48%, #38BB64);
  transition: opacity .7s ease, visibility .7s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-mark {
  width: 112px; height: 112px; border-radius: 50%;
  background: radial-gradient(circle at 50% 52%, #fff 0 18%, transparent 19%),
    conic-gradient(from 25deg, #fff, #9bf2b7, #fff, #38BB64, #fff);
  mask: radial-gradient(circle, transparent 0 24%, #000 25%);
  animation: spinBloom 1.25s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes spinBloom { from { transform: rotate(-140deg) scale(.45); opacity: 0; } to { transform: rotate(0) scale(1); opacity: 1; } }

.cursor-dot, .cursor-ring {
  position: fixed; left: 0; top: 0; z-index: 999; pointer-events: none; border-radius: 999px;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 7px; height: 7px; background: var(--green); }
.cursor-ring {
  width: 38px; height: 38px; border: 1px solid rgba(14, 102, 46, .55);
  transition: width .25s ease, height .25s ease, background .25s ease, border-color .25s ease;
}
.cursor-ring.active { width: 70px; height: 70px; background: rgba(56, 187, 100, .12); border-color: rgba(14, 102, 46, .22); }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  padding: 26px 0; transition: padding .3s ease, background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  padding: 12px 0; background: rgba(255,255,255,.78); backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0,0,0,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 700; letter-spacing: .12em; }
.brand img { width: 118px; height: auto; mix-blend-mode: multiply; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { position: relative; color: rgba(18,18,18,.78); }
.nav-links a::after, .link-line::after {
  content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 1px; background: var(--green);
  transition: width .32s ease;
}
.nav-links a:hover::after, .nav-links a.active::after, .link-line:hover::after { width: 100%; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 26px; }

.hero {
  min-height: 100vh; display: grid; align-items: center; position: relative; overflow: hidden;
  background: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.82) 44%, rgba(255,255,255,.55) 100%),
    radial-gradient(circle at 74% 28%, rgba(56,187,100,.18), transparent 34%),
    linear-gradient(135deg, #f8f8f8, #fff);
}
.hero-dark::before {
  background:
    linear-gradient(90deg, rgba(18,18,18,.90) 0%, rgba(18,18,18,.76) 48%, rgba(18,18,18,.46) 100%),
    radial-gradient(circle at 80% 24%, rgba(56,187,100,.35), transparent 34%),
    linear-gradient(135deg, #121212, #0a2012);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .54; }
.hero-inner { position: relative; z-index: 2; padding-top: 92px; }
.hero-logo { width: min(560px, 72vw); margin-bottom: 58px; mix-blend-mode: multiply; }
.hero-dark .hero-logo { filter: invert(1) grayscale(1) contrast(1.25); mix-blend-mode: screen; opacity: .9; }
.eyebrow { color: var(--green); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.hero-dark .eyebrow { color: var(--green-2); }
h1, h2, h3 { margin: 0; line-height: 1.03; letter-spacing: 0; }
.hero-title { font-size: clamp(52px, 9vw, 136px); max-width: 960px; font-weight: 700; }
.hero-dark .hero-title, .hero-dark .lead { color: #fff; }
.lead { font-size: clamp(18px, 2vw, 28px); color: var(--gray); max-width: 700px; line-height: 1.65; margin: 28px 0 0; }
.hero-actions { display: flex; gap: 14px; margin-top: 42px; flex-wrap: wrap; }
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 0 24px; border: 1px solid var(--black); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .22s ease, border-color .22s ease, color .22s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; transform: translateX(-110%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(56,187,100,.34), transparent);
  transition: transform .55s ease;
}
.btn:hover { transform: translateY(-3px); border-color: var(--green); color: var(--green); }
.btn:hover::before { transform: translateX(110%) skewX(-18deg); }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { color: #fff; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 20px; height: 36px; border: 1px solid rgba(18,18,18,.4); border-radius: 20px; transform: translateX(-50%); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 4px; background: var(--green); border-radius: 50%; animation: cue 1.4s infinite; }
@keyframes cue { 0% { transform: translate(-50%,0); opacity: 1; } 100% { transform: translate(-50%,14px); opacity: 0; } }

.section { padding: 132px 0; position: relative; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--black); color: #fff; }
.section-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: end; margin-bottom: 58px; }
.section-title { font-size: clamp(38px, 5.6vw, 82px); }
.section-copy { color: var(--gray); font-size: 18px; line-height: 1.9; margin: 0; }
.section-dark .section-copy { color: rgba(255,255,255,.62); }
.rule { width: 100%; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(0); margin-top: 24px; }

.grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; min-height: 250px; padding: 30px; border: 1px solid var(--line); background: rgba(255,255,255,.78);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, filter .35s ease;
}
.card::before {
  content: ""; position: absolute; inset: -1px; opacity: 0; pointer-events: none;
  background: linear-gradient(135deg, var(--green), transparent 30%, var(--green-2));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; padding: 1px;
  transition: opacity .35s ease;
}
.card:hover { transform: translateY(-12px) rotateX(2deg) rotateY(-2deg); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card .num { color: var(--green); font-size: 13px; letter-spacing: .16em; margin-bottom: 60px; }
.card h3 { font-size: 26px; margin-bottom: 18px; }
.card p { color: var(--gray); line-height: 1.75; margin: 0; }

.service-band { border-top: 1px solid var(--line); padding: 64px 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.service-band h2 { font-size: clamp(34px, 4vw, 64px); }
.service-band p { color: var(--gray); font-size: 18px; line-height: 1.9; margin: 0 0 22px; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { border: 1px solid rgba(14,102,46,.2); color: var(--green); padding: 8px 12px; font-size: 13px; }

.case-rail { display: flex; gap: 22px; overflow-x: auto; padding: 18px 0 34px; cursor: grab; scroll-snap-type: x mandatory; }
.case-rail::-webkit-scrollbar { height: 4px; }
.case-rail::-webkit-scrollbar-thumb { background: var(--green); }
.case-card { flex: 0 0 min(430px, 82vw); scroll-snap-align: center; background: #fff; border: 1px solid var(--line); transition: transform .35s ease, opacity .35s ease, filter .35s ease; }
.case-card.is-center { transform: scale(1.04); filter: none; }
.case-rail:hover .case-card:not(:hover) { opacity: .58; filter: blur(.5px); transform: scale(.96); }
.case-visual { height: 230px; background:
  linear-gradient(135deg, rgba(14,102,46,.95), rgba(56,187,100,.4)),
  repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 44px); }
.case-body { padding: 26px; }
.case-body h3 { font-size: 26px; margin-bottom: 12px; }
.case-body p { color: var(--gray); margin: 0; }

.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.article-card { border-top: 1px solid var(--line); padding: 28px 0; }
.article-card .meta { color: var(--green); font-size: 12px; letter-spacing: .14em; margin-bottom: 16px; }
.article-card h3 { font-size: clamp(26px, 3vw, 42px); margin-bottom: 18px; }
.article-card p { color: var(--gray); line-height: 1.8; }

.team-grid, .logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.portrait { aspect-ratio: 4/5; background: linear-gradient(145deg, #e9ece9, #fff); display: grid; place-items: end center; padding: 28px; overflow: hidden; }
.portrait::before { content: ""; width: 70%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--green-2)); opacity: .18; }
.logo-wall div { border: 1px solid var(--line); min-height: 96px; display: grid; place-items: center; color: var(--gray); transition: transform .25s ease, color .25s ease; }
.logo-wall div:hover { transform: translateY(-6px); color: var(--green); }

.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: center; }
.email-link { position: relative; display: inline-block; font-size: clamp(28px, 5vw, 64px); color: var(--black); margin-top: 26px; }
.qr-card { position: relative; background: #fff; border: 1px solid rgba(14,102,46,.18); padding: 26px; box-shadow: var(--shadow); }
.qr-card::before { content: ""; position: absolute; inset: -16px; border: 1px solid rgba(56,187,100,.22); border-radius: 2px; opacity: 0; animation: pulse 2.4s infinite; }
.qr-card:hover::before { opacity: 1; }
@keyframes pulse { from { transform: scale(.96); opacity: .6; } to { transform: scale(1.06); opacity: 0; } }

.footer { padding: 48px 0; border-top: 1px solid var(--line); color: var(--gray); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.float-wechat {
  position: fixed; right: 24px; top: 50%; z-index: 80; transform: translateY(-50%);
  writing-mode: vertical-rl; background: var(--green); color: #fff; padding: 18px 12px; font-size: 13px; letter-spacing: .18em;
  box-shadow: 0 18px 44px rgba(14,102,46,.24);
}
.wechat-pop { position: fixed; right: 72px; top: 50%; z-index: 81; width: 230px; padding: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translate(10px,-50%); transition: .25s ease; }
.float-wechat:hover + .wechat-pop, .wechat-pop:hover { opacity: 1; visibility: visible; transform: translate(0,-50%); }
.transition-mask { position: fixed; inset: 0; z-index: 950; background: var(--green); transform: scaleX(0); transform-origin: center; pointer-events: none; }

@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring, .hero-canvas { display: none; }
  .site-header { background: rgba(255,255,255,.9); padding: 12px 0; }
  .menu-toggle { display: block; }
  .nav-links { position: fixed; inset: 64px 16px auto 16px; display: none; flex-direction: column; align-items: flex-start; background: #fff; padding: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero { min-height: 88vh; }
  .hero-logo { width: min(420px, 86vw); margin-bottom: 38px; }
  .section { padding: 82px 0; }
  .section-head, .service-band, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid-3, .grid-4, .article-grid, .team-grid, .logo-wall { grid-template-columns: 1fr; }
  .card { min-height: 220px; }
  .float-wechat { top: auto; right: 16px; bottom: 16px; writing-mode: horizontal-tb; transform: none; }
  .wechat-pop { right: 16px; top: auto; bottom: 66px; transform: translateY(10px); }
  .float-wechat:hover + .wechat-pop, .wechat-pop:hover { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
