/* =================================
   全局公共样式表 (Less版本)
   ================================= */
:root {
  /* ===== App711 设计令牌 ===== */
  --c-primary: #1E77FF;
  --c-primary-d: #155CD6;
  --c-accent: #ff9500;
  --c-text: #282828;
  --c-text2: #3a3a3a;
  --c-text3: #4d4d4d;
  --c-line: #eeeeee;
  --c-bg: #ffffff;
  --c-card: #ffffff;
  --c-footer: #0F2557;
  --radius-card: 12px;
  --radius-icon: 10px;
  --radius-btn: 16px;
  --shadow-card: 0 0 12px 0 rgba(14, 9, 62, 0.08);
  --container: 1200px;
  --gap: 60px;
  --font: "PingFang SC", -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* ===== 兼容旧变量名（映射到绿色体系） ===== */
  --FontBody: var(--font);
  --FontTitle: var(--font);
  --Theme: var(--c-primary);
  --BgPage: var(--c-bg);
  --IndexTopBg: linear-gradient(142deg, #3D8BFF 2.96%, var(--c-primary) 68.67%, var(--c-primary-d) 100.55%);
  --BgNav: #FFFFFF;
  --TextNav: var(--c-text3);
  --BgFooter: var(--c-footer);
  --TextFooter: #ffffff;
  --TextPrimary: var(--c-text);
  --TextSecondary: var(--c-text3);
  --TextTertiary: #999999;
  --Hover: var(--c-primary-d);
  --Link: var(--c-primary);
  --Divider: var(--c-line);
  --Border: var(--c-line);
}
* {
  /* 消除边距 */
  margin: 0;
  padding: 0;
  /*盒模型默认使用内边框*/
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
/* GOTCHAS 防御：禁止横向溢出 */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
}
html {
  --dir-multiplier: 1;
  --dir-transform: rotateZ(0deg);
}
html[dir="rtl"] {
  --dir-multiplier: -1;
  --dir-transform: rotateZ(180deg);
}
/*全局设置*/
p {
  font-family: var(--FontBody);
}
h1,
h2,
h3,
h4,
h5,
h6,
div,
a,
dl,
dt,
dd,
ul,
ol,
li,
form,
table,
textarea,
button,
span,
input {
  font-family: var(--FontTitle);
}
/*列表样式消除*/
ol,
ul,
li {
  list-style: none;
}
/*img在盒子中有下边距*/
img {
  /*IE7*/
  border: none;
  vertical-align: middle;
  object-fit: cover;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
  outline: none;
  border: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}
a:focus,
a:visited {
  text-decoration: none;
  outline: none;
}
input {
  outline: none;
  border: none;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
}
input:focus,
input:focus-visible,
input:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}
button {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
button:hover,
button:focus,
button:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}
table,
td,
tr,
th {
  border-collapse: collapse;
}
ul::-webkit-scrollbar {
  width: 0 !important;
}
.app-card-title {
  color: #101828;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}
.category-card-title {
  color: #101828;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
}
.adTitle {
  text-align: start;
  font-size: 12px;
  line-height: 16px;
  margin: 3px 0 6px 0;
  color: #ccc;
}
.adHeight {
  width: 100%;
  height: 252px;
}
.ad-box {
  width: 100%;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-start {
  text-align: start;
}
.text-primary {
  color: #1E77FF;
}
.text-secondary {
  color: #666;
}
.text-muted {
  color: #999;
}
.text-light {
  color: #ccc;
}
.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-oneline {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  word-break: break-all;
}
.cover-link {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  bottom: 0;
  inset-inline-end: 0;
}
.clearfix {
  display: block;
}
.clearfix:before,
.clearfix:after {
  content: "";
  display: table;
}
.clearfix:after {
  clear: both;
}
* html .clearfix {
  height: 1%;
}
* + html .clearfix {
  min-height: 1%;
}
.left {
  float: left;
}
.right {
  float: right;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.fade-in {
  animation: fadeIn 0.3s ease-in;
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.slide-in-up {
  animation: slideInUp 0.4s ease-out;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.loading-spinner {
  animation: spin 1s linear infinite;
}
@media only screen and (max-width: 320px) {
  html {
    font-size: 13px;
  }
  .app-card-title {
    font-size: 14px;
  }
  .category-card-title {
    font-size: 16px;
  }
  .adHeight {
    width: 100%;
    height: 200px;
  }
  .ad-box {
    text-align: center;
  }
  .adTitle {
    padding: 0;
    font-size: 11px;
  }
}
@media only screen and (min-width: 321px) and (max-width: 767px) {
  html {
    font-size: 14px;
  }
  .app-card-title {
    font-size: 15px;
  }
  .category-card-title {
    font-size: 17px;
  }
  .adHeight {
    width: 100%;
    height: 252px;
  }
  .ad-box {
    text-align: center;
  }
  .adTitle {
    padding: 0;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1200px) {
  html {
    font-size: 15px;
  }
  .app-card-title {
    font-size: 16px;
  }
  .category-card-title {
    font-size: 18px;
  }
  .adHeight {
    width: 100%;
    height: 280px;
  }
  .ad-box {
    text-align: center;
    margin: 20px 0;
  }
}
@media only screen and (min-width: 1200px) {
  html {
    font-size: 16px;
  }
  .app-card-title {
    font-size: 18px;
  }
  .category-card-title {
    font-size: 20px;
  }
  .adHeight {
    width: 100%;
    height: 320px;
  }
  .ad-box {
    text-align: center;
  }
}
.section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.section-hd-title {
  flex: 1;
  margin: 0;
  color: #333333;
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
}
.section-hd-more {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  flex-shrink: 0;
  text-decoration: none;
  transition: background 0.2s ease;
}
.section-hd-more:hover {
  background: #ffffff;
}
.section-hd-more svg {
  width: 24px;
  height: 24px;
  fill: #5C5E5E;
}
.breadcrumb {
  display: flex;
  align-items: center;
  height: 52px;
  max-width: 100%;
  gap: 0;
}
.breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #1E77FF;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}
.breadcrumb-link svg {
  width: 14px;
  height: 14px;
  fill: #1E77FF;
  flex-shrink: 0;
}
.breadcrumb-sep {
  padding: 0 8px;
  color: rgba(0, 0, 0, 0.45);
  font-size: 14px;
  line-height: 22px;
}
.breadcrumb-current {
  color: #666666;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media only screen and (max-width: 767px) {
  .section-hd-title {
    font-size: 20px;
    line-height: 28px;
  }
  .section-hd-more {
    width: 32px;
    height: 32px;
  }
  .section-hd-more svg {
    width: 20px;
    height: 20px;
  }
  .breadcrumb {
    height: 100%;
    padding: 10px 0;
  }
}
.header,
.header-inner,
.mobile-header {
  max-width: 100vw;
  box-sizing: border-box;
}
.logo {
  flex-shrink: 0;
  min-width: 0;
}
.header {
  width: 100%;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.header-inner {
  width: 100%;
  max-width: var(--container);
  height: 65px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
}
.logo {
  display: block;
  height: 35px;
  width: auto;
  position: relative;
  border-radius: 4px;
}
.logo-image,
.logo img {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
.logo-placeholder {
  height: 100%;
  min-width: 120px;
  background: #D7D7D7;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
}
.mobile-header {
  display: none;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--c-bg);
  justify-content: flex-start;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
}
.mobile-logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 32px;
}
.mobile-logo .logo-image {
  height: 100%;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.mobile-logo .logo-placeholder {
  height: 32px;
  padding: 0 16px;
  background: var(--c-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}
@media only screen and (min-width: 768px) {
  .mobile-header {
    display: none !important;
  }
  .desktop-nav {
    display: flex;
    width: 100%;
  }
  .header {
    max-width: 100vw;
    overflow-x: hidden;
  }
}
@media only screen and (max-width: 767px) {
  .desktop-nav {
    display: none;
  }
  .mobile-header {
    display: flex !important;
    width: 100%;
    height: 46px;
    box-sizing: border-box;
  }
}
@media only screen and (max-width: 320px) {
  .mobile-logo {
    height: 28px;
  }
  .mobile-logo .logo-image {
    height: 28px;
    max-width: 130px;
  }
  .mobile-logo .logo-placeholder {
    height: 28px;
    font-size: 13px;
    padding: 0 12px;
  }
}
.footer {
  width: 100%;
  padding: 48px 16px;
  background: var(--c-footer);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.footer-inner {
  width: 100%;
  max-width: var(--container);
  padding: 0 24px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  box-sizing: border-box;
}
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
}
.footer-disclaimer {
  width: 100%;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.7;
}
.footer-disclaimer * {
  color: inherit !important;
  background: transparent !important;
}
.footer-disclaimer p {
  margin: 0 0 10px;
}
.footer-disclaimer p:last-child {
  margin-bottom: 0;
}
.footer-disclaimer a {
  text-decoration: underline;
}
.footer-disclaimer a:hover {
  color: var(--c-accent) !important;
}
.footer-disclaimer ul,
.footer-disclaimer ol {
  margin: 0 0 10px;
  padding-left: 20px;
}
.footer-logo {
  width: auto;
  height: 35px;
  display: block;
  border-radius: 4px;
  flex-shrink: 0;
  text-decoration: none;
}
.footer-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}
.footer-logo-placeholder {
  width: 100%;
  height: 100%;
  background: #D7D7D7;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
  font-weight: 600;
}
.footer-nav {
  width: 100%;
  max-width: var(--container);
  margin-top: 32px;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
}
.footer-nav-link {
  color: inherit;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.footer-nav-link:hover {
  color: var(--c-accent);
}
@media only screen and (min-width: 768px) and (max-width: 1200px) {
  .footer {
    padding: 40px 16px;
  }
  .footer-inner {
    max-width: 100%;
    padding: 0 20px;
    gap: 32px;
  }
}
@media only screen and (max-width: 767px) {
  .footer {
    padding: 32px 16px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 0 4px;
  }
  .footer-disclaimer {
    font-size: 12px;
  }
  .footer-logo {
    height: 30px;
  }
  .footer-nav {
    margin-top: 24px;
    padding: 20px 4px 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 20px;
    line-height: 2;
  }
  .footer-nav-link {
    padding: 0;
  }
}
@media only screen and (max-width: 767px) and only screen and (max-width: 320px) {
  .footer {
    padding: 24px 12px;
  }
  .footer-inner {
    gap: 20px;
  }
  .footer-logo {
    height: 24px;
  }
  .footer-nav {
    gap: 0 16px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer .footer-nav-link {
    transition: none !important;
  }
}
/* =================================
   文章列表页面样式
   ================================= */
.articlesWrap {
  width: 100%;
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 24px 48px;
  box-sizing: border-box;
}
.articlesWrap .articles-section-title {
  color: #333333;
  font-size: 22px;
  font-family: Poppins, -apple-system, sans-serif;
  font-weight: 600;
  line-height: 30px;
  padding: 10px 0;
  text-transform: capitalize;
}
.articlesWrap .articles-banner {
  width: 100%;
  height: 257px;
  background: #D9D9D9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 700;
  overflow: hidden;
}
.articlesWrap .articles-featured {
  display: flex;
  gap: 20px;
  align-items: stretch;
  padding-top: 16px;
  padding-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}
.articlesWrap .articles-featured-main {
  width: 608px;
  flex-shrink: 0;
  height: 342px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: block;
  text-decoration: none;
  background: #D9D9D9;
}
.articlesWrap .articles-featured-main-wrap {
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  height: 100%;
}
.articlesWrap .articles-featured-main .articles-featured-main-wrap-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease-in-out;
}
.articlesWrap .articles-featured-main:hover .articles-featured-main-wrap-img {
  transform: scale(1.05);
}
.articlesWrap .articles-featured-main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 54px 10px 10px;
  background: linear-gradient(360deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
  color: white;
  font-size: 16px;
  font-family: Poppins, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 21.92px;
  text-transform: capitalize;
}
.articlesWrap .articles-featured-list {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 2px;
}
.articlesWrap .articles-featured-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  min-width: 0;
}
.articlesWrap .articles-featured-item-info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.articlesWrap .articles-featured-item-title {
  color: #000000;
  font-size: 16px;
  font-family: Poppins, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 21.92px;
  text-transform: capitalize;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}
.articlesWrap .articles-featured-item-title:hover {
  color: #1E77FF;
}
.articlesWrap .articles-featured-item-dec {
  color: #666;
  font-family: Poppins, -apple-system, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 137%;
}
.articlesWrap .articles-featured-item-date {
  color: #666;
  font-family: Poppins, -apple-system, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 137%;
}
.articlesWrap .articles-featured-item-thumb {
  width: 160px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #D9D9D9;
}
.articlesWrap .articles-featured-item-thumb-wrap {
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
  width: 160px;
  height: 90px;
}
.articlesWrap .articles-featured-item-thumb-wrap-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease-in-out;
}
.articlesWrap .articles-featured-item-thumb-wrap-img:hover {
  transform: scale(1.05);
}
.articlesWrap .articles-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px 0 16px;
}
.articlesWrap .articles-tag {
  padding: 6px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-family: Poppins, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
  border: none;
  background: transparent;
  outline: 1px solid #DDDDDD;
  outline-offset: -1px;
  color: #666666;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.articlesWrap .articles-tag.is-active {
  background: #1E77FF;
  outline: none;
  color: white;
}
.articlesWrap .articles-tag:hover:not(.is-active) {
  outline-color: #1E77FF;
  color: #1E77FF;
}
.articlesWrap .articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 20px;
  width: 100%;
}
.articlesWrap .articles-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.articlesWrap .articles-card-wrap {
  overflow: hidden;
  border-radius: 8px;
}
.articlesWrap .articles-card-wrap-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: #DDDDDD;
  display: block;
  transition: transform 0.3s ease-in-out;
}
.articlesWrap .articles-card:hover .articles-card-wrap-img {
  transform: scale(1.05);
}
.articlesWrap .articles-card-name {
  color: #333333;
  font-size: 16px;
  font-family: Poppins, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 21.92px;
  text-transform: capitalize;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}
.articlesWrap .articles-empty {
  color: #999999;
  font-size: 16px;
  padding: 40px 0;
  grid-column: 1 / -1;
  text-align: center;
}
@media only screen and (max-width: 767px) {
  .articlesWrap {
    padding: 0 16px 32px;
  }
  .articlesWrap .articles-banner {
    height: 150px;
    font-size: 24px;
  }
  .articlesWrap .articles-section-title {
    font-size: 18px;
  }
  .articlesWrap .articles-featured {
    flex-direction: column;
    gap: 16px;
    padding-top: 12px;
  }
  .articlesWrap .articles-featured-main {
    width: 100%;
    height: 200px;
  }
  .articlesWrap .articles-featured-list {
    padding: 0;
    gap: 16px;
  }
  .articlesWrap .articles-featured-item-thumb {
    width: 120px;
    height: 68px;
  }
  .articlesWrap .articles-featured-item-thumb-wrap {
    width: 120px;
    height: 68px;
  }
  .articlesWrap .articles-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }
  .articlesWrap .articles-tags::-webkit-scrollbar {
    display: none;
  }
  .articlesWrap .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .articlesWrap .articles-card {
    align-items: flex-start;
    gap: 12px;
  }
  .articlesWrap .articles-card-img {
    width: 120px;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
  }
  .articlesWrap .articles-card-name {
    flex: 1;
    font-size: 15px;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .articlesWrap .articles-featured-main {
    width: 45%;
  }
  .articlesWrap .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
