:root{--paper:#f5f6ee;--ink:#28352f;--muted:#839087;--line:#e9ede5;--forest:#47755a;--lime:#93b874;--clay:#c29267}*{box-sizing:border-box}body{margin:0;background:#e6e9e1;color:var(--ink);font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif}.app-shell{position:relative;max-width:430px;height:min(920px,100dvh);min-height:690px;margin:0 auto;background:var(--paper);overflow:hidden;box-shadow:0 18px 60px #2535272b}.topbar{height:74px;display:flex;align-items:center;padding:0 20px;background:#fff;gap:10px;border-bottom:1px solid #eaede8}.brand-mark{width:40px;height:40px;border-radius:14px;background:#e8f1e7;color:var(--forest);display:grid;place-items:center;font-size:21px}.brand-copy{display:grid;line-height:1.1;flex:1}.brand-copy strong{font-size:15px;font-weight:800}.brand-copy span{font-size:8px;color:#9ba69a;letter-spacing:1.5px;margin-top:5px}.weather{font-size:9px;color:#8c927e;background:#f6f7ed;border-radius:8px;padding:6px 8px}.weather i{color:#d7a84e;margin-right:3px}.icon-button,.avatar{border:0;background:transparent;color:#7d8a7f;position:relative}.icon-button{font-size:19px}.icon-button b{position:absolute;width:6px;height:6px;background:#e17f5b;border:1px solid #fff;border-radius:50%;top:1px;right:0}.avatar{background:#eef3e7;color:#4e7558;border-radius:50%;width:31px;height:31px;font-weight:700}.screen-area{height:calc(100% - 139px);overflow:auto;padding:17px 20px 20px;scrollbar-width:none}.screen-area::-webkit-scrollbar{display:none}.greeting{display:flex;justify-content:space-between;align-items:center;margin:2px 0 15px}.eyebrow{font-size:8px;font-weight:800;letter-spacing:1.5px;color:#9ba492}.greeting h1{font-size:20px;margin:6px 0 3px;font-weight:800;letter-spacing:-.6px}.greeting h1 span{font-size:15px}.greeting p{font-size:10px;color:var(--muted);margin:0}.greeting p strong{color:var(--forest)}.switch-farm{border:1px solid #e6eade;border-radius:9px;background:#fff;color:#617364;padding:7px 8px;font-size:8px;white-space:nowrap}.switch-farm i:first-child{color:var(--forest)}.switch-farm i:last-child{margin-left:3px}.hero-card{height:207px;border-radius:20px;overflow:hidden;position:relative;background:#3c5944;color:#fff;box-shadow:0 10px 24px #405c452c}.hero-card>img,.hero-shade{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero-shade{background:linear-gradient(90deg,rgba(23,49,40,.76),rgba(32,58,46,.34) 62%,rgba(30,50,43,.1)),linear-gradient(0deg,rgba(26,47,40,.35),transparent 60%)}.hero-topline{position:absolute;left:14px;right:14px;top:13px;display:flex;justify-content:space-between;font-size:8px}.hero-topline>span{border:1px solid #ffffff62;padding:5px 8px;border-radius:20px;background:#ffffff15}.weather-chip i{color:#f5d176}.hero-copy{position:absolute;left:16px;top:69px}.hero-copy small{font-size:7px;letter-spacing:1.5px;opacity:.8;font-weight:700}.hero-copy h2{font-size:20px;line-height:1.38;margin:8px 0 5px;font-weight:800}.hero-copy p{font-size:9px;opacity:.86;margin:0}.hero-play{position:absolute;right:15px;bottom:35px;border:1px solid #ffffff85;background:#ffffff27;color:white;width:34px;height:34px;border-radius:50%;font-size:18px}.hero-foot{position:absolute;right:13px;bottom:12px;font-size:8px;opacity:.88}.hero-foot b{margin-left:5px}.section-head{display:flex;align-items:end;justify-content:space-between;margin:20px 1px 10px}.section-head h2{font-size:15px;font-weight:800;margin:4px 0 0}.link-button{border:0;background:none;color:var(--forest);font-size:9px;font-weight:700;padding:5px 0}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stat-card{height:105px;border-radius:15px;padding:11px 9px;position:relative;overflow:hidden}.stat-card>span{display:block;font-size:8px;color:#758176}.stat-card>b{font-size:20px;display:block;margin:6px 0 4px;line-height:1;letter-spacing:-.5px}.stat-card>b small{font-size:9px;color:#879186;font-weight:500}.stat-card em{font-size:7px;font-style:normal;color:#829084;white-space:nowrap}.stat-card em i{margin-right:2px}.sage{background:#e6f0e4}.sage em{color:#53805c}.sand{background:#f7eee1}.sand em{color:#b17f51}.sky{background:#e9f0eb}.sky em{color:#628977}.mini-bars{position:absolute;right:7px;bottom:8px;display:flex;align-items:end;gap:2px;height:15px;opacity:.42}.mini-bars i{width:3px;border-radius:2px;background:#4b805d}.mini-bars i:nth-child(1){height:5px}.mini-bars i:nth-child(2){height:8px}.mini-bars i:nth-child(3){height:6px}.mini-bars i:nth-child(4){height:12px}.mini-bars i:nth-child(5){height:10px}.mini-bars i:nth-child(6){height:15px}.env-card{background:#fff;border:1px solid #ebeee7;border-radius:16px;padding:13px 13px 9px;margin-top:13px;box-shadow:0 5px 16px #283c2608}.env-header{display:flex;align-items:center;justify-content:space-between}.env-header h3{font-size:12px;font-weight:800;margin:3px 0 0}.online{font-size:7px;color:#528467;background:#eef6ee;padding:5px 7px;border-radius:12px}.online i{display:inline-block;background:#64af79;width:5px;height:5px;border-radius:50%;margin-right:4px}.env-reading{display:grid;grid-template-columns:1fr 1px 1fr;gap:10px;margin-top:13px}.thermo{position:relative;padding-left:22px;display:grid}.thermo>i{position:absolute;left:0;top:3px;color:#cf9b60;font-size:15px}.thermo span{font-size:8px;color:#90998d}.thermo strong{font-size:18px;margin:1px 0;color:#3c5142}.thermo strong small{font-size:9px}.thermo em{font-size:7px;color:#a1a99e;font-style:normal}.humidity>i{color:#62978b}.env-divider{background:#edf0e9}.env-chart{grid-column:1/4;height:46px;margin:5px 0 0;position:relative}.env-chart svg{width:100%;height:34px;overflow:visible}.chart-fill{fill:#dfede0}.chart-line{fill:none;stroke:#679b73;stroke-width:2}.env-chart>div{display:flex;justify-content:space-between;color:#b1b7ac;font-size:6px}.task-head{margin-top:21px}.task-list{background:#fff;border:1px solid #ecefe8;border-radius:15px;padding:0 11px}.farm-task{display:flex;align-items:center;gap:9px;padding:11px 0;border-bottom:1px solid #f0f2ed}.farm-task:last-child{border:0}.task-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;font-size:15px;flex:none}.task-icon.green{background:#edf5e9;color:#5d8d61}.task-icon.yellow{background:#faf1df;color:#bd9154}.task-copy{flex:1;min-width:0}.task-copy strong{font-size:9px;display:block}.task-copy p{font-size:7px;color:#9ba397;margin:4px 0}.task-copy small{font-size:7px;color:#9ba397}.task-status,.task-due{font-size:7px;font-weight:600;margin-left:4px;color:#589269;background:#edf6ee;border-radius:4px;padding:3px 5px;white-space:nowrap}.task-due{color:#b2854b;background:#fbf3e5}.task-progress{height:3px;border-radius:3px;background:#eef1ea;margin:6px 0 3px}.task-progress span{display:block;height:100%;background:#6eaa75;border-radius:3px}.task-go{width:27px;height:27px;border:0;border-radius:9px;background:#f1f5eb;color:#56835e;flex:none}.alert-head{margin-top:20px}.record-row{background:#fff;border:1px solid #ecefe8;border-radius:15px;padding:0 10px}.record-row article{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid #f0f2ed}.record-row article:last-child{border:0}.record-mark{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;flex:none}.record-mark.rose{background:#faece8;color:#c67d65}.record-mark.blue{background:#eaf1f1;color:#608e8b}.record-mark.green{background:#edf4e9;color:#639162}.record-row article>div{flex:1}.record-row strong{font-size:8px;display:block}.record-row small{font-size:7px;color:#9ba397;display:block;margin-top:3px}.record-time{font-size:7px;color:#adb3a9;align-self:flex-start;margin-top:2px}.quick-tools{display:grid;grid-template-columns:repeat(4,1fr);margin:15px 0 0;background:#fff;border:1px solid #ecefe8;border-radius:14px;padding:11px 3px}.quick-tools button{border:0;background:none;color:#778276;font-size:7px;display:grid;justify-items:center;gap:5px}.quick-tools i{font-size:16px;color:#588363}.bottom-space{height:15px}.bottom-nav{height:65px;position:absolute;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e9ede6;display:flex;justify-content:space-around;padding:6px 5px max(6px,env(safe-area-inset-bottom));z-index:3}.bottom-nav button{position:relative;border:0;background:transparent;color:#a5aca1;display:grid;justify-items:center;align-content:center;gap:3px;font-size:7px;min-width:44px}.bottom-nav button i{font-size:17px}.bottom-nav button.selected{color:#538361;font-weight:700}.bottom-nav button.scan{width:43px;height:43px;align-self:flex-start;margin-top:-11px;background:#5e9569;color:white;border:4px solid var(--paper);border-radius:15px;box-shadow:0 4px 10px #38543b30;font-size:6px}.bottom-nav button.scan i{font-size:17px}.bottom-nav button b{position:absolute;top:1px;right:4px;background:#dd8063;color:#fff;border-radius:8px;font-size:6px;padding:1px 4px}.toast-note{position:absolute;left:50%;bottom:80px;transform:translate(-50%,15px);opacity:0;pointer-events:none;transition:.25s;background:#2e4134;color:white;border-radius:9px;padding:10px 14px;font-size:9px;z-index:8;white-space:nowrap}.toast-note.show{opacity:1;transform:translate(-50%,0)}.modal-backdrop{position:absolute;inset:0;background:#26352a66;display:none;align-items:flex-end;z-index:9}.modal-backdrop.open{display:flex}.app-modal{position:relative;background:#fff;width:100%;border-radius:22px 22px 0 0;padding:27px 21px 29px;min-height:230px;max-height:80%;overflow:auto;animation:rise .22s ease}.modal-close{position:absolute;right:16px;top:15px;border:0;background:#f0f3ed;color:#667366;border-radius:50%;width:29px;height:29px}.modal-title{font-weight:800;font-size:16px;margin:0 34px 6px 0}.modal-sub{font-size:9px;color:#939b90;margin-bottom:15px}.modal-content-list{display:grid;gap:7px}.modal-row{display:flex;align-items:center;gap:9px;background:#f5f7f1;border-radius:10px;padding:10px;font-size:9px}.modal-row i{font-size:14px;color:var(--forest)}.modal-primary{width:100%;border:0;background:#568463;color:#fff;border-radius:10px;padding:11px;font-size:10px;font-weight:700;margin-top:14px}.form-row{display:grid;gap:6px;margin:10px 0}.form-row label{font-size:8px;color:#838d80}.form-row input,.form-row select{width:100%;border:1px solid #e7ece3;border-radius:9px;padding:10px;font:inherit;font-size:10px;color:var(--ink)}.scan-preview{display:grid;place-items:center;background:#f4f6ef;border-radius:14px;padding:20px;color:#5d8666}.scan-preview i{font-size:40px}.scan-preview p{font-size:10px;margin:7px 0 0}@keyframes rise{from{transform:translateY(40px);opacity:.6}to{transform:translateY(0);opacity:1}}@media(min-width:600px){.app-shell{height:min(900px,calc(100vh - 40px));min-height:690px;margin:20px auto;border-radius:26px}.screen-area{height:calc(100% - 139px)}.modal-backdrop{border-radius:26px}.app-modal{border-radius:20px 20px 0 0}}@media(max-height:740px){.hero-card{height:185px}.stat-card{height:98px}}

.video-preview{height:145px;border-radius:14px;background:linear-gradient(135deg,#343344,#7665d3);color:#fff;display:grid;place-content:center;justify-items:center}.video-preview i{font-size:38px}.video-preview p{margin:7px 0 1px;font-size:11px}.video-preview small{font-size:8px;opacity:.72}

.video-preview{background:linear-gradient(135deg,#263d32,#5c8b67)}
/* F 头部嵌入牧场实景 + 类型 5 养殖任务时间轴 */
.topbar.scenic-header{height:80px;position:relative;background:linear-gradient(90deg,rgba(30,60,45,.88),rgba(46,72,49,.55)),url("assets/images/farm-hero.png") center 42%/cover;color:#fff;border:0;padding:0 15px;gap:8px}.scenic-header .brand-mark{width:35px;height:35px;background:#ffffff28;color:#fff;border:1px solid #ffffff40}.scenic-header .brand-copy strong{color:#fff;font-size:13px}.scenic-header .brand-copy span{color:#ffffffba;font-size:6px;letter-spacing:1px}.scenic-header .weather{background:#ffffff20;color:#fff;border:1px solid #ffffff40;font-size:7px}.scenic-header .weather i{color:#dce9b8}.scenic-header .icon-button{color:#fff;font-size:17px}.scenic-header .avatar{background:#ffffff29;color:#fff;border:1px solid #ffffff50;width:28px;height:28px}.scenic-header .icon-button b{border-color:#567257}.greeting{margin-top:13px}.task-head{margin-top:18px}.farm-timeline{background:#fff;border:1px solid #e9eee5;border-radius:16px;padding:3px 10px 2px}.timeline-task{display:grid;grid-template-columns:35px 12px 1fr 28px;gap:5px;min-height:83px;padding:11px 0 8px;position:relative}.timeline-task time{font-size:9px;font-weight:800;color:#526c56}.timeline-task time small{display:block;font-size:7px;color:#a2aa9c;margin-top:3px;font-weight:500}.timeline-dot{position:relative;margin:4px 0 0 2px;width:7px;height:7px;border-radius:50%;background:#d5ddd1;z-index:1}.timeline-dot:after{content:"";position:absolute;top:7px;left:3px;width:1px;height:78px;background:#e7ece4}.timeline-task:last-child .timeline-dot:after{display:none}.timeline-dot.current{background:#6d9e6e;box-shadow:0 0 0 4px #e9f2e6}.timeline-body{padding:0 0 8px;border-bottom:1px solid #f0f2ed;min-width:0}.timeline-task:last-child .timeline-body{border:0}.timeline-body>div{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.timeline-body strong{font-size:9px}.timeline-body p{font-size:7px;color:#969f93;margin:5px 0}.timeline-body>button{border:0;background:none;color:#588464;font-size:7px;padding:2px 0;font-weight:700}.timeline-body>button i{margin-left:3px}.timeline-thumb{width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:#edf5e9;color:#5c8d65;font-size:13px}.feed-thumb{background:#faf1e1;color:#bc9253}.water-thumb{background:#eaf2ef;color:#64958b}.task-progress{height:3px;border-radius:3px;background:#eef1ea;margin:6px 0 2px}.task-progress span{display:block;height:100%;background:#6eaa75;border-radius:3px}.task-status,.task-due{font-size:6px;font-weight:600;color:#589269;background:#edf6ee;border-radius:4px;padding:3px 5px;white-space:nowrap}.task-due{color:#b2854b;background:#fbf3e5}

/* Usable navigation sizing and viewport-contained mockup preview. */
.phone-shell,.app-shell{min-height:0!important}
.bottom-nav,.app-nav{box-sizing:border-box;min-height:4.2rem;padding-block:.42rem max(.48rem,env(safe-area-inset-bottom))}
.bottom-nav button,.bottom-nav a,.app-nav button,.app-nav a{box-sizing:border-box;min-width:2.75rem;min-height:2.85rem;padding:.22rem .12rem;gap:.24rem;font-size:.68rem;line-height:1.15;touch-action:manipulation}
.bottom-nav button>i,.bottom-nav a>i,.app-nav button>i,.app-nav a>i{font-size:1.3rem;line-height:1}
.bottom-nav button.scan,.bottom-nav button.nav-center{min-width:2.9rem;min-height:2.9rem}
.bottom-nav button.scan>i,.bottom-nav button.nav-center>i{font-size:1.35rem}.bottom-nav button.scan>span,.bottom-nav button.nav-center>span{font-size:.58rem}

.phone-shell,.app-shell{position:relative}.modal-wrap,.modal-backdrop{background:rgba(20,32,45,.34);backdrop-filter:none}.modal,.app-modal{max-height:68%}
