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

body {
  font-family: 'MiSans VF', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: #f0f2f5;
  color: #555;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Layout Container ===== */
.container {
  width: 100%;
  margin: 0;
  background-color: #fff;
}

/* ===== Header ===== */
.primary_header {
  background: linear-gradient(135deg, #52bad5, #2C9AB7);
  padding: 28px 0;
  text-align: center;
}

.primary_header .title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 4px;
}

/* ===== Navigation ===== */
.nav-bar {
  background-color: #4a4a4a;
  padding: 0;
}

.nav-bar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-bar ul li a {
  display: block;
  padding: 14px 24px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
  transition: background-color 0.25s ease;
}

.nav-bar ul li a:hover {
  background-color: #333;
  opacity: 1;
}

.nav-bar ul li span {
  display: block;
  padding: 14px 24px;
  color: #888;
  font-size: 14px;
  cursor: default;
}

/* ===== Hero / Main Content ===== */
.hero {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
}

.hero-left {
  flex: 1 1 60%;
  padding: 40px 36px;
  min-width: 280px;
}

.hero-left p {
  color: #777;
  margin-bottom: 20px;
  line-height: 1.8;
}

.ipv6-badge {
  display: inline-block;
  transition: transform 0.2s ease;
}

.ipv6-badge:hover {
  transform: scale(1.05);
  opacity: 1;
}

.ipv6-badge img {
  border-radius: 6px;
}

.hero-right {
  flex: 1 1 40%;
  background-color: #f9fafb;
  padding: 40px 32px;
  min-width: 280px;
}

.hero-right .date-label {
  font-size: 13px;
  color: #aaa;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.hero-right h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 12px;
}

.hero-right p {
  color: #888;
  margin-bottom: 16px;
  line-height: 1.7;
}

.hero-right .featured-img {
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== Card Grid ===== */
.card-section {
  padding: 40px 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card .card-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card h4 {
  font-size: 16px;
  color: #2C9AB7;
  margin-bottom: 8px;
  font-weight: 600;
}

.card p {
  font-size: 13px;
  color: #999;
  line-height: 1.6;
}

.card .custom-box {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #f0f2f5;
  margin: 0 auto 16px;
  border: 2px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .custom-box img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card button {
  margin-top: 12px;
  padding: 8px 24px;
  border: 1px solid #2C9AB7;
  background: transparent;
  color: #2C9AB7;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.card button:hover {
  background: #2C9AB7;
  color: #fff;
}

/* ===== Info Banner ===== */
.info-banner {
  display: flex;
  flex-wrap: wrap;
}

.info-banner .banner-left,
.info-banner .banner-right {
  flex: 1 1 50%;
  padding: 36px 0;
  text-align: center;
}

.banner-left {
  background: linear-gradient(135deg, #52BAD5, #43a8c2);
}

.banner-right {
  background: linear-gradient(135deg, #01B2D1, #009ab8);
}

.banner-left h2,
.banner-right h2 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
}

/* ===== Social Section ===== */
.social {
  background-color: #3a3a3a;
  padding: 20px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease;
  cursor: pointer;
}

.social-icon:hover {
  transform: scale(1.1);
  opacity: 0.7;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Footer ===== */
.site-footer {
  background-color: #4a4a4a;
  padding: 28px 20px;
  text-align: center;
}

.site-footer .copyright {
  color: #ccc;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.site-footer .copyright a {
  color: #fff;
  font-weight: 600;
  border-bottom: 1px dashed rgba(255,255,255,0.4);
  padding-bottom: 1px;
}

.site-footer .copyright a:hover {
  opacity: 1;
  border-bottom-color: #fff;
}

.site-footer .hosting {
  color: #bbb;
  font-size: 12px;
}

.site-footer .hosting a {
  color: #ddd;
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero-left, .hero-right {
    flex: 1 1 100%;
  }

  .primary_header .title {
    font-size: 22px;
  }

  .nav-bar ul li a,
  .nav-bar ul li span {
    padding: 12px 16px;
    font-size: 13px;
  }
}

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

  .nav-bar ul {
    flex-direction: column;
    align-items: center;
  }

  .nav-bar ul li a,
  .nav-bar ul li span {
    width: 100%;
    text-align: center;
  }

  .hero-left, .hero-right {
    padding: 24px 20px;
  }
}