:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --text: #f5f5f5;
  --muted: #bdbdbd;
  --accent: #c9a84c;
  --card: #151515;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 40px;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.lang-switcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  z-index: 50;
}

.lang-btn {
  background: rgba(10, 10, 10, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.logo img {
  height: 56px;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.main-nav {
  display: flex;
  gap: 4px;
  font-weight: 500;
}

.nav-tab {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.nav-tab:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.nav-tab.active {
  color: var(--accent);
  background: rgba(201,168,76,0.12);
  border-bottom: 2px solid var(--accent);
}

.hero {
  position: relative;
  width: min(1200px, 92%);
  margin: 0 auto;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  background-image: url("images/res/bg_en.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  overflow: hidden;
  border-radius: 20px;
}

html[lang="zh-CN"] .hero {
  background-image: url("images/res/bg.jpg");
}

html[lang="en"] .hero {
  background-image: url("images/res/bg_en.jpg");
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 150px 110px 160px 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  min-height: 620px;
}

.hero-motto {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.4vw, 64px);
  margin-bottom: 18px;
  color: #111111;
  font-size: clamp(20px, 2.5vw, 42px);
  font-weight: 100;
  letter-spacing: 0.28em;
}

.hero-content h1 {
  width: auto;
  font-size: clamp(72px, 9vw, 150px);
  line-height: 1;
  margin-bottom: 36px;
  color: #000000;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
}

.hero-subtitle-wrap {
  width: auto;
  display: block;
}

.hero-subtitle-line {
  display: none;
}

.hero-subtitle {
  max-width: none;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.92);
  text-align: left;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(373px, 1.33fr);
  gap: 40px;
  align-items: start;
  margin-top: 150px;
}

.about-text {
  position: relative;
}

.about-text h2 {
  font-size: 43px;
  margin-top: -92px;
  margin-bottom: 64px;
  color: var(--accent);
}

.about-text p {
  color: var(--muted);
  margin-bottom: 14px;
}

.about-text p:first-of-type {
  font-size: 24px;
  color: var(--text);
  margin-top: -40px;
  margin-bottom: 18px;
}

.about-gallery {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--accent);
}

.team-panel {
  background: var(--bg-soft);
  padding: 96px 0;
}

.team-section-header {
  max-width: 900px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.team-member-card {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.team-member-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.team-member-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1 / 1;
  border: 3px solid rgba(201, 168, 76, 0.35);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  overflow: hidden;
}

.team-member-meta {
  min-width: 0;
}

.team-member-role {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.22);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.team-member-name {
  font-size: 28px;
  line-height: 1.2;
}

.team-member-bio {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.projects-panel {
  padding: 96px 0;
}

.news-panel {
  background: var(--bg-soft);
  padding: 96px 0;
}

.contact-panel {
  padding: 96px 0;
}

.contact-shell {
  display: block;
}

.contact-intro {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.16), rgba(201, 168, 76, 0.04));
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 24px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.contact-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.24);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.contact-intro h2 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact-intro p {
  color: var(--muted);
  max-width: 28ch;
}

.contact-content {
  display: grid;
  gap: 20px;
}

.contact-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 28px 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.contact-card h3 {
  font-size: 24px;
  margin-bottom: 18px;
  color: var(--accent);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list li {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-list a {
  color: var(--text);
  font-size: 18px;
  transition: color 0.2s ease;
  word-break: break-all;
}

.contact-list a:hover {
  color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.project-card.active {
  border-color: rgba(201, 168, 76, 0.65);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.12), rgba(21, 21, 21, 0.96));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

.project-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.project-card-body {
  padding: 20px;
}

.project-card-body h3 {
  margin-bottom: 10px;
}

.project-card-body p {
  color: var(--muted);
}

.project-detail {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(466px, 700px) 1fr;
  gap: 28px;
  align-items: stretch;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
}

.project-detail.hidden,
.project-showcase.hidden {
  display: none;
}

.project-showcase {
  margin-top: 48px;
  padding: 36px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.08), rgba(255, 255, 255, 0.01)), rgba(10, 10, 10, 0.78);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.showcase-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.showcase-items {
  display: grid;
  gap: 40px;
}

.showcase-item {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.showcase-item.reverse {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.showcase-item-media img,
.showcase-item-media video {
  width: 100%;
  border-radius: 18px;
  background: #000;
}

.showcase-item-text h4 {
  font-size: 28px;
  margin-bottom: 14px;
}

.showcase-item-text p,
.project-detail-meta,
.project-detail-content p,
.showcase-intro-main p {
  color: var(--muted);
}

.project-detail-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.14);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 1px;
}

.showcase-intro-main h3,
.project-detail-content h3 {
  font-size: 36px;
  margin-bottom: 16px;
}

.project-detail-meta {
  list-style: none;
  display: grid;
  gap: 14px;
}

.project-detail-meta li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px 16px;
}

.project-detail-media img,
.project-detail-media video {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 16px;
  background: #000;
}

#project-detail-media-c img {
  aspect-ratio: 13 / 8;
  height: auto;
  min-height: 0;
}

html[lang="en"] #project-detail-media-b img {
  aspect-ratio: 35 / 24;
  height: auto;
  min-height: 0;
}

.news-list {
  display: grid;
  gap: 24px;
}

.news-card {
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.news-date {
  display: inline-block;
  color: var(--accent);
  margin-bottom: 14px;
}

.news-card h3 {
  margin-bottom: 12px;
}

.news-card p {
  color: var(--muted);
}

.news-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent);
}

.news-card-image {
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  margin-bottom: 18px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 0 20px;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand img {
  height: 44px;
  filter: brightness(0) invert(1);
}

.footer-copy {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .about-content,
  .contact-shell,
  .project-detail,
  .showcase-intro,
  .showcase-item {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 132px 72px 136px 180px;
  }

  .hero-content h1 {
    font-size: clamp(60px, 8vw, 110px);
  }

  .section-header h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .nav-wrapper,
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    min-height: 520px;
    padding: 96px 36px 92px 96px;
  }

  .hero-motto {
    gap: 14px 24px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    font-size: clamp(18px, 4vw, 28px);
    letter-spacing: 0.18em;
  }

  .hero-content h1 {
    font-size: clamp(54px, 11vw, 92px);
    margin-bottom: 22px;
    max-width: none;
  }

  .hero-subtitle-wrap {
    width: 100%;
  }

  .hero-subtitle {
    font-size: 18px;
    max-width: 100%;
    letter-spacing: 0.12em;
    white-space: normal;
  }

  .about-content {
    margin-top: 80px;
  }

  .about-text h2 {
    margin-top: 0;
    margin-bottom: 28px;
    font-size: 34px;
  }

  .about-text p:first-of-type {
    margin-top: 0;
    font-size: 20px;
  }

  .carousel-slide img {
    height: 260px;
  }

  .team-member-card {
    padding: 22px;
  }

  .team-member-head {
    align-items: flex-start;
  }

  .team-member-avatar {
    width: 76px;
    height: 76px;
  }

  .team-member-name {
    font-size: 24px;
  }

  .showcase-intro-main h3,
  .project-detail-content h3 {
    font-size: 30px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100%, calc(100% - 32px));
  }

  .section-header h2 {
    font-size: 26px;
    letter-spacing: 2px;
  }

  .hero {
    min-height: 440px;
    border-radius: 16px;
  }

  .hero-content {
    min-height: 440px;
    padding: 74px 18px 52px 36px;
  }

  .hero-motto {
    margin-bottom: 12px;
    gap: 10px 16px;
    font-size: clamp(16px, 5.2vw, 22px);
    letter-spacing: 0.14em;
  }

  .hero-content h1 {
    font-size: clamp(40px, 13vw, 58px);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
  }

  .hero-subtitle-wrap {
    width: 100%;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0.08em;
    white-space: normal;
  }

  .lang-switcher {
    right: 16px;
    bottom: 16px;
  }

  .team-member-head {
    flex-direction: column;
  }

  .team-member-role {
    margin-bottom: 8px;
  }

  .project-showcase,
  .project-detail,
  .contact-intro,
  .contact-card,
  .news-card,
  .team-member-card {
    padding: 20px;
  }

  .footer-main {
    align-items: flex-start;
    gap: 12px;
  }
}
