/* ========== 基础 ========== */
:root {
  --mint: #88d4c4;
  --mint-deep: #3db8a8;
  --mint-soft: rgba(136, 212, 196, 0.72);
  --footer: #2c3e50;
  --purple: #3d2a5c;
  --red: #e74c3c;
  --text: #222;
  --text-muted: #888;
  --text-light: #aaa;
  --border: #e0e0e0;
  --bg: #fff;
  --container: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 头部 ========== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #333;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0 auto;
}

.nav-link {
  font-size: 15px;
  color: #444;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--mint-deep);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--mint-deep);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  background:
    linear-gradient(160deg, #a8e0d4 0%, #7ec9b8 40%, #6bbfad 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 竖条纹理墙 */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 28px,
    rgba(255, 255, 255, 0.08) 28px,
    rgba(255, 255, 255, 0.08) 30px
  );
  opacity: 0.7;
}

.shape {
  position: absolute;
  border-radius: 4px;
}

.shape-ring {
  width: 180px;
  height: 180px;
  right: 18%;
  top: 12%;
  border-radius: 50%;
  border: 28px solid;
  border-color: #d4d0cb #c8c4bf #e8e4df #b8b4af;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  animation: float 6s ease-in-out infinite;
}

.shape-cube {
  width: 90px;
  height: 90px;
  right: 28%;
  bottom: 18%;
  background:
    linear-gradient(135deg, #e8e4df 0%, #c8c4bf 50%, #a8a49f 100%);
  box-shadow: 8px 8px 0 #9a968f, 0 16px 32px rgba(0, 0, 0, 0.15);
  transform: rotate(12deg);
  animation: float 7s ease-in-out infinite 0.5s;
}

.shape-pedestal {
  width: 70px;
  height: 110px;
  left: 22%;
  bottom: 15%;
  background: linear-gradient(180deg, #f5f5f5 0%, #e0e0e0 100%);
  border-radius: 4px 4px 2px 2px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  animation: float 5.5s ease-in-out infinite 1s;
}

.shape-sphere {
  width: 56px;
  height: 56px;
  left: 28%;
  top: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #d4d0cb 45%, #9a968f 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  animation: float 8s ease-in-out infinite 0.3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.shape-cube {
  animation-name: float-rotate;
}

@keyframes float-rotate {
  0%, 100% { transform: rotate(12deg) translateY(0); }
  50% { transform: rotate(12deg) translateY(-10px); }
}

.hero-banner {
  position: relative;
  z-index: 2;
  background: var(--mint-soft);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 36px 80px;
  text-align: center;
  min-width: min(720px, 90vw);
  animation: banner-in 0.8s ease-out;
}

@keyframes banner-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-banner h1 {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.hero-banner p {
  font-size: 16px;
  color: #555;
  letter-spacing: 4px;
}

/* ========== 通用区块 ========== */
.section {
  padding: 56px 0 20px;
}

.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #222;
  margin-bottom: 36px;
  position: relative;
  padding-bottom: 14px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--red);
}

/* ========== 热门推荐 ========== */
.hot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.hot-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
  background: #eee;
}

.hot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hot-card:hover img {
  transform: scale(1.06);
}

.hot-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
}

/* ========== 信息卡片网格 ========== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
}

.info-card {
  display: flex;
  gap: 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.info-card:hover {
  border-color: #e0e0e0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.info-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
  background: #f0f0f0;
}

.info-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.info-card:hover .info-thumb img {
  transform: scale(1.05);
}

.info-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 2px 0;
}

.info-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-body .desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 20px 36px;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.footer-logo .logo-icon {
  width: 36px;
  height: 36px;
}

.footer-copy {
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-meta {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
  transition: color 0.2s;
}

a.footer-meta:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-disclaimer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .hot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hot-grid .hot-card:nth-child(4),
  .hot-grid .hot-card:nth-child(5) {
    /* keep all visible */
  }

  .hero-banner h1 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 24px;
    width: 100%;
  }

  .nav-link.active::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    height: 280px;
  }

  .hero-banner {
    padding: 24px 32px;
    min-width: auto;
    width: 88%;
  }

  .hero-banner h1 {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .hero-banner p {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .shape-ring {
    width: 100px;
    height: 100px;
    border-width: 16px;
    right: 5%;
  }

  .shape-cube {
    width: 50px;
    height: 50px;
    right: 12%;
  }

  .hot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .info-card {
    flex-direction: column;
  }

  .info-thumb {
    width: 100%;
    height: 160px;
  }

  .hot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .logo-text {
    font-size: 15px;
  }
}
