/* ============================================
   男同gay - 影视传媒品牌网站
   全站通用CSS样式表
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

/* ============ 颜色系统 ============ */
:root {
  --primary-orange: #FF6B35;
  --primary-blue: #004E89;
  --accent-dark: #1A1A1A;
  --accent-light: #F5F5F5;
  --text-dark: #222;
  --text-light: #666;
  --border-color: #E0E0E0;
  --success: #4CAF50;
  --warning: #FFC107;
  --danger: #F44336;
}

/* ============ 排版系统 ============ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-dark);
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.8rem;
  line-height: 1.4;
}

h4 {
  font-size: 1.4rem;
}

h5 {
  font-size: 1.2rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--primary-orange);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* ============ 容器与布局 ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

.col {
  flex: 1;
  padding: 10px;
  min-width: 250px;
}

.col-1 { flex: 0 0 calc(8.333% - 20px); }
.col-2 { flex: 0 0 calc(16.666% - 20px); }
.col-3 { flex: 0 0 calc(25% - 20px); }
.col-4 { flex: 0 0 calc(33.333% - 20px); }
.col-5 { flex: 0 0 calc(41.666% - 20px); }
.col-6 { flex: 0 0 calc(50% - 20px); }
.col-7 { flex: 0 0 calc(58.333% - 20px); }
.col-8 { flex: 0 0 calc(66.666% - 20px); }
.col-9 { flex: 0 0 calc(75% - 20px); }
.col-10 { flex: 0 0 calc(83.333% - 20px); }
.col-11 { flex: 0 0 calc(91.666% - 20px); }
.col-12 { flex: 0 0 calc(100% - 20px); }

/* ============ 按钮样式 ============ */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-orange);
  color: #fff;
}

.btn-primary:hover {
  background-color: #E55A2B;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
  background-color: var(--primary-blue);
  color: #fff;
}

.btn-secondary:hover {
  background-color: #003A6B;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 78, 137, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-orange);
  color: var(--primary-orange);
}

.btn-outline:hover {
  background-color: var(--primary-orange);
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* ============ 卡片组件 ============ */
.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.card-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--accent-light);
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background-color: var(--accent-light);
}

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

/* ============ 网格卡片 (12宫格) ============ */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.grid-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.25);
}

.grid-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.grid-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid-item:hover .grid-item-overlay {
  opacity: 1;
}

.grid-item-content {
  padding: 15px;
  text-align: center;
}

.grid-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

/* ============ 数据大屏 ============ */
.data-dashboard {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #003A6B 100%);
  color: #fff;
  padding: 40px 20px;
  border-radius: 12px;
  margin: 30px 0;
}

.data-item {
  text-align: center;
  padding: 20px;
  flex: 1;
  min-width: 200px;
}

.data-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  animation: countUp 2s ease-out;
}

.data-label {
  font-size: 1rem;
  opacity: 0.9;
}

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

/* ============ 播放器弹窗 ============ */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #fff;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-close {
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #000;
}

.modal-body {
  padding: 20px;
}

/* ============ 视频播放器 ============ */
.video-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.video-player video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-controls {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.video-progress {
  width: 100%;
  height: 6px;
  background-color: var(--border-color);
  border-radius: 3px;
  cursor: pointer;
  margin: 15px 0;
}

.video-progress-bar {
  height: 100%;
  background-color: var(--primary-orange);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

/* ============ 专家卡片 ============ */
.expert-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.expert-card:hover {
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
  transform: translateY(-4px);
}

.expert-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 3px solid var(--primary-orange);
}

.expert-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--accent-dark);
}

.expert-title {
  color: var(--primary-orange);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.expert-bio {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.5;
}

.expert-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ 手风琴 (FAQ) ============ */
.accordion {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

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

.accordion-header {
  padding: 20px;
  cursor: pointer;
  background-color: var(--accent-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--accent-dark);
}

.accordion-header:hover {
  background-color: #f0f0f0;
}

.accordion-header.active {
  background-color: var(--primary-orange);
  color: #fff;
}

.accordion-toggle {
  display: inline-block;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.accordion-header.active .accordion-toggle {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.accordion-body.active {
  max-height: 500px;
  padding: 20px;
}

.accordion-content {
  color: var(--text-light);
  line-height: 1.6;
}

/* ============ 用户评论 ============ */
.comment {
  padding: 20px;
  border-left: 4px solid var(--primary-orange);
  background-color: var(--accent-light);
  border-radius: 4px;
  margin: 15px 0;
}

.comment-author {
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 5px;
}

.comment-rating {
  color: var(--warning);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

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

.comment-date {
  color: #999;
  font-size: 0.85rem;
  margin-top: 10px;
}

/* ============ 搜索框 ============ */
.search-box {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  max-width: 500px;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-btn {
  padding: 12px 24px;
  background-color: var(--primary-orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background-color: #E55A2B;
}

/* ============ 面包屑导航 ============ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary-orange);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #ccc;
}

/* ============ 响应式设计 ============ */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  .col {
    min-width: 100%;
  }

  .col-md-6 {
    flex: 0 0 calc(50% - 20px);
  }

  .col-md-12 {
    flex: 0 0 calc(100% - 20px);
  }

  .grid-12 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .data-dashboard {
    padding: 20px 10px;
  }

  .data-item {
    padding: 15px 10px;
  }

  .data-number {
    font-size: 1.8rem;
  }

  .modal-content {
    width: 95%;
  }

  .search-box {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 15px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

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

  .data-number {
    font-size: 1.5rem;
  }

  .expert-card {
    padding: 15px;
  }

  .accordion-header {
    padding: 15px;
    font-size: 0.95rem;
  }
}

/* ============ 工具类 ============ */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.hidden {
  display: none;
}

.visible {
  display: block;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.rounded { border-radius: 6px; }
.rounded-lg { border-radius: 12px; }
.rounded-full { border-radius: 50%; }

.shadow-sm { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.shadow-md { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }
.shadow-lg { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); }

.border { border: 1px solid var(--border-color); }
.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }

.bg-light { background-color: var(--accent-light); }
.bg-dark { background-color: var(--accent-dark); }
.bg-primary { background-color: var(--primary-orange); }
.bg-secondary { background-color: var(--primary-blue); }

.text-primary { color: var(--primary-orange); }
.text-secondary { color: var(--primary-blue); }
.text-muted { color: var(--text-light); }

/* ============ 加载动画 ============ */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ============ 打印样式 ============ */
@media print {
  .no-print {
    display: none;
  }

  body {
    background-color: #fff;
  }

  a {
    text-decoration: underline;
  }
}
