/* ─── airead-layout.css · Header + Footer + 全局布局 ─── */

/* ── 页面骨架 ── */
.airead-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.airead-main { flex: 1; }

/* ── Sticky Header ── */
.airead-footer {
  display: flex;
  align-items: center;
  background: linear-gradient(134deg, #4078ffbd, #818cf873);
  color: #ffffff;
  padding: 3px 0;
}









.airead-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }footer .airead-container ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; flex-shrink: 0; }footer .airead-container ul a:hover { color: #fff; }footer .airead-container span a { color: rgba(255, 255, 255, 0.6); }footer .airead-container > a { flex-shrink: 0; }
.footer_btm {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  /* padding: 0 24px; */
  box-sizing: border-box;
  flex-wrap: wrap;
}

.footer_btm ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.footer_btm ul a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  transition: color 0.2s;
  opacity: 0.6;
}

.footer_btm ul a:hover { color: #fff; }

.footer_btm span {
  flex: 1;
  text-align: right;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 8px;
}

.footer_btm span a { color: rgba(255, 255, 255, 0.6); }
.footer_btm span a:hover { color: #fff; }

.footer_btm p a { padding: 0 8px; }

.footer_btm > a { flex-shrink: 0; }
.footer_btm img { max-width: 90px; display: block; }


.airead-header {
  width: 100%;
  height: 56px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1001;
}

.airead-header.smaller {
height: 56px;
/* border-bottom: 1px solid #f8f8f8; */
-webkit-box-shadow: 1px 2px 8px 0px rgba(0, 0, 0, 0.06);
-moz-box-shadow: 1px 2px 8px 0px rgba(0, 0, 0, 0.06);
box-shadow: 1px 2px 8px 0px rgba(0, 0, 0, 0.06);
position: fixed;
top: 0;
left: 0;
right: 0;
}

.airead-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.airead-header__logo { display: flex; align-items: center; }
.airead-header__logo img { height: 32px; width: auto; opacity: 0.9; }

.airead-header__nav {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 56px;
}

.airead-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  margin-right: auto;
  padding: 0;
  height: 100%;
}

.airead-nav-menu li a {
  display: inline-block;
  padding: 12px;
  line-height: 35px;
  text-decoration: none;
  color: rgba(0,0,0,0.8);
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s, font-weight 0.2s;
}
.airead-nav-menu li a:hover {
  color: #222;
  font-weight: 600;
}
.airead-nav-menu li.active a {
  color: #4078ff;
  font-weight: 600;
}

.airead-btn-unlock {
  display: inline-block;
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--airead-primary), var(--airead-accent));
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.airead-btn-unlock:hover { opacity: 0.85; }
.airead-btn-unlock i { margin-left: 4px; }

/* ── Footer ── */

.airead-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.airead-footer ul a {
  /* color: #fff; */
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  transition: color 0.2s;
}

.airead-footer ul a:hover { color: #fff; }

.airead-footer span {
  flex: 1;
  text-align: right;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 2px;
  max-width: 40%;
}

.airead-footer span a { color: rgba(255, 255, 255, 0.6); }
.airead-footer span a:hover { color: #fff; }

.airead-footer > a { flex-shrink: 0; }
.airead-footer img { max-width: 60px; display: block; margin: 4px 0; }

/* 侧边栏版权信息（公共组件） */
.airead-aside-copyright {
  font-size: 12px;
  color: #bbb;
  text-align: center;
  line-height: 1.8;
}
.airead-aside-copyright img:hover {
  opacity: 1;
}
.airead-aside-copyright img {
  height: 88px;
  opacity: 0.5;
  display: block;
  margin: 0 auto;
  /* padding: 6px 12px; */
  filter: grayscale(80%);
}
.airead-aside-copyright i {
  font-size: 16px;
  padding: 0 6px;
}
.airead-aside-copyright p {
  padding: 3px 0;
}
.airead-aside-copyright a {
  color: #aaa;
  padding: 0 8px;
}
.airead-aside-copyright a:hover {
  color: #4078FF;
  padding: 0 8px;
}
.airead-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.airead-footer__brand h5 {
  color: #fff;
  font-size: 16px;
  text-transform: none;
  margin-bottom: 8px;
}
.airead-footer__brand p { color: #d1d1d1; font-size: 14px; margin: 0; }
.airead-footer__copy { font-size: 12px; color: #888; }

/* ── 响应式 ── */
@media (max-width: 768px) {
  .airead-header { height: 56px; }
  .airead-nav-menu { display: none; }

  .footer_btm {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 0 16px;
  }
  .footer_btm ul {
    justify-content: center;
  }
  .footer_btm span {
    text-align: center;
    padding-top: 0;
  }
  .footer_btm > a {
    order: -1;
  }
}

/* ── PC端搜索框 ── */
.airead-header-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 16px;
}
.airead-header-search input {
  width: 230px;
  height: 32px;
  padding: 0 12px 0 36px;
  border: 1px solid #f8f8f8;
  border-radius: 20px;
  outline: none;
  font-size: 13px;
  transition: all 0.2s;
}
.airead-header-search input:focus {
  border-color: #4078FF;
  background: #fff;
  width: 240px;
}
.airead-header-search .fa-search {
  position: absolute;
  left: 10px;
  color: #d8d8d8;
  font-size: 13px;
  pointer-events: none;
}

/* ── 移动端 hamburger ── */
.airead-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin-left: 8px;
  border-radius: 4px;
  transition: background 0.2s;
}
.airead-hamburger:hover { background: #f0f0f0; }
.airead-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}
.airead-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.airead-hamburger.active span:nth-child(2) { opacity: 0; }
.airead-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── 移动端展开面板 ── */
.airead-mobile-panel {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 1002;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.airead-mobile-panel.open { display: block !important; max-height: 600px; }
.airead-mobile-panel__search {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.airead-mobile-panel__search input {
  width: 100%;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.airead-mobile-panel__nav { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.airead-mobile-panel__nav li a {
  display: block;
  padding: 12px 20px;
  font-size: 18px;
  color: #333;
  text-decoration: none;
}
.airead-mobile-panel__nav li.active a,
.airead-mobile-panel__nav li a:hover {
  background: #F0F4FF;
  color: #4078FF;
}
.airead-mobile-panel__login {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.airead-mobile-panel__login a.mobile-user-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #4078FF, #818CF8);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
}
.mobile-logout-btn {
  padding: 8px 12px;
  background: #f0f0f0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #666;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.mobile-logout-btn:hover { background: #e0e0e0; }

/* ── 移动端响应式（≤768px）── */
@media (max-width: 768px) {
  .airead-hamburger { display: flex; }
  .airead-header-search { display: none; }
  .airead-nav-menu { display: none; }
  .airead-btn-unlock { display: none; }
  #auth-header-desktop { display: none; }
}

/* ── 骨架屏 ── */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes skeleton-fade-out {
  to { opacity: 0; transform: translateY(-4px); }
}
@keyframes skeleton-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 骨架卡片 */
.skeleton-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}
.skeleton-card .skeleton-block {
  height: 12px;
  border-radius: 6px;
  background: rgba(0,0,0,0.06);
}
.skeleton-card .skeleton-block--title { height: 16px; width: 40%; margin-bottom: 4px; }
.skeleton-card .skeleton-block--long { width: 90%; }
.skeleton-card .skeleton-block--medium { width: 75%; }
.skeleton-card .skeleton-block--short { width: 55%; }
.skeleton-card--fade-out {
  animation: skeleton-fade-out 0.3s ease forwards;
  pointer-events: none;
}

/* 搜索热榜骨架 */
.aside-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
}
.aside-skeleton__item {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}
.aside-skeleton__rank {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.aside-skeleton__text {
  height: 12px;
  border-radius: 6px;
  background: rgba(0,0,0,0.06);
}
.aside-skeleton__text--70 { width: 70%; }
.aside-skeleton__text--90 { width: 90%; }

/* 内容淡入 */
.card-content { animation: skeleton-fade-in 0.35s ease forwards; }

/* ── 法律弹层（浅色主题） ── */
#legal-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#legal-modal.show {
  display: flex;
}
.legal-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.legal-modal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 1080px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  margin: 0 16px;
}
.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f8f8f8;
  flex-shrink: 0;
}
.legal-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
}
.legal-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f8f8f8;
  color: #888;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.legal-modal-close:hover {
  background: #e0e0e0;
  color: #333;
}
.legal-modal-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  font-size: 16px;
  color: #444;
  line-height: 1.8;
}

.legal-modal-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin: 0 0 12px;
}
.legal-modal-content h5 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 16px 0 6px;
}
.legal-modal-content p {
  margin: 0 0 8px;
  color: #444;
  padding-left: 18px;
}
.legal-modal-content strong {
  color: #333;
}
@media (max-width: 480px) {
  #legal-modal.show {
    align-items: flex-end;
  }
  .legal-modal-box {
    max-height: 90vh;
    border-radius: 12px 12px 0 0;
    margin: 0;
  }
}

/* ── 微信弹层 ── */
#wechat-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#wechat-modal.show {
  display: flex;
}
.wechat-modal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  margin: 0 16px;
}
.wechat-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f8f8f8;
  flex-shrink: 0;
}
.wechat-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
}
.wechat-modal-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #666;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.wechat-modal-close-btn:hover {
  background: #e0e0e0;
  color: #333;
}
.wechat-modal-content {
  padding: 24px 20px;
  overflow-y: auto;
  flex: 1;
}
.wechat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  justify-items: center;
}
.wechat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.wechat-item img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  /* border: 1px solid #f8f8f8; */
  border-radius: 8px;
}
.wechat-tip {
  font-size: 14px;
  color: #555;
  margin: 0;
  text-align: center;
  font-weight: 600;
}
.airead-mobile-panel__login a.mobile-user-info {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 8px 16px;
 background: linear-gradient(135deg, #4078FF, #818CF8);
 color: #fff;
 border-radius: 8px;
 font-size: 16px;
 text-decoration: none;
 margin-right: 12px;
}
.mobile-logout-btn {
 padding: 10px;
 background: #f0f0f0;
 border: none;
 border-radius: 8px;
 cursor: pointer;
 color: #999;
 font-size: 16px;
 line-height: 1;
 flex-shrink: 0;
}
