:root {
  --paper: #F3F0E8;
  --paper-2: #EAE5D8;
  --card: #FBFAF6;
  --ink: #171814;
  --ink-2: #4B4C45;
  --ink-3: #85857B;
  --line: rgba(23, 24, 20, .11);
  --line-2: rgba(23, 24, 20, .18);
  --sage: #A8BC8E;
  --forest: #1B2A20;
  --accent: #E2672B;
  --feishu: #3370FF;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 40px -24px rgba(30, 32, 20, .35);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.025em; line-height: 1.15; }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -12px rgba(0,0,0,.55); }
.btn-dark:hover { background: #2a2b25; }
.btn-line { border: 1px solid var(--line-2); background: var(--card); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }

/* ---------- 顶栏 ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(243, 240, 232, .78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 17px; letter-spacing: .08em; }
.brand-text small { font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(23,24,20,.06); color: var(--ink); }

/* ---------- 首屏 ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(48px, 7vw, 88px); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13px; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3DAA5C; box-shadow: 0 0 0 4px rgba(61,170,92,.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(61,170,92,0); } }
.hero h1 { font-size: clamp(30px, 4.2vw, 60px); margin: 22px 0 22px; letter-spacing: -.035em; }
.hero h1 span { display: inline-block; }
.lead { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 40px; margin: 44px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; }
.stats dt { order: 2; font-size: 13px; color: var(--ink-3); }
.stats dd { order: 1; margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 650; letter-spacing: -.03em; line-height: 1.2; }

.hero-visual { position: relative; aspect-ratio: 1 / 1.05; }
.portrait { position: absolute; inset: 0 4% 6% 4%; border-radius: 36px; overflow: hidden; background: #F1EEE7; box-shadow: var(--shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: rgba(251,250,246,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 40px -22px rgba(0,0,0,.35); animation: bob 6s ease-in-out infinite; }
.float b { display: block; font-size: 14px; }
.float small { font-size: 12px; color: var(--ink-3); }
.float img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.f1 { left: -6%; top: 14%; }
.f2 { right: -4%; top: 46%; animation-delay: -2s; }
.f3 { left: 2%; bottom: 0; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* 平台色块 */
.tile { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; font-weight: 700; font-size: 17px; color: #fff; letter-spacing: 0; }
.tile.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
.tile svg { width: 22px; height: 22px; }
.tile.sm svg { width: 16px; height: 16px; }
.t-feishu { background: var(--feishu); }
.t-ja { background: #fff; color: #C8372D; border: 1px solid var(--line); font-family: "Hiragino Mincho ProN", "Songti SC", serif; }
.t-ink { background: var(--ink); }
.t-wechat { background: #07C160; }
.t-xianyu { background: #FFE14D; color: #1a1a1a; }
.t-taobao { background: #FF5000; }
.t-youtube { background: #FF0033; }
.t-douyin { background: #111; }
.t-xiaohongshu { background: #FF2442; font-size: 12px; }
.t-bilibili { background: #00A1D6; }
.t-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.t-x { background: #000; }
.t-whatsapp { background: #25D366; }
.t-email { background: #5B5D52; }
.t-fanqie { background: #F2522E; }
.t-web { background: var(--ink-2); }

/* ---------- 跑马灯 ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--paper-2); }
.marquee-track { display: flex; width: max-content; animation: scroll 50s linear infinite; }
.marquee-track span { padding: 16px 26px; font-size: 15px; color: var(--ink-2); white-space: nowrap; display: flex; align-items: center; gap: 26px; }
.marquee-track span::after { content: "✦"; color: var(--accent); font-size: 11px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- 区块 ---------- */
.section { padding-top: clamp(72px, 10vw, 128px); }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sec-head h2, .farm h2, .contact h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -.035em; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 14px; text-transform: uppercase; }
.eyebrow.light { color: rgba(255,255,255,.6); }
.sec-note { color: var(--ink-3); font-size: 14.5px; max-width: 26em; }

/* ---------- 四大业务 ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc { position: relative; display: flex; flex-direction: column; min-height: 340px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; isolation: isolate; text-align: left; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-top { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: .06em; }
.svc h3 { font-size: clamp(26px, 2.8vw, 36px); margin: auto 0 10px; padding-top: 48px; }
.svc p { color: var(--ink-2); max-width: 30em; }
.svc ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc li { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(23,24,20,.05); color: var(--ink-2); }
.svc-go { position: absolute; right: clamp(20px, 3vw, 32px); bottom: clamp(20px, 3vw, 32px); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 18px; transition: transform .3s; }
.svc:hover .svc-go { transform: rotate(-45deg); }
.svc .glyph { position: absolute; right: -6px; top: -36px; font-size: 220px; line-height: 1; font-weight: 800; letter-spacing: -.06em; color: rgba(23,24,20,.045); z-index: -1; pointer-events: none; }
.svc.feishu .glyph { color: rgba(51,112,255,.09); }
.svc.feishu li { background: rgba(51,112,255,.08); color: #2550c0; }
.svc.enterprise { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.svc.enterprise p, .svc.enterprise .svc-top { color: rgba(243,240,232,.62); }
.svc.enterprise li { background: rgba(255,255,255,.08); color: rgba(243,240,232,.85); }
.svc.enterprise .svc-go { background: var(--accent); color: #fff; }
.svc.enterprise .glyph { color: rgba(255,255,255,.05); }
.svc.farm { color: #fff; border: 0; background: #23331f; }
.svc.farm::before { content: ""; position: absolute; inset: 0; background: url(/img/tianjia.jpg) center 40% / cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.svc.farm::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,10,.15) 0%, rgba(10,16,10,.82) 100%); z-index: -1; }
.svc.farm:hover::before { transform: scale(1.04); }
.svc.farm p, .svc.farm .svc-top { color: rgba(255,255,255,.75); }
.svc.farm li { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); }
.svc.farm .svc-go { background: #fff; color: var(--ink); }
.svc.japanese .glyph { color: rgba(200,55,45,.08); }
.svc.japanese { background: #FCFAF5; }
.svc.japanese::after { content: ""; position: absolute; right: 56px; top: 76px; width: 96px; height: 96px; border-radius: 50%; background: #C8372D; z-index: -1; }
.svc.japanese li { background: rgba(200,55,45,.07); color: #9b2f25; }

/* ---------- 作品 ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 24px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.chip i { font-style: normal; font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.on i { color: rgba(243,240,232,.6); }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; animation: rise .5s both; }
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.work.wide { grid-column: span 2; flex-direction: row; }
.work.wide .work-media { flex: 1.15; aspect-ratio: auto; min-height: 320px; }
.work.wide .work-body { flex: 1; }
.work-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.work:hover .work-media img { transform: scale(1.04); }
.work-type { position: relative; aspect-ratio: 16 / 7; padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.work-type .big { position: absolute; right: 18px; bottom: -14px; font-size: 96px; font-weight: 800; letter-spacing: -.05em; line-height: 1; opacity: .16; }
.work-type .mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; opacity: .7; }
.c-feishu .work-type { background: linear-gradient(135deg, #E7EEFF, #F6F8FF); color: #2550c0; }
.c-enterprise .work-type { background: linear-gradient(135deg, #22231E, #3a3b33); color: #F3F0E8; }
.c-farm .work-type { background: linear-gradient(135deg, #DCE6CF, #F0F4EA); color: #3a5a2e; }
.c-japanese .work-type { background: linear-gradient(135deg, #F8E7E2, #FCF5F2); color: #B1372C; }
.c-apps .work-type { background: linear-gradient(135deg, #DDF3E5, #F1FAF4); color: #157a43; }
.c-automation .work-type { background: linear-gradient(135deg, #F7EAD9, #FCF6EE); color: #a35319; }
.c-creative .work-type { background: linear-gradient(135deg, #E9E3F3, #F6F3FA); color: #5a3e8c; }
.badge { position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(251,250,246,.92); color: var(--ink); backdrop-filter: blur(6px); }
.work-type .badge { position: static; align-self: flex-start; }
.work-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 20px; }
.work-cat { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.work h3 { font-size: 19px; letter-spacing: -.015em; }
.work.wide h3 { font-size: clamp(24px, 2.4vw, 32px); }
.work .sub { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }
.work .desc { margin-top: 12px; color: var(--ink-2); font-size: 14.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags span { font-size: 12px; padding: 3px 9px; border-radius: 6px; background: rgba(23,24,20,.05); color: var(--ink-2); }
.work-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.price { font-weight: 650; font-size: 15px; }
.price.muted { color: var(--ink-3); font-weight: 500; font-size: 13.5px; }
.go { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13.5px; font-weight: 600; transition: background .2s; }
.go:hover { background: var(--accent); }
.go.soft { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.go.soft:hover { border-color: var(--ink); background: transparent; }
.more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- 农场 ---------- */
.farm { position: relative; margin-top: clamp(72px, 10vw, 128px); color: #fff; background: var(--forest); overflow: hidden; isolation: isolate; }
.farm-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; transform: scale(1.05); }
.farm::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,22,15,.92) 0%, rgba(14,22,15,.72) 45%, rgba(14,22,15,.35) 100%), linear-gradient(0deg, rgba(14,22,15,.9) 0%, transparent 45%); }
.farm-in { padding-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(48px, 6vw, 72px); }
.farm h2 { max-width: 14em; }
.farm-in > p:not(.eyebrow) { margin-top: 20px; max-width: 32em; color: rgba(255,255,255,.78); font-size: clamp(16px, 1.4vw, 18px); }
.farm-strip { display: flex; gap: 14px; margin-top: clamp(48px, 7vw, 88px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.farm-strip::-webkit-scrollbar { display: none; }
.bot { flex: 0 0 clamp(220px, 22vw, 260px); scroll-snap-align: start; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); transition: transform .3s, background .3s; }
.bot:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.bot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bot div { padding: 12px 14px 14px; }
.bot b { display: block; font-size: 15px; }
.bot small { font-size: 12.5px; color: rgba(255,255,255,.6); }

/* ---------- 渠道 ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ch-group { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); padding: 10px; }
.ch-group h3 { font-size: 15px; padding: 14px 14px 10px; display: flex; justify-content: space-between; align-items: baseline; }
.ch-group h3 small { font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.ch { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: 14px; text-align: left; transition: background .2s; }
.ch:hover { background: var(--paper); }
.ch-text { flex: 1; min-width: 0; }
.ch-text b { display: block; font-size: 15px; }
.ch-text small { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-arrow { color: var(--ink-3); transition: transform .2s, color .2s; }
.ch:hover .ch-arrow { transform: translateX(3px); color: var(--ink); }
.ch-group.g-order { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ch-group.g-order h3 small, .ch-group.g-order .ch-text small, .ch-group.g-order .ch-arrow { color: rgba(243,240,232,.55); }
.ch-group.g-order .ch:hover { background: rgba(255,255,255,.07); }
.ch-group.g-order .ch:hover .ch-arrow { color: #fff; }

/* ---------- 留言 ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; padding-bottom: clamp(72px, 10vw, 120px); }
.contact h2 { margin-bottom: 18px; }
.promise { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.promise li { display: flex; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.promise b { min-width: 3.2em; font-size: 22px; letter-spacing: -.02em; }
.promise span { color: var(--ink-2); }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.field.two { grid-template-columns: 1fr 1fr; gap: 14px; }
.field.two label { display: grid; gap: 8px; }
.field em, .label em { color: var(--accent); font-style: normal; }
.form input, .form select, .form textarea { width: 100%; border: 1px solid var(--line-2); background: var(--paper); border-radius: 14px; padding: 13px 15px; font-size: 15.5px; font-weight: 400; transition: border-color .2s, background .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(23,24,20,.06); }
.contact-type { display: flex; gap: 6px; flex-wrap: wrap; }
.contact-type button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.contact-type button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.4em; font-size: 14px; text-align: center; color: var(--ink-2); }
.form-msg.err { color: #C23B22; }
.form.sent { text-align: center; place-items: center; padding-block: 64px; }
.form.sent .ok-icon { width: 64px; height: 64px; border-radius: 50%; background: #3DAA5C; color: #fff; display: grid; place-items: center; font-size: 30px; }
.form.sent h3 { font-size: 24px; }
.form.sent p { color: var(--ink-2); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 13.5px; color: var(--ink-3); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 弹窗 / 提示 ---------- */
.modal { border: 0; padding: 0; border-radius: 28px; background: var(--card); color: var(--ink); width: min(380px, calc(100vw - 32px)); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.modal::backdrop { background: rgba(20,20,16,.45); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .3s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal-body { padding: 32px 28px 28px; text-align: center; }
.modal-body .tile { margin: 0 auto 14px; }
.modal-body h3 { font-size: 22px; }
.modal-body p { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }
.qr { width: 220px; height: 220px; margin: 20px auto 6px; border-radius: 16px; border: 1px solid var(--line); object-fit: contain; background: #fff; padding: 8px; }
.wx-id { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 0; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--paper); font-family: var(--mono); font-size: 15px; }
.modal-body .btn { margin-top: 18px; }
.close { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border-radius: 50%; font-size: 24px; color: var(--ink-3); }
.close:hover { background: var(--paper); color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 100; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 手机底栏 ---------- */
.dock { display: none; }

/* ---------- 动效进入 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .works { grid-template-columns: repeat(2, 1fr); }
  .channels { grid-template-columns: 1fr 1fr; }
  .channels .g-order { grid-column: span 2; }
  .f1 { left: -2%; }
  .f2 { right: -2%; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-visual { order: -1; width: min(78%, 360px); margin: 0 auto 4px; }
  .hero-copy { text-align: left; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
  .services { grid-template-columns: 1fr; }
  .svc { min-height: 280px; }
  .contact { grid-template-columns: 1fr; }
  .work.wide { grid-column: span 2; flex-direction: column; }
  .work.wide .work-media { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .nav-in { height: 60px; }
  .nav .btn { display: none; }
  .hero h1 { font-size: clamp(26px, 7.6vw, 40px); }
  .cta-row .btn { flex: 1 1 auto; }
  .cta-row .btn-ghost { display: none; }
  .hero-visual { width: 82%; }
  .float { padding: 8px 12px 8px 8px; gap: 8px; border-radius: 14px; }
  .float .tile, .float img { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
  .float b { font-size: 12.5px; }
  .float small { font-size: 11px; }
  .f1 { left: -12%; top: 8%; }
  .f2 { right: -12%; top: 50%; }
  .f3 { left: -8%; bottom: -2%; }
  .works { grid-template-columns: 1fr; }
  .work.wide { grid-column: auto; }
  .channels { grid-template-columns: 1fr; }
  .channels .g-order { grid-column: auto; }
  .field.two { grid-template-columns: 1fr; }
  .svc .glyph { font-size: 160px; }
  .svc.japanese::after { right: 28px; top: 28px; width: 44px; height: 44px; }
  .footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .dock { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; padding: 6px; border-radius: 22px; background: rgba(23,24,20,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); transform: translateY(140%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
  .dock.show { transform: none; }
  .dock > * { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 6px; border-radius: 16px; color: var(--paper); font-size: 12px; }
  .dock > *:active { background: rgba(255,255,255,.08); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 多语言 ---------- */
.pre { white-space: pre-line; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--card); transition: border-color .2s, color .2s; }
.lang-btn:hover { border-color: var(--ink); color: var(--ink); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; padding: 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(0,0,0,.35); z-index: 70; animation: pop .2s cubic-bezier(.2,.8,.2,1); }
.lang-menu button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; text-align: left; }
.lang-menu button:hover { background: var(--paper); }
.lang-menu button[aria-checked="true"] { font-weight: 650; }
:lang(ja) { --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, -apple-system, sans-serif; }
:lang(ko) { --font: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", -apple-system, sans-serif; }
:lang(zh-Hant) { --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", -apple-system, sans-serif; }
:lang(en) { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif; }
html:lang(en) .hero h1, html:lang(en) .sec-head h2, html:lang(en) .farm h2 { letter-spacing: -.03em; }
html:lang(ko) body, html:lang(ko) .lead { word-break: keep-all; }
html:lang(en) .hero h1 span, html:lang(ko) .hero h1 span { display: inline; }
html:lang(en) .hero h1 span::after, html:lang(ko) .hero h1 span::after { content: "\A"; white-space: pre; }
@media (max-width: 640px) {
  .lang-btn { height: 36px; padding: 0 10px; }
}

/* 17 种语言：菜单两列 */
.lang-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; min-width: 300px; max-height: min(70vh, 520px); overflow-y: auto; }
.lang-menu[hidden] { display: none; }
.lang-menu button { font-size: 14px; padding: 9px 12px; }
@media (max-width: 640px) { .lang-menu { position: fixed; left: 12px; right: 12px; top: 64px; min-width: 0; } }
:lang(es), :lang(fr), :lang(de), :lang(pt), :lang(it), :lang(tr), :lang(id), :lang(vi), :lang(ru) { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif; }
:lang(ar) { --font: "Geeza Pro", "SF Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
:lang(hi) { --font: "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", "Mangal", -apple-system, sans-serif; }
:lang(th) { --font: "Thonburi", "Sukhumvit Set", "Noto Sans Thai", "Leelawadee UI", -apple-system, sans-serif; }
html:not(:lang(zh-CN)):not(:lang(zh-Hant)):not(:lang(ja)) .hero h1 span { display: inline; }
html:not(:lang(zh-CN)):not(:lang(zh-Hant)):not(:lang(ja)) .hero h1 span::after { content: "\A"; white-space: pre; }
:lang(ar) .hero h1, :lang(ar) h2, :lang(hi) .hero h1, :lang(th) .hero h1, :lang(ar) .eyebrow { letter-spacing: 0; line-height: 1.35; }
:lang(ru) .hero h1, :lang(de) .hero h1 { hyphens: auto; }
/* 从右到左（阿拉伯语） */
[dir=rtl] .svc-go { right: auto; left: clamp(20px, 3vw, 32px); }
[dir=rtl] .svc .glyph { right: auto; left: -6px; }
[dir=rtl] .work-type .big { right: auto; left: 18px; }
[dir=rtl] .badge { left: auto; right: 14px; }
[dir=rtl] .lang-menu { right: auto; left: 0; }
[dir=rtl] .svc-go, [dir=rtl] .ch-arrow, [dir=rtl] .cta-row .btn > span[aria-hidden] { transform: scaleX(-1); }
[dir=rtl] .ch:hover .ch-arrow { transform: scaleX(-1) translateX(3px); }
[dir=rtl] .marquee-track { animation-direction: reverse; }
[dir=rtl] .form select { background-position: 20px 55%, 15px 55%; padding-right: 15px; padding-left: 36px; }
