* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary-dark: #0a0a1a;
  --primary-blue: #12122e;
  --primary-red: #3d0a0a;
  --accent-blue: #1e3a5f;
  --accent-red: #8b0000;
  --text-light: #f0f0f0;
  --text-gray: #cccccc;
  --gradient-bg: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-red) 100%
  );
}

body {
  background-color: var(--primary-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 背景图与蒙层 */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: url("https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 26, 0.85);
  z-index: -1;
}

/* 导航栏 */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(18, 18, 46, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 2px solid var(--accent-red);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 2rem;
  color: var(--accent-red);
}

.logo h1 {
  font-size: 2.2rem;
  background: linear-gradient(to right, #4a6fa5, #c44545);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo span {
  color: var(--text-light);
  font-weight: 300;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
}

nav a:hover {
  color: var(--accent-red);
  background-color: rgba(139, 0, 0, 0.1);
}

/* 主要区域 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #4a6fa5, #c44545);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.hero p {
  font-size: 1.4rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  color: var(--text-gray);
}

/* 内容区域 */
.content-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  gap: 60px;
}

.content-section.reverse {
  flex-direction: row-reverse;
}

.text-content {
  flex: 1;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #4a6fa5, #c44545);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.highlight {
  color: #ff6b6b;
  font-weight: 600;
}

/* 应用截图占位 */
.screenshots-container {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.phone-mockup {
  width: 180px;
  height: 405px; /* 4:9宽高比 */
  background: var(--gradient-bg);
  border-radius: 25px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border: 8px solid #111;
}

.phone-mockup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(30, 58, 95, 0.4),
    rgba(139, 0, 0, 0.4)
  );
}

.phone-mockup:nth-child(2) {
  margin-top: 30px;
}

.phone-mockup:nth-child(3) {
  margin-top: 60px;
}

.phone-screen {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background-color: #1a1a2e;
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #666;
  font-size: 1.2rem;
}

.phone-screen i {
  font-size: 3rem;
  color: #444;
}

/* 社区特色部分 */
.features {
  padding: 80px 0;
  text-align: center;
}

.features h2 {
  font-size: 2.8rem;
  margin-bottom: 3rem;
  background: linear-gradient(to right, #4a6fa5, #c44545);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background-color: rgba(18, 18, 46, 0.7);
  padding: 30px;
  border-radius: 15px;
  border-top: 4px solid var(--accent-red);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(139, 0, 0, 0.2);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-red);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-light);
}

.feature-card p {
  color: var(--text-gray);
}

/* 页脚 */
footer {
  background-color: rgba(10, 10, 26, 0.95);
  padding: 50px 0 30px;
  margin-top: 80px;
  border-top: 1px solid rgba(139, 0, 0, 0.3);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  font-size: 2.5rem;
  background: linear-gradient(to right, #4a6fa5, #c44545);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  margin-bottom: 20px;
}

.contact-info {
  margin: 20px 0;
  font-size: 1.2rem;
  color: var(--text-gray);
}

.email-link {
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.email-link:hover {
  color: #ff4d4d;
  text-decoration: underline;
}

.copyright {
  color: #888;
  font-size: 1rem;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .content-section,
  .content-section.reverse {
    flex-direction: column;
    text-align: center;
  }

  .screenshots-container {
    margin-top: 40px;
  }

  nav ul {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .description {
    font-size: 1.1rem;
  }

  nav ul {
    display: none;
  }

  .screenshots-container {
    flex-wrap: wrap;
  }

  .phone-mockup {
    width: 150px;
    height: 337.5px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 150px 0 60px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .phone-mockup {
    width: 120px;
    height: 270px;
  }
}
