/**

 * 学习中心 study.html — 可读性增强（2026）

 */

body.study-page {

  font-size: 16px;

  line-height: 1.65;

  color: #e2e8f0;

  padding-top: 55px;

}



/* 深色主体页：nav-link 勿继承 body 浅色字，与全站白底导航一致 */

body.study-page #navbar nav > a,

body.study-page #navbar nav .dropbtn.nav-link {

  color: #1d2129;

  font-weight: 500;

}



body.study-page #navbar nav > a:hover,

body.study-page #navbar nav .dropbtn.nav-link:hover {

  color: #10b981;

}



/* 主体区与导航同宽：80rem + 统一水平内边距（platform-common 兜底） */

body.study-page .hero-reset,

body.study-page .platform-category,

body.study-page .study-anchor-nav {

  width: 100%;

  box-sizing: border-box;

}



body.study-page main {

  font-size: 1rem;

  line-height: 1.65;

}



.study-section-header {

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  margin-bottom: 8px;

}



.study-section-header .category-title {

  margin-bottom: 0;

  text-align: left;

  flex: 1 1 240px;

}



.study-section-link {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 8px 14px;

  border-radius: 10px;

  font-size: 0.8125rem;

  font-weight: 600;

  color: #34d399;

  text-decoration: none;

  background: rgba(16, 185, 129, 0.1);

  border: 1px solid rgba(16, 185, 129, 0.28);

  transition: background 0.2s ease, border-color 0.2s ease;

  white-space: nowrap;

}



.study-section-link:hover {

  background: rgba(16, 185, 129, 0.18);

  border-color: rgba(16, 185, 129, 0.45);

  color: #6ee7b7;

}



.study-section-sub {

  color: #94a3b8;

  font-size: 0.9375rem;

  text-align: center;

  line-height: 1.7;

  margin: 0 0 20px;

}



.study-section-head .study-section-sub {

  margin-top: 6px;

}



.study-anchor-nav {

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 8px;

  margin-bottom: 24px;

  padding: 14px 16px;

  background: rgba(15, 23, 42, 0.72);

  border: 1px solid rgba(16, 185, 129, 0.22);

  border-radius: 14px;

}



.study-anchor-link {

  padding: 8px 16px;

  border-radius: 999px;

  font-size: 0.875rem;

  font-weight: 600;

  color: #e2e8f0;

  text-decoration: none;

  border: 1px solid rgba(255, 255, 255, 0.14);

  transition: all 0.2s ease;

}



.study-anchor-link:hover {

  color: #10b981;

  border-color: rgba(16, 185, 129, 0.45);

  background: rgba(16, 185, 129, 0.1);

}



.study-quick-paths {

  margin-bottom: 32px;

}



.study-quick-grid {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));

  gap: 16px;

}



.study-quick-card {

  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));

  border: 1px solid rgba(16, 185, 129, 0.22);

  border-radius: 16px;

  padding: 20px 20px 18px;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);

}



.study-quick-card h3 {

  color: #0f172a;

  font-size: 1.0625rem;

  font-weight: 700;

  margin: 8px 0 8px;

  line-height: 1.45;

}



.study-quick-card p {

  color: #475569;

  font-size: 0.875rem;

  line-height: 1.7;

  margin-bottom: 14px;

  min-height: 0;

}



.study-quick-icon {

  font-size: 1.5rem;

  line-height: 1;

}



.study-quick-links {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

}



.study-quick-link {

  display: inline-block;

  padding: 6px 12px;

  border-radius: 8px;

  font-size: 0.8125rem;

  font-weight: 600;

  color: #047857;

  background: #ecfdf5;

  border: 1px solid rgba(16, 185, 129, 0.25);

  text-decoration: none;

  transition: all 0.2s ease;

}



.study-quick-link:hover {

  background: #d1fae5;

  color: #065f46;

}



/* 搜索筛选区可读性 */

body.study-page .search-filter-bar {

  gap: 14px;

  padding: 18px 20px;

  margin-bottom: 28px;

}



body.study-page .search-input {

  font-size: 0.9375rem;

  padding: 10px 14px 10px 38px;

  line-height: 1.5;

}



body.study-page .filter-btn {

  font-size: 0.8125rem;

  padding: 8px 16px;

}



/* 平台卡片可读性 */

body.study-page .platform-card {

  padding: 22px;

  display: flex;

  flex-direction: column;

}



body.study-page .platform-desc {

  font-size: 0.9375rem !important;

  line-height: 1.7 !important;

  color: #cbd5e1 !important;

  min-height: 0;

  flex: 1;

}



body.study-page .platform-name {

  font-size: 1.125rem !important;

  color: #f8fafc !important;

  -webkit-text-fill-color: #f8fafc !important;

  background: none !important;

  filter: none !important;

}



body.study-page .platform-link {

  font-size: 0.875rem;

  padding: 10px 18px;

  margin-top: auto;

  align-self: flex-start;

}



body.study-page .category-title {

  font-size: 1.5rem !important;

  text-transform: none !important;

  letter-spacing: 0.02em !important;

}



.tag-hot {

  background: rgba(245, 158, 11, 0.18) !important;

  color: #fbbf24 !important;

  border: 1px solid rgba(245, 158, 11, 0.35) !important;

}



.tag-ai {

  background: rgba(139, 92, 246, 0.18) !important;

  color: #c4b5fd !important;

  border: 1px solid rgba(139, 92, 246, 0.35) !important;

}



.study-featured-grid .platform-desc {

  min-height: 0;

}



.study-featured-card {

  border-color: rgba(16, 185, 129, 0.35) !important;

}



body.study-page .advantage-item p {

  font-size: 0.875rem;

  line-height: 1.65;

}



@media (max-width: 768px) {

  body.study-page .platform-desc {

    font-size: 0.875rem !important;

  }



  body.study-page .platform-grid {

    grid-template-columns: 1fr !important;

  }



  .study-section-header .category-title {

    text-align: center;

    width: 100%;

  }



  .study-section-link {

    width: 100%;

    justify-content: center;

  }

}



@media (max-width: 640px) {

  .study-quick-grid {

    grid-template-columns: 1fr;

  }



  .study-anchor-nav {

    justify-content: flex-start;

  }

}



@media (prefers-reduced-motion: reduce) {

  .platform-card:hover {

    transform: none !important;

  }

}


