/* ============================================
   Window Wall — 信息窗墙
   大面积玻璃拟态 × 规则矩阵布局 × 光影效果 × 现代建筑美学
   ============================================ */

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ===== CSS Variables ===== */
:root {
  --ww-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --ww-bg-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --ww-glass: rgba(255, 255, 255, 0.15);
  --ww-glass-strong: rgba(255, 255, 255, 0.25);
  --ww-glass-border: rgba(255, 255, 255, 0.3);
  --ww-glass-shadow: rgba(0, 0, 0, 0.1);
  --ww-text-primary: #ffffff;
  --ww-text-secondary: rgba(255, 255, 255, 0.85);
  --ww-text-muted: rgba(255, 255, 255, 0.6);
  --ww-accent: #00d4ff;
  --ww-accent-glow: rgba(0, 212, 255, 0.4);
  --ww-card-bg: rgba(255, 255, 255, 0.12);
  --ww-card-border: rgba(255, 255, 255, 0.2);
  --ww-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  --ww-radius: 16px;
  --ww-radius-lg: 24px;
  --ww-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ww-max-width: 1400px;
  --ww-gap: 24px;
}

/* ===== Body — 渐变背景 ===== */
body {
  font-family: var(--ww-font-body);
  background: var(--ww-bg);
  color: var(--ww-text-primary);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* ===== 背景装饰 ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
}

/* ===== 光影动画 ===== */
@keyframes lightShift {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(-50%) rotate(0deg); }
  50% { opacity: 0.5; transform: translateX(-50%) translateY(-50%) rotate(180deg); }
}

@keyframes glassShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ===== Navigation — 玻璃导航 ===== */
.bp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--ww-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ww-glass-border);
  box-shadow: 0 4px 30px var(--ww-glass-shadow);
}

.bp-nav-inner {
  max-width: var(--ww-max-width);
  margin: 0 auto;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 32px;
}

.bp-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.bp-logo-mark {
  width: 40px;
  height: 40px;
  background: var(--ww-glass-strong);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ww-glass-border);
  border-radius: var(--ww-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ww-accent);
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--ww-card-shadow);
  position: relative;
  overflow: hidden;
}

.bp-logo-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  background-size: 200% 100%;
  animation: glassShimmer 3s infinite;
}

.bp-logo-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--ww-text-primary);
  letter-spacing: -0.3px;
}

.bp-nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.bp-nav-links a {
  text-decoration: none;
  color: var(--ww-text-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  position: relative;
  padding: 8px 16px;
  border-radius: var(--ww-radius);
  background: transparent;
}

.bp-nav-links a:hover {
  color: var(--ww-text-primary);
  background: var(--ww-glass);
  backdrop-filter: blur(10px);
}

.bp-nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--ww-accent);
  box-shadow: 0 0 10px var(--ww-accent-glow);
  transition: width 0.3s;
}

.bp-nav-links a:hover::after {
  width: 60%;
}

.bp-nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.bp-search-btn {
  width: 40px;
  height: 40px;
  background: var(--ww-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ww-glass-border);
  border-radius: var(--ww-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ww-text-secondary);
  transition: all 0.3s;
}

.bp-search-btn:hover {
  background: var(--ww-glass-strong);
  color: var(--ww-accent);
  box-shadow: 0 0 20px var(--ww-accent-glow);
}

.bp-search-btn svg {
  width: 18px;
  height: 18px;
}

.bp-mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: var(--ww-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ww-glass-border);
  border-radius: var(--ww-radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.bp-mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--ww-text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Search Overlay ===== */
.bp-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.bp-search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bp-search-overlay-inner {
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
}

.bp-search-close {
  position: absolute;
  top: 80px;
  right: 40px;
  width: 40px;
  height: 40px;
  background: var(--ww-glass);
  border: 1px solid var(--ww-glass-border);
  border-radius: var(--ww-radius);
  color: var(--ww-text-primary);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
}

.bp-search-close:hover {
  background: var(--ww-glass-strong);
}

.bp-search-box {
  background: var(--ww-glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--ww-glass-border);
  border-radius: var(--ww-radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bp-search-box svg {
  width: 24px;
  height: 24px;
  color: var(--ww-text-muted);
  flex-shrink: 0;
}

.bp-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 18px;
  color: var(--ww-text-primary);
  font-family: var(--ww-font-body);
}

.bp-search-input::placeholder {
  color: var(--ww-text-muted);
}

.bp-search-results {
  margin-top: 20px;
  background: var(--ww-glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--ww-glass-border);
  border-radius: var(--ww-radius-lg);
  max-height: 400px;
  overflow-y: auto;
}

/* ===== Hero Section — 玻璃落地窗 ===== */
.bp-hero {
  position: relative;
  z-index: 1;
  max-width: var(--ww-max-width);
  margin: 60px auto;
  padding: 0 40px;
}

.bp-hero-label {
  display: inline-block;
  background: var(--ww-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ww-glass-border);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ww-accent);
  margin-bottom: 24px;
  box-shadow: var(--ww-card-shadow);
}

.bp-hero-card {
  display: block;
  text-decoration: none;
  background: var(--ww-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--ww-glass-border);
  border-radius: var(--ww-radius-lg);
  overflow: hidden;
  box-shadow: var(--ww-card-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.bp-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.bp-hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border-color: var(--ww-accent);
}

.bp-hero-card:hover::before {
  opacity: 1;
}

.bp-hero-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.bp-hero-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.bp-hero-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.bp-hero-card:hover .bp-hero-card-img img {
  transform: scale(1.05);
}

.bp-hero-card-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bp-hero-card-tag {
  display: inline-block;
  background: var(--ww-accent);
  color: #000;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  width: fit-content;
}

.bp-hero-card-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ww-text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.bp-hero-card-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ww-text-secondary);
  margin-bottom: 24px;
}

.bp-hero-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ww-accent);
  letter-spacing: 0.5px;
}

.bp-hero-card-meta svg {
  width: 16px;
  height: 16px;
}

/* ===== Divider ===== */
.bp-divider {
  max-width: var(--ww-max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.bp-divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ww-glass-border), transparent);
}

/* ===== Section — 窗墙矩阵 ===== */
.bp-section {
  position: relative;
  z-index: 1;
  max-width: var(--ww-max-width);
  margin: 60px auto;
  padding: 0 40px;
}

.bp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.bp-section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ww-accent);
  margin-bottom: 8px;
}

.bp-section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ww-text-primary);
  letter-spacing: -0.5px;
}

.bp-section-id {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ww-text-muted);
  background: var(--ww-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ww-glass-border);
  padding: 6px 14px;
  border-radius: 100px;
}

/* ===== Card Grid — 玻璃窗矩阵 ===== */
.bp-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ww-gap);
}

.bp-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--ww-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--ww-glass-border);
  border-radius: var(--ww-radius);
  overflow: hidden;
  box-shadow: var(--ww-card-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.bp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

.bp-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border-color: var(--ww-accent);
}

.bp-card:hover::before {
  opacity: 1;
}

.bp-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.bp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.bp-card:hover .bp-card-img img {
  transform: scale(1.1);
}

.bp-card-body {
  padding: 24px;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bp-card-tag {
  display: inline-block;
  background: rgba(0, 212, 255, 0.2);
  color: var(--ww-accent);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  width: fit-content;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.bp-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ww-text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.bp-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ww-text-secondary);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Reveal Animation ===== */
.bp-reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.8s ease forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  .bp-band {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .bp-band {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bp-hero-card-inner {
    grid-template-columns: 1fr;
  }
  
  .bp-hero-card-img {
    aspect-ratio: 16/9;
  }
  
  .bp-hero-card-body {
    padding: 32px;
  }
  
  .bp-hero-card-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .bp-nav-inner {
    padding: 0 20px;
  }
  
  .bp-nav-links {
    display: none;
  }
  
  .bp-mobile-menu-btn {
    display: flex;
  }
  
  .bp-hero {
    margin: 40px auto;
    padding: 0 20px;
  }
  
  .bp-section {
    margin: 40px auto;
    padding: 0 20px;
  }
  
  .bp-section-title {
    font-size: 24px;
  }
  
  .bp-band {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .bp-hero-card-body {
    padding: 24px;
  }
  
  .bp-hero-card-title {
    font-size: 24px;
  }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--ww-glass-strong);
  border-radius: 5px;
  border: 2px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ===== Footer (if exists) ===== */
footer {
  position: relative;
  z-index: 1;
  background: var(--ww-glass);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--ww-glass-border);
  padding: 40px;
  margin-top: 80px;
}