/* ============================================================
   PIXHOME - 全局样式（供所有页面共用）
   ============================================================ */

/* Adobe Song Std（Adobe 宋体） */
@font-face {
  font-family: 'Adobe Song Std';
  src: url('https://pixhome.cn/fonts/ADOBESONGSTD-LIGHT.OTF') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ----- 1. 变量 & 重置 ----- */
:root {
  --page: #F3F1EE;
  --surface: #f2f1ef;
  --surface-strong: #e7e1d8;
  --ink: #272727;
  --text: #414141;
  --muted: #6b6863;
  --line: #414141;
  --line-soft: rgba(65, 65, 65, 0.18);
  --accent: #d7976a;
  --accent-deep: #9f6f57;
  --white: #ffffff;
  --shadow: 0 28px 70px rgba(39, 39, 39, 0.12);
  --display-font: "Adobe Song Std", "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  --footer-font: "HYXiYuanJ";
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  --content-max: 1831px;
  --page-pad: clamp(24px, 6.61vw, 121px);
  --header-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--page);
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
}

button,
textarea {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
}

button:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--accent-deep);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ----- 2. 通用组件 ----- */
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 115px;
  min-height: 40px;
  padding-inline: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.pill-button.dark {
  background: var(--ink);
  color: var(--white);
}

.pill-button.outline {
  background: transparent;
  color: var(--ink);
}

.pill-button:hover {
  transform: translateY(-1px);
}

.pill-button:active {
  transform: translateY(1px);
}

.avatar-button {
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  position: relative;
}

.avatar-button img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ----- 3. 固定导航栏 (flex 布局) ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  gap: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 clamp(18px, 2.24vw, 41px);
  background: var(--page);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.brand-mark {
  min-width: 100px;
  cursor: pointer;
}

/* 滚动条样式 */
.nav-links::-webkit-scrollbar {
  height: 6px;
}

.nav-links::-webkit-scrollbar-track {
  background-color: var(--page);
}

.nav-links::-webkit-scrollbar-thumb {
  background-color: #d4cfc8;
  border-radius: 3px;
}

.nav-links::-webkit-scrollbar-thumb:hover {
  background-color: #c4bfb8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 55px;
  flex-wrap: nowrap;
}

.nav-links a {
  width: 54px;
  transition: all 0.3s ease;
  font-family: Inter;
  font-weight: 300;
  font-style: Light;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  color: #000000;

}

.nav-links a:hover {
  color: var(--ink);
  transform: scale(1.05);
}

.nav-links a.active {
  color: var(--ink);
  font-weight: 600;
  transform: scale(1.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  /* 让下拉菜单相对此定位 */
}

/* ----- 4. 基础布局容器（若需要） ----- */
.site-shell {
  min-height: 100dvh;
  padding-top: var(--header-height);
  overflow-x: hidden;
  background: var(--page);
  transition: padding-top 0.3s ease;
}

/* ----- 5. 页面区块（通用宽幅居中） ----- */
.hero-section,
.why-section,
.project-section,
.voice-section,
.sub-page,
.design-section,
.discover-page-section,
.information-section {
  width: min(100%, var(--content-max));
  margin-inline: auto;
}

/* ----- 6. 通用辅助类 ----- */
.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--text);
  font-size: clamp(18px, 1.02vw, 24px);
  line-height: 1.9;
}

/* ----- 7. 响应式适配（导航栏部分） ----- */
@media (max-width: 1024px) {
  .nav-links {
    gap: 30px;
  }

  .nav-links a {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  :root {
    --page-pad: 18px;
    --header-height: auto;
  }

  .site-header {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 18px;
    gap: 12px;
  }

  .brand {
    font-size: 16px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-links a {
    font-size: 14px;
    padding: 6px 16px;
    white-space: nowrap;
  }

  .site-shell {
    padding-top: 120px;
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== 头像下拉菜单 ========== */
.dropdown-menu {
  position: absolute;
  top: 52px;
  right: 0;
  background: #F2F1EF;
  border: 1px solid #A3A3A3;
  box-shadow: 0px 2px 2px 0px #00000040;
  min-width: 200px;
  z-index: 1001;
  border-radius: 12px;
  overflow: hidden;
  animation: slideDown 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 用户信息区域 */
.user-info-section {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 10px;
}

.menu-group .dropdown-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.menu-group .user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.menu-group .user-name {
  font-family: Inter;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 5%;
  color: #414141;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
}

.menu-group .user-email {
  color: #414141;
  font-family: Inter;
  font-weight: 500;
  font-size: 10px;
  line-height: 140%;
  letter-spacing: 5%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.menu-group .menu-divider {
  height: 0.3px;
  background-color: #474747;
  margin: 8px 0;
}

/* 菜单项 */
.menu-group .dropdown-item {
  padding: 7.5px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 8px;
  color: #414141;
  font-family: Inter;
  font-weight: 300;
  line-height: 140%;
  letter-spacing: 5%;
  vertical-align: middle;
}

.menu-group .dropdown-item:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}

.dropdown-icon-container {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* 菜单组 */
.menu-group {
  display: block;
}

/* ========== 通知提示条 ========== */
.notification-bar {
  width: 100%;
  background: linear-gradient(90deg, #676767, #000);
  color: white;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height 0.3s ease;
  overflow: hidden;
}

.notification-bar.hidden {
  height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
  width: 100%;
  max-width: 1200px;
  position: relative;
}

.notification-content span {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.notification-btn {
  color: #fff;
  background: transparent;
  padding: 4px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.notification-btn:hover {
  transform: scale(1.2);
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.notification-close:hover {
  opacity: 1;
}

/* 调整导航栏位置 */
.site-header {
  /* 原有样式 */
  top: 0;
  /* 默认，会被JS覆盖 */
  transition: top 0.3s ease;
}

/* 当提示条显示时，导航栏下移50px */
.site-header.shifted {
  top: 50px;
}

.subscribe-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 20px;
  border-radius: 5px;
  border-width: 0.3px;
  gap: 4px;
  opacity: 1;
  border: 0.3px solid #444444;
  font-family: Inter;
  font-weight: 300;
  font-size: 12px;
  line-height: 140%;
  letter-spacing: 5%;
  text-align: center;
  vertical-align: middle;
  color: #444444;
}

/* 导航栏「通知」按钮（位于订阅左侧） */
.notification-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 20px;
  border-radius: 5px;
  border: 0.3px solid #444444;
  gap: 4px;
  background: transparent;
  cursor: pointer;
  font-family: Inter;
  font-weight: 300;
  font-size: 12px;
  line-height: 140%;
  letter-spacing: 5%;
  text-align: center;
  vertical-align: middle;
  color: #444444;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}

.notification-trigger-icon {
  display: block;
}

.team-name-tag {
  color: #FCFCFC;
  padding: 2px 6px;
  border-radius: 999px;
  font-family: Inter;
  font-weight: 300;
  font-size: 7px;
  letter-spacing: 5%;
  text-align: center;
  background: #A45433;
  flex-shrink: 0;
}