@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garant:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Raleway:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --black: #000000;
  --dark: #0a0a0a;
  --darker: #111111;
  --gold: #C9A035;
  --gold-dim: rgba(201, 160, 53, 0.35);
  --white: #ffffff;
  --gray: #aaaaaa;
  --light-gray: #cccccc;
  --header-h: 228px;
  /* 精确值 = logo padding(18) + logo(150) + line(1) + nav(59) */
  --video-zoom: 0.5;
  /* 视频缩放：1.0=填满裁剪，<1 拉远看更多画面，>1 更近放大 */
}

/* ── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* 防止任何内容溢出产生横向滚动条 */
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Header ─────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--black);
}

.header-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0 0px;
}

.header-logo img {
  height: 150px;
  /* ← 调Logo大小改这里 */
  width: auto;
  display: inline;
}

.header-line {
  height: 0;
  border-top: 1px solid;
  border-image: linear-gradient(to right, transparent 0%, #C9A035 50%, transparent 100%) 1;
  margin: 0 60px;
}

/* ── Nav ────────────────────────────────────────────────── */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 20px;
}

nav a {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  color: var(--white);
  padding: 6px 12px;
  transition: color 0.25s;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: var(--gold);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* .nav-menu 在桌面端由 nav { display:flex } 已经处理，不需要额外声明
   如果在这里加 display:flex 会导致手机端 display:none 被覆盖（优先级bug）*/

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: calc(80vh - var(--header-h));
  /* 精确填满 header 下方全部可视区域 */
  margin-top: var(--header-h);
  /* 从 header 正下方开始，不被遮住 */
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

.hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  /* 基础尺寸设为容器的 2 倍：scale(0.5)×200%=100%，刚好铺满无黑边（广角）
   * --video-zoom 调节说明：
   *   0.5 → 广角，铺满容器（最拉远的有效值）
   *   0.7 → 轻微放大
   *   1.0 → 明显特写（只看中心区域）
   *   不建议低于 0.5（可能出现黑边）
   * 垂直位置：top 50%=居中，如需偏下改为 60%
   */
  min-width: 200%;
  min-height: 200%;
  width: auto;
  height: auto;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(var(--video-zoom));
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  /* ★ 黑色遮罩：0=无遮罩，0.35=轻薄，0.5=中等，0.7=较深 */
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 30px;
  max-width: 900px;
}

.hero-text h1 {
  font-family: 'Cormorant Garant', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1.22;
  letter-spacing: 0.03em;
  color: var(--white);
}

/* ── Sections ────────────────────────────────────────────── */
.section {
  padding: 90px 60px;
}

/* 内页：banner 紧接的第一个 section 上间距减半（所有内页同时生效）*/
.page-hero+.section {
  padding-top: 50px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
}

.section-bg-dark {
  background: var(--dark);
}

.section-bg-darker {
  background: var(--darker);
}

.section-label {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-heading {
  font-family: 'Cormorant Garant', serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 24px;
}

.section-heading-gold {
  color: var(--gold);
}

.gold-divider {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 32px;
}

.gold-divider-center {
  margin-left: auto;
  margin-right: auto;
}

.section-text {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.95;
  margin-bottom: 18px;
}

/* Center utility */
.text-center {
  text-align: center;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 32px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  margin-top: 10px;
}

.btn:hover {
  background: var(--gold);
  color: var(--black);
}

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

.btn-white:hover {
  background: var(--white);
  color: var(--black);
}

/* ── Competition Cards ───────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  margin-top: 50px;
}

.comp-card {
  background: var(--darker);
  border: 1px solid var(--gold-dim);
  padding: 50px 36px;
  transition: border-color 0.3s;
}

.comp-card:hover {
  border-color: var(--gold);
}

.comp-card h3 {
  font-family: 'Cormorant Garant', serif;
  font-weight: 400;
  font-size: 1.7rem;
  color: var(--gold);
  margin-bottom: 18px;
  line-height: 1.25;
}

.comp-card p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 12px;
}

.comp-card .tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  padding: 4px 10px;
  margin: 4px 4px 4px 0;
}

/* ── Classes Grid ────────────────────────────────────────── */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  margin-top: 40px;
}

.class-item {
  background: var(--darker);
  border: 1px solid var(--gold-dim);
  padding: 30px 20px;
  text-align: center;
  transition: border-color 0.3s, background 0.3s;
}

.class-item:hover {
  border-color: var(--gold);
  background: #1a1500;
}

.class-item .class-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.class-item h4 {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 6px;
}

.class-item p {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.5px;
}

/* ── Record Label Services ───────────────────────────────── */
.services-list {
  list-style: none;
  margin-top: 30px;
}

.services-list li {
  border-top: 1px solid var(--gold-dim);
  padding: 18px 0;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  color: var(--gray);
  font-size: 14.5px;
}

.services-list li:last-child {
  border-bottom: 1px solid var(--gold-dim);
}

.services-list .svc-num {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.4rem;
  color: var(--gold);
  min-width: 36px;
  line-height: 1;
  padding-top: 3px;
}

.services-list .svc-name {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.3rem;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

/* ── Artists Grid ────────────────────────────────────────── */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px;
  margin-top: 50px;
}

.artist-card {
  position: relative;
  overflow: hidden;
  background: var(--darker);
  aspect-ratio: 3/4;
}

.artist-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: transform 0.5s, filter 0.5s;
}

.artist-card:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.artist-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  padding: 40px 20px 18px;
}

.artist-info h4 {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 2px;
}

.artist-info span {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Contact Form ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 0;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 300;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info h3 {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 10px;
}

.contact-info a {
  color: var(--gold);
}

/* Flash messages — fixed overlay, no effect on document flow */
.flash-messages {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 900;
  pointer-events: none;  /* don't block clicks on content behind */
}

.flash {
  pointer-events: auto;
  padding: 14px 30px;
  margin: 0;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  text-align: center;
  border-top: 2px solid;
  transition: opacity 0.5s;
}

.flash.success {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(10, 10, 10, 0.96);
}

.flash.error {
  border-color: #c94040;
  color: #c94040;
  background: rgba(10, 10, 10, 0.96);
}

/* ── Social Icons ────────────────────────────────────────── */
.social-links {
  display: flex;
  gap: 18px;
  margin-top: 24px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold-dim);
  color: var(--gray);
  font-size: 14px;
  transition: border-color 0.3s, color 0.3s;
}

.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--black);
  border-top: 1px solid var(--gold-dim);
  padding: 40px 30px;
  text-align: center;
}

footer p {
  color: var(--gray);
  font-size: 12px;
  letter-spacing: 0.5px;
}

footer a {
  color: var(--gold);
}

/* ── Page header (inner pages) ───────────────────────────── */
.page-hero {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--darker);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--gold-dim);
  margin-top: var(--header-h);
  text-align: center;
  padding: 0 30px;
  position: relative;
}

/* dark overlay so text stays readable over any photo */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.page-hero>div {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: 'Cormorant Garant', serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  letter-spacing: 0.05em;
}

.page-hero .page-hero-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  :root {
    --header-h: 188px;
  }

  /* 手机端 nav 隐藏，高度 = logo padding(18)+logo(150)+line(1)+nav折叠(19) */

  .nav-toggle {
    display: block;
  }

  nav.nav-menu {
    display: none;
    /* 手机端默认隐藏，用 .nav-menu 提高优先级覆盖桌面端 */
    flex-direction: column;
    width: 100%;
    background: var(--black);
    padding: 0 0 16px;
  }

  nav.nav-menu.open {
    display: flex;
  }

  /* 点击汉堡展开 */
  nav a {
    padding: 10px 24px;
    font-size: 13px;
  }

  .header-logo {
    position: relative;
  }

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

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

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

  .comp-card {
    padding: 36px 24px;
  }

  /* Studio 区块手机端垂直堆叠 */
  #studio .container>div {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
}

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

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

  .hero-text h1 {
    font-size: 2rem;
  }
}

/* ── About page stats grid ───────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  text-align: center;
}

.stats-cell {
  padding: 50px 20px;
  border: 1px solid rgba(201, 160, 53, 0.25);
}

.stats-num {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  /* 自动缩小，不会撑破页面 */
  font-weight: 300;
  color: #C9A035;
  margin-bottom: 10px;
}

.stats-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa;
}

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

  /* 手机单列堆叠 */
  .stats-cell {
    padding: 30px 20px;
  }
}

/* ── Hero：手机端限制高度，不需要全屏那么高 ─────────────────── */
@media (max-width: 860px) {
  .hero {
    max-height: 500px;
  }
}