/* QIENET Services — Modern Minimal UI v3 — 2026-09-27
   Visual-only refresh. Keeps services.php data, links, ads, language, ordering and admin controls unchanged. */

.qn-services-page{
  width:calc(100% - 48px);
  max-width:1280px;
  margin:30px auto 64px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;
  color:#111827;
}

/* Compact category shortcuts */
.qn-services-nav{
  margin-bottom:24px;
  padding:12px;
  border:1px solid #e6eaf0;
  border-radius:18px;
  background:#fff;
  box-shadow:0 6px 20px rgba(31,42,68,.035);
  display:grid;
  grid-template-columns:repeat(10,minmax(0,1fr));
  gap:6px;
}

.qn-services-nav-item{
  min-width:0;
  min-height:70px;
  padding:9px 5px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  border-radius:12px;
  color:#263244;
  text-decoration:none!important;
  text-align:center;
  transition:.18s ease;
}

.qn-services-nav-item:hover{
  background:#f7f9fd;
  color:#2563eb;
  transform:translateY(-1px);
}

.qn-services-nav-icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#eff6ff;
  color:#3b82f6;
  font-size:17px;
}

.qn-services-nav-item:nth-child(2) .qn-services-nav-icon{background:#f0fdf4;color:#22c55e}
.qn-services-nav-item:nth-child(3) .qn-services-nav-icon{background:#faf5ff;color:#a855f7}
.qn-services-nav-item:nth-child(4) .qn-services-nav-icon{background:#fff7ed;color:#f97316}
.qn-services-nav-item:nth-child(5) .qn-services-nav-icon{background:#fef2f2;color:#ef4444}
.qn-services-nav-item:nth-child(6) .qn-services-nav-icon{background:#f0fdfa;color:#14b8a6}
.qn-services-nav-item:nth-child(7) .qn-services-nav-icon{background:#eef2ff;color:#6366f1}
.qn-services-nav-item:nth-child(8) .qn-services-nav-icon{background:#fdf2f8;color:#ec4899}
.qn-services-nav-item:nth-child(9) .qn-services-nav-icon{background:#fefce8;color:#d6a800}
.qn-services-nav-item:nth-child(10) .qn-services-nav-icon{background:#f3f4f6;color:#4b5563}

.qn-services-nav-title{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12.5px;
  font-weight:650;
}

/* Main modules */
.qn-services-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}

.qn-service-module{
  min-height:360px;
  padding:26px 28px 22px;
  border:1px solid #e6eaf0;
  border-radius:22px;
  background:#fff;
  box-shadow:0 8px 26px rgba(31,42,68,.055);
  display:flex;
  flex-direction:column;
  transition:.2s ease;
  overflow:hidden;
}

.qn-service-module:hover{
  border-color:#d7deea;
  box-shadow:0 14px 34px rgba(31,42,68,.10);
  transform:translateY(-3px);
}

.qn-service-module-head{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:15px;
  align-items:start;
  text-decoration:none!important;
  margin-bottom:20px;
  min-width:0;
}

/* Exact small icon proportion from approved reference */
.qn-service-module-head .icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#eff6ff;
  color:#3b82f6;
  font-size:24px;
  flex-shrink:0;
}

/* Module-specific icon colors; visual only */
.qn-service-module:nth-of-type(2) .icon{background:#f0fdf4;color:#22c55e}
.qn-service-module:nth-of-type(3) .icon{background:#faf5ff;color:#a855f7}
.qn-service-module:nth-of-type(4) .icon{background:#fff7ed;color:#f97316}
.qn-service-module:nth-of-type(5) .icon{background:#fef2f2;color:#ef4444}
.qn-service-module:nth-of-type(6) .icon{background:#f0fdfa;color:#14b8a6}
.qn-service-module:nth-of-type(7) .icon{background:#eef2ff;color:#6366f1}
.qn-service-module:nth-of-type(8) .icon{background:#fdf2f8;color:#ec4899}
.qn-service-module:nth-of-type(9) .icon{background:#fefce8;color:#d6a800}
.qn-service-module:nth-of-type(10) .icon{background:#f3f4f6;color:#4b5563}

.qn-service-module-head h2{
  margin:0 0 4px;
  color:#111827;
  font-size:22px;
  line-height:1.25;
  font-weight:750;
  letter-spacing:-.35px;
}

.qn-service-module-head p{
  margin:0;
  color:#5c6677;
  font-size:14px;
  line-height:1.45;
  font-weight:500;
}

/* User explicitly requested removal of top-right blue arrow */
.qn-service-module-head .module-arrow{
  display:none!important;
}

/* Content text: darker, larger, but deliberately not bold */
.qn-service-hot-list{
  display:flex;
  flex-direction:column;
  flex:1;
  margin-top:2px;
  border-top:0;
}

.qn-service-hot-item{
  min-width:0;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 0;
  border-bottom:1px solid #edf0f4;
  color:#263244;
  text-decoration:none!important;
  font-size:16px;
  font-weight:450;
  line-height:1.45;
  letter-spacing:-.05px;
  transition:.18s ease;
}

.qn-service-hot-item span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:inherit;
}

.qn-service-hot-item i{
  color:#aab3c1;
  font-size:11px;
  flex:0 0 auto;
}

.qn-service-hot-item:hover{
  color:#2563eb;
  padding-left:5px;
}

.qn-service-empty{
  padding:18px 0;
  color:#7b8495;
  font-size:15px;
  font-weight:400;
}

.qn-service-more{
  margin-top:auto;
  padding-top:17px;
  border-top:1px solid #edf0f4;
  color:#2563eb;
  text-decoration:none!important;
  font-size:15px;
  font-weight:750;
  text-align:right;
}

.qn-service-more:hover{
  color:#1d4ed8;
}

/* Ads remain functionally unchanged */
.qn-services-ad-row{
  grid-column:1/-1;
  min-height:104px;
}

.qn-services-ad-row>a{
  display:block;
  width:100%;
  height:100%;
}

.qn-services-ad-row img{
  display:block;
  width:100%;
  max-height:150px;
  object-fit:cover;
  border-radius:20px;
  border:1px solid #e6eaf0;
}

.qn-services-ad-placeholder{
  min-height:104px;
  display:grid;
  place-items:center;
  border:1px dashed #ccd5e4;
  border-radius:20px;
  background:#fafbfe;
  color:#98a2b3;
  font-size:12px;
  letter-spacing:.08em;
}

/* Dark theme */
html[data-theme="dark"] .qn-services-page{color:#eef2f7}

html[data-theme="dark"] .qn-services-nav,
html[data-theme="dark"] .qn-service-module{
  background:#171e27;
  border-color:#303b48;
  box-shadow:none;
}

html[data-theme="dark"] .qn-services-nav-item{color:#dce5f1}
html[data-theme="dark"] .qn-services-nav-item:hover{background:#1d2835;color:#62adff}

html[data-theme="dark"] .qn-service-module-head p{color:#aeb8c7}

html[data-theme="dark"] .qn-service-hot-item{
  color:#e3e9f1;
  border-color:#303b48;
}

html[data-theme="dark"] .qn-service-hot-item i{color:#738196}
html[data-theme="dark"] .qn-service-more{border-color:#303b48;color:#62adff}

html[data-theme="dark"] .qn-services-ad-placeholder{
  background:#141b23;
  border-color:#303b48;
  color:#7f8b9b;
}

/* Responsive */
@media(max-width:1100px){
  .qn-services-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
}

@media(max-width:900px){
  .qn-services-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
  .qn-services-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .qn-services-ad-row{grid-column:1/-1}
}

@media(max-width:620px){
  .qn-services-page{
    width:calc(100% - 28px);
    margin-top:20px;
  }

  .qn-services-nav{
    grid-template-columns:repeat(3,minmax(0,1fr));
    padding:9px;
    gap:4px;
    border-radius:16px;
  }

  .qn-services-nav-item{
    min-height:66px;
    padding:7px 4px;
  }

  .qn-services-nav-title{font-size:12px}

  .qn-services-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .qn-service-module{
    min-height:auto;
    padding:22px 20px 18px;
    border-radius:18px;
  }

  .qn-service-module-head h2{font-size:21px}
  .qn-service-hot-item{font-size:15px;min-height:43px}
  .qn-services-ad-row{grid-column:1}
}
