/* User center: single white navigation column and compact information dashboard. */
body.sw-body{background:#f3f6fe;color:#1d2d49}
body.sw-body .sw-sidebar{width:190px;display:block;background:#fff;border-right:1px solid #dfe5f2;box-shadow:none}
body.sw-body .sw-frame{margin-left:190px}
body.sw-body .orbit-rail{display:none}
body.sw-body .orbit-menu-pane{height:100%;background:#fff}
body.sw-body .orbit-menu-brand{height:58px;min-height:58px;padding:0 15px;border-bottom:1px solid #e7ecf5;color:#1762b5}
body.sw-body .orbit-menu-brand strong{max-width:155px;font-size:15px;font-weight:800}
body.sw-body .orbit-menu-brand small{display:none}
body.sw-body .orbit-menu-list{padding:14px 0 18px;scrollbar-width:thin}
body.sw-body .sw-nav-home{margin:0 0 10px;padding:0 0 7px;border:0}
body.sw-body .sw-nav-section-title,body.sw-body .sw-nav-group>summary{min-height:28px;margin:0;padding:8px 15px 5px;border:0;border-radius:0;background:#fff!important;color:#8995a9!important;font-size:11px;font-weight:700}
body.sw-body .sw-nav-group>summary svg,body.sw-body .sw-nav-group>summary i{display:none}
body.sw-body .sw-nav-group>summary span{font-size:11px}
body.sw-body .sw-nav-group{margin:0 0 8px}
body.sw-body .sw-nav-children{margin:0;padding:0;border:0}
body.sw-body .sw-nav-subgroup>summary{margin:0;padding:8px 15px;color:#63718a;font-size:12px}
body.sw-body .sw-nav-link,body.sw-body .sw-nav-home .sw-nav-link{min-height:34px;margin:0;padding:8px 15px;border-radius:0;color:#334158;font-size:12px;font-weight:500}
body.sw-body .sw-nav-link svg{width:15px;height:15px;color:#364458}
body.sw-body .sw-nav-link:hover{background:#f1f6ff;color:#1663d1}
body.sw-body .sw-nav-link.is-active{border-left:3px solid #2469ee;background:#eaf2ff;color:#1761cb;font-weight:750;padding-left:12px}
body.sw-body .sw-nav-link.is-active svg{color:#1761cb}
body.sw-body .sw-topbar{height:58px;padding:0 20px;border-bottom:1px solid #e4eafa;background:#fff}
body.sw-body .sw-menu{display:none}
body.sw-body .sw-top-location{font-size:13px}
body.sw-body .sw-top-location small{display:none}
body.sw-body .sw-top-location>span{display:none}
body.sw-body .sw-top-location strong{font-size:13px;color:#27354d}
body.sw-body .sw-content{max-width:none;min-height:calc(100vh - 58px);padding:15px 17px 28px}
body.sw-body .sw-footer{display:none}
body.sw-body .sw-top-actions>a{font-size:12px}
body.sw-body.sw-nav-collapsed .sw-frame{margin-left:0}

.ref-dashboard{display:block!important;grid-template:none!important;grid-template-areas:none!important;width:100%;max-width:none;margin:0;color:#253651;font-size:12px}
.ref-page-title{height:35px;padding:0 3px;border-bottom:1px solid #dfe7f8;color:#1e2e49;font-size:14px;font-weight:750}
.ref-page-title:after{content:"";display:block;width:34px;height:2px;margin-top:12px;background:#2c68ee}
.ref-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.95fr) minmax(300px,.98fr);gap:15px;width:100%;margin-top:14px}
.ref-dashboard-main,.ref-dashboard-side{display:flex;flex-direction:column;gap:14px;min-width:0}
.ref-panel{min-width:0;border:1px solid #e7ecf5;background:#fff;box-shadow:0 1px 2px rgba(29,54,94,.025)}
.ref-panel h2{margin:0;color:#1e3050;font-size:13px;font-weight:750}
.ref-user-panel{padding:19px 18px 16px}
.ref-user-body{display:flex;align-items:center;gap:17px;min-height:90px;margin-top:13px}
.ref-avatar{position:relative;display:grid;place-items:center;overflow:hidden;flex:none;width:68px;height:68px;border:1px solid #d9e7fa;border-radius:0;background:linear-gradient(135deg,#edf5ff,#cfe0ff);color:#2163d1;font-size:31px;font-weight:750}
.ref-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#edf5ff}
.ref-user-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 25px;flex:1;min-width:0}
.ref-user-details>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ref-user-details span{color:#8c99aa}.ref-user-details b{color:#273955;font-weight:650}
.ref-user-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:15px;padding-top:14px;border-top:1px solid #e9edf5}
.ref-user-actions a{min-width:76px;padding:6px 9px;border:1px solid #3876f5;color:#2464df;text-align:center;font-size:11px}
.ref-user-actions a:hover{background:#eef4ff}
.ref-stat-grid{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.82fr);gap:14px}
.ref-stat-card,.ref-products{min-height:136px;padding:16px 17px}
.ref-stat-card>strong{display:block;margin-top:11px;color:#183159;font-size:27px;line-height:1.2}
.ref-stat-card>div:last-child{display:flex;gap:13px;margin-top:13px;padding-top:9px;border-top:1px solid #edf0f6}
.ref-stat-card>div:last-child a{color:#5174b5;font-size:11px}
.ref-stat-split{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.ref-stat-split>div{border-right:1px solid #e9edf5}.ref-stat-split>div:last-child{border:0}
.ref-stat-split span{display:block;color:#64768f;font-size:11px}.ref-stat-split strong{display:block;margin-top:3px;color:#1e3e70;font-size:25px;line-height:1.2}
.ref-stat-split>div:last-child strong{color:#f26368}
.ref-products-wide{width:100%;min-height:0;grid-area:auto}
.ref-products-list{display:grid;grid-template-columns:1fr;gap:8px;width:100%;margin-top:12px}
.ref-products-list>a{display:flex;align-items:center;gap:9px;min-width:0;min-height:34px;padding:6px 9px;border:1px solid #e7ebf3;color:#33435f}
.ref-products-list>a span:nth-child(2){overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}.ref-products-list>a b{color:#4876cd;font-size:10px;font-weight:500;white-space:nowrap}
.ref-product-icon{display:grid;place-items:center;width:21px;height:21px;background:#edf4ff;color:#2469e7}
.ref-products-list p{margin:4px 0;color:#8c98a9}.ref-products-list .ref-product-empty{width:max-content;color:#2867d9}
.ref-resource-panel{padding:16px 17px}.ref-resource-panel h2{display:flex;justify-content:space-between}.ref-resource-panel h2 a,.ref-news h2 a{color:#3f70c6;font-size:11px;font-weight:500}
.ref-table-wrap{overflow:auto;margin-top:13px}.ref-resource-panel table{width:100%;border-collapse:collapse;text-align:left}
.ref-resource-panel th{padding:9px 10px;background:#f2f6fc;color:#52617a;font-size:11px;font-weight:650}.ref-resource-panel td{padding:9px 10px;border-bottom:1px solid #edf0f5;color:#45556f;font-size:11px}.ref-resource-panel td a,.ref-empty a{color:#2c66d7}.ref-empty{text-align:center}
.ref-finance{position:relative;min-height:180px;padding:18px}.ref-finance>span{display:block;margin-top:13px;color:#7d8ba1}.ref-finance>strong{display:block;margin:2px 0 13px;color:#18345c;font-size:28px;line-height:1.2}.ref-finance>a{position:absolute;top:50px;right:18px;padding:5px 13px;background:#2868ef;color:#fff}.ref-finance>div{display:grid;grid-template-columns:1fr 1fr;gap:9px}.ref-finance>div a{min-height:57px;padding:10px;background:#f2f6fd}.ref-finance>div span{display:block;color:#8a98aa;font-size:11px}.ref-finance>div b{display:block;margin-top:3px;color:#223b61;font-size:14px}
.ref-side-block{padding:17px}.ref-side-block p{margin:12px 0 0;color:#5d6b82}.ref-side-block p b{margin-left:7px;color:#253c62}
.ref-side-links>a{display:flex;justify-content:space-between;margin-top:9px;padding:7px 9px;background:#f4f7fc;color:#354b6d}.ref-side-links>a span{color:#42a87c}
.ref-news{padding:17px}.ref-news h2{display:flex;justify-content:space-between}.ref-news>a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:37px;border-top:1px solid #edf0f5;color:#3d4e69}.ref-news>a:first-of-type{margin-top:14px}.ref-news>a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ref-news time{flex:none;color:#7e8ba0;font-size:10px}.ref-news p{margin:15px 0 0;color:#95a0af}
@media(max-width:1120px){.ref-dashboard-grid{grid-template-columns:1fr 320px}.ref-stat-grid{grid-template-columns:1fr 1.4fr}}
@media(max-width:900px){body.sw-body .sw-sidebar{width:190px;transform:translateX(-100%)}body.sw-body .sw-frame{margin-left:0}body.sw-body.sw-nav-open .sw-sidebar{transform:translateX(0)}body.sw-body .sw-menu{display:inline-grid;place-items:center}.ref-dashboard-grid{grid-template-columns:1fr}.ref-dashboard-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){body.sw-body .sw-content{padding:12px}.ref-stat-grid,.ref-dashboard-side{grid-template-columns:1fr}.ref-user-details{grid-template-columns:1fr}.ref-user-body{align-items:flex-start}.ref-resource-panel table{min-width:560px}}

/* ==========================================================================
   「已开通产品」：按参考稿的推广区块样式重做
   —— 浅暖色标题条（左侧橙色图标块 + 右侧装饰斜块）→ 说明文字 → 白底蓝框按钮
      → 三列卡片（卡头浅灰底：服务名 + 右上角状态标签；卡体：到期时间/服务编号）
   ========================================================================== */
body.sw-body .ref-promo-block{padding:0;overflow:hidden;border:1px solid #e6eaf2;background:#fff}
body.sw-body .ref-promo-head{position:relative;display:flex;align-items:center;gap:9px;min-height:47px;padding:0 16px;background:#fdf7f1;border-bottom:1px solid #f2e5d6;overflow:hidden}
body.sw-body .ref-promo-head:after{content:'';position:absolute;right:-26px;top:-14px;width:66px;height:66px;background:#f0862c;opacity:.18;transform:rotate(26deg)}
body.sw-body .ref-promo-head h2{margin:0;color:#1e2c49;font-size:14px;font-weight:700;line-height:1.4}
body.sw-body .ref-promo-ico{display:grid;place-items:center;width:20px;height:20px;flex:none;border-radius:3px;background:#e8642a;color:#fff;font-size:11px;line-height:1}
body.sw-body .ref-promo-more{position:relative;z-index:1;margin-left:auto;color:#2c66d7;font-size:11px}
body.sw-body .ref-promo-more:hover{text-decoration:underline}
body.sw-body .ref-promo-desc{margin:13px 16px 0;color:#7a8698;font-size:11.5px;line-height:1.75}
body.sw-body .ref-promo-btn{display:inline-flex;align-items:center;gap:6px;margin:11px 16px 0;min-height:30px;padding:0 13px;border:1px solid #bdd4f7;background:#fff;color:#2c66d7;font-size:11.5px;font-weight:600}
body.sw-body .ref-promo-btn:hover{background:#f3f8ff;border-color:#8eb6f0}
body.sw-body .ref-promo-btn-ico{font-size:11px;line-height:1}
/* 三列并排（与参考稿一致），窄屏折行 */
body.sw-body .ref-promo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px 16px 16px}
body.sw-body .ref-promo-card{display:flex;flex-direction:column;min-width:0;border:1px solid #e7ebf3;background:#fff}
body.sw-body .ref-promo-card:hover{border-color:#c6d7f5;box-shadow:0 2px 9px #23325414}
body.sw-body .ref-promo-card-head{display:flex;align-items:center;gap:8px;min-height:37px;padding:0 11px;background:#f5f7fb;border-bottom:1px solid #e7ebf3}
body.sw-body .ref-promo-card-head b{flex:1;min-width:0;overflow:hidden;color:#2a3955;font-size:12.5px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
body.sw-body .ref-promo-tag{flex:none;padding:1px 7px;border-radius:2px;background:#fdeee0;color:#d4722a;font-size:10px;font-weight:650;white-space:nowrap}
body.sw-body .ref-promo-tag.is-blue{background:#e9f1fd;color:#3b6fd4}
body.sw-body .ref-promo-card-body{min-height:62px;padding:9px 11px 11px;color:#7b8798;font-size:11px;line-height:1.8}
body.sw-body .ref-promo-card-body p{margin:0}
body.sw-body .ref-promo-card-body b{color:#33435f;font-weight:600}
body.sw-body .ref-promo-empty{margin:0 16px 16px;padding:20px 0;text-align:center;color:#8c98a9;font-size:11.5px}
@media(max-width:620px){body.sw-body .ref-promo-grid{grid-template-columns:1fr}}

/* 「资源列表」整行可点：直接进这台机器自己的管理页（操作列与管理按钮已去掉） */
body.sw-body .ref-resource-panel tbody tr.ref-row-link{cursor:pointer}
body.sw-body .ref-resource-panel tbody tr.ref-row-link:hover td{background:#f6f9ff}
body.sw-body .ref-resource-panel tbody tr.ref-row-link td:first-child{white-space:nowrap}
body.sw-body .ref-resource-panel tbody tr.ref-row-link td a{color:#2c66d7}
body.sw-body .ref-resource-panel tbody tr.ref-row-link:hover td a{text-decoration:underline}
body.sw-body .ref-resource-panel tbody tr.ref-row-link td:last-child{color:#5c6c85}
