* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Updated color scheme from dark to light theme */
:root {
  --primary-yellow: #fdb813;
  --dark-yellow: #e5a50a;
  --light-yellow: #fff4d6;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.08);

  --y1: #ffd54d; /* 主黄 */
  --y2: #ffca28; /* 深黄 */
  --text: #222;
  --bg: #fff;
  --shadow: 0 6px 20px rgba(0,0,0,0.12);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
}

.blur-img {
  filter: blur(.6rem); /* 数值越大越模糊 */
}

/* Updated header colors for light theme */
header {
  background-color: var(--bg-white);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--primary-yellow);
  box-shadow: 0 2px 12px var(--shadow-color);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-yellow);
  text-decoration: none;
  white-space: nowrap;
}

.logo-icon {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color:#fff;
  overflow: hidden;
  background-color: #f8f8f8;
}

nav {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  justify-content: left;
}

/* Updated nav link colors for light theme */
nav a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  background-color: var(--primary-yellow);
  color: var(--bg-white);
}

/* Updated search box for light theme */
.search-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-light);
  border-radius: 24px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  min-width: 120px;
}

.search-box:focus-within {
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 3px rgba(253, 184, 19, 0.15);
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  flex: 1;
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
}

.search-box input::placeholder {
  color: var(--text-secondary);
}

.search-button {
  background-color: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.search-button:hover {
  background-color: var(--primary-yellow);
  color: var(--bg-white);
  border-color: var(--primary-yellow);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(253, 184, 19, 0.3);
}

/* Updated user button for light theme */
.user-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 2px solid var(--primary-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.user-button:hover {
  background-color: var(--primary-yellow);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(253, 184, 19, 0.3);
}

.login-button {
  padding: .4rem 1.4rem;
  border-radius: 4px;
  background-color: var(--primary-yellow);
  color: #fff;
  border:none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: .9rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-yellow);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Updated category tags section for light theme */
.category-tags {
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: thin;
  /*scrollbar-color: var(--primary-yellow) var(--bg-light);*/
  max-width: 1200px;
  margin: 0 auto;
}

.category-tags::-webkit-scrollbar {
  height: 6px;
}

.category-tags::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 10px;
}

.category-tags::-webkit-scrollbar-thumb {
  background: var(--primary-yellow);
  border-radius: 10px;
}

.tags-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Updated tag styles: smaller padding, font size, and subtle border-radius instead of pill shape */
.tag {
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  filter: brightness(1.05);
}

.tag-yellow {
  background-color: #fdb813;
  color: #1a1a1a;
}

.tag-red {
  background-color: #ff4757;
  color: #ffffff;
}

.tag-blue {
  background-color: #1e90ff;
  color: #ffffff;
}

.tag-green {
  background-color: #2ecc71;
  color: #ffffff;
}

.tag-purple {
  background-color: #9b59b6;
  color: #ffffff;
}

.tag-orange {
  background-color: #ff8c42;
  color: #ffffff;
}

.tag-pink {
  background-color: #ff6b9d;
  color: #ffffff;
}

.tag-teal {
  background-color: #16a085;
  color: #ffffff;
}

.tag-indigo {
  background-color: #5865f2;
  color: #ffffff;
}

.tag-coral {
  background-color: #ff7f50;
  color: #ffffff;
}

.tag-lime {
  background-color: #a8e063;
  color: #1a1a1a;
}

.tag-cyan {
  background-color: #00d9ff;
  color: #1a1a1a;
}

.tag-navy {
  background-color: #2c3e50;
  color: #ffffff;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 2rem;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #000;
  text-align: center;
  font-weight: 700;
}

.page-search {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #000;
  font-weight: 600;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* Updated movie card for light theme with subtle shadow */
.movie-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.movie-card:hover .movie-poster {
  transform: scale(1.1);
}

.movie-poster {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(135deg, #d0d0d0, #e8e8e8);
  min-height: 250px; 
  display: block; 
  transition: transform 0.3s ease; 
}

.movie-info {
  padding: 1rem;
}

.movie-title {
    font-size: .95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-title em {
  color:#ff0000;
  font-style: normal;
}

.movie-meta {
  font-size: 0.8rem;
  color: #ccc;
  display: flex;
  gap: 0.25rem;
  justify-content: space-between;
}

.movie-meta span {
  display: flex;
  align-items: center;
}

.meta-label {
  color: var(--primary-yellow);
  font-weight: 500;
}

/* Updated pagination for light theme */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.pagination button,
.pagination a {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  min-width: 44px;
  text-align: center;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.pagination button:hover,
.pagination a:hover {
  background-color: var(--dark-yellow);
  border-color: var(--primary-yellow);
  color: var(--bg-white);
}

.pagination .active {
  background-color: var(--primary-yellow);
  border-color: var(--primary-yellow);
  color: var(--bg-white);
  font-weight: 600;
}

.pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination button:disabled:hover {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

/* Updated footer for light theme */
footer {
  background-color: #2a2a2a;
  border-top: 2px solid var(--primary-yellow);
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--primary-yellow);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p,
.footer-section a {
  color: #b8b8b8;
  line-height: 1.8;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-yellow);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #3a3a3a;
  text-align: center;
  color: #b8b8b8;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .movie-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 968px) {
  .movie-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .header-container {
    padding: 1rem;
  }

  nav a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header-container {
    flex-wrap: wrap;
  }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 3;
  }

  nav.active {
    display: flex;
  }

  .search-container {
    flex-wrap: wrap;
  }

  /* Make tags scrollable on mobile */
  .category-tags {
    padding: 1rem;
  }

  /*
  .tags-container {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  */

  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .header-container {
    padding: 0.75rem 1rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  main {
    padding: 2rem 1rem;
  }
}

/* Add styles for detail page */

/* Video Section Layout */
.video-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Video Player */
/* Reduced video player height to show 4 episodes */
.video-player, .video-msg {
  width: 100%;
  height: 500px; /* Updated from 420px to 500px for better 4-episode display */
  background-color: #1a1a1a;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-msg .ct {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.video-msg .ct .lock {
  color: var(--primary-yellow);
  text-decoration: none;
  border: none;
  background-color: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: 500;
  margin: 0 0.25rem;
}

/* Episode List */
/* Matched episode list height to video player and set to show 4 episodes */
.episode-list-container {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-color);
  height: 500px; /* Updated from 420px to 500px to match video player */
  display: flex;
  flex-direction: column;
}

.episode-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-yellow);
  flex-shrink: 0;
}

.episode-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.episode-list::-webkit-scrollbar {
  width: 4px;
}

.episode-list::-webkit-scrollbar-track {
  border-radius: 10px;
}

.episode-list::-webkit-scrollbar-thumb {
  background: var(--primary-yellow);
  border-radius: 10px;
}

.episode-item {
  display: flex;
}

.episode-item a {
  display: flex;
  position: relative;
  width: 100%;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-decoration: none;
}

.episode-item a:hover {
  background-color: var(--light-yellow);
  transform: translateX(5px);
}

.episode-item.active a {
  background-color: var(--light-yellow);
  border-color: var(--primary-yellow);
}

.episode-item a .mot {
  position: absolute;
  top: .75rem;
  left: .75rem;
  width: 100px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  z-index: 1;
}

.episode-item a .mot .cu {
  position: absolute;
  color:#fff;
  font-size: 2rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.episode-thumb {
  width: 100px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background-color: #ccc;
}

.episode-info h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.episode-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Movie Detail Section */
.movie-detail-section {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-color);
  min-height: 500px;
}

.detail-title {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.movie-tags {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.detail-tag {
  background-color: var(--primary-yellow);
  color: #1a1a1a;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.movie-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn i {
  font-size: 1.2rem;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.action-btn.like {
  background-color: #ff6b9d;
  color: #ffffff;
}

.action-btn.like:hover {
  background-color: #ff5088;
}

.action-btn.favorite {
  background-color: #fdb813;
  color: #1a1a1a;
}

.action-btn.download {
  color: #ffffff;
  background-color: #2c3e50;
}

.action-btn.download i {
  color: #ffffff;
}

.action-btn.favorite:hover {
  background-color: #e5a50a;
}

.action-btn.vip {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: #ffffff;
}

.action-btn.vip:hover {
  background: linear-gradient(135deg, #8e44ad, #7d3c98);
}

.action-btn.purchase {
  background-color: #1e90ff;
  color: #ffffff;
}

.action-btn.purchase:hover {
  background-color: #1873cc;
}

.movie-meta-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: var(--bg-light);
  border-radius: 8px;
}

.movie-meta-detail p {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.movie-meta-detail strong {
  color: var(--primary-yellow);
  margin-right: 0.5rem;
}

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

.user-bar .user-avt {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  overflow: hidden;
  border:1px solid #ebebeb;
}

.user-bar .user-avt img{
  width: 100%;
  height: 100%;
}

.user-bar .if {
  display: flex;
  margin-left: .5rem;
  flex-direction: column;
}


.user-bar .if p{
  font-size: .6rem;
  color:#999;
}

.rating {
  color: var(--primary-yellow);
  font-weight: 600;
  font-size: 1.1rem;
}

.movie-synopsis {
  margin-top: 2rem;
}

.movie-synopsis h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-yellow);
}

.movie-synopsis .ctx {
  color: #666666;
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: justify;
  white-space: pre-line;
}

/* Gallery Section */
.gallery-section {
  margin-bottom: 3rem;
}

.gallery-title {
  font-size: 1.75rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.comment-count {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 400;
}

.gallery-container {
  position: relative;
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-color);
}

.gallery-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-yellow) var(--bg-light);
}

.gallery-scroll::-webkit-scrollbar {
  height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-yellow);
  border-radius: 10px;
}

.gallery-image {
  width: 500px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background-color: #ebebeb;
}

.gallery-image:hover {
  transform: scale(1.05);
  border-color: var(--primary-yellow);
  box-shadow: 0 8px 20px rgba(253, 184, 19, 0.3);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-yellow);
  color: #1a1a1a;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.gallery-nav:hover {
  background-color: var(--dark-yellow);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
  left: 0.5rem;
}

.gallery-nav.next {
  right: 0.5rem;
}

/* Comments Section */
.comments-section {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-color);
}

/* Added comment input box styles */
.comment-input-box {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.comment-input-box:focus-within {
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 3px rgba(253, 184, 19, 0.15);
}

.comment-input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comment-textarea {
  width: 100%;
  min-height: 100px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: var(--bg-white);
  resize: vertical;
  transition: all 0.3s ease;
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 3px rgba(253, 184, 19, 0.1);
}

.comment-textarea::placeholder {
  color: var(--text-secondary);
}

.comment-input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.character-count {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.submit-comment-btn {
  background-color: var(--primary-yellow);
  color: #1a1a1a;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-comment-btn::before {
  margin-right: 4px;
}

.submit-comment-btn:hover {
  background-color: var(--dark-yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 184, 19, 0.3);
}

.submit-comment-btn:active {
  transform: translateY(0);
}

.comment-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.comment-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--primary-yellow);
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-username {
  color: #888;
  font-weight: 600;
  font-size: 1rem;
}

.comment-username.admin {
  color: var(--primary-yellow);
}

.comment-date {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.comment-text {
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.load-more-comments {
  display: flex;
  width: 100%;
  justify-content: center;
}

.load-more-btn {
  background-color: var(--primary-yellow);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  color: #1a1a1a;
  font-weight: 600;
  transition: all 0.3s ease;
}
.load-more-btn::before {
  margin-right: 4px;
}


.load-more-btn:hover {
  background-color: var(--dark-yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 184, 19, 0.3);
}

/* Admin Reply */
.admin-reply {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--light-yellow);
  border-left: 3px solid var(--primary-yellow);
  border-radius: 6px;
  position: relative;
}

.reply-badge {
  position: absolute;
  top: -10px;
  left: 10px;
  background-color: var(--primary-yellow);
  color: #1a1a1a;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* User Center Layout Styles */
.user-center-layout {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 2rem;
  margin-top: 1rem;
}

/* Left Sidebar */
.user-sidebar {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-color);
  height: fit-content;
  /*
  position: sticky;
  top: 100px;
  */
}

.user-profile-card {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ebebeb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
  flex-shrink: 0;
  border: 2px solid #ebebeb;
}

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

/* Added styles for SVG icon inside avatar */
.profile-avatar svg {
  width: 50px;
  height: 50px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

.profile-name {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.profile-level {
  color: var(--primary-yellow);
  font-size: 0.95rem;
  font-weight: 500;
  background-color: var(--light-yellow);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  display: inline-block;
}

.exp {
  margin-top: 10px;
  font-size: .6rem;
  color:#999;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: .5rem;
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.menu-item:hover {
  background-color: var(--light-yellow);
  color: var(--primary-yellow);
  transform: translateX(5px);
}

.menu-item.active {
  background-color: var(--primary-yellow);
  color: #1a1a1a;
}

/* Updated menu-icon styles to properly display flat SVG icons with stroke */
.menu-icon {
  font-size: 1.2rem;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Right Content Area */
.user-content {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-color);
  min-height: 600px;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.section-heading {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #ebebeb;
  font-weight: 600;
}

.pho { width: 100%; height: 6rem; background-color: #fafafa; }

/* Profile Form */
.profile-form {
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  color: #555555;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: var(--bg-white);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 3px rgba(253, 184, 19, 0.15);
}

.form-group input[readonly] {
  background-color: var(--bg-light);
  cursor: not-allowed;
}

.form-group input::placeholder {
  color:#ccc;
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-yellow);
  color: #1a1a1a;
}

.btn-primary:hover {
  background-color: var(--dark-yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 184, 19, 0.3);
}

.btn-secondary {
  background-color: var(--bg-light);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
}

.btn-green {
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-size: 0.4rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background-color: #16a085;
  color: #fff;
}

.btn-remove {
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  font-size: 0.4rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background-color: #ff4757;
  color: #fff;
  margin-left: .5rem;
}



/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem 1rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.stat-card.sred {
  background-color: #ff4757;
  color:#fff;
}
.stat-card.spurple {
  background-color: #9b59b6;
  color:#fff;
}
.stat-card.sblue {
  background-color: #1e90ff;
  color:#fff;
}
.stat-card.steal {
  background-color: #16a085;
  color:#fff;
}
.stat-card.coral {
  background-color: #ff7f50;
  color:#fff;
}
.stat-card.navy {
  background-color: #2c3e50;
  color:#fff;
}

.stat-card:hover {
  cursor: pointer;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.stat-icon {
  font-size: 1.3rem;
}

.stat-info h4 {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.stat-number {
  font-size: 1.05rem;
  font-weight: 700;
}

.invit-bar {
  display: flex;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  flex-direction: column;
  width: 100%;
}

.invit-bar h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.invit-bar .code-bar {
  width: 100%;
  display: flex;
  justify-content: center;
}

.invit-bar .code-bar .code {
  min-width: 45%;
  background-color: var(--primary-yellow);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  margin: 0 auto;
  display: inline-block;
}

.invit-bar .code-bar .code h3 {
  color: #fff;
  margin-bottom: .6rem;
}

.invit-bar .code-bar .code .cc {
  display: flex;
  justify-content: center;
}

.invit-bar .code-bar .code .cc .xx {
  font-size: 2rem;
  background-color: var(--light-yellow);
  color:  var(--primary-yellow);
  padding: .2rem 1rem;
  border-radius: 8px;
}

.invit-bar .link {
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

.invit-bar .link .uri {
  border: 1px solid var(--border-color);
  padding: .8rem;
  flex: 1;
  outline: none;
  color: #333;
  font-size: 600;
  font-size: 1rem;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-right: none;
}

.invit-bar .link .btn-copy {
  border: none;
  padding: .85rem 3rem;
  cursor: pointer;
  background-color: var(--primary-yellow);
  font-weight: 600;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.invit-bar .msg {
  color:#16a085;
  font-size: .8rem;
}

.vip-card {
  background: linear-gradient(135deg, #1a1a1a, #333333);
  border-radius: 12px;
  padding: 2rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vip-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-yellow);
}

.vip-info p {
  color: #cccccc;
  font-size: 0.9rem;
}

.renew-btn {
  background-color: var(--primary-yellow);
  color: #1a1a1a;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.renew-btn:hover {
  background-color: var(--dark-yellow);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .center-container {
    flex-direction: column;
    padding: 1rem;
  }

  .sidebar {
    flex: none;
    width: 100%;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .vip-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

/* VIP Recharge Page Styles */
.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.vip-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.vip-plan-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.vip-plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(253, 184, 19, 0.2);
  border-color: var(--primary-yellow);
}

.vip-plan-card.popular {
  border: 2px solid var(--primary-yellow);
  background: linear-gradient(to bottom, #fffdf5, #ffffff);
}

.vip-plan-card.premium {
  background: linear-gradient(135deg, #2c3e50, #000000);
  color: #ffffff;
  border: none;
}

.vip-plan-card.premium .plan-title,
.vip-plan-card.premium .plan-price,
.vip-plan-card.premium .plan-features li,
.vip-plan-card.premium .check-icon {
  color: #ffffff;
}

.vip-plan-card.premium .btn-purchase {
  background-color: #d4af37;
  color: #000000;
}

.vip-plan-card.premium .btn-purchase:hover {
  background-color: #f1c40f;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-yellow);
  color: #1a1a1a;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(253, 184, 19, 0.3);
}

.plan-header {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.vip-plan-card.premium .plan-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.plan-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: var(--primary-yellow);
}

.plan-price .currency {
  font-size: 1.25rem;
  font-weight: 600;
  margin-right: 2px;
}

.plan-price .amount {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.plan-price .period {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-left: 4px;
}

.vip-plan-card.premium .plan-price .period {
  color: rgba(255, 255, 255, 0.7);
}

.plan-tag {
  display: inline-block;
  background-color: #ffeaa7;
  color: #d35400;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin-bottom: 1rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: .5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.plan-features li .cc {
  color: #2ecc71;
}

.check-icon {
  width: 18px;
  height: 18px;
  color: var(--primary-yellow);
  flex-shrink: 0;
}

.btn-purchase {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 8px;
  background-color: var(--primary-yellow);
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-purchase:hover {
  background-color: var(--dark-yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 184, 19, 0.3);
}

/* Responsive adjustments for recharge page */
@media (max-width: 768px) {
  .vip-plans-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .vip-plan-card.popular {
    transform: scale(1.02);
    border-width: 2px;
  }
}

/* Added Dialog Modal Styles */
/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Generic Modal Container */
.modal-container {
  background-color: var(--bg-white);
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: all 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* Auth Modal Specifics */
.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  transition: all 0.3s ease;
}

.auth-tab.active {
  color: var(--primary-yellow);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-yellow);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.auth-btn {
  width: 100%;
  padding: 0.85rem;
  background-color: var(--primary-yellow);
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.auth-btn:hover {
  background-color: var(--dark-yellow);
  transform: translateY(-2px);
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary-yellow);
  text-decoration: none;
  font-weight: 500;
}

.alert:before {
  margin-right: 4px;
}

/* Alert/Confirm Dialog Styles */
.alert-modal {
  text-align: center;
  max-width: 360px;
}

.alert-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.alert-icon.success {
  background-color: #e8f5e9;
  color: #2ecc71;
}

.alert-icon.warning {
  background-color: #fff3e0;
  color: #ff9800;
}

.alert-icon.error {
  background-color: #ffebee;
  color: #f44336;
}

.alert-icon.confirm {
  background-color: #e3f2fd;
  color: #2196f3;
}

.alert-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.alert-message {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.alert-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.alert-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  flex: 1;
}

.alert-btn.primary {
  background-color: var(--primary-yellow);
  color: #1a1a1a;
}

.alert-btn.secondary {
  background-color: var(--bg-light);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.alert-btn:hover {
  transform: translateY(-2px);
}

/* Responsive Design for User Center */
@media (max-width: 968px) {
  .user-center-layout {
    grid-template-columns: 1fr;
  }

  .user-sidebar {
    position: static;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vip-plans {
    grid-template-columns: 1fr;
  }

  .vip-plan-card.popular {
    transform: scale(1);
  }

  .vip-plan-card.popular:hover {
    transform: translateY(-8px);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .user-content {
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .records-table {
    font-size: 0.85rem;
  }

  .records-table th,
  .records-table td {
    padding: 0.75rem 0.5rem;
  }

  .video-section {
    grid-template-columns: none;
  }
  .video-player{
    height: 380px;
  }

  nav {
    position: absolute;
    top: 4.7rem;
    left: 0;
    padding: 1rem;
    background-color: #fff;
  }

  .logo {
    display: none;
  }
  
}

@media (max-width: 480px) {
  .user-sidebar {
    padding: 1.5rem;
  }

  .user-content {
    padding: 1rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
  
}


.recharge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.recharge-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .5rem 1.5rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}


.recharge-card:hover,.recharge-card.active {
  background-color: #ff4757;
  color:#fff;
  cursor: pointer;
}

.recharge-icon {
  font-size: 1.6rem;
}

.recharge-info h4 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.recharge-number {
  font-size: 1.25rem;
  font-weight: 700;
}

.btn-list { 
  display: flex;
  align-items: center;
  margin-top: 5rem;
}

.btn-list .btn {
  margin-right: 1.2rem;
  padding: .5rem 1rem;
  background-color: #ebebeb;
  cursor: pointer;
}
.btn.wx {
  background-color:#2ecc71;
  color:#fff;
}
.btn.alipay {
  background-color: #1873cc;
  color:#fff;
}
.btn.service {
  background-color: #ff6b9d;
  color:#fff;
}


/* ----- 下拉菜单 ----- */
.user-area {
  position: relative;
  display: inline-block;
}

.hover-bridge {
  position: absolute;
  top: 100%;
  right: 0;
  width: 120px;     /* 你可根据按钮大小调整 */
  height: 30px;     /* 填满按钮与菜单之间的空隙 */
  pointer-events: auto;
}

.user-menu {
  position: absolute;
  top: calc(100% + 10px); /* 挨着按钮更近，避免空隙 */
  right: 0;
  min-width: 180px;
  background: #fff;
  padding: 8px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 999;
}

.user-menu a::before {
  margin-right: 4px;
}

/* hover 触发条件：按钮 或 菜单 */
.user-area:hover .user-menu,
.user-menu:hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 小箭头 */
.user-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  border-left: 1px solid rgba(0,0,0,0.05);
  border-top: 1px solid rgba(0,0,0,0.05);
  box-shadow: rgba(0,0,0,0.05) 0 2px 4px;
}

/* 菜单项 */
.user-menu a,
.user-menu button.logout {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
}

/* hover 效果 */
.user-menu a:hover,
.user-menu button.logout:hover {
  background: linear-gradient(
    90deg,
    rgba(255,212,70,0.20),
    rgba(255,200,40,0.08)
  );
}

/* 退出按钮强调 */
.user-menu .logout {
  color: #b71c1c !important;
  font-weight: 600;
}

.user-menu .logout::before {
  margin-right: 4px;
}



/* 整体布局：上下结构 */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 78vh; /* 全屏模式，你也可以改成固定高度 */
  background: #f5f5f5;
}

/* 聊天内容区域（滚动） */
.chat-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 一条消息 */
.msg {
  display: flex;
}

/* 左边（对方） */
.msg.left {
  justify-content: flex-start;
}

/* 右边（自己） */
.msg.right {
  justify-content: flex-end;
}

/* 气泡基础样式 */
.bubble {
  max-width: 70%; 
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.5;
  font-size: 15px;
  word-break: break-word;
}

.bubble .msg-img {
  max-width: 12rem;
  width: 100%;
  height: auto;
  cursor: pointer;
}

/* 对方气泡 */
.msg.left .bubble {
  background: #e8e8e8;
  color: #333;
  border-top-left-radius: 0;
}

/* 自己气泡 */
.msg.right .bubble {
  background: var(--primary-yellow);
  color: #000;
  border-top-right-radius: 0;
}

/* 底部输入框区域 */
.chat-input-area {
  display: flex;
  gap: 10px;
  padding-top: 2rem;
  background: #fff;
}

.chat-input-area input {
  flex: 1;
  padding: 10px;
  font-size: 15px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  outline: none;
}

.chat-input-area input::placeholder {
  color:#ccc;
}

.chat-input-area .send {
  padding: 10px 18px;
  font-size: 15px;
  color: #000;
  background: var(--primary-yellow);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.chat-input-area .picture {
  padding: .4rem .8rem;
  font-size: 1.4rem;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* 移动端细节微调 */
@media (max-width: 600px) {
  .bubble {
    max-width: 85%;
    font-size: 14px;
  }

  .chat-input-area input {
    font-size: 14px;
  }

  .chat-input-area button {
    font-size: 14px;
    padding: 8px 14px;
  }
}


.spin {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.x-upload { display: flex; flex-wrap: wrap; }
.c-upload { display: flex; flex-wrap: wrap; }
.demo-upload-list{
  display: inline-block;
  width: 60px;
  height: 60px;
  text-align: center;
  line-height: 60px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-right: 4px;
  cursor: pointer;
  background-color: #000;
}
.demo-upload-list img{
  width: 100%;
  height: 100%;
}
.demo-upload-list-cover{
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,.6);
}
.demo-upload-list:hover .demo-upload-list-cover{
  display: block;
}
.demo-upload-list-cover i{
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  margin: 0 2px;
}

.ivu-upload {
  display: inline-block; width: 58px;
}

.ivu-upload-drag {
  background: #fff;
  border: 1px dashed #dcdee2;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  -webkit-transition: border-color .2s ease;
  transition: border-color .2s ease;
}
.ivu-upload-input,.chunk-upload-input {
  display: none;
}
.ivu-button {
  width: 58px; height: 58px; line-height: 58px; background-color: #fafafa;
}
.chunk-button {
  width: 180px; height: 120px; line-height: 120px; background-color: #fafafa;
}
.ivu-icon { font-size: 1.5rem !important; color: #666; }
.chunk-icon { font-size: 1.2rem !important; color: #666; }


.chunk-upload {
  display: inline-block; width: 180px; margin-top: .5rem
}
.chunk-upload-drag {
  border: 1px dashed #dcdee2;
  background-color: #fafafa;
  color: #999;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  -webkit-transition: border-color .2s ease;
  transition: border-color .2s ease;
}

.chunk-upload-list{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 180px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  position: relative;
  background-color: #000000;
  margin-right: .5rem;
  margin-top: .5rem;
  cursor: pointer;
}
.chunk-upload-list img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.chunk-upload-list-cover{
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,.6);
}
.chunk-upload-list:hover .chunk-upload-list-cover{
  display: block;
}
.chunk-upload-list-cover i{
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  margin: 0 2px;
}

.vfx { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; background-color: #000; }
.opx { position: absolute; top: 50%; left: 50%; color: #fff; transform: translate(-50%, -50%); }
.xpx { position: absolute; top: 50%; left: 50%; color: #fff; transform: translate(-50%, -50%); }
.pgs { color:#fff; font-size: 1.5rem; }
.ugs { color:#fff; font-size: 1rem; font-style: normal; }

.chapter {
  display: flex;
  flex-direction: column;
}
.chapter .tp {
  padding: 0;
  margin-bottom: 2rem;
}

.chapter .item {
  display: flex;
  flex-direction: column;
  justify-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ebebeb;
  padding-bottom: 1rem;
}

.chapter .item:last-child {
  border-bottom: none;
}


.record-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 每一条记录 */
.record-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
  align-items: center;
}

/* 手机端自动变成上下布局 */
@media (max-width: 600px) {
  .record-item {
    grid-template-columns: 1fr; /* 一列 */
    row-gap: 6px;
    text-align: left;
  }

  .price, .time {
    color: #666;
    font-size: 14px;
  }
}



.vd-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vd-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ebebeb;
  overflow: hidden;
  margin-bottom: 2rem;
}

.vd-item .title {
    font-weight: 500;
}

.vd-item .ifo {
   display: flex;
   align-items: center;
   justify-content: flex-start;
   color: #666;
   margin: .5rem 0 1rem 0;
}

.vd-item .ifo .tb {
  display: flex;
  align-items: center;
  color: #999;
  font-size: .9rem;
  margin-right: 1.2rem;
}

.vd-item .ifo .tb::before {
  margin-right: 2px;
}

.vd-item .option {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px dashed #ebebeb;
  padding-top: 1rem;
}

.vd-item .option .bm {
  margin-left: 1rem;
  padding: .4rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  border: none;
}

.vd-item .option .bm.edit {
  background-color: #16a085;
  color: #fff;
}
.vd-item .option .bm.del {
  background-color: #ff4757;
  color: #fff;
}

.vd-item .msg {
  display: flex;
  align-items: center;
  border-top: 1px dashed #ebebeb;
  padding-top: 1rem;
  font-size: 1rem;
  color: #e54d42;
}

.vd-item .tagx {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ebebeb;
  font-size: .8rem;
  padding: .4rem 1rem;
  border-bottom-left-radius: 8px;
  color: #666;
  font-weight: 600;
}
.tagx.wait { 
  color: #fbbd08;
  background-color: #fef2ced2;
}
.tagx.success { 
  background-color: #d7f0dbff;
  color: #39b54a;
}
.tagx.error{
  color: #e54d42;
  background-color: #fadbd9;
}

.chapter-add {
  margin-bottom: 1rem;
  padding: .4rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  border: none;
  background-color: #16a085;
  color: #fff;
}

/*
@media (max-width: 600px) {
  .vd-item {
    grid-template-columns: 1fr;
    row-gap: 6px;
    text-align: left;
  }

  .price, .time {
    color: #666;
    font-size: 14px;
  }
}
*/


.not-data { 
  display: flex;
  flex-direction: column;
  margin: 8rem 0;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.not-data .cc {
  font-size: 3rem;
  color: #ccc;
}

.not-data .not-msg {
  color: #999;
}


/* Loading overlay 基础样式 */
#global-loading-overlay {
  position: fixed;
  inset: 0;                    
  display: none;               
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  z-index: 99999;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* 禁止页面滚动时，给 body 加的 class */
body.loading-disabled {
  overflow: hidden !important;
}

/* loading box */
#global-loading-overlay .loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 2rem 4rem;
  border-radius: 12px;
  background: rgba(0,0,0,.7);
  color: #fff;
  max-width: 90%;
  box-sizing: border-box;
  text-align: center;
}

/* spinner image */
#global-loading-overlay .loading-spinner-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  animation: loading-spin 1s linear infinite;
}

/* fallback pure-css spinner (used if no image provided) */
#global-loading-overlay .loading-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: rgba(255,255,255,0.9);
  animation: loading-spin 0.9s linear infinite;
}

/* message text */
#global-loading-overlay .loading-text {
  font-size: 14px;
  line-height: 1.3;
  max-width: 360px;
  word-break: break-word;
}

/* keyframe */
@keyframes loading-spin {
  to { transform: rotate(360deg); }
}

/* small responsive tweak */
@media (max-width: 420px) {
  #global-loading-overlay .loading-box {
    padding: 14px;
  }
  #global-loading-overlay .loading-spinner-img {
    width: 48px;
    height: 48px;
  }
  #global-loading-overlay .loading-text {
    font-size: 13px;
  }
}



.editor { height: 120px; margin-bottom: 1.2rem; }
.w120 { width: 120px; }
.w180 { width: 180px; }
.check { display: flex; align-items: center; }
.check .itx { 
    padding: 0.5rem 2rem;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: var(--bg-white);
    cursor: pointer;
    border-left: none;
}
.check .itx:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-left: 1px solid var(--border-color);
}
.check .itx:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-left: none;
    border-right: 1px solid var(--border-color) !important;
}
.check .itx.cur {
    border: 1px solid var(--primary-color);
    background-color: var(--primary-yellow);
    color: #1a1a1a;
    border-right: none;
}
.sb { margin-left: 6px; font-size: 0.95rem; font-weight: 600; color:#666; }