@import url("./compact-nav.css");

.local-income-heading {
  width: calc(100vw - 64px);
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 80px;
  text-align: center;
}
.local-income-heading h2 { margin: 0; color: #16161a; font-size: 36px; font-weight: 700; line-height: 1.3; }
.local-income-all { display: inline-flex; align-items: center; justify-content: center; gap: 3px; margin-top: 12px; color: #2b7be6; font-size: 18px; font-weight: 600; text-decoration: none; }
.local-income-all:hover { text-decoration: underline; }
.local-income-all:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.local-articles-section {
  width: 100%;
  padding: 36px 0 46px;
}
.local-articles-main { width: 100%; }
.local-articles-track { display: flex; gap: 24px; overflow-x: auto; padding: 6px max(32px, (100vw - 1200px) / 2) 28px; scrollbar-width: none; }
.local-articles-track::-webkit-scrollbar { display: none; }
.local-article-card { --card-width: clamp(384px, 28.6vw, 420px); position: relative; display: flex; flex: 0 0 var(--card-width); flex-direction: column; overflow: hidden; min-width: 0; border-radius: 22px; background: #fff; box-shadow: 0 1px 6px #20202c0b; color: #17171a; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.local-article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px #20202c16; }
.local-article-card > img { display: none; }
.local-article-card::before { content: var(--cover-title); display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; background: var(--cover-bg); color: var(--cover-ink); font-size: clamp(54px, 5vw, 72px); font-weight: 800; line-height: 1; white-space: nowrap; }
.local-article-card::after { content: ""; position: absolute; z-index: 1; top: calc(var(--card-width) / 4); left: 50%; width: 112px; height: 112px; transform: translate(-50%, -50%); border-radius: 24px; background: var(--cover-art) center / cover no-repeat; box-shadow: 0 12px 30px #1d183044; pointer-events: none; }
.local-article-card[href="/articles/toutiao-creator/"] { --cover-title: "头条掘金"; --cover-bg: linear-gradient(110deg, #f5b5a5, #e87774); --cover-ink: #fff9; --cover-art: url("/img/product-icons/toutiao-juejin.png"); }
.local-article-card[href="/articles/zhihu-answers/"] { --cover-title: "知乎引流"; --cover-bg: linear-gradient(110deg, #bedef4, #80c7e6); --cover-ink: #fff9; --cover-art: url("/img/product-icons/zhihu-yinliu.png"); }
.local-article-card[href="/articles/skill-combos/"] { --cover-title: "火力连招"; --cover-bg: linear-gradient(110deg, #d8c7ec, #ad95d8); --cover-ink: #fff9; --cover-art: url("/img/product-icons/huoli-lianzhao.png"); }
.local-article-card[href="/articles/uoou-ai-learning/"] { --cover-title: "AI 学习"; --cover-bg: linear-gradient(110deg, #e2d4f4, #c8b2e7); --cover-ink: #fff9; --cover-art: url("/img/products/uoou-ai-learning.png"); }
.local-article-card[href="/articles/uoou-ai-learning/"]::after { width: 205px; height: 150px; border-radius: 0; background-size: contain; box-shadow: none; }
.local-article-card[href="/articles/gpt-supply-radar/"] { --cover-title: "货源雷达"; --cover-bg: linear-gradient(110deg, #bde0d6, #7abfac); --cover-ink: #fff9; --cover-art: url("/img/product-icons/gpt-supply-radar.png"); }
.local-article-card[href="/articles/gpt-supply-radar/"]::after { background-size: contain; box-shadow: none; }
.local-article-copy { display: flex; flex: 1; flex-direction: column; padding: 24px 32px 28px; }
.local-article-copy span { color: #777985; font-size: 13px; }
.local-article-copy h3 { display: -webkit-box; overflow: hidden; min-height: 56px; margin: 8px 0 0; font-size: 21px; font-weight: 750; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.local-article-copy time { margin-top: 14px; color: #858692; font-size: 14px; }
.local-articles-controls { display: flex; justify-content: center; gap: 16px; margin-top: 0; }
.local-articles-controls button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #e3e3e8; border-radius: 50%; background: #fff; color: #17171a; cursor: pointer; }
.local-articles-controls button:hover { background: #e8f2ff; color: #2b7be6; }

/* Temporarily hide the unused homepage sections after Services, while keeping the footer. */
#主题, #主题 ~ :not(.footer):not(.linxi-closing-cta) { display: none !important; }

@media (max-width: 650px) {
  .local-income-heading { padding-top: 48px; }
  .local-income-heading h2 { font-size: 22px; }
  .local-income-all { margin-top: 6px; font-size: 13px; }
  .local-articles-section { padding: 24px 0 36px; }
  .local-article-card { --card-width: min(82vw, 350px); border-radius: 18px; }
  .local-article-card::before { font-size: 48px; }
  .local-article-card::after { width: 94px; height: 94px; border-radius: 20px; }
  .local-article-card[href="/articles/uoou-ai-learning/"]::after { width: 170px; height: 125px; border-radius: 0; }
  .local-article-copy { padding: 16px 21px 18px; }
  .local-article-copy h3 { font-size: 18px; min-height: 45px; }
}
