/* 安熵家 App 下载页 */
.download-page{
  min-height:100vh;overflow-x:hidden;background:#f6faf7;color:var(--text);
  padding-bottom:env(safe-area-inset-bottom);
}
.download-header{
  position:relative;z-index:20;background:rgba(255,255,255,.88);
  border-bottom:1px solid rgba(0,115,59,.1);backdrop-filter:blur(16px);
}
.download-header-inner{height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.download-back{
  min-height:44px;display:inline-flex;align-items:center;gap:8px;padding:9px 17px;
  border:1px solid rgba(0,115,59,.18);border-radius:999px;color:var(--accent);
  font-size:14px;font-weight:700;background:#fff;transition:.22s ease;
}
.download-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.download-back:hover{background:var(--accent-soft);border-color:rgba(0,115,59,.34);transform:translateY(-1px)}

.download-main{min-height:calc(100vh - 76px)}
.download-hero{position:relative;isolation:isolate;overflow:hidden;padding:clamp(56px,7vw,96px) 0 clamp(64px,8vw,112px)}
.download-hero::before{
  content:"";position:absolute;inset:0;z-index:-3;
  background:linear-gradient(145deg,#f8fcf9 0%,#eef8f1 48%,#f8fbf9 100%);
}
.download-hero::after{
  content:"";position:absolute;z-index:-2;left:0;right:0;bottom:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(0,115,59,.18),transparent);
}
.download-orb{position:absolute;z-index:-1;border-radius:50%;filter:blur(2px);pointer-events:none}
.download-orb-one{width:520px;height:520px;right:-170px;top:-230px;background:radial-gradient(circle,rgba(2,187,93,.16),rgba(2,187,93,0) 68%)}
.download-orb-two{width:430px;height:430px;left:-210px;bottom:-210px;background:radial-gradient(circle,rgba(0,115,59,.12),rgba(0,115,59,0) 68%)}
.download-layout{
  width:min(1080px,92%);display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,430px);
  align-items:center;gap:clamp(48px,7vw,92px);
}
.download-intro{min-width:0}
.download-eyebrow{
  display:inline-flex;align-items:center;gap:9px;margin-bottom:18px;color:var(--accent);
  font-family:var(--font-en);font-size:12px;font-weight:800;letter-spacing:2.2px;
}
.download-eyebrow::before{content:"";width:28px;height:2px;border-radius:2px;background:var(--accent-bright)}
.download-intro h1{font-size:clamp(38px,5vw,64px);line-height:1.16;letter-spacing:-1.5px;font-weight:850;color:#122018}
.download-intro h1 em{font-style:normal;color:var(--accent)}
.download-intro > p{max-width:620px;margin-top:24px;color:var(--text-2);font-size:clamp(15px,1.6vw,17px);line-height:1.9}
.download-features{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.download-features span{
  display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:999px;
  background:rgba(255,255,255,.72);border:1px solid rgba(0,115,59,.13);
  color:#315343;font-size:12.5px;font-weight:650;box-shadow:0 4px 15px rgba(0,76,39,.04);
}
.download-features span::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent-bright)}

.download-preview{height:238px;max-width:500px;margin-top:36px;position:relative;overflow:hidden}
.preview-card{
  position:absolute;bottom:-92px;width:150px;height:300px;padding:6px;border-radius:25px;
  background:#101512;box-shadow:0 24px 48px rgba(19,41,29,.16);overflow:hidden;
}
.preview-card img{width:100%;height:100%;border-radius:20px;object-fit:cover;object-position:top}
.preview-card-left{left:3%;transform:rotate(-8deg) translateY(24px);opacity:.72}
.preview-card-main{left:50%;z-index:2;transform:translateX(-50%);width:164px;height:326px}
.preview-card-right{right:3%;transform:rotate(8deg) translateY(24px);opacity:.72}

.download-panel{
  background:rgba(255,255,255,.92);border:1px solid rgba(0,115,59,.13);border-radius:28px;
  padding:clamp(24px,3vw,34px);box-shadow:0 30px 80px rgba(23,70,45,.13);
  backdrop-filter:blur(18px);
}
.download-app-id{display:flex;align-items:center;gap:15px}
.download-app-icon{
  width:64px;height:64px;flex:0 0 64px;display:flex;align-items:center;justify-content:center;
  border-radius:18px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-sm);overflow:hidden;
}
.download-app-icon img{width:52px;height:52px;object-fit:contain}
.download-app-id strong{display:block;font-size:19px;font-weight:800;color:var(--text);line-height:1.35}
.download-app-id div span{display:block;margin-top:5px;font-size:12.5px;color:var(--text-3);line-height:1.5}
.download-divider{height:1px;background:var(--line);margin:24px 0 20px}
.download-label{font-size:12px;font-weight:800;letter-spacing:1.5px;color:var(--text-3);margin-bottom:12px}
.store-card{
  width:100%;min-width:0;display:flex;align-items:center;gap:13px;padding:15px;
  border-radius:18px;border:1px solid var(--line);background:#fff;text-align:left;
}
.store-card + .store-card{margin-top:12px}
.store-card-android{transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;background:linear-gradient(135deg,#fff 0%,#f6fff9 100%)}
.store-card-android:hover{transform:translateY(-2px);border-color:rgba(2,187,93,.42);box-shadow:0 14px 30px rgba(0,115,59,.1)}
.store-card-android:focus-visible{outline:3px solid rgba(2,187,93,.28);outline-offset:3px}
.store-icon{
  width:48px;height:48px;flex:0 0 48px;display:flex;align-items:center;justify-content:center;
  border-radius:14px;background:var(--accent-soft);color:var(--accent);
}
.store-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.store-copy{flex:1;min-width:0}
.store-copy strong{display:block;font-size:15.5px;font-weight:750;color:var(--text);line-height:1.4}
.store-copy small{display:block;margin-top:3px;font-size:12px;color:var(--text-3);white-space:normal}
.store-action{
  min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:10px 14px;border:0;border-radius:999px;background:var(--accent-bright);
  color:#fff;font-size:13px;font-weight:750;white-space:nowrap;
}
.store-action svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.store-card-disabled{background:#f5f6f6;border-color:#e8eae9;color:#9ca2a0}
.store-card-disabled .store-icon{background:#e8ebea;color:#9ba19f}
.store-card-disabled .store-copy strong,.store-card-disabled .store-copy small{color:#9ba19f}
.store-action-disabled{background:#e2e5e4;color:#949a98;cursor:not-allowed}
.download-note{display:flex;align-items:flex-start;gap:10px;margin-top:20px;padding:13px 14px;border-radius:13px;background:#f7f9f8;color:var(--text-3)}
.download-note svg{width:18px;height:18px;flex:0 0 18px;margin-top:2px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.download-note p{font-size:11.5px;line-height:1.7}

.download-steps{padding:clamp(62px,8vw,96px) 0;background:#fff}
.download-steps-head{text-align:center;margin-bottom:38px}
.download-steps-head > span{font-size:12px;font-weight:800;letter-spacing:2px;color:var(--accent)}
.download-steps-head h2{margin-top:8px;font-size:clamp(27px,3vw,38px);line-height:1.3;color:var(--text)}
.download-step-list{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:960px;margin:0 auto;counter-reset:none}
.download-step-list li{display:flex;align-items:center;gap:16px;padding:23px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-sm)}
.download-step-list b{font-family:var(--font-en);font-size:24px;line-height:1;color:rgba(0,115,59,.22)}
.download-step-list strong{display:block;font-size:15px;color:var(--text)}
.download-step-list span{display:block;margin-top:4px;font-size:12.5px;color:var(--text-3);line-height:1.55}

.download-footer{padding:25px 0 calc(25px + env(safe-area-inset-bottom));background:#0b2f21;color:rgba(255,255,255,.62)}
.download-footer .container{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px}
.download-footer a{color:#74dca5;font-weight:650}

.wechat-guide[hidden]{display:none}
.wechat-guide{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:20px}
.wechat-guide-backdrop{position:absolute;inset:0;background:rgba(4,14,9,.82);backdrop-filter:blur(5px)}
.wechat-guide-arrow{position:absolute;z-index:2;right:10px;top:8px;color:#fff}
.wechat-guide-arrow svg{width:84px;height:84px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.wechat-guide-card{position:relative;z-index:2;width:min(390px,100%);padding:32px 25px 24px;border-radius:24px;background:#fff;text-align:center;box-shadow:0 32px 80px rgba(0,0,0,.3)}
.wechat-guide-icon{width:52px;height:52px;margin:0 auto 16px;border-radius:15px;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center}
.wechat-guide-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.wechat-guide-card h2{font-size:20px;line-height:1.4}
.wechat-guide-card p{margin-top:9px;color:var(--text-2);font-size:14px;line-height:1.75}
.wechat-guide-card button{min-height:44px;margin-top:20px;padding:10px 25px;border:0;border-radius:999px;background:var(--accent);color:#fff;font-weight:700}

@media (max-width:1023px){
  .download-layout{grid-template-columns:minmax(0,1fr) minmax(340px,390px);gap:42px}
  .download-intro h1{font-size:clamp(36px,5.5vw,52px)}
  .download-preview{height:210px}
  .preview-card{width:128px;height:270px}
  .preview-card-main{width:145px;height:292px}
}

@media (max-width:767px){
  .download-header-inner{height:64px}
  .download-header .logo img{height:34px}
  .download-header .logo-text{font-size:18px}
  .download-back{padding:8px 13px;font-size:13px}
  .download-main{min-height:calc(100vh - 64px)}
  .download-hero{padding:44px 0 62px}
  .download-layout{grid-template-columns:1fr;width:min(600px,90%);gap:38px}
  .download-intro{text-align:center}
  .download-eyebrow{margin-bottom:14px}
  .download-intro h1{font-size:clamp(34px,9.4vw,46px);letter-spacing:-.8px}
  .download-intro > p{margin:18px auto 0;font-size:15px;line-height:1.8}
  .download-features{justify-content:center;margin-top:20px}
  .download-preview{height:195px;margin:30px auto 0;max-width:430px}
  .preview-card{bottom:-92px;width:120px;height:250px;border-radius:21px;padding:5px}
  .preview-card img{border-radius:17px}
  .preview-card-main{width:137px;height:276px}
  .download-panel{width:100%;max-width:460px;margin:0 auto;border-radius:24px;padding:24px 20px}
  .store-card{flex-wrap:wrap;padding:14px}
  .store-copy{min-width:calc(100% - 65px)}
  .store-action{width:100%;margin-top:2px}
  .download-step-list{grid-template-columns:1fr;max-width:460px}
  .download-step-list li{padding:20px}
  .download-footer .container{flex-direction:column;text-align:center;gap:8px}
}

@media (max-width:429px){
  .download-header-inner{width:92%;gap:10px}
  .download-header .logo{gap:7px}
  .download-header .logo-text small{letter-spacing:2px}
  .download-back svg{display:none}
  .download-back{padding:7px 11px}
  .download-layout{width:92%}
  .download-intro h1{font-size:clamp(31px,9.2vw,38px)}
  .download-intro > p{font-size:14px}
  .download-features{gap:7px}
  .download-features span{padding:6px 10px;font-size:11.5px}
  .download-preview{height:176px}
  .preview-card{width:104px;height:228px}
  .preview-card-main{width:120px;height:250px}
  .download-panel{padding:21px 15px}
  .download-app-icon{width:56px;height:56px;flex-basis:56px;border-radius:16px}
  .download-app-icon img{width:46px;height:46px}
  .download-app-id strong{font-size:17px}
  .store-icon{width:44px;height:44px;flex-basis:44px}
  .store-copy{min-width:calc(100% - 58px)}
  .download-note{padding:12px}
}

@media (max-height:520px) and (orientation:landscape){
  .download-hero{padding-top:34px}
  .download-preview{display:none}
  .download-layout{align-items:start}
}

@media (prefers-reduced-motion:reduce){
  .download-back,.store-card-android{transition:none}
}
