/* ==========================================================================
   天垣力（重庆）酒店管理公司官网
   视觉基调：深色高端 + 香槟金点缀（酒店管理公司调性）
   ========================================================================== */

/*
 * 字体方案：思源黑体 WOFF2 自托管（预留）
 * 将字体文件放入 static/fonts/ 后取消以下注释即可启用。
 * 建议文件：SourceHanSansSC-Regular.woff2 / SourceHanSansSC-Bold.woff2
 */
/* @font-face {
  font-family: "Source Han Sans SC";
  src: url("../fonts/SourceHanSansSC-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Han Sans SC";
  src: url("../fonts/SourceHanSansSC-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
} */

:root {
  --bg: #0e1014;
  --bg-soft: #14171d;
  --card-bg: rgba(20, 23, 29, 0.72);
  --gold: #c9a86a;
  --gold-light: #e0c488;
  --text: #f4efe4;
  --text-dim: rgba(244, 239, 228, 0.72);
  --text-faint: rgba(244, 239, 228, 0.45);
  --line: rgba(201, 168, 106, 0.28);
  --font: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --header-h: 64px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============ 顶部导航 ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(14, 16, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}

.nav-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
}
.nav-logo span {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 400;
  margin-top: -2px;
}

.nav-links { display: flex; gap: 34px; }
.nav-links a {
  position: relative;
  font-size: 15px;
  color: var(--text-dim);
  transition: color .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,16,20,.55) 0%, rgba(14,16,20,.35) 45%, rgba(14,16,20,.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}
.hero-title {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: 6px;
  line-height: 1.3;
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.hero-en {
  margin-top: 14px;
  font-size: clamp(11px, 1.6vw, 16px);
  letter-spacing: 4px;
  color: var(--gold-light);
}
.hero-slogan {
  margin-top: 22px;
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 3px;
  color: var(--text-dim);
}
.hero-cta {
  display: inline-block;
  margin-top: 34px;
  padding: 12px 40px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  letter-spacing: 4px;
  font-size: 15px;
  border-radius: 40px;
  transition: background .3s ease, color .3s ease;
}
.hero-cta:hover { background: var(--gold); color: #1a1510; }
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--text-faint);
  animation: floatDown 2.2s ease-in-out infinite;
}
@keyframes floatDown {
  0%, 100% { transform: translate(-50%, 0); opacity: .5; }
  50% { transform: translate(-50%, 10px); opacity: 1; }
}

/* ============ 通用 Section ============ */
.section { padding: 90px 20px; max-width: 1280px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 5px;
  font-weight: 700;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px; height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-sub {
  margin-top: 10px;
  letter-spacing: 3px;
  font-size: 13px;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* ============ 实拍轮播 ============ */
.gallery { padding: 90px 20px 40px; max-width: 1280px; margin: 0 auto; }
.swiper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.swiper-track {
  display: flex;
  transition: transform .55s cubic-bezier(.25,.8,.3,1);
}
.swiper-slide {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}
.swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(14,16,20,.55);
  color: var(--gold-light);
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease;
  user-select: none;
}
.swiper-btn:hover { background: rgba(201,168,106,.25); }
.swiper-btn.prev { left: 14px; }
.swiper-btn.next { right: 14px; }
.swiper-dots {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.swiper-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(244,239,228,.35);
  transition: all .3s ease;
}
.swiper-dots .dot.active { background: var(--gold); width: 22px; border-radius: 6px; }

/* ============ 公司概况 ============ */
.ov-block {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 320px;
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
}
.ov-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(14,16,20,.88) 100%);
}
.ov-text {
  position: relative;
  z-index: 2;
  padding: 34px 36px;
  max-width: 760px;
}
.ov-text h3 {
  font-size: 24px;
  letter-spacing: 3px;
  margin-bottom: 10px;
  color: var(--gold-light);
}
.ov-text p { color: var(--text-dim); font-size: 15px; }
.ov-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  margin-top: 8px;
}
.ov-list li {
  padding: 6px 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text-dim);
}

.ov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.ov-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.ov-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(14,16,20,.9) 100%);
  transition: opacity .3s ease;
}
.ov-tag {
  position: relative;
  z-index: 2;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.ov-card p {
  position: relative;
  z-index: 2;
  font-size: 13px;
  color: var(--text-dim);
}

/* ============ 公司团队 ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.team-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}
.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(14,16,20,.92) 100%);
}
.team-tag {
  position: relative;
  z-index: 2;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.team-card p {
  position: relative;
  z-index: 2;
  font-size: 13px;
  color: var(--text-dim);
}

/* ============ 品牌矩阵 ============ */
.brand-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}
.brand-tab {
  padding: 8px 22px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 2px;
  transition: all .25s ease;
}
.brand-tab:hover { color: var(--gold-light); border-color: var(--gold); }
.brand-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1510;
  font-weight: 700;
}

.brand-swiper {
  position: relative;
  overflow: hidden;
  padding: 6px 4px 20px;
}
.brand-track {
  display: flex;
  gap: 18px;
  transition: transform .55s cubic-bezier(.25,.8,.3,1);
  will-change: transform;
}
.brand-card {
  position: relative;
  flex: 0 0 calc((100% - 36px) / 3);
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.brand-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,16,20,.1) 40%, rgba(14,16,20,.9) 100%);
}
.brand-name {
  position: relative;
  z-index: 2;
  padding: 22px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
}
.brand-name span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--gold-light);
}

/* ============ 页脚 ============ */
.site-footer {
  margin-top: 40px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 60px 20px 30px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer-brand h3 {
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--gold-light);
}
.footer-brand p {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-faint);
}
.footer-contact h4 {
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: var(--text);
}
.footer-contact p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.contact-placeholder { color: var(--text-faint); font-style: italic; }
.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text-faint);
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .ov-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-card { flex-basis: calc((100% - 18px) / 2); }
}

@media (max-width: 768px) {
  .section { padding: 64px 16px; }
  .gallery { padding: 64px 16px 24px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(14,16,20,.97);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    border-top: 1px solid rgba(201,168,106,.12);
  }
  .nav-links a::after { display: none; }

  .hero { min-height: 560px; }
  .ov-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { min-height: 300px; }
  .ov-block { min-height: 260px; }
  .ov-text { padding: 24px; }

  .brand-card { flex: 0 0 100%; aspect-ratio: 16 / 10; }
  .brand-name { padding: 18px; font-size: 18px; }

  .swiper-btn { width: 38px; height: 38px; font-size: 20px; }
}

@media (max-width: 480px) {
  .brand-card { aspect-ratio: 4 / 3; }
  .ov-card { min-height: 200px; }
}

/* ============ 图片放大 Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  padding: 24px;
}
.lightbox.show { display: flex; }
.lightbox-img {
  max-width: 94vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0, 0, 0, .7);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 28px;
  font-size: 46px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: color .2s ease;
}
.lightbox-close:hover { color: var(--gold-light); }
