* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

:root {
  --primary-orange: #ff5a1f;
  --dark-orange: #e53e3e;
  --dark-bg: #0f0f0f;
  --card-bg: #1a1a1a;
  --text-light: #f5f5f5;
  --text-gray: #f5f5f5;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* 背景与渐变层 */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: url("./photo-1469854523086-cc02fe5d8800.avif") center/cover
    no-repeat;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 90, 31, 0.15),
    rgba(15, 15, 15, 0.95)
  );
  z-index: -1;
}

/* 导航栏 */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 90, 31, 0.3);
  padding: 1rem 5%;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-orange);
  text-decoration: none;
}

.logo-icon {
  color: var(--primary-orange);
  font-size: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav-links a:hover {
  color: var(--primary-orange);
  background-color: rgba(255, 90, 31, 0.1);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* 主要区域 */
main {
  margin-top: 80px;
}

section {
  padding: 5rem 5%;
}

/* Hero区域 */
.hero {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(
    to right,
    var(--primary-orange),
    var(--dark-orange)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tagline {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 2rem;
}

.hero p {
  max-width: 800px;
  margin: 0 auto 3rem;
  color: #ffff;
  font-size: 1.2rem;
}

/* 内容区域 */
.content-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
}

.content-section:nth-child(even) {
  flex-direction: row-reverse;
}

.content-text {
  flex: 1;
  min-width: 300px;
}

.content-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-orange);
  position: relative;
  display: inline-block;
}

.content-text h2:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-orange), transparent);
}

.content-text p {
  color: var(--text-gray);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* App截图占位 */
.screenshot-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.screenshot-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 500px;
}

.screenshot {
  background: linear-gradient(145deg, var(--card-bg), #222);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  width: 100%;
  object-fit: contain;
}


.screenshot-header {
  height: 40px;
  background: linear-gradient(
    to right,
    var(--primary-orange),
    var(--dark-orange)
  );
  margin: 15px 15px 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.screenshot-content {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screenshot-item {
  height: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.screenshot-item.wide {
  width: 80%;
}

.screenshot-item.medium {
  width: 60%;
}

.screenshot-item.small {
  width: 40%;
}

.screenshot-footer {
  height: 50px;
  background: rgba(255, 90, 31, 0.05);
  margin: 0 15px 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.screenshot-footer div {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

/* 社区特色区域 */
.community-features {
  text-align: center;
  padding: 4rem 5%;
  background-color: rgba(26, 26, 26, 0.6);
  border-radius: 20px;
  margin: 4rem 5%;
}

.community-features h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-orange);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background-color: rgba(255, 90, 31, 0.05);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 90, 31, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-orange);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-orange);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-gray);
}

/* 页脚 */
footer {
  background-color: rgba(10, 10, 10, 0.9);
  padding: 3rem 5%;
  text-align: center;
  border-top: 1px solid rgba(255, 90, 31, 0.3);
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info h3 {
  color: var(--primary-orange);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.email-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.email-link:hover {
  color: var(--primary-orange);
  text-decoration: underline;
}

.copyright {
  color: var(--text-gray);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero .tagline {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(15, 15, 15, 0.95);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease;
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero .tagline {
    font-size: 1.3rem;
  }

  .content-section,
  .content-section:nth-child(even) {
    flex-direction: column;
  }

  .screenshot-wrapper {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 3rem 5%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

  .content-text h2 {
    font-size: 1.8rem;
  }

  .community-features h2 {
    font-size: 2rem;
  }
}
