@font-face {
  font-family: "OPPOSans-Regular";
  src: url("fonts/OPPOSans-Regular.woff2") format("woff2"),
       url("fonts/OPPOSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-color: #0363ef;
  --text-color: #2d2d2d;
  --muted-color: #6f6f6f;
  --bg-light: #f9f9f9;
  --border-color: #6f6f6f;
  --card-bg: #f4f4f4;
  --radius: 8px;
  --spacing: 20px;
  --max-width: 1200px;
}

/* 全局基础样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "OPPOSans-Regular", Helvetica, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "OPPOSans-Medium", Helvetica, sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

/* 容器 */
.container {
  max-width: var(--max-width);
  margin: auto;
  padding: 1rem;
}

/* 通用卡片样式 */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: var(--spacing);
}

/* 导航栏 */
.navbar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 2000;
}

.nav-container {
  margin: auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a.active {
  color: var(--primary-color);
  font-weight: bold;    
  pointer-events: none; 
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 2px;
}

.logo-link {
  display: inline-block;
  transition: transform 0.3s, box-shadow 0.3s;
}

.logo-link:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.logo {
  height: 50px;
  display: block;
}

/* Hero Section */
.news-hero {
    padding: 80px 0 40px;
}

.hero-title {
    font-weight: 900;
    font-size: 36px;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: rgba(111, 111, 111, 1);
    font-weight: 700;
    font-size: 24px;
}

/* Section Styles */
.competition-section,
.news-section,
.studio-moments-section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1.5px solid #ccc;
    padding-bottom: 0.5rem; 
}

.more {
  color: var(--muted-color);
  text-decoration: none;
  font-size: 1rem;
}

.more:hover {
  color: var(--primary-color);
}

.competition-banner {
    width: 100%;
    height: 556px;
    background: #f0f0f0;
    background-image: url("ILABY WEB 素材/新闻页面/未来教育设计大赛配图.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 8px;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.news-card {
  display: flex;
  flex-direction: column;
  min-height: 450px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: 268px;
  background: #f0f0f0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.news-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    align-items: stretch;
}

.news-meta {
    color: rgba(111, 111, 111, 1);
    font-size: 16px;
    margin-bottom: 10px;
}

.news-title {
    font-weight: 700;
    font-size: 20px;
    color: #000;
    line-height: 1.4;
}

/* Articles List */
.articles-list {
    margin-bottom: 40px;
}

.article-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.article-number {
    width: 106px;
    color: rgba(0, 0, 0, 1);
    font-weight: 500;
    font-size: 24px;
    text-align: center;
    flex-shrink: 0;
}

.article-content {
    flex-grow: 1;
}

.article-title {
    font-weight: 500;
    font-size: 16px;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.5;
}

.article-meta {
    color: rgba(111, 111, 111, 1);
    font-size: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination-arrow,
.pagination-number {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 3px;
    background: rgba(242, 242, 242, 1);
    color: #000;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.pagination-arrow:hover,
.pagination-number:hover {
    background: rgba(3, 99, 239, 1);
    color: #fff;
}

.pagination-number.active {
    background: rgba(3, 99, 239, 1);
    color: #fff;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
}

.pagination-ellipsis span {
    width: 4px;
    height: 4px;
    background: rgba(201, 201, 201, 1);
    border-radius: 50%;
}

/* Studio Moments Section */
.moments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.moment-card {
    position: relative;
    height: 268px;
    border-radius: 8px;
    overflow: hidden;
}

.moment-image {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    background-image: url("ILABY WEB 素材/新闻页面/新闻-工作室时刻-敬请期待.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Footer */
.footer {
  background: #f1f1f1;
  padding: 2rem 0;
  margin-top: 4rem;
  --max-width: 1200px;
  font-size: 14px;
  color: #707070;
  line-height: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0;
}

.footer-images {
  display: flex;
  gap: 1rem;          
  align-items: center;  
}

.footer-logo {
  height: 60px;
  margin-top: 0.5rem;  
}

.qrcode {
  width: 60px;
  margin-top: 0.5rem;  
  margin-left: 0;      
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 0.7rem;
  }
  .hero {
    height: 250px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
}