/* META Group 网站公共样式（2026 改版，版式对标 mdw.co.nz） */
:root{
  --bg:#424230;          /* MDW 主底色 */
  --ph:#4d4d3a;          /* 图片占位色 */
  --ph-line:rgba(255,255,255,.18);
  --white:#fff;
  --text:#dcdcd3;
  --muted:#e1e1da;
  --btn-text:#303030;
}
*{box-sizing:border-box}
html,body{margin:0}
html{overflow-x:clip;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{background:var(--bg);color:var(--text);font-family:Quicksand,sans-serif;font-size:16px;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}

/* ---------- 图片占位 ---------- */
.ph{background:var(--ph);position:relative;overflow:hidden}
.ph::after{content:"";position:absolute;inset:16px;border:1px dashed var(--ph-line);pointer-events:none}
.ph-label{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:24px;color:rgba(255,255,255,.55);font-size:13px;letter-spacing:.06em;text-transform:uppercase;line-height:1.5}
.ph-label small{font-size:12px;text-transform:none;letter-spacing:0;color:rgba(255,255,255,.4)}

/* ---------- 头部 ---------- */
.header{position:fixed;top:0;left:0;right:0;z-index:20;height:77px;padding:0 42px 0 48px;display:flex;align-items:flex-start;justify-content:space-between;transition:background .3s}
.header.stuck{background:rgba(66,66,48,.9)}
.logo{display:block;margin-top:27px;width:170px;transition:width .5s,margin .5s}
.logo img{width:100%;height:auto}
.header.stuck .logo{margin-top:10px;width:110px}
.nav{display:flex;align-items:center;gap:26px;margin-top:23px;transition:margin .3s}
.header.stuck .nav{margin-top:20px}
.nav a{font-size:14px;line-height:24px;letter-spacing:.071em;text-transform:uppercase;color:#fff;padding:6px}
.nav a.active{font-weight:700}
.nav a:hover{opacity:.75}
.burger{display:none;background:none;border:0;padding:0;width:40px;height:40px;color:#fff;cursor:pointer}

/* 手机抽屉菜单 */
.drawer{position:fixed;inset:0;z-index:30;background:var(--bg);transform:translateX(-100%);transition:transform .35s ease;padding:72px 24px 24px}
.drawer.open{transform:none}
.drawer-close{position:absolute;top:15px;right:12px;background:none;border:0;color:#fff;width:40px;height:40px;cursor:pointer}
.drawer a{display:block;color:#fff;font-size:22px;padding:16px 0;border-bottom:1px solid rgba(255,255,255,.12)}

/* ---------- 首屏轮播 ---------- */
.hero{position:relative;height:85vh;min-height:560px;overflow:hidden}
.slide{position:absolute;inset:0;opacity:0;transition:opacity 1s ease}
.slide.on{opacity:1}
.slide .ph-label{padding-top:120px}
.slide picture{display:block;width:100%;height:100%}
.slide img,.feature .img img,.about .img img{width:100%;height:100%;object-fit:cover}
.hero::before{content:"";position:absolute;inset:0 0 auto;height:180px;z-index:1;background:linear-gradient(rgba(0,0,0,.28),transparent);pointer-events:none}
.about .img{position:relative}
.about .img img{position:absolute;inset:0}
.arrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:44px;background:none;border:0;padding:8px 4px;color:#fff;cursor:pointer;z-index:2}
.arrow.prev{left:48px}.arrow.next{right:48px}
.arrow svg{width:28px;height:28px}
.dots{position:absolute;left:0;right:0;bottom:40px;display:flex;justify-content:center;gap:20px;z-index:2}
.dot{width:10px;height:10px;border-radius:50%;border:1px solid #fff;background:transparent;padding:0;cursor:pointer}
.dot.on{background:#fff}

/* ---------- 通用 ---------- */
.container{max-width:1110px;margin:0 auto}
.eyebrow{font-size:14px;color:var(--muted);margin:0 0 16px;font-weight:400}
.h-serif{font-family:Mulish,sans-serif;font-weight:400;font-size:22px;line-height:1.25;color:#fff;margin:0}
.lead{font-size:17px;line-height:1.5;margin:23px 0 0}
.btn{display:inline-flex;align-items:center;justify-content:center;height:56px;padding:8px 32px;background:#fff;color:var(--btn-text);border-radius:4px;font-size:14px;font-weight:700;letter-spacing:.071em;text-transform:uppercase;margin-top:32px;transition:opacity .2s}
.btn:hover{opacity:.88}

/* ---------- Hello ---------- */
.intro{padding:198px 0 56px}
.intro .inner{max-width:700px}

/* ---------- 图左文右 ---------- */
.feature{display:flex;align-items:flex-end;padding-bottom:48px}
.feature .img{flex:0 0 50%;aspect-ratio:2/3}
.feature .txt{flex:1;padding:0 55px 32px 56px;max-width:657px}

/* ---------- 文左图右 ---------- */
.about{display:flex;min-height:1015px}
.about .txt{flex:0 0 50%;display:flex;justify-content:center;padding:48px 0 56px}
.about .col{width:451px}
.about p{font-size:16px;line-height:24px;margin:0}
.about p + p{margin-top:24px}
.about h4{font-family:Quicksand,sans-serif;font-weight:400;font-size:22px;line-height:1.25;color:#fff;margin:40px 0 23px}
.about .img{flex:0 0 50%}

/* ---------- 标语条 ---------- */
.strip{padding:60px 24px;display:flex;justify-content:center}
.strip-inner{min-width:365px;height:183px;display:flex;align-items:center;justify-content:center;gap:20px}
.strip-text{font-size:13px;color:#fff;white-space:nowrap}
.strip-mark{width:110px;height:auto}

/* ---------- 页脚 ---------- */
.footer{padding:56px 0 40px}
.footer-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px}
.footer p{margin:0;font-size:12px;line-height:18px;color:var(--muted)}
.footer .right{text-align:right}
.footer .icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;color:#fff}
.footer .icon svg{width:22px;height:22px}

.about .eyebrow + p{margin-top:0}
.footer strong{color:#fff;font-weight:500;font-size:14px}
.footer p{max-width:360px}
.footer .right{justify-self:end}
.footer-nav{display:flex;justify-content:center;gap:28px;margin-top:40px;flex-wrap:wrap}
.footer-nav a{font-size:14px;letter-spacing:.071em;text-transform:uppercase;color:#fff}
.footer-nav a:hover,.footer a:hover{opacity:.75}
.copy{text-align:center;margin:24px auto 0!important}

/* ---------- Cookie 提示（对标 MDW：右下角卡片，从下方滑入） ---------- */
.cookie{position:fixed;right:24px;bottom:24px;z-index:40;width:400px;max-width:calc(100% - 48px);padding:24px;border-radius:7px;background:var(--bg);box-shadow:0 2px 6px rgba(0,0,0,.3);transform:translateY(calc(100% + 40px));transition:transform .6s ease}
.cookie.show{transform:none}
.cookie h4{font-family:Quicksand,sans-serif;font-weight:400;font-size:22px;line-height:1.25;color:#fff;margin:0 0 16px}
.cookie p{font-size:14px;line-height:1.55;margin:0 0 24px;color:var(--text)}
.cookie-btns{display:flex;gap:24px}
.cookie-btns button{flex:1;height:40px;border:0;border-radius:4px;background:#fff;color:var(--btn-text);font:700 12px Quicksand,sans-serif;letter-spacing:.071em;text-transform:uppercase;cursor:pointer}
.cookie-btns button:hover{opacity:.88}

/* ---------- 对话窗（对标 MDW 的 Contact Us 消息窗） ---------- */
.chat-btn{position:fixed;right:24px;bottom:24px;z-index:35;width:64px;height:64px;border-radius:50%;border:0;background:var(--bg);color:#fff;box-shadow:0 4px 16px rgba(0,0,0,.35);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .35s cubic-bezier(.34,1.56,.64,1)}
.chat-btn:hover{transform:scale(1.06)}
.chat-btn.hidden,.chat-btn.away{transform:scale(0);pointer-events:none}
.chat-btn .ico{position:absolute;width:30px;height:30px;transition:transform .35s cubic-bezier(.34,1.56,.64,1),opacity .2s}
.chat-btn .ico-x{opacity:0;transform:rotate(-90deg) scale(.4)}
.chat-btn.active .ico-chat{opacity:0;transform:rotate(90deg) scale(.4)}
.chat-btn.active .ico-x{opacity:1;transform:none}
.badge{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#e00;color:#fff;font:700 12px/22px Mulish,sans-serif;text-align:center;transition:transform .3s cubic-bezier(.34,1.56,.64,1)}
.badge.gone{transform:scale(0)}

.chat{position:fixed;right:24px;bottom:100px;z-index:36;width:376px;height:min(640px,calc(100vh - 130px));display:flex;flex-direction:column;border-radius:24px;overflow:hidden;background:#eeeeec;box-shadow:0 12px 48px rgba(0,0,0,.35);font-family:Mulish,sans-serif;color:#2b2b2b;
  transform-origin:calc(100% - 32px) calc(100% + 44px);opacity:0;transform:translateY(24px) scale(.6);pointer-events:none;visibility:hidden;
  transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .2s ease,visibility 0s .3s}
.chat.open{opacity:1;transform:none;pointer-events:auto;visibility:visible;transition:transform .45s cubic-bezier(.34,1.4,.64,1),opacity .25s ease,visibility 0s}
.chat-head{position:relative;flex:none;background:var(--bg);color:#fff;text-align:center;padding:24px 24px 26px}
.chat-head h3{margin:0;font-weight:500;font-size:18px}
.chat-min{position:absolute;right:14px;top:18px;width:40px;height:40px;border:0;background:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background .2s}
.chat-min:hover{background:rgba(255,255,255,.1)}
.chat-min svg{width:22px;height:22px}
.chat-back{position:absolute;left:14px;top:18px;width:40px;height:40px;border:0;background:none;color:#fff;cursor:pointer;display:none;align-items:center;justify-content:center;border-radius:50%}
.chat-back svg{width:22px;height:22px}
.avatar{width:52px;height:52px;border-radius:50%;background:#c4f0c5;border:2px solid rgba(255,255,255,.9);display:flex;align-items:flex-end;justify-content:center;overflow:hidden;margin:14px auto 12px;transition:width .3s,height .3s,margin .3s}
.avatar svg{width:78%;height:78%;color:#2fbf4a}
.avatar.sm{width:20px;height:20px;border:0;margin:0;flex:none}
.chat-head p{margin:0;font-size:14px;color:#fff;opacity:.95}
.chat-head.compact .avatar{display:none}
.chat-head.compact p{display:none}
.chat-head.compact .chat-back{display:flex}

.views{position:relative;flex:1;overflow:hidden}
.view{position:absolute;inset:0;display:flex;flex-direction:column;transition:transform .35s cubic-bezier(.4,0,.2,1),opacity .35s}
.view-home{background:linear-gradient(#ededeb,#f6f6f4)}
.view-thread{background:#f6f6f4;transform:translateX(100%);opacity:0}
.chat.thread .view-home{transform:translateX(-30%);opacity:0}
.chat.thread .view-thread{transform:none;opacity:1}

.recent{margin:20px;background:#f6f6f6;border-radius:10px;border-bottom:1.5px solid #3a3a3a;box-shadow:0 1px 4px rgba(0,0,0,.1);padding:18px 20px 20px;cursor:pointer;transition:transform .2s,box-shadow .2s}
.recent:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,0,0,.12)}
.recent h4{margin:0 0 14px;font-size:15px;font-weight:600;color:#555}
.recent-row{display:flex;gap:12px;align-items:center}
.recent-row .feed{width:18px;height:18px;color:#aaa;flex:none}
.recent-main{flex:1;min-width:0}
.recent-top{display:flex;align-items:center;gap:6px}
.recent-top b{font-size:15px;font-weight:700;flex:1}
.recent-top time{font-size:12px;color:#888}
.recent-main p{margin:4px 0 0;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-foot{margin-top:auto;padding:12px 0 14px;border-top:1px solid #e2e2e0;display:flex;justify-content:center;background:inherit}
.send-btn{height:44px;padding:0 34px;border:0;border-radius:22px;background:var(--bg);color:#fff;font:500 16px Mulish,sans-serif;cursor:pointer;transition:transform .2s,opacity .2s}
.send-btn:hover{opacity:.9}
.send-btn:active{transform:scale(.97)}

.msgs{flex:1;overflow-y:auto;padding:18px 16px 8px;display:flex;flex-direction:column;gap:10px}
.msg{max-width:82%;padding:10px 14px;font-size:14px;line-height:1.45;border-radius:16px;animation:pop .3s cubic-bezier(.34,1.56,.64,1) both}
.msg.them{align-self:flex-start;background:#fff;border-bottom-left-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.msg.me{align-self:flex-end;background:var(--bg);color:#fff;border-bottom-right-radius:4px}
.msg-meta{font-size:11px;color:#999;margin:-4px 0 0 4px}
@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.94)}}
.compose{flex:none;padding:10px 12px 12px;border-top:1px solid #e2e2e0;background:#fff;display:flex;flex-direction:column;gap:8px}
.compose .who{display:flex;gap:8px}
.compose input,.compose textarea{width:100%;font:14px Mulish,sans-serif;padding:9px 12px;border:1px solid #dcdcd8;border-radius:10px;background:#fafaf8;color:#2b2b2b;resize:none}
.compose input:focus,.compose textarea:focus{outline:none;border-color:var(--bg)}
.compose .row{display:flex;gap:8px;align-items:flex-end}
.compose .go{flex:none;width:40px;height:40px;border-radius:50%;border:0;background:var(--bg);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.compose .go svg{width:18px;height:18px}

/* ================= 子页面（对标 MDW 子页：实色头部，内容从 logo 下方开始） ================= */
.page .header{background:var(--bg);height:140px}
.page .header.stuck{background:rgba(66,66,48,.95);height:77px}
.page main{padding-top:196px}
.page-title{font-family:Mulish,sans-serif;font-weight:400;font-size:44px;line-height:1.2;color:#fff;margin:0}
.page-title.center{text-align:center}
.page-lead{font-size:17px;line-height:1.5;margin:24px 0 0;max-width:725px}
.section{padding:0 0 96px}
.narrow{max-width:725px;margin:0 auto}
.footer a.inline{border-bottom:1px solid rgba(255,255,255,.35)}

/* Work：项目列表（MDW Residential 页：左图右字） */
.work-head{margin-bottom:56px}
.filters{display:flex;flex-wrap:wrap;gap:8px 28px;margin:40px 0 0}
.filters button{background:none;border:0;padding:6px 0;color:#fff;font:400 14px Quicksand,sans-serif;letter-spacing:.071em;text-transform:uppercase;cursor:pointer;opacity:.7;border-bottom:1px solid transparent;transition:opacity .2s,border-color .2s}
.filters button:hover{opacity:1}
.filters button.on{opacity:1;font-weight:700;border-bottom-color:#fff}
.projects{display:flex;flex-direction:column;gap:48px}
.project{display:grid;grid-template-columns:725px 1fr;gap:48px;align-items:start}
.project[hidden]{display:none}
.project .shot{aspect-ratio:3/2}
.project .shot img{width:100%;height:100%;object-fit:cover}
.project .tag{margin:0 0 10px;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);opacity:.7}
.project h3{margin:0;font:400 16px/24px Quicksand,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#fff}
.project .type{margin:6px 0 0;font-size:14px;color:var(--muted);opacity:.85}
.project dl{margin:20px 0 0;font-size:15px;line-height:1.55}
.project dt{color:#fff;margin-top:14px}
.project dt:first-child{margin-top:0}
.project dd{margin:4px 0 0}
.work-empty{margin-top:24px;font-size:15px}

/* Services / About：左右分栏（同首页图文区） */
.split{display:flex;align-items:stretch;min-height:640px}
.split + .split{margin-top:0}
.split .img{flex:0 0 50%;position:relative;min-height:520px}
.split .img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.split .txt{flex:1;display:flex;flex-direction:column;justify-content:center;padding:72px 8%}
.split .txt .col{max-width:480px}
.split.reverse{flex-direction:row-reverse}
.split p{font-size:16px;line-height:24px;margin:0}
.split p + p{margin-top:20px}
.split .page-title + p,.split .h-serif + p{margin-top:24px}
.services-intro{padding-bottom:72px}
.about-top{min-height:720px}
.about-top .txt{justify-content:flex-start;padding-top:0}

/* About：流程（MDW Process 页：居中单栏） */
.process{padding:96px 0 40px}
.process h4,.prose h4{font-family:Quicksand,sans-serif;font-weight:400;font-size:22px;line-height:1.25;color:#fff;margin:40px 0 23px}
.process p,.prose p,.prose li{font-size:16px;line-height:24px;margin:0}
.prose p + p{margin-top:16px}
.process .step{display:grid;grid-template-columns:56px 1fr;gap:0 8px}
.process .num{font-family:Mulish,sans-serif;font-size:22px;line-height:1.25;color:var(--muted);opacity:.6;padding-top:40px}
.process .step h4{margin-top:40px}
.prose ul{margin:12px 0 0;padding-left:20px}
.prose li + li{margin-top:6px}
.prose ul + p{margin-top:16px}
.prose a{border-bottom:1px solid rgba(255,255,255,.4);color:#fff}
.cta{padding:24px 0 96px;text-align:center}

/* Contact：居中表单（MDW Contact 页） */
.contact-page .page-lead{margin-left:auto;margin-right:auto;text-align:center}
.cform{max-width:725px;margin:48px auto 0;display:flex;flex-direction:column;gap:24px}
.cform label{position:relative;display:block}
.cform .lbl{display:block;font-size:14px;color:var(--muted);margin-bottom:8px}
.cform input,.cform textarea{width:100%;font:16px Quicksand,sans-serif;color:#fff;background:transparent;border:1px solid rgba(255,255,255,.85);border-radius:4px;padding:15px 16px;transition:border-color .2s,box-shadow .2s}
.cform input{height:52px}
.cform textarea{min-height:200px;resize:vertical}
.cform input:focus,.cform textarea:focus{outline:none;border-color:#fff;box-shadow:0 0 0 1px #fff}
.cform .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.cform .actions{text-align:center}
.cform .btn{margin-top:8px;border:0;cursor:pointer;font-family:Quicksand,sans-serif}
.cform .btn[disabled]{opacity:.6;cursor:wait}
.form-note{margin:0;text-align:center;font-size:12px;color:var(--muted)}
.form-msg{margin:0;text-align:center;font-size:15px;min-height:22px}
.form-msg.ok{color:#d9f2c7}
.form-msg.err{color:#ffd2c2}
.contact-info{margin:72px auto 0;text-align:center}
.contact-info h4{font-family:Quicksand,sans-serif;font-weight:400;font-size:22px;color:#fff;margin:0 0 16px}
.contact-info p{margin:0;font-size:16px;line-height:1.6}
.contact-info a{border-bottom:1px solid rgba(255,255,255,.4);color:#fff}

/* 对话窗发送状态 */
.msg.err{background:#fff3ef;color:#7a2e12}
.compose .go[disabled]{opacity:.5;cursor:wait}

/* ---------- 手机端 ---------- */
@media (max-width:767px){
  .header{padding:0 8px 0 16px;height:60px}
  .header.stuck{height:60px}
  .logo{margin-top:20px;width:130px}
  .header.stuck .logo{margin-top:6px;width:90px}
  .nav{display:none}
  .burger{display:block;margin-top:8px}
  .hero{height:560px;min-height:0}
  .slide .ph-label{padding-top:140px;padding-bottom:80px}
  .arrow{top:auto;bottom:24px;transform:none;width:28px;height:28px;padding:0}
  .arrow.prev{left:40px}.arrow.next{right:40px}
  .dots{bottom:38px}
  .container{padding:0 24px}
  .intro{padding:40px 0}
  .intro .inner{max-width:none}
  .h-serif{font-size:22px}
  .btn{display:flex;width:100%}
  .feature{display:block;padding-bottom:48px}
  .feature .img{width:100%}
  .feature .txt{padding:48px 24px 0;max-width:none}
  .about{display:flex;flex-direction:column-reverse;min-height:0}
  .about .img{flex:none;height:275px}
  .about .img img{object-position:50% 35%}
  .about .txt{padding:80px 24px 40px}
  .about .col{width:100%}
  .about .btn{display:inline-flex;width:auto}
  .strip{padding:44px 24px}
  .strip-inner{width:auto;height:auto;flex-direction:column;gap:18px;text-align:center}
  .strip-text{white-space:normal}
  .strip-mark{width:110px}
  .footer{padding:40px 0}
  .footer-row{grid-template-columns:1fr;justify-items:center;text-align:center;gap:16px}
  .footer .right{text-align:center}
  .footer .right{justify-self:center}
  .footer-nav{gap:18px}
  .cookie{left:0;right:0;bottom:0;width:auto;max-width:none;border-radius:0}
  .chat-btn{right:16px;bottom:16px;width:58px;height:58px}
  .chat{right:0;left:0;top:0;bottom:0;width:auto;height:auto;border-radius:0;transform-origin:calc(100% - 45px) calc(100% - 45px)}
  .chat-btn.active{transform:scale(0);pointer-events:none}
  /* 子页面 */
  .page .header{height:110px}
  .page .header.stuck{height:60px}
  .page main{padding-top:140px}
  .page-title{font-size:32px}
  .section{padding-bottom:64px}
  .project{grid-template-columns:1fr;gap:20px}
  .split,.split.reverse{flex-direction:column;min-height:0}
  .split .img{min-height:0;aspect-ratio:4/5}
  .split .txt{padding:40px 24px 56px}
  .about-top{flex-direction:column}
  .about-top .txt{padding:0 24px 40px}
  .process{padding:56px 0 24px}
  .process .step{grid-template-columns:40px 1fr}
  .cform{margin-top:36px}
  .contact-info{margin-top:56px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
