@font-face {
  font-family: "OPPOSans-Medium";
  src: url("fonts/OPPOSans-Medium.woff2") format("woff2"),
       url("fonts/OPPOSans-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* 全局样式 */
:root {
  --primary-color: #0363ef;
  --text-color: #2d2d2d;
  --muted-color: #6f6f6f;
  --bg-light: #f9f9f9;
}

* {
  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;
}

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

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

/* 导航栏 */
.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);
}

.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 {
  background: url("ILABY WEB 素材\\首页页面\\首页理念图.png") no-repeat center;
  background-size: cover;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 2rem;
}

/* 区块 */
.section {
  margin: 4rem 0;
}

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

.section-header h2 {
  font-size: 1.5rem;
}

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

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;

  width: 100%;
  margin: 0;
  max-width: none;
  padding: 1rem;
}

.grid article {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 1rem;
  transition: transform 0.3s;
}

.grid article:hover {
  transform: translateY(-5px);
}

.grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.grid h3 {
  font-size: 1.1rem;
  margin-top: 1rem;
}

.grid time,
.grid p {
  font-size: 0.9rem;
  color: var(--muted-color);
  margin-top: 1rem;
  line-height: 2;
  position: relative;
  top: 3px;
}

/* 新闻链接 */
.news-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* 整个容器 */
.overlap-group {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  background-color: #e0ecff;
  border-radius: 8px;
  padding: 4rem;
  align-items: center;
  margin: 2rem auto;
  width: 97%;
  max-width: var(--max-width);

  transition: transform 0.3s, box-shadow 0.3s;
}

.overlap-group:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
/* 左侧图片 */
.image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 右侧文字信息 */
.info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
}

.info h3 {
  font-family: "OPPOSans-Heavy", sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.info .subtitle {
  font-family: "OPPOSans-Medium", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}
/* 页脚 */
.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;
  }
}

/* 响应式：在小屏下改为上下结构 */
@media (max-width: 1024px) {
  .overlap-group {
    grid-template-columns: 1fr; /* 改为上下结构 */
    text-align: center;
  }

  .info {
    text-align: center;
  }

  .buttons {
    justify-content: center;
  }
}
