/* 明星坊 - 艺术笔记风格样式 */

:root {
  --primary-color: #b1ce48;
  --primary-dark: #9ab73a;
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #999999;
  --bg-light: #f5f5f5;
  --white: #ffffff;
  --black: #000000;
  --border-color: #e0e0e0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-left {
  max-width: 500px;
  color: white;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn-primary,
.btn-outline {
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

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

/* 摄影展示区域 - 设计感布局 */
.photo-showcase {
  position: relative;
  display: flex;
  gap: 24px;
  align-items: flex-end;
  padding: 20px;
}

.photo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 60px rgba(0,0,0,0.5);
}

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

.photo-card-main {
  width: 220px;
  height: 320px;
  z-index: 2;
}

.photo-card-secondary {
  width: 180px;
  height: 260px;
  margin-bottom: 40px;
  z-index: 1;
}

.photo-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.photo-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-color);
  color: white;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  letter-spacing: 1px;
}

/* 装饰元素 */
.photo-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  pointer-events: none;
}

.deco-circle {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  opacity: 0.6;
  animation: pulse 2s ease-in-out infinite;
}

.deco-line {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 60px;
  height: 2px;
  background: var(--primary-color);
  transform: rotate(45deg);
  opacity: 0.4;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

/* 旧版兼容 */
.hero-artist-img {
  width: 200px;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero-decoration {
  position: absolute;
  bottom: 40px;
  right: 40px;
  font-size: 120px;
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  letter-spacing: 10px;
  pointer-events: none;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.section-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-label {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
}

.section-desc {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.6;
  max-width: 300px;
}

.view-all {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.view-all:hover {
  gap: 12px;
}

/* Projects Section */
.projects-section {
  padding: 80px 0;
  background: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  border: 1px solid transparent;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-type {
  background: rgba(177, 206, 72, 0.1);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.project-budget {
  color: #ff6b6b;
  font-weight: 700;
  font-size: 16px;
}

.project-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
  line-height: 1.4;
}

.project-desc {
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 16px;
  line-height: 1.6;
}

.project-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-light);
}

.project-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-meta i {
  font-size: 14px;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.project-publisher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-publisher img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.project-publisher span {
  font-size: 13px;
  color: var(--text-medium);
}

.project-applies {
  font-size: 12px;
  color: var(--text-light);
}

/* Artists Section */
.artists-section {
  padding: 80px 0;
  background: var(--bg-light);
}

/* 职业类型筛选导航 */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.category-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  background: #f8f9fa;
  color: var(--text-medium);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
}

.category-item:hover {
  background: rgba(177, 206, 72, 0.1);
  color: var(--primary-dark);
  border-color: rgba(177, 206, 72, 0.3);
  transform: translateY(-2px);
}

.category-item.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.category-item i {
  font-size: 18px;
}

/* 筛选栏（搜索+排序合并） */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* 搜索区域 */
.search-section {
  flex: 1;
}

.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-input-wrapper {
  flex: 1;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.search-input-wrapper:focus-within {
  background: white;
  border-color: var(--primary-color);
}

.search-input-wrapper i {
  color: #999;
  font-size: 18px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
}

.search-input::placeholder {
  color: #999;
}

.search-btn {
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--primary-dark);
}

.search-clear {
  padding: 8px 12px;
  color: #666;
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}

.search-clear:hover {
  color: var(--primary-color);
}

/* 排序区域 */
.sort-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
}

.sort-options {
  display: flex;
  gap: 8px;
}

.sort-item {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-medium);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.sort-item:hover {
  background: #f8f9fa;
  color: var(--primary-color);
}

.sort-item.active {
  background: var(--primary-color);
  color: white;
}

/* 排序栏（旧版，保留兼容） */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.sort-label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.sort-options {
  display: flex;
  gap: 8px;
}

.sort-item {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-medium);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
}

.sort-item:hover {
  background: #f8f9fa;
  color: var(--primary-color);
}

.sort-item.active {
  background: var(--primary-color);
  color: white;
}

.artists-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.artist-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.artist-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* 封面图片链接 */
.artist-image-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* 用户名链接 */
.artist-name-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.artist-name-link:hover .artist-name {
  color: var(--primary-color);
}

.artist-image-wrapper {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.artist-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.artist-card:hover .artist-image {
  transform: scale(1.05);
}

/* 无封面时的占位图 */
.artist-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.artist-card:hover .artist-image-placeholder {
  transform: scale(1.02);
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}

.placeholder-content .material-icons {
  font-size: 48px;
  opacity: 0.6;
}

.placeholder-text {
  font-size: 14px;
  color: var(--text-medium);
  font-weight: 500;
  max-width: 80%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary-color);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.artist-info {
  padding: 20px;
}

.artist-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.artist-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.artist-role {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 14px;
}

.artist-divider {
  width: 4px;
  height: 4px;
  background: var(--border-color);
  border-radius: 50%;
}

.artist-location {
  color: var(--text-light);
  font-size: 14px;
}

.artist-line {
  height: 3px;
  width: 40px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* 艺卡信息区域 */
.artist-card-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.artist-card-info .artist-role {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.artist-card-name {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.artist-meta .material-icons {
  font-size: 14px;
  vertical-align: middle;
  margin-right: 2px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.page-btn,
.page-prev,
.page-next,
.pagination a {
  padding: 10px 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: white;
  color: var(--text-medium);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover,
.page-prev:hover,
.page-next:hover,
.pagination a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.page-prev:disabled,
.page-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

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

@media (max-width: 768px) {
  .header-content {
    padding: 0 20px;
  }

  .nav {
    display: none;
  }

  .hero {
    height: auto;
    padding: 100px 0;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-right {
    display: none;
  }

  .hero-decoration {
    display: none;
  }

  .projects-grid,
  .artists-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .projects-grid .artist-card,
  .artists-grid .artist-card {
    width: calc(50% - 6px);
    break-inside: avoid;
    margin-bottom: 0;
  }

  .artist-image-wrapper {
    height: auto;
    aspect-ratio: 3/4;
  }

  .container {
    padding: 0 12px;
  }

  /* 隐藏分页，使用加载更多 */
  .pagination {
    display: none;
  }

  .load-more {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-medium);
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
  }

  .load-more:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
  }

  .hero {
    height: auto;
    min-height: 400px;
    padding: 60px 0;
  }

  .hero-content {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: 2px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  /* 分类导航横向滚动 */
  .category-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 12px;
    gap: 8px;
  }

  .category-nav::-webkit-scrollbar {
    display: none;
  }

  .category-item {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
  }

  .category-item i {
    font-size: 16px;
  }

  /* 筛选栏移动端适配 */
  .filter-bar {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .search-form {
    width: 100%;
  }

  .search-input-wrapper {
    max-width: none;
    flex: 1;
  }

  .sort-section {
    width: 100%;
    justify-content: space-between;
  }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .projects-grid,
  .artists-grid {
    gap: 10px;
  }

  .projects-grid .artist-card,
  .artists-grid .artist-card {
    width: calc(50% - 5px);
  }

  .container,
  .hero-content {
    padding: 0 10px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 12px 24px;
  background: #333;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  background: #4caf50;
}

.toast-error {
  background: #f44336;
}

.toast-info {
  background: #2196f3;
}

/* 确认对话框 */
.confirm-dialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.confirm-content {
  background: white;
  padding: 24px;
  border-radius: 12px;
  min-width: 320px;
  max-width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.confirm-message {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-buttons .btn {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.confirm-buttons .btn-secondary {
  background: #f5f5f5;
  color: #666;
}

.confirm-buttons .btn-secondary:hover {
  background: #e8e8e8;
}

.confirm-buttons .btn-primary {
  background: var(--primary-color);
  color: white;
}

.confirm-buttons .btn-primary:hover {
  background: var(--primary-dark);
}
