/* ===================================================================
   名师学 · 自研软件中心  software.css
   配色：暖白 #FFFBF7 / 深灰近黑 #1A1A1A / 品牌橙 #F28C38（仅点缀）
   页眉、页脚类名与结构同源生产统一壳 #msxShell / .footer
=================================================================== */

:root{
  --warm:#FFFBF7;
  --ink:#1A1A1A;
  --ink-2:#2B2724;
  --gray:#6E665F;
  --gray-2:#9B9088;
  --line:#EFE7DF;
  --orange:#F28C38;
  --orange-soft:#FBEADA;
  --green:#2F9E6E;
  --green-soft:#E5F4EC;
  --blue:#3E7CB1;
  --blue-soft:#E7F0F8;
  --radius:14px;
  --shell-h:56px;
  --maxw:1180px;
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--warm);
  -webkit-font-smoothing:antialiased;
  line-height:1.7;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
.container{max-width:var(--maxw);margin:0 auto;padding:0 24px;}

/* ================= 统一页眉 #msxShell ================= */
.msx-shell{
  position:sticky;top:0;z-index:100;
  height:var(--shell-h);
  background:rgba(255,251,247,.9);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.msx-shell-inner{
  max-width:var(--maxw);height:100%;margin:0 auto;padding:0 24px;
  display:flex;align-items:center;gap:28px;
}
.msx-shell-logo img{height:34px;width:auto;}
.msx-shell-nav{display:flex;align-items:center;gap:26px;margin-left:8px;flex:1;}
.msx-shell-nav a{
  position:relative;font-size:15px;color:var(--ink-2);font-weight:500;
  padding:4px 0;white-space:nowrap;transition:color .2s;
}
.msx-shell-nav a .msx-shell-en{display:block;font-size:9.5px;letter-spacing:1.2px;color:var(--gray-2);font-weight:600;margin-top:1px;}
.msx-shell-nav a:hover{color:var(--orange);}
.msx-shell-nav-active{color:var(--orange)!important;}
.msx-shell-nav-active::after{
  content:"";position:absolute;left:0;right:0;bottom:-18px;height:2px;background:var(--orange);border-radius:2px;
}
.msx-shell-user{display:flex;align-items:center;}
.msx-shell-login{
  font-size:14px;font-weight:600;color:#fff;background:var(--orange);
  padding:8px 18px;border-radius:999px;white-space:nowrap;transition:transform .2s,box-shadow .2s;
}
.msx-shell-login:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(242,140,56,.28);}
.msx-shell-en-sm{font-size:10px;opacity:.85;margin-left:3px;letter-spacing:.5px;}
.msx-shell-ham{display:none;background:none;border:0;cursor:pointer;padding:6px;margin-left:auto;}
.msx-shell-mnav{display:none;}

/* ================= 主体 ================= */
.sw{max-width:var(--maxw);margin:0 auto;padding:0 24px;}

/* Hero */
.sw-hero{padding:104px 0 72px;text-align:center;}
.sw-eyebrow{font-size:12px;letter-spacing:4px;color:var(--orange);font-weight:700;margin-bottom:22px;}
.sw-h1{font-size:52px;line-height:1.2;font-weight:800;letter-spacing:1px;color:var(--ink);}
.sw-sub{margin-top:22px;font-size:18px;color:var(--gray);font-weight:400;}

/* 背书带 */
.sw-cred{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:34px 38px;margin-bottom:88px;
}
.sw-cred-lead{display:flex;gap:16px;align-items:flex-start;}
.sw-cred-ic{
  flex:none;width:42px;height:42px;border-radius:11px;background:var(--orange-soft);
  color:var(--orange);display:flex;align-items:center;justify-content:center;
}
.sw-cred-lead p{font-size:16.5px;color:var(--ink-2);line-height:1.75;}
.sw-cred-lead strong{color:var(--ink);font-weight:700;}
.sw-cred-tags{list-style:none;display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 4px 58px;}
.sw-cred-tags li{
  font-size:13px;color:var(--gray);background:var(--warm);
  border:1px solid var(--line);padding:6px 14px;border-radius:999px;
}
.sw-cred-note{margin:18px 0 0 58px;font-size:12.5px;color:var(--gray-2);}

/* 分组 */
.sw-group{margin-bottom:84px;}
.sw-group-head{display:flex;align-items:baseline;gap:14px;margin-bottom:30px;}
.sw-group-head h2{font-size:26px;font-weight:750;color:var(--ink);}
.sw-group-en{font-size:13px;color:var(--gray-2);letter-spacing:1px;font-weight:600;}
.sw-group-head::after{content:"";flex:1;height:1px;background:var(--line);margin-left:8px;}

/* 统一矩阵区 */
.sw-matrix{margin-bottom:84px;}

/* 筛选条 */
.sw-filters{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 30px;}
.sw-filter{
  display:inline-flex;align-items:center;gap:7px;
  font-size:14px;font-weight:600;color:var(--gray);
  background:#fff;border:1px solid var(--line);border-radius:999px;
  padding:8px 16px;cursor:pointer;transition:color .2s,border-color .2s,background .2s,box-shadow .2s;
}
.sw-filter:hover{color:var(--orange);border-color:#EBD3BE;}
.sw-filter.is-active{color:#fff;background:var(--orange);border-color:var(--orange);box-shadow:0 6px 14px rgba(242,140,56,.25);}
.sw-filter-n{font-size:11.5px;font-weight:700;color:var(--gray-2);background:var(--warm);border-radius:999px;padding:1px 8px;line-height:1.6;}
.sw-filter.is-active .sw-filter-n{background:rgba(255,255,255,.25);color:#fff;}

/* 卡片栅格 */
.sw-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.sw-matrix .sw-card{transition:opacity .18s ease,transform .2s ease,box-shadow .2s ease,border-color .2s ease;}
.sw-grid.is-swapping .sw-card{opacity:0;transform:translateY(6px);}
.sw-card.is-hidden{display:none;}
.sw-card-tags{display:flex;align-items:center;gap:8px;}
.sw-cat{font-size:11.5px;color:var(--gray-2);font-weight:600;background:var(--warm);border:1px solid var(--line);padding:3px 10px;border-radius:999px;white-space:nowrap;}

/* 占位卡 */
.sw-card-coming{
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;
  border:1.5px dashed #E3D4C3;
  background:repeating-linear-gradient(135deg,#fff,#fff 10px,#FDF8F3 10px,#FDF8F3 20px);
}
.sw-card-coming:hover{transform:translateY(-2px);box-shadow:none;border-color:#E0BFA2;}
.sw-coming-ic{
  width:46px;height:46px;border-radius:999px;border:1.5px dashed #E3C9AE;color:var(--orange);
  display:flex;align-items:center;justify-content:center;margin-bottom:4px;
}
.sw-coming-t{font-size:15px;font-weight:700;color:var(--gray);}
.sw-coming-s{font-size:12px;color:var(--gray-2);}
.sw-card{
  display:flex;flex-direction:column;
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:28px 26px 24px;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.sw-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 38px rgba(58,44,32,.08);
  border-color:#E7DCD0;
}
.sw-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;}
.sw-ic{
  width:48px;height:48px;border-radius:12px;background:var(--warm);
  border:1px solid var(--line);color:var(--orange);
  display:flex;align-items:center;justify-content:center;
}
.sw-ic svg{width:24px;height:24px;}

/* 状态标签 三色克制 */
.sw-tag{font-size:12px;font-weight:600;padding:4px 11px;border-radius:999px;letter-spacing:.5px;}
.sw-tag-open{color:var(--green);background:var(--green-soft);}
.sw-tag-dev{color:var(--orange);background:var(--orange-soft);}
.sw-tag-plan{color:var(--blue);background:var(--blue-soft);}

.sw-name{font-size:21px;font-weight:750;color:var(--ink);letter-spacing:.3px;}
.sw-cn{display:block;font-size:13.5px;color:var(--gray);font-weight:500;margin-top:3px;}
.sw-desc{margin-top:14px;font-size:14.5px;color:var(--gray);line-height:1.75;flex:1;}
.sw-meta{margin-top:14px;font-size:12px;color:var(--gray-2);}
.sw-actions{display:flex;gap:10px;margin-top:20px;}

/* 按钮 */
.sw-btn{
  flex:1;text-align:center;font-size:14px;font-weight:600;
  padding:9px 14px;border-radius:9px;transition:all .2s;cursor:pointer;border:1px solid transparent;
}
.sw-btn-primary{background:var(--orange);color:#fff;}
.sw-btn-primary:hover{background:#E57A26;transform:translateY(-1px);box-shadow:0 8px 18px rgba(242,140,56,.24);}
.sw-btn-ghost{background:transparent;color:var(--ink-2);border-color:var(--line);}
.sw-btn-ghost:hover{border-color:var(--orange);color:var(--orange);}

/* 说明区块 */
.sw-note-sec{padding:40px 0 20px;margin-bottom:60px;border-top:1px solid var(--line);}
.sw-sec-h{font-size:26px;font-weight:750;margin-bottom:32px;color:var(--ink);}
.sw-note-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-bottom:44px;}
.sw-note-grid h3{font-size:16px;font-weight:700;color:var(--ink-2);margin-bottom:10px;}
.sw-note-grid p{font-size:14px;color:var(--gray);line-height:1.8;}

/* 下载表 */
.sw-dl{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px 30px;}
.sw-dl-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;}
.sw-dl-head strong{font-size:17px;}
.sw-dl-badge{margin-left:10px;font-size:12px;font-weight:600;color:var(--green);background:var(--green-soft);padding:3px 11px;border-radius:999px;}
.sw-dl-table{width:100%;border-collapse:collapse;font-size:13.5px;}
.sw-dl-table th{
  text-align:left;font-size:12.5px;color:var(--gray-2);font-weight:600;
  padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap;
}
.sw-dl-table td{padding:14px 12px;border-bottom:1px solid var(--line);color:var(--ink-2);vertical-align:middle;}
.sw-dl-table tr:last-child td{border-bottom:0;}
.sw-dl-ver{color:var(--orange);font-weight:600;}
.sw-sha{font-family:"SF Mono",Menlo,Consolas,monospace;font-size:11.5px;color:var(--gray-2);max-width:220px;word-break:break-all;line-height:1.5;}
.sw-dl-table .sw-btn{flex:none;padding:7px 16px;display:inline-block;}
.sw-dl-tip{margin-top:16px;font-size:12.5px;color:var(--gray-2);line-height:1.8;}
.sw-dl-tip a{color:var(--orange);}

/* FAQ */
.sw-faq{max-width:820px;}
.sw-faq details{
  background:#fff;border:1px solid var(--line);border-radius:12px;
  padding:0 22px;margin-bottom:12px;transition:border-color .2s;
}
.sw-faq details[open]{border-color:#E7DCD0;}
.sw-faq summary{
  cursor:pointer;font-size:15.5px;font-weight:600;color:var(--ink-2);
  padding:16px 0;list-style:none;position:relative;padding-right:30px;
}
.sw-faq summary::-webkit-details-marker{display:none;}
.sw-faq summary::after{
  content:"";position:absolute;right:4px;top:50%;width:9px;height:9px;
  border-right:1.8px solid var(--gray-2);border-bottom:1.8px solid var(--gray-2);
  transform:translateY(-70%) rotate(45deg);transition:transform .2s;
}
.sw-faq details[open] summary::after{transform:translateY(-30%) rotate(-135deg);}
.sw-faq details p{padding:0 0 18px;font-size:14px;color:var(--gray);line-height:1.8;}
.sw-contact{margin-top:30px;font-size:16px;color:var(--ink-2);}
.sw-contact a{color:var(--orange);}

/* ================= 统一页脚 .footer ================= */
.footer{background:#FBF6F0;border-top:1px solid var(--line);margin-top:40px;padding:60px 0 28px;}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:36px;}
.fb-logo-img{height:40px;width:auto;margin-bottom:16px;}
.footer-brand p{font-size:13.5px;color:var(--gray);line-height:1.7;margin-bottom:4px;}
.fb-slogan{color:var(--orange)!important;font-size:12.5px!important;margin-top:10px!important;}
.footer-col h4{font-size:14.5px;font-weight:700;color:var(--ink);margin-bottom:16px;}
.footer-col ul{list-style:none;}
.footer-col ul li{margin-bottom:11px;}
.footer-col ul li a{font-size:13.5px;color:var(--gray);transition:color .2s;}
.footer-col ul li a:hover{color:var(--orange);}
.footer-col .ft-en{font-size:10px;color:var(--gray-2);margin-left:6px;letter-spacing:.5px;}
.footer-col .fb-here{color:var(--orange);font-weight:600;}
.footer-bottom{
  display:flex;justify-content:space-between;align-items:center;
  margin-top:44px;padding-top:24px;border-top:1px solid var(--line);gap:16px;flex-wrap:wrap;
}
.fb-bar-logo{height:26px;width:auto;}
.fb-right{font-size:12.5px;color:var(--gray-2);}
.fb-right a{color:var(--gray-2);}
.fb-right a:hover{color:var(--orange);}

/* ================= 自适应 ================= */
@media (max-width:960px){
  .sw-grid{grid-template-columns:repeat(2,1fr);}
  .sw-note-grid{grid-template-columns:1fr;gap:22px;}
  .footer-grid{grid-template-columns:1fr 1fr;gap:32px;}
}

@media (max-width:680px){
  :root{--shell-h:52px;}
  .msx-shell-nav,.msx-shell-user{display:none;}
  .msx-shell-ham{display:block;}
  .msx-shell-mnav{
    display:none;position:absolute;top:var(--shell-h);left:0;right:0;
    background:#fff;border-bottom:1px solid var(--line);
    flex-direction:column;padding:8px 24px 16px;
    box-shadow:0 18px 40px rgba(58,44,32,.1);
  }
  .msx-shell-mnav.open{display:flex;}
  .msx-shell-mnav a{
    padding:13px 0;font-size:15.5px;color:var(--ink-2);
    border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;
  }
  .msx-shell-mnav a .msx-shell-en-sm{font-size:10px;color:var(--gray-2);}
  .msx-shell-mnav .mnav-active{color:var(--orange);font-weight:600;}
  .msx-shell-mnav .m-login{justify-content:flex-start;color:var(--orange);font-weight:600;border-bottom:0;margin-top:6px;}

  .sw-hero{padding:64px 0 48px;}
  .sw-h1{font-size:33px;letter-spacing:.5px;}
  .sw-sub{font-size:15.5px;}
  .sw-cred{padding:26px 22px;}
  .sw-cred-tags{margin-left:0;}
  .sw-cred-note{margin-left:0;}
  .sw-grid{grid-template-columns:1fr;}
  .sw-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch;}
  .sw-filters::-webkit-scrollbar{display:none;}
  .sw-filter{flex:none;}
  .sw-group-head h2{font-size:22px;}
  .sw-dl{padding:20px 16px;}
  .sw-dl-table,.sw-dl-table thead,.sw-dl-table tbody,.sw-dl-table tr,.sw-dl-table th,.sw-dl-table td{display:block;}
  .sw-dl-table thead{display:none;}
  .sw-dl-table tr{padding:10px 0;border-bottom:1px solid var(--line);}
  .sw-dl-table td{border:0;padding:5px 0;}
  .sw-sha{max-width:none;}
  .footer-grid{grid-template-columns:1fr;gap:28px;}
  .footer-bottom{flex-direction:column;align-items:flex-start;}
}
