@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  /* ===== 品牌色 ===== */
  --brand-gold: #D4AF37;
  --brand-wood: #8B5A2B;
  --brand-green: #5F9B6E;
  --brand-warm-light: #FCF7F0;

  /* ===== 功能色 ===== */
  --success: #2E7D32;
  --warning: #F9A825;
  --error: #D32F2F;
  --info: #1976D2;

  /* ===== 文本色 ===== */
  --text-primary: #3E3E3E;
  --text-secondary: #8A8A8A;
  --text-placeholder: #C6C6C6;
  --text-inverse: #FFFFFF;

  /* ===== 背景色 ===== */
  --bg-body: var(--border-dark);
  --bg-surface: #F4F4F4;
  --bg-elevated: #E8E8E8;
  --bg-overlay: rgba(0, 0, 0, 0.25);

  /* ===== 边框与分割线 ===== */
  --border-light: #C6C6C6;
  --border-dark: #8A8A8A;
  --divider: #E0E0E0;

  /* ===== 阴影 ===== */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.2);

  /* ===== 状态衍生色 ===== */
  --brand-gold-hover: #C09C30;
  --brand-gold-active: #A88529;
  --brand-green-hover: #4A7A55;
  --link: var(--brand-gold);
  --link-hover: var(--brand-wood);
  --disabled-bg: #C6C6C6;
  --disabled-text: #8A8A8A;

  /* ===== 兼容旧变量名（保留原有样式） ===== */
  --品牌色: var(--brand-gold);
  --guose: var(--brand-gold);
  --yese: var(--brand-green);
  --jinse: var(--brand-gold);
  --jinmuse: var(--brand-gold);
  --shuise: #afe2e3;
  --tianlan: #8dc6e8;

  /* 按钮相关 */
  --按钮: var(--brand-gold);
  --按钮亮: #ffffff;
  --按钮暗: var(--brand-wood);

  /* 背景层级 */
  --场景: var(--bg-surface);
  --页面: var(--bg-surface);
  --底框: var(--bg-elevated);
  --背景: var(--bg-body);

  /* 文字色 */
  --文字1: var(--text-primary);
  --文字2: var(--text-secondary);
  --文字3: var(--text-placeholder);
  --文字4: #c5c5c5;
  --文字5: var(--text-inverse);

  /* 其他旧变量（保留原样） */
  --bg-deep: #2C2C2C;
  --bg-surface-old: #3A3A3A;
  --bg-highlight: #4A4A4A;
  --light-glow: rgba(255, 255, 255, 0.15);
  --dark-shadow: rgba(0, 0, 0, 0.3);
  --black-75: rgba(0, 0, 0, 0.75);
  --black-25: rgba(0, 0, 0, 0.25);
  --black-10: rgba(0, 0, 0, 0.10);

  /* 页面背景系统 */
  --page-bg-color: var(--border-dark);
  --page-bg-image: none;
  --page-bg-opacity: 0.2;
  --page-bg-blur: 0px;
}

/* ===== 全局重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: default;
}

/* ----- 顶部标识栏 ----- */
.top-bar {
  display: flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  background: var(--bg-elevated);
  box-shadow: 0 4px 10px var(--dark-shadow), inset 0 1px 0 var(--light-glow);
  color: var(--text-primary);
  gap: 0.5rem;
  z-index: 10;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.logo-link:hover {
  background-color: var(--按钮亮);
  color: var(--text-primary);
}

.logo-icon {
  height: 2rem;
  width: auto;
  display: block;
  border-radius: 4px;
}

.logo-text {
  color: var(--text-primary);
  font-size: 1rem;
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
  color: var(--text-secondary);
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.breadcrumb-item:hover {
  background: var(--按钮亮);
  color: var(--text-primary);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0.2rem;
  font-size: 1rem;
}

.breadcrumb-current {
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.2rem 0.6rem;
}

/* 用户菜单 */
.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 2rem;
  transition: all 0.2s;
  color: var(--text-primary);
  position: relative;
  margin-left: auto;
}

.user-menu-trigger:hover {
  background-color: var(--按钮亮);
  box-shadow: 0 0 10px var(--light-glow), inset 0 1px 2px white;
}

.user-menu-dropdown {
  position: absolute;
  top: 60px;
  right: 1.5rem;
  background: var(--bg-elevated);
  border-radius: 20px;
  box-shadow: 0 10px 20px var(--dark-shadow), inset 0 1px 2px var(--light-glow);
  padding: 0.5rem 0;
  min-width: 150px;
  display: none;
  z-index: 100;
  border: 1px solid var(--border-light);
}

.user-menu-dropdown.show {
  display: block;
}

.user-menu-item {
  display: block;
  padding: 0.5rem 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}

.user-menu-item:hover {
  background: var(--按钮亮);
  color: var(--text-primary);
  border-radius: 10px;
}

.user-menu-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0.3rem 0;
}

/* 按压效果 */
.press-effect:active {
  transform: none !important;
  box-shadow: none !important;
}

/* ----- 主内容区域 ----- */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--text-primary);
  background-color: var(--border-dark);
  position: relative;
  z-index: 1;
}

.main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--page-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--page-bg-opacity);
  filter: blur(var(--page-bg-blur));
  z-index: -1;
  pointer-events: none;
}

.main-content::-webkit-scrollbar {
  width: 8px;
}
.main-content::-webkit-scrollbar-track {
  background: var(--页面);
  border-radius: 4px;
  box-shadow: inset 0 0 3px var(--dark-shadow);
}
.main-content::-webkit-scrollbar-thumb {
  background: var(--按钮);
  border-radius: 4px;
  box-shadow: inset 0 1px 2px var(--light-glow), 0 2px 3px var(--dark-shadow);
}
.main-content::-webkit-scrollbar-thumb:hover {
  background: var(--按钮亮);
}

/* ----- 全屏场景 ----- */
.scene-section.fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  margin-bottom: 0;
}

.scene-backdrop {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-layout {
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.avatar-container {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.avatar-img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.scene-content {
  flex: 1 1 50%;
  padding: 2rem;
  background: var(--bg-overlay);
  border-radius: 60px;
  box-shadow: 0 20px 30px var(--dark-shadow);
  color: var(--text-inverse);
  text-align: left;
  backdrop-filter: blur(5px);
}

.latest-label {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--品牌色);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--文字5);
  text-shadow: 0 4px 8px var(--dark-shadow);
}

.featured-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--文字5);
  opacity: 0.9;
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: var(--按钮);
  color: var(--text-primary);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px var(--dark-shadow);
  text-decoration: none;
}

.btn-detail:hover,
.btn-detail:active {
  background: var(--按钮亮);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 12px var(--dark-shadow);
  text-decoration: none;
}

/* ----- 卡片网格区 ----- */
.cards-section {
  background: var(--bg-overlay);
  border-radius: 30px;
  width: 80%;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  transition: width 0.2s ease;
}

.recommend-section {
  background: var(--bg-overlay);
  border-radius: 30px;
  width: 80%;
  margin: 2rem auto;
  padding: 2rem;
  transition: width 0.2s ease;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--文字1);
  text-shadow: 0 2px 5px var(--dark-shadow);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--页面);
  border-radius: 30px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 15px 20px var(--dark-shadow), inset 0 1px 3px var(--light-glow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.card:hover {
  background: var(--按钮亮);
  transform: translateY(-5px);
  box-shadow: 0 25px 30px var(--dark-shadow), inset 0 2px 5px white;
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--场景);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0;
  color: var(--文字2);
}

.recommend-card {
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg-surface);
  border-radius: 30px;
  padding: 1.5rem 1rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 15px 20px var(--dark-shadow), inset 0 1px 3px var(--light-glow);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.recommend-card:hover {
  background: var(--按钮亮);
  transform: translateY(-5px);
  box-shadow: 0 25px 30px var(--dark-shadow), inset 0 2px 5px white;
  border-color: var(--brand-gold);
}

.recommend-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 0.8rem;
  background: var(--场景);
  box-shadow: var(--shadow-sm);
}

.recommend-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recommend-card-title {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.recommend-title {
  font-size: 1.5rem;
  color: var(--brand-gold);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* ----- 底部功能栏 ----- */
.bottom-bar {
  width: 100%;
  background: var(--bg-elevated);
  box-shadow: 0 -4px 10px var(--dark-shadow), inset 0 1px 0 var(--light-glow);
  padding: 0.3rem 0;
  position: sticky;
  bottom: 0;
  left: 0;
  z-index: 20;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.bottom-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  gap: 0.5rem;
}

.control-item {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.8rem;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;

  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.control-item:hover {
  background: var(--按钮亮);
  color: var(--text-primary);
  box-shadow: 0 4px 8px var(--dark-shadow), inset 0 1px 3px white;
}

.control-item:active {
  transform: none !important;
  box-shadow: none !important;
}

.sound-toggle.sound-on {
  color: var(--文字3);
  background: rgba(175, 226, 227, 0.2);
}

/* ----- 进度条 ----- */
.progress-container {
  position: relative;
  width: 100%;
  height: 4px;
  background-color: var(--按钮暗);
  overflow: visible;
  z-index: 30;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--按钮);
  transition: width 0.3s ease;
}

.progress-dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  transition: left 0.3s ease;
  pointer-events: none;
  z-index: 31;
}

/* ----- 动画效果 ----- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.cards-grid .card {
  transition-delay: 0s;
}
.cards-grid.animated .card:nth-child(1) { transition-delay: 0.05s; }
.cards-grid.animated .card:nth-child(2) { transition-delay: 0.15s; }
.cards-grid.animated .card:nth-child(3) { transition-delay: 0.25s; }
.cards-grid.animated .card:nth-child(4) { transition-delay: 0.35s; }
.cards-grid.animated .card:nth-child(5) { transition-delay: 0.45s; }
.cards-grid.animated .card:nth-child(6) { transition-delay: 0.55s; }

/* ----- 分页样式 ----- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  background: var(--bg-surface);
  border-radius: 30px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.pagination a:hover {
  background: var(--brand-gold);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

.pagination .current {
  background: var(--brand-gold);
  color: var(--text-inverse);
  pointer-events: none;
}

.pagination a.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ===== 底部信息区 ===== */
.footer-info {
  width: 100%;
  background: var(--bg-overlay);
  text-align: center;
  color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  border: none;
  box-shadow: none;
}

.footer-info .info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-info a {
  color: inherit;
  text-decoration: none;
}

.footer-info a:hover {
  color: var(--brand-gold);
}

.footer-info .info-item:not(:last-child)::after {
  content: "|";
  margin-left: 1rem;
  color: #000000;
}

.footer-info .info-item#shareButton:hover,
.footer-info .info-item#shareButton:hover span {
  color: var(--brand-gold) !important;
}

/* ===== 作品详情页 ===== */
.detail-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 4rem;
  width: 100%;
  box-sizing: border-box;
}

.detail-section {
  background: var(--black-10);
  border-radius: 30px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.detail-title {
  font-size: 2.2rem;
  color: var(--jinmuse);
  text-align: center;
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 1.5rem 0;
  color: var(--text-inverse);
}

.meta-item {
  flex: 1;
  min-width: 200px;
}

.meta-label {
  color: var(--jinmuse);
  font-weight: 500;
  margin-right: 0.5rem;
}

.detail-desc {
  line-height: 1.8;
  color: var(--白天文字2);
  margin: 1rem 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  background: var(--bg-surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 20px var(--dark-shadow);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
  border: 2px solid transparent;
  width: 100%;
  height: auto;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--brand-gold);
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background-color: #2a2a2a;
}

.gallery-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.gallery-overlay.active {
  display: flex;
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--文字5);
  font-size: 40px;
  cursor: pointer;
  z-index: 2001;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transition: background 0.2s;
}

.gallery-close:hover {
  background: var(--按钮暗);
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--文字5);
  font-size: 50px;
  cursor: pointer;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  transition: background 0.2s;
  user-select: none;
  z-index: 2001;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: var(--按钮暗);
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

.gallery-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  z-index: 2001;
}

.gallery-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 30px;
  z-index: 2001;
}

.hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 2rem 0;
}

/* ===== 聊天窗口 ===== */
.chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-overlay);
  z-index: 2000;
  display: none;
}

.chat-overlay.show {
  display: block;
}

.chat-widget {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  max-width: 90vw;
  max-height: 80vh;
  background: var(--页面);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 2001;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  overflow: hidden;
  transition: width 0.2s ease;
}

.chat-widget.show {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: var(--bg-elevated);
  border-radius: 30px 30px 0 0;
}

#chatTitle {
  flex: 1;
  font-weight: 600;
}

.chat-header button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
  transition: all 0.2s;
  font-size: 1rem;
}

.chat-header button:hover {
  background: var(--brand-gold);
  color: var(--text-inverse);
}

.chat-feedback {
  background: var(--按钮);
  color: var(--text-primary);
}

.chat-human {
    background: transparent;
    color: var(--text-primary);
}
.chat-human:hover {
    background: var(--brand-gold);
    color: var(--text-inverse);
}

.chat-close {
  background: var(--按钮);
}

.chat-messages {
  padding: 1rem 1.5rem;
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.chat-message {
  padding: 0.6rem 1rem;
  border-radius: 20px;
  max-width: 80%;
  word-wrap: break-word;
  line-height: 1.4;
}

.chat-message.bot {
  background: var(--按钮亮);
  color: var(--品牌色);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.chat-message.user {
  background: var(--品牌色);
  color: var(--文字5);
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.chat-message a {
  color: var(--brand-gold);
  text-decoration: underline;
}

.chat-message a:hover {
  color: var(--brand-gold-hover);
}

.chat-input-area {
  display: flex;
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.5rem;
  border-top: 1px solid var(--border-light);
}

.chat-input {
  flex: 1;
  background: var(--按钮亮);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 0.6rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  overflow-y: auto;
}

.chat-input:focus {
  outline: none;
  border-color: var(--按钮);
}

.chat-send {
  background: var(--按钮);
  border: none;
  color: var(--text-primary);
  padding: 0 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.chat-send:hover {
  background: var(--按钮亮);
  color: var(--text-primary);
}

.quick-reply-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 0 0;
}

.quick-reply-btn {
  background: var(--按钮);
  border: 1px solid var(--border-light);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-reply-btn:hover {
  background: var(--brand-gold);
  color: var(--text-inverse);
}

/* ===== 反馈表单 ===== */
.feedback-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-overlay);
  z-index: 2002;
  display: none;
}

.feedback-form {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  max-width: 90vw;
  background: var(--页面);
  border-radius: 30px;
  padding: 2rem;
  z-index: 2003;
  display: none;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.feedback-form h3 {
  margin-bottom: 1.5rem;
  color: var(--品牌色);
  text-align: center;
}

.feedback-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  background: var(--按钮亮);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  color: var(--text-primary);
  font-family: inherit;
}

.feedback-form textarea {
  border-radius: 20px;
  resize: vertical;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: var(--按钮亮);
}

.feedback-submit {
  width: 100%;
  background: var(--按钮);
  border: none;
  color: var(--text-primary);
  padding: 0.8rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.feedback-submit:hover {
  background: var(--按钮亮);
}

.feedback-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--按钮);
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0.5rem;
  border-radius: 30px;
}

.feedback-close:hover {
  background: var(--按钮亮);
}

/* ===== 首页视频背景区 ===== */
.hero-video-section {
  position: relative;
  overflow: hidden;
  background-color: #646891;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
  padding: 0 2rem;
  animation: fadeInUp 1.2s ease-out forwards;
}

.hero-title {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  font-size: 4rem;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
  line-height: 1.3;
  margin: 0;
}

.hero-subtitle {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  margin-top: 0.8rem;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.hero-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-chat-btn:hover {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-chat-btn .icon {
  font-size: 1.2rem;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 统一按钮悬停效果 ===== */
.press-effect:hover,
.btn-detail:hover,
.btn-order:hover,
.btn-submit:hover,
.control-item:hover {
  background-color: var(--按钮亮) !important;
  color: var(--brand-gold) !important;
  border-color: var(--brand-gold) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg) !important;
  transition: all 0.2s ease;
}

/* 管理员按钮（后台） */
.admin-btn.secondary {
  background: var(--brand-wood);
}

.admin-btn.secondary:hover {
  background: var(--brand-wood);
  opacity: 0.9;
}

/* ===== 页面背景定制 ===== */
body[data-page="home"] {
  --page-bg-image: url('/Images/金树银丝.jpg');
  --page-bg-opacity: 1;
  --page-bg-blur: 0px;
}
body[data-page="works"] {
  --page-bg-image: url('/zuopin/Images/作品1920x1080px.jpg');
  --page-bg-opacity: 0.1;
  --page-bg-blur: 3px;
}
body[data-page="design"] {
  --page-bg-image: url('/sheji/Images/合作1920x1080px.jpg');
  --page-bg-opacity: 0.1;
  --page-bg-blur: 2px;
}
body[data-page="courses"] {
  --page-bg-image: url('/kecheng/Images/观点1920x1080px.jpg');
  --page-bg-opacity: 0.1;
  --page-bg-blur: 3px;
}
body[data-page="about"] {
  --page-bg-image: url('/jianjie/Images/简介1920x1080px.jpg');
  --page-bg-opacity: 0.1;
  --page-bg-blur: 2px;
}
body[data-page="resources"] {
  --page-bg-image: url('/ziyuan/Images/资源封面.jpg');
  --page-bg-opacity: 0.1;
  --page-bg-blur: 3px;
}
body[data-page="community"] {
  --page-bg-image: url('/jiaoliu/Images/交流1920x1080px.jpg');
  --page-bg-opacity: 0.1;
  --page-bg-blur: 3px;
}
body[data-page="order"] {
  --page-bg-image: none;
  --page-bg-color: #333;
}

/* ===== 响应式优化（合并所有移动端样式）===== */
@media (max-width: 768px) {
  /* 全屏场景布局 */
  .scene-layout {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .avatar-container,
  .scene-content {
    flex: 1 1 auto;
    width: 100%;
  }
  .avatar-img {
    max-height: 40vh;
  }
  .scene-content {
    text-align: center;
  }
  .featured-title {
    font-size: 2rem;
  }
  .featured-desc {
    font-size: 1rem;
  }

  /* 底部功能栏：隐藏文字，只保留图标 */
  .control-item .text {
    display: none;
  }
  .control-item {
    padding: 0.4rem;
  }

  /* 面包屑导航 */
  .breadcrumb-item,
  .breadcrumb-current {
    font-size: 0.9rem;
    padding: 0.1rem 0.4rem;
  }
  .breadcrumb {
    font-size: 0.8rem;
    max-width: 60vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .breadcrumb-item,
  .breadcrumb-current {
    white-space: nowrap;
  }

  /* LOGO隐藏文字 */
  .logo .logo-text {
    display: none;
  }

  /* 用户菜单隐藏文字 */
  .user-menu-trigger .text {
    display: none;
  }

  /* 卡片区宽度调整 */
  .cards-section,
  .recommend-section {
    width: 90%;
    padding: 1.5rem 0.8rem;
  }
  .cards-section {
    padding: 1.5rem 0.8rem 3rem;
  }

  /* 作品详情页 */
  .detail-container {
    padding: 1rem 1.5rem;
  }
  .gallery-prev,
  .gallery-next {
    font-size: 30px;
    padding: 10px;
  }
  .gallery-close {
    font-size: 30px;
    top: 10px;
    right: 15px;
  }

  /* 聊天窗口 */
  .chat-widget {
    width: 90vw;
    max-width: 400px;
    border-radius: 20px;
  }
  .chat-header {
    padding: 0.8rem 1.2rem;
  }
  .chat-messages {
    padding: 0.8rem 1.2rem;
    max-height: 300px;
  }
  .chat-input-area {
    padding: 0.8rem 1.2rem;
  }
  .chat-input {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
  }
  .chat-send {
    padding: 0 1rem;
  }

  /* 首页视频区 */
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
  }
  .hero-chat-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  .hero-chat-btn .icon {
    font-size: 1rem;
  }

  /* 底部信息区 */
  .footer-info {
    padding: 0.8rem 1rem;
    gap: 1rem;
  }
  .footer-info .info-item:not(:last-child)::after {
    margin-left: 0.8rem;
  }
}

/* 宽屏时聊天窗口稍微加宽 */
@media (min-width: 1200px) {
  .chat-widget {
    width: 550px;
  }
}