* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #8b0000;
  --primary-light: #ff6b6b;
  --accent-color: #ff3333;
  --text-light: #ffffff;
  --text-dark: #222222;
  --gradient: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-light) 50%,
    var(--text-light) 100%
  );
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  overflow-x: hidden;
  position: relative;
}

/* 背景图与蒙层 */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.background-image {
  background-image: url("./4df7b741-18a4-4370-80ca-66d767cde7e3.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  width: 100%;
  height: 100%;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: -1;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0.15;
  z-index: -1;
}

/* 页头 */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(
    to right,
    var(--primary-light),
    var(--text-light)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 30px;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s;
  position: relative;
}

nav a:hover {
  color: var(--primary-light);
}

nav a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  left: 0;
  bottom: -5px;
  transition: width 0.3s;
}

nav a:hover:after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* 主内容区域 */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 60px;
}

.hero {
  text-align: center;
  margin-bottom: 80px;
  padding: 40px 0;
}

.hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(
    to right,
    var(--primary-light),
    var(--text-light)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.9);
}

.highlight {
  color: var(--primary-light);
  font-weight: 600;
}

/* 内容区块 */
.content-section {
  display: flex;
  align-items: center;
  margin-bottom: 100px;
  gap: 50px;
}

.content-section:nth-child(even) {
  flex-direction: row-reverse;
}

.text-content {
  flex: 1;
}

.text-content h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: var(--primary-light);
}

.text-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
}

.screenshot-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.screenshot {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 4/9;
  background: linear-gradient(
    135deg,
    rgba(139, 0, 0, 0.2),
    rgba(255, 107, 107, 0.2)
  );
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.screenshot-inner {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 20px;
}

.screenshot-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-light);
}

.screenshot-label {
  font-size: 1.2rem;
  font-weight: 600;
}

/* 社区特色部分 */
.community-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature-card {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-light);
}

.feature-desc {
  color: rgba(255, 255, 255, 0.8);
}

/* 页脚 */
footer {
  background-color: rgba(0, 0, 0, 0.9);
  padding: 50px 5% 30px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  margin-bottom: 30px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-light);
}

.email-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.email-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.copyright {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .content-section {
    flex-direction: column;
    margin-bottom: 70px;
  }

  .content-section:nth-child(even) {
    flex-direction: column;
  }

  .screenshot {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 5%;
  }

  .logo {
    font-size: 1.8rem;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
  }

  nav.active ul {
    display: flex;
  }

  nav li {
    margin: 10px 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .text-content h2 {
    font-size: 1.8rem;
  }

  .text-content p {
    font-size: 1.1rem;
  }

  .community-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .screenshot {
    max-width: 220px;
  }
}
