/* ============================================
   青龙镇官网 — Shared Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Navigation --- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(11, 7, 55, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 24px;
  transition: background 0.3s;
}

.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: flex; align-items: center; gap: 12px;
}

.navbar-brand img {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover;
}

.navbar-brand span {
  color: #fff; font-size: 18px; font-weight: 600;
  white-space: nowrap;
}

.navbar-links { display: flex; gap: 4px; }

.navbar-links a {
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 16px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.navbar-btn {
  background: #9cce06 !important;
  color: #0b0737 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 8px 20px !important;
}

.navbar-btn:hover {
  background: #b0e030 !important;
}

/* Mobile hamburger */
.navbar-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}

.navbar-toggle span {
  display: block; width: 22px; height: 2px;
  background: #fff; margin: 5px 0;
  transition: transform 0.3s;
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: absolute; top: 64px; left: 0; width: 100%;
    background: rgba(11, 7, 55, 0.97);
    flex-direction: column; padding: 12px 24px 24px;
    gap: 4px;
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { padding: 12px 16px; font-size: 15px; }
  .navbar-toggle { display: block; }
}

/* --- Page offset for fixed nav --- */
.page-offset { padding-top: 64px; }

/* --- Sections --- */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-full {
  padding: 0;
  max-width: none;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1d2023;
  margin-bottom: 8px;
}

.section-title p {
  font-size: 17px;
  color: #555;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(11, 7, 55, 0.45);
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 800px;
  padding: 40px 24px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #9cce06;
  line-height: 1.2;
}

.hero-content p {
  font-size: 22px;
  color: #fff;
  opacity: 0.9;
}

/* --- Media Section (image + text) --- */
.media-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.media-section.reverse { direction: rtl; }
.media-section.reverse > * { direction: ltr; }

.media-section img {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.media-section h3 {
  font-size: 24px;
  font-weight: 600;
  color: #0b0737;
  margin-bottom: 12px;
}

.media-section .desc {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .media-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .media-section.reverse { direction: ltr; }
}

/* --- Member Profiles --- */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.member-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(11, 7, 55, 0.08);
}

.member-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0b0737;
  margin-bottom: 8px;
}

.member-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

/* --- Minecraft Member Grid --- */
.mc-member-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.mc-member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 12px 20px 12px 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mc-member-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.mc-avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  image-rendering: pixelated;
  background: #ddd;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.mc-member-name {
  font-size: 15px;
  font-weight: 600;
  color: #1d2023;
}

.member-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  image-rendering: pixelated;
  background: #ddd;
  flex-shrink: 0;
}

.member-card-header h3 {
  margin-bottom: 0;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.gallery-item { text-align: center; }

.gallery-item img {
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery-item img:hover { transform: scale(1.03); }

.gallery-item figcaption {
  margin-top: 12px;
  font-size: 15px;
  color: #555;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0b0737;
  box-shadow: 0 0 0 3px rgba(11, 7, 55, 0.08);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  display: inline-block;
  background: #0b0737;
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover { background: #1a1260; }

/* --- Links Directory --- */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.link-card {
  display: flex; align-items: center; gap: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #eee;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: #0b0737;
}

.link-card .icon {
  width: 44px; height: 44px;
  background: #0b0737;
  color: #9cce06;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  flex-shrink: 0;
}

.link-card .info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1d2023;
  margin-bottom: 2px;
}

.link-card .info p {
  font-size: 13px;
  color: #888;
}

/* --- Sponsor / CTA --- */
.cta-card {
  background: linear-gradient(135deg, #0b0737 0%, #1d1390 100%);
  color: #fff;
  border-radius: 16px;
  padding: 60px 48px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-card h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-card p {
  font-size: 17px;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-card img {
  border-radius: 12px;
  max-width: 400px;
  margin: 0 auto 32px;
}

/* --- Video Grid --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

.video-card { text-align: left; }

.video-card .video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.video-card .video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1d2023;
  margin-bottom: 2px;
}

.video-card .video-desc {
  font-size: 14px;
  color: #888;
  margin-top: 4px;
}

/* Video card hover effect */
.video-card {
  transition: transform 0.2s;
}

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

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .members-grid {
    grid-template-columns: 1fr;
  }
  .mc-member-grid {
    gap: 12px;
  }
  .mc-member-item {
    padding: 10px 16px 10px 10px;
    gap: 10px;
  }
  .mc-avatar-lg {
    width: 44px;
    height: 44px;
  }
  .mc-member-name {
    font-size: 14px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .links-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cta-card {
    padding: 40px 24px;
    border-radius: 12px;
  }
  .cta-card h2 {
    font-size: 24px;
  }
  .section-title h2 {
    font-size: 26px;
  }
}

/* --- Footer --- */
.site-footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col li {
  font-size: 14px;
  line-height: 2;
  color: #aaa;
}

.footer-col a { color: #9cce06; transition: color 0.2s; }
.footer-col a:hover { color: #b0e030; }

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 13px;
  color: #666;
}

/* --- Utility --- */
