/* ===== 文博创想 - 博物馆与设计师对接平台 ===== */
:root {
  --ink: #1a1a2e;
  --ink-light: #2d2d44;
  --vermillion: #b22222;
  --vermillion-soft: #d64545;
  --gold: #c9a227;
  --cream: #f8f5ef;
  --paper: #f0ebe0;
  --white: #fff;
  --shadow: rgba(26, 26, 46, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-serif: "Noto Serif SC", "Source Han Serif CN", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

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

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 26, 46, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--vermillion), var(--gold));
  color: var(--white);
  border-radius: 10px;
  font-size: 1.2rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  color: var(--ink-light);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--vermillion);
  background: rgba(178, 34, 34, 0.06);
}

.nav-login {
  margin-left: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* 语言切换 */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 16px;
}

.lang-switcher button {
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--ink-light);
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.lang-switcher button:hover {
  color: var(--vermillion);
  background: rgba(178, 34, 34, 0.06);
}

.lang-switcher button.active {
  color: var(--vermillion);
  font-weight: 600;
}

/* ----- Banner 轮播 ----- */
.banner {
  position: relative;
  margin-top: 64px;
  height: 70vh;
  min-height: 420px;
  max-height: 680px;
  overflow: hidden;
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--ink);
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.banner-slide .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.85) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 10% 40px;
  color: var(--white);
}

.slide-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.slide-museum {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 4px;
}

.slide-desc {
  font-size: 0.9rem;
  opacity: 0.8;
  max-width: 560px;
}

.banner-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.banner-arrows button {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.2s, transform 0.2s;
}

.banner-arrows button:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.banner-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.banner-dots button {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.banner-dots button:hover {
  background: rgba(255, 255, 255, 0.7);
}

.banner-dots button.active {
  background: var(--white);
  transform: scale(1.2);
}

/* ----- Section 通用 ----- */
.home-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--ink-light);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- 第一版块：博物馆征集 ----- */
.section-solicitations {
  background: var(--white);
}

.solicitations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.solicitation-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.solicitation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.18);
}

.solicitation-card .card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ink-light);
}

.solicitation-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.solicitation-card:hover .card-image img {
  transform: scale(1.06);
}

.solicitation-card .card-body {
  padding: 24px;
}

.solicitation-card .card-museum {
  font-size: 0.8rem;
  color: var(--vermillion);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.solicitation-card .card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.4;
  color: var(--ink);
}

.solicitation-card .card-meta {
  font-size: 0.875rem;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-deadline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-solicitations .view-more {
  text-align: center;
  margin-top: 40px;
}

.section-solicitations .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid var(--vermillion);
  color: var(--vermillion);
  background: transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.section-solicitations .btn-outline:hover {
  background: var(--vermillion);
  color: var(--white);
}

/* ----- 第二版块：二创作品 ----- */
.section-works {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}

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

@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--ink-light);
  box-shadow: 0 8px 32px var(--shadow);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.work-card:hover img {
  transform: scale(1.08);
}

.work-card .work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--white);
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-card .work-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.work-card .work-author {
  font-size: 0.85rem;
  opacity: 0.9;
}

.section-works .view-more {
  text-align: center;
  margin-top: 40px;
}

.section-works .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.section-works .btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

/* ----- 第三版块：入驻 ----- */
.section-join {
  background: var(--ink);
  color: var(--white);
  padding: 100px 0;
}

.section-join .section-title {
  color: var(--white);
}

.section-join .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.join-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .join-cards {
    grid-template-columns: 1fr;
  }
}

.join-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.join-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.join-card .join-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--vermillion-soft), var(--gold));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
}

.join-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 12px;
}

.join-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0 0 24px;
  line-height: 1.6;
}

.join-card .btn-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--white);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.join-card .btn-join:hover {
  background: var(--gold);
  color: var(--ink);
  transform: scale(1.02);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--ink-light);
  color: rgba(255, 255, 255, 0.8);
  padding: 32px 0;
  font-size: 0.9rem;
  text-align: center;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ----- 按钮通用 ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--vermillion-soft);
}

/* ----- 移动端导航 ----- */
@media (max-width: 900px) {
  .main-nav .nav-link:not(.nav-login):not(.nav-dash) {
    display: none;
  }

  .lang-switcher {
    margin-right: 8px;
  }
}
