/* ===== HEADER STYLES ===== */
/* Typography Design - Header Component
   For all pages with standardized navigation
*/

/* ===== Navigation ===== */
.td-header {
  background-color: #ffffff;
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.td-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.td-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
}

/* 只保留logo-svg的样式，移除所有其他logo样式 */
.td-logo svg.logo-svg {
  width: auto;
  height: 50px;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.td-logo:hover svg.logo-svg {
  transform: scale(1.02);
}

.td-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #333;
  font-size: 1.5rem;
  cursor: pointer;
}

.td-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.td-nav-links li {
  margin: 0;
  padding: 0;
}

.td-nav-links a {
  color: #333;
  font-family: var(--td-font-primary);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  font-weight: 500;
  transition: color 0.3s;
  display: block;
}

.td-nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s;
}

.td-nav-links a:hover {
  color: var(--primary);
}

.td-nav-links a:hover::after,
.td-nav-links a.active::after {
  width: 100%;
}

.td-nav-links a.active {
  color: var(--primary);
}

/* Page Header */
.td-page-header {
  text-align: center;
  padding: var(--td-spacing-xl) 0;
}

.td-page-header h1 {
  font-family: var(--td-font-secondary);
  font-size: 2.5rem;
  margin-bottom: var(--td-spacing-md);
  color: var(--text-dark);
}

.td-intro {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ===== Media Queries ===== */
@media (max-width: 768px) {
  .td-mobile-toggle {
    display: block;
  }
  
  .td-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 90;
  }
  
  .td-nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .td-nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }
  
  .td-nav-links li:last-child {
    border-bottom: none;
  }
  
  .td-nav-links a {
    padding: 0.8rem 2rem;
    width: 100%;
    display: block;
    font-family: var(--td-font-primary);
  }
  
  .td-nav-container {
    padding: 0 15px;
  }
  
  .td-logo svg.logo-svg {
    transform: scale(0.8);
    transform-origin: left center;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .td-logo svg.logo-svg {
    transform: scale(0.8);
    height: 40px;
  }

  .td-nav-container {
    padding-left: 10px;
  }
}

/* 优化超小屏幕适配 */
@media (max-width: 360px) {
  .td-logo svg.logo-svg {
    transform: scale(0.55);
    height: 34px;
  }

  .td-nav-container {
    padding-left: 5px;
    padding-right: 5px;
  }

  .td-mobile-toggle {
    font-size: 1.2rem;
    padding: 5px;
  }
}
