/* assets/css/style.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #F5E9DC;
  color: #1A1A1A;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
header {
  background: #1A1A1A;
  color: #fff;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #FF6A00;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav ul li a {
  color: #fff;
  font-size: 14px;
  padding: 5px 8px;
  transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #FF6A00;
}

.cta-btn {
  background: #FF6A00;
  color: #fff;
  padding: 8px 14px;
  border-radius: 3px;
  font-size: 13px;
}

/* Mobile */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 992px) {
  nav ul {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #1A1A1A;
    flex-direction: column;
    display: none;
    padding: 20px;
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* Sections */
section {
  padding: 80px 40px;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  height: 80vh;
  display: flex;
  align-items: center;
}

.hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 60px;
  opacity: 0.9;
}

.hero .overlay-text {
  font-size: 120px;
  opacity: 0.1;
  position: absolute;
  top: 20%;
  left: 10%;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.4) 40%,
    rgba(0,0,0,0) 70%
  );
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff; /* 强制白字 */
}
/* Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Split */
.split {
  display: flex;
  gap: 40px;
  align-items: center;
}

split

@media (max-width: 992px) {
  .split {
    flex-direction: column;
  }
}

/* Footer */
footer {
  background: #1A1A1A;
  color: #ccc;
  padding: 50px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-grid h4 {
  color: #fff;
  margin-bottom: 10px;
}

.footer-grid a {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 13px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 18px;
  background: #5A0F2E;
  color: #fff;
  margin-top: 15px;
  transition: 0.3s;
}

.btn:hover {
  background: #FF6A00;
}

/* Simple animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
/* ===== GLOBAL FIX: 防止全站横向溢出 ===== */

/* 1. 全局禁止横向滚动 */
html, body {
  overflow-x: hidden;
}

/* 2. 所有元素不允许撑出屏幕 */
* {
  max-width: 100%;
}

/* 3. 所有图片/视频自适应（关键） */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 4. 所有section防溢出 */
section {
  width: 100%;
  overflow: hidden;
}

/* 5. 修复绝对定位元素导致溢出 */
.hero,
.split,
.grid-3 {
  overflow: hidden;
}

/* 6. 防止因padding造成100vw溢出 */
body {
  box-sizing: border-box;
}