:root { 
  /* 主色调 - 更雅致的蓝色 */ 
  --primary-color: #2196F3; 
  --primary-light: #64B5F6; 
  --primary-dark: #1976D2; 
  
  /* 辅助色 */ 
  --accent-color: #FFC107; 
  --accent-light: #FFD54F; 
  
  /* 中性色 */ 
  --dark-text: #333333; 
  --light-text: #ffffff; 
  --gray-text: #757575; 
  --text-color: #333; 
  --light-bg: #f5f5f5; 
  
  /* 背景色 */ 
  --bg-light: #f5f7fa; 
  --bg-white: #ffffff; 
  --bg-dark: #121212; 
  
  /* 卡片和边框 */ 
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); 
  --border-color: #e0e0e0; 
  --card-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  
  /* 评分颜色 */ 
  --rating-high: #4caf50; 
  --rating-medium: #ff9800; 
  --rating-low: #f44336; 
  --secondary-color: #e74c3c; 
} 

/* 全局样式 */ 
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
} 

body { 
  font-family: 'Noto Sans', 'Helvetica Neue', Arial, sans-serif; 
  color: var(--dark-text); 
  line-height: 1.6; 
  background-color: var(--bg-light); 
  margin: 0; 
  padding-top: 70px; /* 为固定导航栏留出空间 */ 
} 

a { 
  text-decoration: none; 
  color: var(--primary-color); 
  transition: color 0.2s; 
} 

a:hover { 
  color: var(--primary-light); 
} 

img { 
  max-width: 100%; 
  height: auto; 
} 

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

.site {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 固定顶部导航栏 */ 
.site-header { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  height: 60px; 
  background: var(--bg-white); 
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05); 
  z-index: 1000; 
} 

.header-container { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  height: 100%; 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 20px; 
} 

.site-branding { 
  display: flex; 
  align-items: center; 
} 

.site-logo { 
  height: 36px; 
  margin-right: 10px; 
} 

.site-title { 
  font-size: 20px; 
  font-weight: 500; 
  color: var(--primary-color); 
  margin: 0; 
} 

.site-description { 
  display: none; 
} 

.main-navigation {
  margin-top: 15px;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-navigation li a {
  color: white;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}

.main-navigation li a:hover {
  border-color: white;
}

/* 页面内容 */
.site-content {
  padding: 20px;
}

.site-main {
  padding: 20px 0;
}

.user-profile { 
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  cursor: pointer; 
  overflow: hidden; 
  background-color: var(--primary-light); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
} 

.user-profile img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
} 

.user-profile .user-icon { 
  color: white; 
  font-size: 18px; 
} 

/* 登录弹窗 */ 
.login-popup { 
  position: absolute; 
  top: 70px; 
  right: 20px; 
  background: white; 
  border-radius: 8px; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
  padding: 15px; 
  width: 250px; 
  display: none; 
  z-index: 1001; 
} 

.login-popup.active { 
  display: block; 
  animation: fadeIn 0.2s; 
} 

@keyframes fadeIn { 
  from { opacity: 0; transform: translateY(-10px); } 
  to { opacity: 1; transform: translateY(0); } 
} 

.login-popup form { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
} 

.login-popup input { 
  padding: 8px 12px; 
  border: 1px solid var(--border-color); 
  border-radius: 4px; 
  font-size: 14px; 
} 

.login-popup button { 
  background: var(--primary-color); 
  color: white; 
  border: none; 
  padding: 10px; 
  border-radius: 4px; 
  cursor: pointer; 
  font-size: 14px; 
} 

.login-popup button:hover { 
  background: var(--primary-dark); 
} 

.login-popup .register-link { 
  text-align: center; 
  margin-top: 10px; 
  font-size: 13px; 
} 

/* 搜索栏样式优化 */ 
.movie-search-container { 
  margin: 30px auto; 
  max-width: 600px; 
  width: 100%; 
} 

.movie-search-form { 
  display: flex; 
  position: relative; 
  border-radius: 50px; 
  overflow: hidden;
  border: 1px solid #e0e0e0; /* ✅ 增加浅灰色边框，让外框清晰可见 */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* 可保留轻微阴影增加层次 */
}

.movie-search-form input { 
  flex: 1; 
  padding: 15px 20px; 
  border: none; 
  font-size: 16px; 
  outline: none; 
  width: 100%; 
} 

/* 修改搜索按钮样式 */ 
/* 优化搜索按钮的放大镜图标 */ 
.movie-search-form button { 
    position: absolute; 
    right: 5px; 
    top: 50%; 
    transform: translateY(-50%); 
    background: var(--primary-color); 
    border: none; 
    color: white; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: background-color 0.3s; 
    overflow: hidden; 
} 

.movie-search-form button:hover { 
    background-color: #1976D2; 
} 

/* 清除之前的图标 */ 
.movie-search-form button i { 
    display: none; 
} 

/* 创建更精确的放大镜图标 */ 
.movie-search-form button::before { 
    content: ""; 
    position: absolute; 
    width: 14px; 
    height: 14px; 
    background: transparent; 
    border: 2px solid white; 
    border-radius: 50%; 
    top: 10px; 
    left: 12px; 
} 

.movie-search-form button::after { 
    content: ""; 
    position: absolute; 
    width: 2px; 
    height: 9px; 
    background: white; 
    transform: rotate(-45deg); 
    bottom: 10px; 
    right: 14px; 
} 

/* 电影网格样式优化 */ 
/* 电影网格样式优化 - 每行4个，共5行 */ 
.movie-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; 
  margin: 30px 0; 
  max-width: 1200px; 
  margin-left: auto; 
  margin-right: auto; 
} 

/* 优化电影卡片样式 */ 
.movie-card { 
    background: white; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); 
    transition: all 0.3s ease; 
    position: relative; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
} 

.movie-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12); 
} 

.movie-poster { 
    position: relative; 
    overflow: hidden; 
    border-radius: 12px 12px 0 0; 
    aspect-ratio: 2/3; 
} 

.movie-poster::after { 
    content: ""; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 40%; 
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent); 
    opacity: 0; 
    transition: opacity 0.3s ease; 
} 

.movie-card:hover .movie-poster::after { 
    opacity: 1; 
} 

.movie-poster img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.4s ease; 
} 

.movie-card:hover .movie-poster img { 
    transform: none; 
} 

.movie-card:hover .movie-title { 
    color: var(--primary-color); 
} 

/* 优化评分样式 */ 
.movie-rating { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background: rgba(40, 40, 40, 0.85); 
    color: white; 
    padding: 4px 8px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    backdrop-filter: blur(2px); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    z-index: 2; 
} 

.movie-rating:before { 
   content: "\2605"; 
    color: #FFD700; 
    font-size: 12px; 
} 

/* 添加年份标签 */ 
.movie-year { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 8px 12px; 
    background: rgba(0, 0, 0, 0.7); 
    color: white; 
    font-size: 12px; 
    text-align: center; 
    opacity: 0; 
    transform: translateY(100%); 
    transition: all 0.3s ease; 
    z-index: 2; 
} 

.movie-card:hover .movie-year { 
    opacity: 1; 
    transform: translateY(0); 
} 

/* 添加电影卡片底部装饰线 */ 
.movie-card::before { 
    content: ""; 
    position: absolute; 
    bottom: 0; 
    left: 10%; 
    width: 80%; 
    height: 3px; 
    background: var(--primary-color); 
    border-radius: 3px 3px 0 0; 
    transform: scaleX(0); 
    transform-origin: center; 
    transition: transform 0.3s ease; 
} 

.movie-card:hover::before { 
    transform: scaleX(1); 
} 

/* 分页样式优化 */ 
.movie-pagination { 
  margin: 40px 0; 
  text-align: center; 
  display: flex; 
  justify-content: center; 
  flex-wrap: wrap; 
  gap: 8px; 
} 

.movie-pagination .page-numbers { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  min-width: 40px; 
  height: 40px; 
  padding: 0 12px; 
  border-radius: 6px; 
  background: var(--bg-white); 
  color: var(--dark-text); 
  font-weight: 500; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); 
  transition: all 0.2s; 
} 

.movie-pagination .current { 
  background: var(--primary-color); 
  color: white; 
} 

.movie-pagination .page-numbers:hover:not(.current) { 
  background: var(--primary-light); 
  color: white; 
} 

.movie-pagination .prev, 
.movie-pagination .next { 
  padding: 0 15px; 
} 

/* 电影详情页样式 */ 
.movie-detail-container { 
  max-width: 1100px; 
  margin: 30px auto; 
  padding: 0 20px; 
} 

.movie-detail-header { 
  display: flex; 
  gap: 30px; 
  margin-bottom: 40px; 
} 

.movie-poster-large { 
  flex: 0 0 280px; 
} 

.movie-poster-large img { 
  width: 100%; 
  height: auto; 
  border-radius: 8px; 
} 

.movie-info { 
  flex: 1; 
} 

/* 简约极简风格 - 正确的右侧省略 */ 
.movie-title { 
    padding: 8px 10px; 
    font-size: 16px; 
    font-weight: 300; 
    color: #666; 
    text-align: center; 
    overflow: hidden; 
    text-overflow: ellipsis; /* 右侧省略号 */ 
    white-space: nowrap;     /* 不换行 */ 
    margin: 0; 
    letter-spacing: 0.5px; 
    text-transform: uppercase; /* 全大写，更有设计感 */ 
} 
 
/* 悬停效果 */ 
.movie-card:hover .movie-title { 
    color: var(--primary-color); 
} 

.title-en { 
  display: block; 
  font-size: 16px; 
  color: var(--gray-text); 
  margin-top: 6px; 
  font-weight: 400; 
} 

.movie-meta { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
  margin: 18px 0; 
} 

.movie-meta span { 
  background: rgba(33, 150, 243, 0.08); 
  color: var(--primary-color); 
  padding: 5px 10px; 
  border-radius: 4px; 
  font-size: 13px; 
} 

.movie-director, 
.movie-writers, 
.movie-actors { 
  margin-bottom: 12px; 
  line-height: 1.5; 
  font-size: 14px; 
} 

.movie-director strong, 
.movie-writers strong, 
.movie-actors strong { 
  color: var(--dark-text); 
  font-weight: 500; 
  margin-right: 5px; 
} 

/* 豆瓣和IMDB评分放在同一行 */ 
.ratings-row { 
  display: flex; 
  gap: 15px; 
  margin: 20px 0; 
} 

.movie-douban, 
.movie-imdb { 
  display: flex; 
  align-items: center; 
  font-size: 14px; 
} 

.movie-douban strong, 
.movie-imdb strong { 
  margin-right: 8px; 
  font-weight: 500; 
} 

.douban-link, 
.imdb-link { 
  display: inline-flex; 
  align-items: center; 
  text-decoration: none; 
  color: var(--dark-text); 
} 

.douban-score { 
  background-color: #007722; 
  color: white; 
  padding: 2px 6px; 
  border-radius: 3px; 
  font-size: 13px; 
  font-weight: 500; 
} 

.imdb-score { 
  background-color: #f5c518; 
  color: black; 
  padding: 2px 6px; 
  border-radius: 3px; 
  font-size: 13px; 
  font-weight: 500; 
} 

.movie-summary { 
  margin-top: 25px; 
  line-height: 1.6; 
} 

.movie-summary h3 { 
  font-size: 16px; 
  margin-bottom: 10px; 
  color: var(--dark-text); 
  font-weight: 500; 
} 

.movie-summary p { 
  color: var(--dark-text); 
  font-size: 14px; 
} 

/* 下载区域样式 - 简化版 */ 
.movie-downloads { 
  margin-top: 40px; 
} 

.movie-downloads h2 { 
  font-size: 18px; 
  margin-bottom: 15px; 
  color: var(--dark-text); 
  font-weight: 500; 
  padding-bottom: 8px; 
  border-bottom: 1px solid var(--border-color); 
} 

.download-resources { 
  display: flex; 
  flex-direction: column; 
  gap: 0; 
} 

.download-item { 
  padding: 12px 0; 
  border-bottom: 1px solid var(--border-color); 
} 

.download-info { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
} 

.download-title { 
  flex: 1; 
  cursor: pointer; 
} 

.resource-name { 
  font-size: 14px; 
  color: var(--primary-color); 
  word-break: break-word; 
  line-height: 1.4; 
} 

.resource-name:hover { 
  text-decoration: underline; 
} 

.download-meta { 
  display: flex; 
  align-items: center; 
  gap: 15px; 
} 

.file-size { 
  color: var(--gray-text); 
  font-size: 13px; 
  display: flex; 
  align-items: center; 
  gap: 5px; 
} 

/* 下载表格样式 */
.download-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.download-table th, .download-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.download-table th {
  background-color: var(--primary-color);
  color: white;
}

.download-table tr:nth-child(even) {
  background-color: var(--light-bg);
}

.download-button {
  display: inline-block;
  background: var(--secondary-color);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin: 3px;
}

.download-button:hover {
  background: #c0392b;
  color: white;
}

/* BDInfo按钮样式 */ 
.bdinfo-btn { 
  background-color: transparent; 
  color: var(--primary-color); 
  border: 1px solid var(--primary-color); 
  padding: 4px 8px; 
  text-align: center; 
  display: inline-flex; 
  align-items: center; 
  gap: 5px; 
  font-size: 12px; 
  border-radius: 3px; 
  cursor: pointer; 
  transition: all 0.2s; 
} 

.bdinfo-btn:hover { 
  background-color: var(--primary-color); 
  color: white; 
} 

/* 模态框样式 */ 
.modal { 
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0, 0, 0, 0.5); 
} 

.modal-content { 
  background-color: var(--bg-white); 
  margin: 5% auto; 
  padding: 0; 
  border-radius: 8px; 
  width: 80%; 
  max-width: 800px; 
  max-height: 80vh; 
  overflow-y: auto; 
} 

.modal-header { 
  background-color: var(--primary-color); 
  padding: 12px 15px; 
  color: white; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
} 

.modal-header h3 { 
  margin: 0; 
  color: white; 
  font-size: 16px; 
  font-weight: 500; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
} 

#bd-info-content { 
  padding: 20px; 
  line-height: 1.5; 
  font-family: monospace; 
  white-space: pre-wrap; 
  font-size: 13px; 
  color: var(--dark-text); 
} 

.close-modal { 
  color: white; 
  font-size: 22px; 
  font-weight: bold; 
  cursor: pointer; 
} 

/* 复制成功提示 */ 
.copy-notification { 
  position: fixed; 
  top: 20px; 
  right: 20px; 
  background-color: var(--primary-color); 
  color: white; 
  padding: 12px 15px; 
  border-radius: 4px; 
  z-index: 1000; 
  display: none; 
  font-size: 14px; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
} 

/* 404页面 */ 
.error-404 { 
  text-align: center; 
  padding: 50px 0; 
} 

.error-404 h1 { 
  font-size: 80px; 
  color: var(--secondary-color); 
} 

.error-404 p { 
  margin: 20px 0; 
} 

.error-404 .button { 
  display: inline-block; 
  background: var(--primary-color); 
  color: white; 
  padding: 10px 20px; 
  border-radius: 4px; 
  margin-top: 20px; 
} 

/* 页脚样式 */ 
.site-footer { 
  background: var(--primary-color); 
  color: white; 
  padding: 20px; 
  text-align: center; 
} 

/* 加载中动画 */ 
.loading { 
  text-align: center; 
  padding: 30px; 
  font-size: 18px; 
  color: #666; 
} 

.loading:after { 
  content: "..."; 
  animation: dots 1s steps(5, end) infinite; 
} 

@keyframes dots { 
  0%, 20% { 
    color: rgba(0,0,0,0); 
    text-shadow: 
      .25em 0 0 rgba(0,0,0,0), 
      .5em 0 0 rgba(0,0,0,0); 
  } 
  40% { 
    color: #666; 
    text-shadow: 
      .25em 0 0 rgba(0,0,0,0), 
      .5em 0 0 rgba(0,0,0,0); 
  } 
  60% { 
    text-shadow: 
      .25em 0 0 #666, 
      .5em 0 0 rgba(0,0,0,0); 
  } 
  80%, 100% { 
    text-shadow: 
      .25em 0 0 #666, 
      .5em 0 0 #666; 
  } 
} 

/* 登录模态框样式 */ 
/* 登录模态框样式优化 */
.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* 稍微加深背景 */
  z-index: 1001;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px); /* 添加背景模糊效果 */
  -webkit-backdrop-filter: blur(5px); /* Safari 支持 */
}
 
.login-modal-content {
  background-color: white;
  border-radius: 12px; /* 增加圆角 */
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); /* 更强的阴影 */
  overflow: hidden;
  transform: translateY(0); /* 为动画做准备 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 模态框显示时的动画效果 */
.login-modal.show .login-modal-content {
  transform: translateY(0);
  animation: modalFadeIn 0.3s ease;
}
 
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 

.login-modal-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 15px 20px; 
  background-color: var(--primary-color); 
  color: white; 
} 

.login-modal-header h3 { 
  margin: 0; 
  font-size: 18px; 
  color: white; 
} 

.login-close { 
  background: none; 
  border: none; 
  font-size: 24px; 
  cursor: pointer; 
  color: white; 
} 

.login-modal-body { 
  padding: 20px; 
  position: relative; 
} 

.login-form-group { 
  margin-bottom: 15px; 
} 

.login-form-group label { 
  display: block; 
  margin-bottom: 5px; 
  color: var(--text-color); 
  font-size: 14px; 
} 

.login-form-group input[type="text"], 
.login-form-group input[type="password"] { 
  width: 100%; 
  padding: 10px; 
  border: 1px solid #ddd; 
  border-radius: 4px; 
  font-size: 14px; 
} 

.login-remember { 
  display: flex; 
  align-items: center; 
} 

.login-remember input { 
  margin-right: 5px; 
} 

/* 改进按钮悬浮效果 */
.login-submit-btn {
  width: 100%;
  padding: 12px; /* 稍微增加高度 */
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}
 
.login-submit-btn:hover {
  background-color: #1976D2; /* 深一点的蓝色 */
  box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
  transform: translateY(-2px);
}

.login-links { 
  margin-top: 15px; 
  text-align: center; 
  font-size: 14px; 
} 

.login-links a { 
  color: var(--primary-color); 
  text-decoration: none; 
} 

.login-links a:hover { 
  text-decoration: underline; 
} 

.login-separator { 
  margin: 0 5px; 
  color: #ddd; 
} 

.login-error { 
  color: var(--secondary-color); 
  background-color: #ffebee; 
  padding: 10px; 
  border-radius: 4px; 
  margin-bottom: 15px; 
  display: none; 
} 

.login-loading { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background-color: rgba(255, 255, 255, 0.8); 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
  display: none; 
} 

.login-spinner { 
  width: 40px; 
  height: 40px; 
  border: 4px solid #f3f3f3; 
  border-top: 4px solid var(--primary-color); 
  border-radius: 50%; 
  animation: spin 1s linear infinite; 
  margin-bottom: 10px; 
} 

@keyframes spin { 
  0% { transform: rotate(0deg); } 
  100% { transform: rotate(360deg); } 
} 

.switch-form { 
  text-align: center; 
  margin-top: 15px; 
  font-size: 14px; 
} 

.switch-form a { 
  color: var(--primary-color); 
  text-decoration: none; 
} 

.switch-form a:hover { 
  text-decoration: underline; 
} 

/* 用户图标提示 */
.user-icon {
  cursor: pointer;
  position: relative;
}

.user-icon:hover::after {
  content: "请点击登录";
  position: absolute;
  top: 100%;
  right: 0;
  background: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  white-space: nowrap;
}

/* 用户头像和下拉菜单 */
/* 用户状态栏样式 */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: white;
  color: var(--text-color);
  border-bottom: none; /* 移除底部边框 */
}

.user-actions {
  display: flex;
  align-items: center;
}

/* 登录按钮 */
.login-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 15px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-button:hover {
  background-color: #3a506b; /* 稍微亮一点的主色调 */
}

/* 用户头像和下拉菜单 */
.user-profile-dropdown {
  position: relative;
}

.user-avatar-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 8px 0;
  z-index: 1000;
  min-width: 150px;
  margin-top: 8px;
}

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

.dropdown-item {
  display: block;
  padding: 8px 16px;
  color: var(--text-color);
  text-decoration: none;
  transition: background 0.2s;
  text-align: left;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--light-bg);
}

.user-info {
  font-weight: bold;
  border-bottom: 1px solid #eee;
  color: var(--primary-color);
}

/* 购买历史页面样式 */ 
.purchase-history-container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 20px; 
} 

.page-title { 
  margin-bottom: 30px; 
  font-size: 24px; 
  color: var(--primary-color); 
  border-bottom: 1px solid #eee; 
  padding-bottom: 10px; 
} 

.no-movies-found { 
  grid-column: 1 / -1; 
  text-align: center; 
  padding: 40px 0; 
  background: #fff; 
  border-radius: 8px; 
  box-shadow: var(--card-shadow); 
} 

.no-movies-found p { 
  margin-bottom: 20px; 
  font-size: 16px; 
  color: #666; 
} 

.button { 
  display: inline-block; 
  background-color: var(--primary-color); 
  color: white; 
  padding: 10px 20px; 
  border-radius: 4px; 
  text-decoration: none; 
  font-size: 14px; 
  transition: background-color 0.3s; 
} 

.button:hover { 
  background-color: var(--secondary-color); 
  color: white; 
} 

.error-message { 
  background-color: #f8d7da; 
  color: #721c24; 
  padding: 15px; 
  border-radius: 4px; 
  margin-bottom: 20px; 
} 

.page-prev, 
.page-next { 
  padding: 0 15px; 
} 

.page-dots { 
  background: transparent; 
} 

/* 电影详情页额外样式 */
.bd-info-toggle {
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: underline;
  display: inline-block;
  margin-bottom: 5px;
}

.bd-info-content {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 4px;
  font-size: 0.9em;
  margin-top: 5px;
  white-space: pre-wrap;
}

.hdshare-button {
  background: #3498db;
  margin-left: 5px;
}

.hdshare-button:hover {
  background: #2980b9;
}

/* 响应式设计 */ 
@media (max-width: 1200px) { 
  .movie-grid { 
    grid-template-columns: repeat(4, 1fr); 
    padding: 0 20px; 
  } 
} 

@media (max-width: 992px) { 
  .movie-grid { 
    grid-template-columns: repeat(3, 1fr); 
  } 
  
  .movie-detail-header { 
    gap: 25px; 
  } 
} 

@media (max-width: 768px) { 
  .movie-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
  } 
  
  .movie-detail-header { 
    flex-direction: column; 
  } 
  
  .movie-poster-large { 
    max-width: 220px; 
    margin: 0 auto; 
  } 
  
  .movie-title { 
    font-size: 22px; 
    text-align: center; 
  } 
  
  .title-en { 
    text-align: center; 
  } 
  
  .movie-meta { 
    justify-content: center; 
  } 
  
  .ratings-row { 
    justify-content: center; 
  } 
} 

@media (max-width: 480px) { 
  body { 
    padding-top: 50px; 
  } 
  
  .site-header { 
    height: 50px; 
  } 
  
  .site-logo { 
    height: 28px; 
  } 
  
  .site-title { 
    font-size: 18px; 
  } 
  
  .user-profile { 
    width: 32px; 
    height: 32px; 
  } 
  
  .movie-title { 
    font-size: 18px; 
  } 
  
  .modal-content { 
    width: 95%; 
  } 
  
  .movie-grid {
    grid-template-columns: 1fr;
  }
  
  .movie-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  .site-header {
    padding: 15px;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 10px;
  }
}
/* Ensure header elements are visible on all pages */
.site-header,
.header-container,
.user-actions,
.login-button {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
 
.user-actions {
  display: flex !important;
}
 
/* Increase z-index to ensure header is above other elements */
.site-header {
  z-index: 1010;
}
 
.header-container {
  z-index: 1011;
}
/* 修复头部布局问题 */
.header-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important; /* 防止换行 */
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

/* 确保站点标志不占用过多空间 */
.site-branding {
  flex: 0 0 auto !important;
  margin-right: 20px !important;
}

/* 确保用户操作区域正确显示 */
.user-actions {
  flex: 0 0 auto !important;
  margin-left: auto !important; /* 推到右侧 */
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

/* 登录按钮样式 */
.login-button {
  display: inline-block !important;
  margin-left: auto !important; /* 确保在右侧 */
}

/* 用户头像下拉菜单容器 */
.user-profile-dropdown {
  margin-left: auto !important; /* 确保在右侧 */
}
/* 模态框打开时的body样式 */
body.modal-open {
  overflow: hidden;
}
 
/* 注册/登录表单输入框效果 */
.login-form-group input[type="text"],
.login-form-group input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
 
.login-form-group input[type="text"]:focus,
.login-form-group input[type="password"]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
  outline: none;
}
 
/* 错误消息样式改进 */
.login-error {
  color: #d32f2f;
  background-color: #ffebee;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  display: none;
  font-size: 14px;
  border-left: 4px solid #d32f2f;
}
 
/* 切换表单链接效果 */
.switch-form a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
 
.switch-form a:hover {
  color: #1565C0;
  text-decoration: underline;
}