/* hejuo service hub: one project per window, designed for handheld screens. */
body:has(#homePage:not(.hidden)){background:#edf3f2}
html body:has(#homePage:not(.hidden) > .network-tab-page.active){overflow-y:auto;overflow-x:hidden}
body #homePage{max-width:480px;margin:0 auto;min-height:100dvh;background:#edf3f2;padding:20px 20px 116px;color:#142d3c}
body #homePage:not(.hidden):has(> .network-tab-page.active){display:block;height:auto;min-height:100dvh;overflow:visible;padding-bottom:116px}
body #homePage > .network-tab-page.active{display:block;overflow:visible}
body #homePage > .home-shot-top{height:44px;margin-bottom:22px}
body #homePage .shot-wordmark-img{width:128px;height:34px;object-fit:contain;object-position:left}
body #homePage .shot-actions{gap:9px}
body #homePage .shot-icon-btn{width:36px;height:36px;border:1px solid #dfe9e6;background:#f9fcfb;border-radius:12px;color:#38545c}
body #homePage .shot-svg-icon{width:18px;height:18px;stroke-width:1.7}
.home-welcome{position:relative;overflow:hidden;margin:0 0 26px;padding:25px 23px 27px;border:1px solid #173c4e;border-radius:22px;background:#102b3d;min-height:159px}
.home-eyebrow{display:block;font-size:9px;letter-spacing:1.6px;font-weight:650;color:#66817e;line-height:1.7}
.home-welcome .home-eyebrow{color:#71dbc0;position:relative;z-index:1}
.home-welcome h1{position:relative;z-index:1;margin:16px 0 9px;font-size:23px;letter-spacing:-.9px;line-height:1.4;font-weight:700;color:#f5fcfa}
.home-welcome p{position:relative;z-index:1;max-width:92%;margin:0;color:#a8bdc6;font-size:12px;line-height:1.85}
.home-orbit{position:absolute;right:-15px;bottom:-34px;width:156px;height:156px;color:#65e0be;opacity:.08;transform:rotate(-15deg)}
.home-orbit svg{width:100%;height:100%}
.project-section-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 17px;gap:12px}
.project-section-head h2{margin:4px 0 5px;font-size:21px;letter-spacing:-.5px;font-weight:700}
.project-section-head p{margin:0;color:#80928f;font-size:11px;line-height:1.6}
.project-count{font-size:8px;letter-spacing:1px;color:#839793;white-space:nowrap;padding:7px 9px;border:1px solid #dce6e3;border-radius:7px}
.home-project-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:13px}
body #homePage .project-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:14px 17px 12px;text-align:left;border:1px solid #dce6e3;border-radius:17px;background:#fff;color:#163340;box-shadow:0 4px 12px #173d3004;transition:transform .18s,border-color .18s,box-shadow .18s}
body #homePage .project-card:not(:disabled):hover{transform:translateY(-2px);border-color:#68b8a4;box-shadow:0 8px 20px #193e3210}
body #homePage .project-card:focus-visible,.project-page-head button:focus-visible{outline:3px solid #149d82;outline-offset:3px}
.project-window-top{display:flex;align-items:center;gap:10px;color:#829b96;font-size:8px;letter-spacing:1.2px;line-height:15px}
.project-window-dots{display:flex;gap:4px;align-items:center}
.project-window-dots i{display:block;width:4px;height:4px;border-radius:50%;background:#cbd9d5}
.project-window-dots i:first-child{background:#68bda7}
.project-index{margin-left:auto;font-size:10px;letter-spacing:0;color:#a7b6b2}
.project-body{display:flex;align-items:center;gap:14px;padding:14px 0 13px}
.project-symbol{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:14px;background:#e1f4ec;color:#19846a}
.project-symbol svg{width:29px;height:29px;stroke-width:1.7}
.project-phone .project-symbol{background:#eaf0fb;color:#627dab}
.project-sms .project-symbol{background:#f0ebf8;color:#8c70a7}
.project-copy{display:block;min-width:0;flex:1}
.project-title{display:block;margin:0 0 5px;font-size:19px;font-weight:700;line-height:1.35;letter-spacing:-.4px}
.project-description{display:block;color:#82918e;font-size:11px;line-height:1.75;font-weight:400}
.project-arrow{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border:1px solid #e1eae7;border-radius:9px;color:#628379;font-size:16px;font-weight:400}
.project-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding:10px 0 0;border-top:1px solid #edf1ef;color:#277963;font-size:10px;line-height:16px;font-weight:550}
.project-open-indicator{font-size:15px;line-height:1;color:#8eaaa1}
body #homePage .project-card:disabled{cursor:default}
.project-card.is-unavailable .project-card-bottom{color:#a4afac}
.project-card.is-unavailable .project-arrow{opacity:.35}
.home-bottom-note{display:flex;justify-content:center;align-items:center;gap:7px;margin:25px 0;color:#8fa39c;font-size:10px}
.home-bottom-note p{margin:0;line-height:1.8}
body #homePage .promo-banner{min-height:110px;border:0;border-radius:16px;box-shadow:none;margin:0 0 12px;padding:0;background-size:cover;background-position:center}
body #homePage .promo-banner::before{content:none}
/* 保留横幅完整图案；宽屏限制高度，留白使用图片底色。 */
body #homePage .promo-banner{aspect-ratio:3/1;height:auto;min-height:0;max-height:300px;background-size:contain;background-repeat:no-repeat;background-color:#17394b}
body #homePage .notice-bar{margin:0;border:1px solid #dfe9e4;border-radius:11px;background:#e6efeb;min-height:42px;padding:10px 12px;color:#638074;box-shadow:none}
body #homePage .notice-bar p{font-size:11px;color:inherit}
body #homePage .tabbar{left:50%;right:auto;transform:translateX(-50%);width:min(440px,calc(100% - 32px));bottom:calc(14px + env(safe-area-inset-bottom,0px));height:65px;padding:6px 7px;border:1px solid #dce7e2;border-radius:19px;background:#fbfefded;box-shadow:0 6px 30px #153e3210;backdrop-filter:blur(16px);grid-template-columns:repeat(3,minmax(0,1fr))!important}
body #homePage .tabbar [data-tab-target="trumpet"],body #homePage .tabbar [data-tab-target="hero"]{display:none!important}
body #homePage .tabbar button{border-radius:13px;gap:5px;color:#94a39e}
body #homePage .tabbar .active,body #homePage .tabbar:not(:has([data-tab-target="orders"].active,[data-tab-target="mine"].active)) [data-tab-target="network"]{background:#e1f2ea;color:#197b61}
body #homePage .tabbar small{font-size:10px}
body #homePage .tabbar .tab-icon{width:21px;height:21px}
body #homePage .tabbar .icon-network{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M3 10 12 3l9 7v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1Z'/%3E%3C/svg%3E")}
.project-page-head{display:flex;justify-content:space-between;align-items:center;margin:4px 0 22px;gap:12px}
.project-page-head button{min-height:44px;padding:8px 0;border:0;background:transparent;color:#688378;font-size:13px}
.project-page-head>span{font-size:9px;letter-spacing:1px;color:#8b9d96}
.catalog-title{margin:0 0 8px;font-size:28px;color:#173a3c}
.catalog-description{margin:0 0 25px;color:#7d9188;font-size:13px}
body #homePage .data-catalog-page .number-section{margin:0;padding:0;overflow:visible}
body #homePage .data-catalog-page .number-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body #homePage .data-catalog-page .number-card{min-width:0;min-height:78px;padding:14px;border:1px solid #e0e8e4;border-radius:14px;background:#fff;box-shadow:none}
@media(max-width:360px){body #homePage{padding-inline:16px}.home-welcome{padding:23px 18px}.home-welcome h1{font-size:21px}.project-body{gap:10px}.project-symbol{width:42px;height:42px;flex-basis:42px}.project-arrow{display:none}}
@media(prefers-reduced-motion:reduce){body #homePage .project-card{transition:none}}

/* 清爽版：近白底色，強化標題，移除不必要的視窗裝飾與重複入口。 */
body:has(#homePage:not(.hidden)){background:#f8fafc}
body #homePage{background:#f8fafc;color:#142b40}
body #homePage .shot-icon-btn{background:#fff;border-color:#e6ebf0;color:#45576b}
.home-welcome{border-color:#142f45;background:#102b3d;padding:23px 23px 25px;min-height:145px;margin-bottom:28px}
.home-welcome h1{font-size:24px;margin:15px 0 10px;color:#fff}
.home-welcome p{font-size:12px;color:#bacbd4;max-width:100%}
.home-orbit{opacity:.055}
.project-section-head{margin-bottom:18px}
.project-section-head .home-eyebrow{display:none}
.project-section-head h2{font-size:23px;margin:0 0 6px;color:#183248}
.project-section-head p{font-size:12px;color:#718096}
.project-count{border:0;padding:0;font-size:9px;letter-spacing:.5px;color:#8a99a9}
.home-project-grid{gap:14px}
body #homePage .project-card{padding:20px 18px;border-color:#e4eaf0;border-radius:17px;box-shadow:0 3px 12px #1b314604;background:#fff}
body #homePage .project-card:not(:disabled):hover{border-color:#74b8a8;box-shadow:0 6px 20px #183b4210}
.project-window-top{display:none}
.project-body{padding:0;gap:15px;min-height:57px}
.project-title{font-size:20px;color:#19344a;margin-bottom:6px}
.project-description{font-size:12px;line-height:1.7;color:#6b7c8d}
.project-symbol{background:#eaf6f1;color:#168064}
.project-phone .project-symbol{background:#edf2fc;color:#607fac}
.project-sms .project-symbol{background:#f3effa;color:#8a76aa}
.project-arrow{border:0;color:#6d8793;background:#f5f8fa;width:29px;height:29px;flex-basis:29px}
.project-card-bottom{display:none}
.project-card.is-unavailable .project-card-bottom{display:flex;margin-top:12px;padding-top:10px;border-color:#eef2f6;color:#8693a0;font-size:11px}
.home-bottom-note{color:#8c9aa8;font-size:10px}
body #homePage .notice-bar{background:#f1f5f9;border-color:#e5ebf0;color:#687c8e}
body #homePage .tabbar{background:#ffffffed;border-color:#e5ebf0;box-shadow:0 8px 28px #1c334510}
body #homePage .tabbar button{color:#8b99a7}
body #homePage .tabbar .active,body #homePage .tabbar:not(:has([data-tab-target="orders"].active,[data-tab-target="mine"].active)) [data-tab-target="network"]{background:#e8f7f0;color:#168064}
@media(max-width:360px){.home-welcome h1{font-size:21px}.project-body{gap:11px}.project-title{font-size:19px}.project-description{font-size:12px}}

/* 五項服務：雙列模組可持續追加；新服務只展示預告，不進入舊業務頁面。 */
.home-project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
body #homePage .project-card{min-height:185px;padding:20px 17px 18px;border-radius:22px;overflow:hidden;box-shadow:none}
.project-body{display:flex;flex-direction:column;align-items:flex-start;gap:15px;min-height:0;position:relative;z-index:1}
.project-symbol{width:50px;height:50px;flex:0 0 50px;border-radius:16px}
.project-symbol svg{width:32px;height:32px}
.project-copy{width:100%}
.project-title{font-size:18px;line-height:1.4;margin-bottom:7px}
.project-description{font-size:11px;line-height:1.7;min-height:36px}
.project-arrow{position:absolute;right:0;top:0;background:transparent;color:#8b9eaf;width:20px;height:20px;font-size:18px}
body #homePage .project-data{background:#edf3fe;border-color:#e1eafb}
.project-data .project-symbol{background:#dbe7fc;color:#4a74b7}
body #homePage .project-phone{background:#fff;border-color:#e6ebf1}
body #homePage .project-sms{background:#f5f1fc;border-color:#eae4f5}
.project-sms .project-symbol{background:#e9e0f8;color:#8c6db7}
body #homePage .project-esim{background:#eaf7f0;border-color:#dcefe3}
.project-esim .project-symbol{background:#d2ecdf;color:#3f9270}
body #homePage .project-card::after{content:"";position:absolute;right:-21px;top:-19px;width:87px;height:87px;border:1px solid #16385806;border-radius:25px;transform:rotate(22deg);pointer-events:none}
.project-card.is-coming-soon .project-card-bottom{display:flex;position:relative;z-index:1;padding:11px 0 0;margin-top:auto;border:0}
.coming-soon-label{display:inline-flex;align-items:center;gap:5px;color:#7f948a;font-size:9px;line-height:1.5;font-weight:400}
.coming-soon-label::before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}
body #homePage .project-tron{grid-column:1/-1;min-height:121px;background:#132e42;border-color:#132e42;padding:21px}
.project-tron .project-body{flex-direction:row;align-items:center;gap:17px}
.project-tron .project-symbol{background:#31404a;color:#f3c887;width:58px;height:58px;flex-basis:58px;border-radius:18px}
.project-tron .project-title{color:#f0f5f9;font-size:19px}
.project-tron .project-description{color:#aebfcd;min-height:0}
.project-tron .project-card-bottom{padding:9px 0 0 75px}
.project-tron .coming-soon-label{color:#c4ae8b}
body #homePage .project-tron::after{width:120px;height:120px;border-color:#8caabd10;border-radius:30px;top:-33px;right:-25px}
.project-card.is-unavailable .project-card-bottom{font-size:10px}
@media(max-width:360px){body #homePage .project-card{padding:18px 14px;min-height:180px}.project-title{font-size:17px}.project-description{font-size:11px}.project-arrow{display:grid}.project-tron .project-body{gap:12px}.project-tron .project-title{font-size:17px}.project-tron .project-card-bottom{padding-left:70px}}

/* 管理端关闭的板块不保留占位，配置返回前不闪现关闭项目。 */
.home-project-grid:not([data-projects-ready]){visibility:hidden}
.project-hidden,[data-tab-page][data-project-disabled]{display:none!important}


/* 深色首页卡片单独指定前景色，避免全站标题色覆盖浅色标题。 */
body.hejuo-ui #homePage .home-welcome h1{color:#f7fcff}
body.hejuo-ui #homePage .home-welcome p{color:#d9e7ef}
body.hejuo-ui #homePage .home-welcome .home-eyebrow{color:#7ce8d0}
body.hejuo-ui #homePage .project-tron .project-title{color:#f7fcff}
body.hejuo-ui #homePage .project-tron :is(.project-description,.project-window-top,.project-index,.project-card-bottom){color:#d9e7ef}
body.hejuo-ui #homePage .project-tron .project-open-indicator{color:#9ce5d2}

/* 首页公告：介绍卡片下方、服务入口上方，沿用原公告轮播和点击详情。 */
body #homePage .network-tab-page>.home-welcome{margin-bottom:14px}
body #homePage .network-tab-page>#announcementEntry{margin:0 0 22px}
