/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background: #f8fafc;
  min-height: 100vh;
}

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

/* 头部样式 */
.header {
  text-align: center;
  padding: 80px 40px;
  background: white;
  color: #2d3748;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 600;
  color: #1a202c;
}

.header .subtitle {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #4a5568;
  font-weight: 400;
}

.header .description {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  color: #718096;
  line-height: 1.6;
}

.header img {
  height: 1.2em;
  vertical-align: middle;
  margin-right: 0.2em;
}

/* Zigzag 布局样式 */
.links-section {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 60px 0;
  box-shadow: none;
}

.link-item {
  display: flex;
  align-items: stretch;
  margin-bottom: 80px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  -webkit-font-smoothing: subpixel-antialiased;
  text-decoration: none;
  color: inherit;
}

.link-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.85) saturate(1.4) contrast(1.1);
  transform: scale(1.15);
  z-index: 1;
  opacity: 0.45;
  will-change: filter, opacity, transform;
}

.link-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(5px) brightness(0.75) saturate(1.7) contrast(1.15);
  transform: scale(1.05);
  z-index: 1;
  opacity: 0.15;
  mix-blend-mode: overlay;
  will-change: filter, opacity, transform;
}

.link-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.link-item:hover::before {
  opacity: 0.3;
  filter: blur(5px) brightness(0.85) saturate(1.4) contrast(1.1);
}

.link-item:hover::after {
  opacity: 0.1;
  filter: blur(2px) brightness(0.75) saturate(1.7) contrast(1.15);
}

.link-item:last-child {
  margin-bottom: 0;
}

/* 奇数项：图片在左，内容在右 */
.link-item:nth-child(odd) {
  flex-direction: row;
}

.link-item:nth-child(odd) .link-image {
  background-position: left center;
}

/* 偶数项：图片在右，内容在左 */
.link-item:nth-child(even) {
  flex-direction: row-reverse;
}

.link-item:nth-child(even) .link-image {
  background-position: right center;
}

.link-image {
  flex: 1.5;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: left center;
  position: relative;
  z-index: 3;
  border-radius: 0;
  margin: 0;
  min-width: 0;
}

.link-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(0, 0, 0, 0.02) 50%,
    rgba(0, 0, 0, 0.08) 100%
  );
  z-index: 1;
  border-radius: 0;
  mix-blend-mode: soft-light;
  opacity: 0.8;
}

.link-content {
  flex: 1;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.link-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a202c;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.link-subtitle {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 20px;
  font-weight: 400;
}

.link-icon {
  font-size: 1.2em;
  margin-right: 8px;
  vertical-align: middle;
}

.link-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2d3748;
  margin-bottom: 30px;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.action-section {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #718096;
  padding: 0;
  text-decoration: none;
  border-radius: 0;
  font-weight: 400;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  border: none;
  opacity: 0.9;
}

.visit-btn::after {
  content: "→";
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.visit-btn:hover {
  color: #4a5568;
  opacity: 1;
  background: transparent;
  transform: none;
}

.visit-btn:hover::after {
  transform: translateX(2px);
}

/* 页脚样式 */
.footer {
  background: white;
  color: #4a5568;
  padding: 40px;
  text-align: center;
  margin-top: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

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

.footer-link {
  color: #4a5568;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #2d3748;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .header {
    padding: 40px 20px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .link-item {
    flex-direction: column !important;
    margin-bottom: 40px;
  }

  .link-item:nth-child(even) {
    flex-direction: column !important;
  }

  .link-image {
    aspect-ratio: 16 / 10;
    flex: none;
    height: 200px;
  }

  .link-content {
    padding: 30px 25px;
  }

  .link-title {
    font-size: 1.5rem;
  }

  .link-subtitle {
    font-size: 1rem;
  }

  .footer {
    padding: 30px 20px;
  }

  .footer-link {
    display: block;
    margin: 10px 0;
  }
}
