/* Download center page - scoped styles
 * Used by templates/xtu/cms/category_download.html and list_download.html
 * Keep this file self-contained to avoid importing xtugo.css/cooperation.css side effects.
 */

body.download-category-body .site-header,
body.download-category-body .site-header.page-navbar-solid,
body.download-category-body .site-header.scrolled{
  background:#fff!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  box-shadow:0 1px 0 rgba(0,0,0,.08)!important;
}
body.download-category-body .site-header .navbar-nav .nav-link,
body.download-category-body .site-header .logo,
body.download-category-body .site-header .navbar-brand,
body.download-category-body .site-header .nav-glass-text,
body.download-category-body .site-header .nav-glass-icon,
body.download-category-body .site-header .navbar-toggler,
body.download-category-body .site-header a,
body.download-category-body .site-header button{
  color:#111827!important;
}
body.download-category-body .site-header .nav-glass-btn{
  color:#111827!important;
  background:#fff!important;
  border:1px solid rgba(17,24,39,.08)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
body.download-category-body .site-header .nav-glass-btn-shop{
  color:#fff!important;
  background:linear-gradient(135deg,#0b5fff,#4f8cff)!important;
  border-color:transparent!important;
}
body.download-category-body .site-header .nav-glass-btn-shop .nav-glass-text,
body.download-category-body .site-header .nav-glass-btn-shop .nav-glass-icon{
  color:#fff!important;
}

.download-center-page{
  min-height:100vh;
  background:#f5f5f7;
  color:#1d1d1f;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  letter-spacing:-.01em;
}
.download-topbar{
  position:fixed;
  left:0;
  right:0;
  top:calc(var(--xtu-header-height,74px) - 1px);
  z-index:1029;
  background:#000;
  color:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.download-topbar .cooperation-topbar-inner{
  width:min(1300px,calc(100% - 48px));
  margin:0 auto;
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.download-topbar .cooperation-topbar-title{
  font-size:18px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:.02em;
  white-space:nowrap;
  color:#fff;
}
.download-center-section{
  padding:calc(var(--xtu-header-height,74px) + 88px) 0 76px;
}
.download-center-layout{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:24px;
  align-items:start;
}
.download-filter-panel{
  position:sticky;
  top:calc(var(--xtu-header-height,74px) + 76px);
  display:grid;
  gap:18px;
}
.download-filter-card,
.download-overview-card,
.download-product-hero-card,
.download-tabs-card,
.download-doc-section{
  border-radius:8px;
  border:0;
  background:#fff;
  box-shadow:none;
}
.download-filter-card{padding:22px 20px}
.download-filter-title{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:600;letter-spacing:-.02em;color:#1d1d1f;margin-bottom:14px}
.download-filter-title i{color:#6e6e73;font-size:17px}
.download-search-form{display:grid;gap:10px}
.download-search-form input{height:44px;border-radius:6px;border:1px solid #d2d2d7;background:#f5f5f7;color:#1d1d1f;font-size:14px;padding:0 14px;outline:none}
.download-search-form input:focus{border-color:#0071e3;background:#fff;box-shadow:0 0 0 3px rgba(0,113,227,.12)}
.download-search-form button,
.download-file-action{height:40px;border:0;border-radius:6px;background:#1d1d1f;color:#fff;font-size:14px;font-weight:500;box-shadow:none;transition:background .18s ease,color .18s ease}
.download-search-form button:hover,
.download-file-action:hover{background:#0071e3;color:#fff;text-decoration:none}
.download-filter-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.download-filter-meta span{padding:7px 10px;border-radius:4px;background:#f5f5f7;color:#6e6e73;font-size:12px;font-weight:500}
.download-product-list{display:grid;gap:14px}
.download-product-group{border:1px solid #e8e8ed;border-radius:8px;background:#fff;overflow:hidden}
.download-product-group-title{width:100%;display:flex;align-items:center;justify-content:space-between;padding:12px 12px;background:#f5f5f7;color:#1d1d1f;font-size:13px;font-weight:600;letter-spacing:-.01em;border:0;text-align:left;cursor:pointer}
.download-product-group-title:hover{background:#eeeeF2}
.download-product-group-title i{color:#86868b;font-size:14px;transition:transform .22s ease}
.download-product-group.is-open .download-product-group-title i{transform:rotate(180deg)}
.download-product-group-items{display:grid;gap:6px;padding:0 8px;max-height:0;overflow:hidden;opacity:0;transition:max-height .28s ease,padding .22s ease,opacity .18s ease}
.download-product-group.is-open .download-product-group-items{padding:8px;max-height:720px;opacity:1}
.download-product-link{display:flex;align-items:center;justify-content:space-between;padding:10px 11px;border-radius:6px;background:#fff;color:#1d1d1f;text-decoration:none;font-size:14px;font-weight:500;border:1px solid transparent;transition:background .18s ease,color .18s ease,border-color .18s ease}
.download-product-link:hover,
.download-product-link.active{background:#1d1d1f;color:#fff;border-color:#1d1d1f;text-decoration:none}
.download-content-panel{min-width:0}
.download-overview-card{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:28px;align-items:center;min-height:300px;padding:42px 44px}
.download-pill{display:inline-flex;align-items:center;border-radius:999px;background:transparent;color:#6e6e73;padding:0;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.download-overview-copy h2,
.download-product-hero-card h2{font-weight:600;color:#1d1d1f;letter-spacing:-.035em;line-height:1.12}
.download-overview-copy h2{font-size:clamp(28px,3.1vw,40px);margin:14px 0 10px}
.download-product-hero-card h2{font-size:clamp(26px,2.8vw,36px);margin:0 0 10px}
.download-overview-copy p,
.download-product-hero-card p,
.download-app-panel p{color:#6e6e73;font-size:15px;line-height:1.65;max-width:620px;margin:0}
.download-overview-visual{display:flex;align-items:center;justify-content:center;border-radius:8px;background:#f5f5f7;min-height:220px;overflow:hidden}
.download-overview-visual img{display:block;max-width:100%;max-height:200px;object-fit:contain}
.download-doc-section{padding:30px;margin-top:24px}
.download-section-head{margin-bottom:18px}
.download-section-head h2{font-size:24px;font-weight:600;color:#1d1d1f;letter-spacing:-.03em;margin:0 0 6px;line-height:1.2}
.download-section-head p{color:#6e6e73;font-size:14px;margin:0}
.download-file-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.download-file-grid.compact{grid-template-columns:1fr}
.download-file-card{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:14px;border-radius:8px;background:#fff;border:1px solid #e8e8ed;padding:16px;transition:border-color .18s ease,background .18s ease}
.download-file-card:hover{border-color:#c7c7cc;background:#fbfbfd}
.download-file-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:6px;background:#f5f5f7;color:#1d1d1f;font-size:18px}
.download-file-copy{min-width:0}
.download-file-copy h3{margin:0 0 4px;font-size:15px;font-weight:600;color:#1d1d1f;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.download-file-copy p{margin:0;font-size:12px;color:#86868b}
.download-file-action{display:inline-flex;align-items:center;justify-content:center;min-width:74px;padding:0 14px;text-decoration:none}
.download-product-hero-card{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:24px;align-items:center;padding:36px 40px;margin-bottom:24px;min-height:220px}
.download-product-hero-card img{display:block;max-width:100%;max-height:140px;object-fit:contain;margin-left:auto}
.download-tabs-card{padding:24px}
.download-tabs{display:flex;align-items:center;gap:4px;margin-bottom:24px;border-radius:6px;background:#f5f5f7;padding:4px;overflow-x:auto}
.download-tab{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:120px;height:42px;border:0;border-radius:4px;background:transparent;color:#6e6e73;font-size:14px;font-weight:500;white-space:nowrap;box-shadow:none;transition:background .18s ease,color .18s ease}
.download-tab.active,
.download-tab:hover{background:#fff;color:#1d1d1f}
.download-tab-panel{display:none}
.download-tab-panel.active{display:block}
.download-app-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;border-radius:8px;background:#f5f5f7;padding:28px;border:0}
.download-app-panel h3{margin:8px 0 8px;font-size:24px;font-weight:600;letter-spacing:-.03em;color:#1d1d1f}
.download-overview-card .download-store-list{margin-top:24px}
.xtugo-store-btn{display:inline-flex;align-items:center;gap:10px;min-width:170px;min-height:52px;padding:10px 16px;border-radius:6px;background:#1d1d1f;color:#fff;text-decoration:none;border:0;box-shadow:none;transition:background .18s ease,color .18s ease}
.xtugo-store-btn:hover{background:#0071e3;color:#fff;text-decoration:none}
.xtugo-store-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:4px;background:rgba(255,255,255,.12)}
.xtugo-store-icon i{font-size:22px;line-height:1}
.xtugo-store-copy{display:flex;flex-direction:column;gap:1px}
.xtugo-store-copy small{font-size:10px;line-height:1.2;color:rgba(255,255,255,.72)}
.xtugo-store-copy strong{font-size:17px;line-height:1.1;color:#fff}
.download-pages{margin-top:22px}
.download-pages .pagination,
.download-pages ul{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin:0;padding:0;list-style:none}
.download-pages a,
.download-pages span{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 10px;border-radius:4px;background:#fff;border:1px solid #e8e8ed;color:#1d1d1f;text-decoration:none}

@media (max-width:991px){
  .download-topbar .cooperation-topbar-inner{min-height:52px}
  .download-center-section{padding-top:calc(var(--xtu-header-height,66px) + 84px)}
  .download-center-layout{grid-template-columns:1fr}
  .download-filter-panel{position:static}
  .download-overview-card,
  .download-product-hero-card{grid-template-columns:1fr;padding:32px 24px}
  .download-product-hero-card img{margin:0 auto}
  .download-tabs-card,.download-doc-section{padding:22px}
  .download-app-panel{grid-template-columns:1fr}
}
@media (max-width:575px){
  .download-topbar .cooperation-topbar-inner{width:calc(100% - 24px);min-height:48px}
  .download-topbar .cooperation-topbar-title{font-size:16px}
  .download-center-section{padding-top:calc(var(--xtu-header-height,62px) + 80px);padding-bottom:44px}
  .download-overview-card,.download-product-hero-card{border-radius:6px;padding:26px 18px}
  .download-filter-card,.download-tabs-card,.download-doc-section{border-radius:6px}
  .download-center-layout{gap:16px}
  .download-overview-copy h2{font-size:28px}
  .download-product-hero-card h2{font-size:26px}
  .download-section-head h2{font-size:22px}
  .download-file-grid{grid-template-columns:1fr}
  .download-file-card{grid-template-columns:36px minmax(0,1fr);gap:12px}
  .download-file-action{grid-column:1/-1;width:100%}
  .xtugo-store-list{width:100%;flex-direction:column}
  .xtugo-store-btn{width:100%;min-width:0}
}
