/* ===================================================
   拾光影库 · 演员页
   =================================================== */

.actor-page {
  max-width:1920px;
  width:100%;
  margin:20px auto;
  padding:0 30px;
  box-sizing:border-box;
}

/* ===== 演员列表页标题 ===== */
.page-title {
  font-size:20px;
  color:#222;
  margin:0 0 22px;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
}
.page-title::before {
  content:'';
  display:inline-block;
  width:4px;
  height:20px;
  background:#2aa461;
  border-radius:2px;
}
.page-title .sub { font-size:13px; color:#999; font-weight:400; }

/* ===== 演员网格（列表页） ===== */
.actor-grid {
  display:grid;
  grid-template-columns:repeat(8, 1fr);
  gap:20px;
}
.actor-card {
  background:#fff;
  border-radius:8px;
  padding:10px;
  text-align:center;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
  transition:.2s;
  color:inherit;
  text-decoration:none;
  display:block;
}
.actor-card:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 20px rgba(0,0,0,.1);
}
.actor-card .actor-photo {
  width:100%;
  aspect-ratio:3/4;
  border-radius:6px;
  overflow:hidden;
  margin-bottom:10px;
  background:#f0f0f0;
}
.actor-card .actor-photo img {
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.actor-card .actor-name {
  font-size:13.5px;
  font-weight:600;
  color:#333;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.actor-card .actor-alias {
  font-size:12px;
  color:#999;
  margin-top:3px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* ===== 演员详情页头部 ===== */
.actor-top {
  background:#fff;
  border-radius:8px;
  padding:30px;
  display:flex;
  gap:30px;
  margin-bottom:16px;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
  align-items:flex-start;
}
.actor-top-photo {
  flex:0 0 auto;
  width:220px;
  height:290px;
  border-radius:8px;
  overflow:hidden;
  background:#f0f0f0;
  border:1px solid #eee;
}
.actor-top-photo img {
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.actor-top-info { flex:1; min-width:0; }
.actor-top-info h1 {
  font-size:26px;
  color:#222;
  margin:0 0 12px;
  font-weight:700;
  line-height:1.3;
}
.actor-top-info h1 .actor-en {
  font-size:22px;
  font-weight:700;
  margin-left:8px;
}
.actor-top-info h1 .actor-birth {
  font-size:20px;
  font-weight:400;
  margin-left:6px;
}
.actor-job {
  font-size:14.5px;
  color:#666;
  margin-bottom:18px;
}
.actor-intro-short {
  font-size:14px;
  color:#666;
  line-height:1.85;
  margin-bottom:22px;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.actor-actions { display:flex; gap:10px; }
.btn-fav {
  padding:8px 22px;
  border:1px solid #ff4757;
  background:#fff;
  color:#ff4757;
  border-radius:22px;
  font-size:14px;
  cursor:pointer;
  transition:.2s;
}
.btn-fav:hover { background:#ff4757; color:#fff; }

.actor-score {
  flex:0 0 auto;
  width:140px;
  text-align:center;
  padding-left:30px;
  border-left:1px solid #f0f0f0;
}
.actor-score .imdb-score,
.actor-score .douban {
  text-decoration:none;
  color:inherit;
  display:block;
  padding:8px 0;
  border-radius:6px;
  transition:.2s;
}
.actor-score .imdb-score:hover,
.actor-score .douban:hover { background:#f5f6f8; }
.actor-score .score-label { font-size:14px; font-weight:700; color:#222; }
.actor-score .score-tip { font-size:12px; color:#999; margin-top:2px; }
.rating-star { font-size:32px; margin:8px 0; }

/* ===== 参演作品区 ===== */
.actor-works-section {
  background:#fff;
  border-radius:8px;
  padding:22px 30px;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
}

/* 电影/电视 切换 */
.works-tabs {
  display:flex;
  gap:6px;
  margin-bottom:22px;
  border-bottom:1px solid #f0f0f0;
  padding-bottom:0;
}
.works-tab {
  display:inline-block;
  padding:10px 22px;
  font-size:14px;
  color:#666;
  text-decoration:none;
  border-bottom:2px solid transparent;
  margin-bottom:-1px;
  transition:.2s;
}
.works-tab:hover { color:#2aa461; }
.works-tab.active {
  background:#2e7be5;
  color:#fff;
  border-radius:4px 4px 0 0;
  border-bottom-color:#2e7be5;
}

/* 作品网格 */
.works-grid {
  display:grid;
  grid-template-columns:repeat(6, 1fr);
  gap:20px;
}
.work-card {
  display:block;
  color:inherit;
  text-decoration:none;
  background:#fff;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
  transition:.25s;
}
.work-card:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 20px rgba(0,0,0,.12);
}
.work-card .work-pic {
  position:relative;
  width:100%;
  aspect-ratio:3/4;
  overflow:hidden;
  background:#f0f0f0;
}
.work-card .work-pic img {
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  transition:.3s;
}
.work-card:hover .work-pic img { transform:scale(1.05); }
.work-card .work-title {
  font-size:14px;
  color:#333;
  font-weight:600;
  padding:10px 12px 4px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.work-card .work-meta {
  font-size:12.5px;
  color:#999;
  padding:0 12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.work-card .work-rating {
  font-size:13px;
  color:#f5a623;
  padding:4px 12px 10px;
}
.work-card:hover .work-title { color:#2aa461; }

.work-empty {
  padding:80px 0;
  text-align:center;
  color:#999;
  font-size:14px;
}

/* ===== 分页 ===== */
.pager {
  margin-top:30px;
  text-align:center;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.pager a {
  display:inline-block;
  padding:7px 14px;
  border:1px solid #e0e0e0;
  border-radius:6px;
  font-size:13.5px;
  color:#555;
  text-decoration:none;
  background:#fff;
  transition:.2s;
}
.pager a:hover {
  background:#2aa461;
  color:#fff;
  border-color:#2aa461;
}
.pager a.active {
  background:#2aa461;
  color:#fff;
  border-color:#2aa461;
}
.pager-jump {
  font-size:13px;
  color:#666;
  margin-left:10px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.pager-jump input {
  width:60px;
  padding:6px 8px;
  border:1px solid #e0e0e0;
  border-radius:6px;
  font-size:13px;
  outline:none;
  text-align:center;
}
.pager-jump button {
  padding:6px 14px;
  background:#2aa461;
  color:#fff;
  border:0;
  border-radius:6px;
  font-size:13px;
  cursor:pointer;
  transition:.2s;
}
.pager-jump button:hover { background:#239154; }

/* ===== 响应式 ===== */
@media (max-width:1600px){
  .actor-grid { grid-template-columns:repeat(7, 1fr); }
  .works-grid { grid-template-columns:repeat(5, 1fr); }
}
@media (max-width:1400px){
  .actor-grid { grid-template-columns:repeat(6, 1fr); }
  .works-grid { grid-template-columns:repeat(5, 1fr); }
}
@media (max-width:1100px){
  .actor-grid { grid-template-columns:repeat(5, 1fr); }
  .works-grid { grid-template-columns:repeat(4, 1fr); }
}
@media (max-width:900px){
  .actor-grid { grid-template-columns:repeat(4, 1fr); gap:14px; }
  .works-grid { grid-template-columns:repeat(3, 1fr); gap:14px; }
  .actor-top {
    flex-direction:column;
    padding:22px;
    align-items:center;
    text-align:center;
  }
  .actor-top-photo { width:180px; height:240px; }
  .actor-top-info h1 { font-size:20px; }
  .actor-top-info h1 .actor-en { font-size:16px; }
  .actor-top-info h1 .actor-birth { font-size:15px; }
  .actor-actions { justify-content:center; }
  .actor-score {
    width:100%;
    border-left:0;
    border-top:1px solid #f0f0f0;
    padding:18px 0 0 0;
    margin-top:18px;
    display:flex;
    justify-content:center;
    gap:30px;
    align-items:center;
    text-align:left;
  }
}
@media (max-width:768px){
  .actor-page { padding:0 12px; margin:12px auto; }
  .actor-grid { grid-template-columns:repeat(3, 1fr); gap:10px; }
  .works-grid { grid-template-columns:repeat(2, 1fr); gap:10px; }
  .actor-card { padding:8px; }
  .actor-card .actor-name { font-size:12.5px; }
  .actor-card .actor-alias { font-size:11.5px; }
  .work-card .work-title { font-size:13px; padding:8px 10px 4px; }
  .work-card .work-meta { font-size:12px; padding:0 10px; }
  .work-card .work-rating { padding:4px 10px 8px; font-size:12.5px; }
  .actor-works-section { padding:16px; }
  .works-tab { padding:8px 16px; font-size:13px; }
}