/* 志学教育资源网样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e3a5f;
  --primary-light: #2d4a6f;
  --secondary: #f97316;
  --bg-light: #f5f5f5;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-bg {
  position: absolute;
  inset: 0;
  background: var(--primary);
}

.navbar {
  position: relative;
  background: var(--primary);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.logo-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
}

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

.nav-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 14px;
}

/* Banner */
.banner {
  height: 450px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.1) 1px, transparent 0);
  background-size: 40px 40px;
}

.banner-content {
  position: relative;
  text-align: center;
  color: var(--white);
}

.banner h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.banner .subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.banner-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
}

.btn-primary:hover {
  background: #ea580c;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 资源网卡片 */
.resource-networks {
  padding: 80px 0;
  background: var(--white);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.resource-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.category-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.card-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.card-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  padding: 4px 10px;
  background: #f3f4f6;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-light);
}

.card-btn {
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
}

.card-btn:hover {
  background: var(--primary-light);
}

/* 关于我们 */
.about {
  padding: 80px 0;
  background: var(--bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text-dark);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-num {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
}

/* 核心业务 */
.services {
  padding: 80px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 30px;
  background: var(--bg-light);
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* 联系我们 */
.contact {
  padding: 80px 0;
  background: var(--bg-light);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: 12px;
}

.contact-icon {
  font-size: 24px;
}

.contact-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 14px;
  color: var(--text-dark);
}

/* 页脚 */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 40px 0;
}

.footer-content {
  text-align: center;
}

.footer-brand {
  margin-bottom: 20px;
}

.footer-brand .logo-text {
  font-size: 24px;
}

.footer-brand .logo-sub {
  font-size: 12px;
  opacity: 0.8;
}

.footer-info {
  margin-bottom: 20px;
}

.footer-info p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 4px;
}

.footer-copyright {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.footer-copyright a {
  color: var(--white);
  text-decoration: none;
}

.footer-copyright a:hover {
  text-decoration: underline;
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .banner h1 {
    font-size: 32px;
  }
  
  .banner .subtitle {
    font-size: 16px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
