/* NV MAX 官网样式 - 优雅沉稳版 */

:root {
  --primary-color: #3482ff;
  --primary-dark: #2668e0;
  --primary-light: #5b9aff;
  --secondary-color: #6b7aff;
  --text-color: #1a1a1a;
  --text-secondary: #666;
  --bg-color: #ffffff;
  --card-bg: #fafbfc;
  --border-color: #e8ecef;
  --shadow-sm: 0 2px 8px rgba(52, 130, 255, 0.08);
  --shadow-md: 0 4px 16px rgba(52, 130, 255, 0.12);
  --shadow-lg: 0 8px 24px rgba(52, 130, 255, 0.15);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --primary-color: #5b9aff;
  --primary-dark: #3482ff;
  --primary-light: #7aafff;
  --text-color: #e8e8e8;
  --text-secondary: #a0a0a0;
  --bg-color: #0f1419;
  --card-bg: #1a1f26;
  --border-color: #2a3038;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: var(--transition);
  overflow-x: hidden;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}
/* 加载动画 */
/* Loader样式已内联到HTML头部，确保立即显示 */

@keyframes shadow324 {
  0%,
  100% {
    transform: scale(1, 1);
  }

  50% {
    transform: scale(1.2, 1);
  }
}

/* 自定义字体 */
@font-face {
  font-family: "TitleFont";
  src: url("../font/title.ttf") format("truetype");
  font-display: swap;
}

.title-font {
  font-family: "TitleFont", sans-serif;
}

/* 夜间模式切换按钮 */
.theme-toggle {
  position: fixed;
  bottom: 86px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 1000;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--primary-dark);
}

/* 首屏区域 - 白色毛玻璃效果 */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3482ff 0%, #6b7aff 100%);
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
}

/* 白色毛玻璃层 */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(120px);
  -webkit-backdrop-filter: blur(120px);
  pointer-events: none;
}

/* 彩色模糊点装饰 - 性能优化版 */
.hero-section::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle 150px at 15% 20%,
      rgba(52, 130, 255, 0.25),
      transparent
    ),
    radial-gradient(
      circle 120px at 85% 30%,
      rgba(107, 122, 255, 0.2),
      transparent
    ),
    radial-gradient(
      circle 100px at 25% 70%,
      rgba(91, 154, 255, 0.18),
      transparent
    ),
    radial-gradient(
      circle 130px at 75% 80%,
      rgba(52, 130, 255, 0.22),
      transparent
    );
  filter: blur(35px);
  animation: colorMove 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes colorMove {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.7;
  }
}

.hero-content {
  text-align: center;
  color: var(--primary-color);
  z-index: 2;
  animation: fadeIn 1s ease-out;
  max-width: 600px;
  position: relative;
}

/* 雪花效果 - 真实飘落版 */
@keyframes snowfall {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) translateX(40px);
    opacity: 0;
  }
}

.snowflake {
  position: absolute;
  color: white;
  font-size: 1.4em;
  opacity: 0.9;
  pointer-events: none;
  animation: snowfall linear infinite;
  text-shadow: 0 0 10px rgba(255, 255, 255, 1);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
}

/* 随机初始位置和延迟 - 更真实的飘落 */
.snowflake:nth-child(1) {
  left: 10%;
  top: -5%;
  animation-duration: 11s;
  animation-delay: 0s;
  font-size: 1.3em;
}
.snowflake:nth-child(2) {
  left: 20%;
  top: -15%;
  animation-duration: 13s;
  animation-delay: 3s;
  font-size: 1.5em;
}
.snowflake:nth-child(3) {
  left: 30%;
  top: -25%;
  animation-duration: 15s;
  animation-delay: 6s;
  font-size: 1.6em;
}
.snowflake:nth-child(4) {
  left: 40%;
  top: -8%;
  animation-duration: 12s;
  animation-delay: 2s;
  font-size: 1.4em;
}
.snowflake:nth-child(5) {
  left: 50%;
  top: -20%;
  animation-duration: 14s;
  animation-delay: 5s;
  font-size: 1.2em;
}
.snowflake:nth-child(6) {
  left: 60%;
  top: -12%;
  animation-duration: 13s;
  animation-delay: 4s;
  font-size: 1.5em;
}
.snowflake:nth-child(7) {
  left: 70%;
  top: -18%;
  animation-duration: 16s;
  animation-delay: 7s;
  font-size: 1.7em;
}
.snowflake:nth-child(8) {
  left: 80%;
  top: -10%;
  animation-duration: 12s;
  animation-delay: 1s;
  font-size: 1.3em;
}
.snowflake:nth-child(9) {
  left: 90%;
  top: -22%;
  animation-duration: 14s;
  animation-delay: 8s;
  font-size: 1.4em;
}

.app-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

.app-title {
  font-size: 3em;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #3482ff 0%, #6b7aff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.app-slogan {
  font-size: 1.2em;
  margin-bottom: 40px;
  font-weight: 400;
  color: #2668e0;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 12px;
}

.app-slogan::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
  border-radius: 2px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  animation: float 2s ease-in-out infinite;
  z-index: 10;
}

.scroll-indicator i {
  font-size: 32px;
  color: var(--primary-color);
  filter: drop-shadow(0 2px 4px rgba(52, 130, 255, 0.3));
}

@keyframes float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(12px);
    opacity: 0.7;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 区域 */
.section {
    padding: 60px 0;
    position: relative;
}

.section-title {
    font-size: 2.25em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

/* 下载区域 */
.download-section {
    background: var(--bg-color);
}

.download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 0;
}

/* 下载按钮文字容器 */
.download-text {
    position: relative;
    display: inline-block;
}

.version-badge {
    position: absolute;
    top: -10px;
    left: 100%;
    margin-left: 4px;
    background: #10b981;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 16px;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0.3px;
}

.btn {
  padding: 14px 32px;
  border-radius: var(--border-radius);
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
  padding: 16px 45px;
  font-size: 17px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-color);
  border: 1.5px solid var(--border-color);
  padding: 16px 45px;
  font-size: 17px;
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* 功能介绍区域 */
.features-section {
  background: linear-gradient(180deg, var(--bg-color) 0%, var(--card-bg) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-color);
  padding: 36px 28px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  will-change: transform;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card:nth-child(1) .feature-icon {
  color: #10b981;
}

.feature-card:nth-child(2) .feature-icon {
  color: #3482ff;
}

.feature-card:nth-child(3) .feature-icon {
  color: #f59e0b;
}

.feature-title {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-color);
  font-weight: 600;
}

.feature-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 15px;
}

/* 软件介绍区域 */
.about-section {
  background: var(--bg-color);
}

.about-content {
  background: var(--card-bg);
  padding: 48px 40px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  line-height: 1.9;
  font-size: 16px;
  text-align: center;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* 截图预览区域 - 横向滚动 */
.screenshots-section {
  background: var(--bg-color);
  padding: 80px 0;
}

.screenshots-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--card-bg);
  -webkit-overflow-scrolling: touch;
}

.screenshots-slider::-webkit-scrollbar {
  height: 8px;
}

.screenshots-slider::-webkit-scrollbar-track {
  background: var(--card-bg);
  border-radius: 4px;
}

.screenshots-slider::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.screenshots-slider::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.screenshot-item {
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: center;
  transition: var(--transition);
}

.screenshot-item:hover {
  transform: translateY(-5px);
}

.screenshot-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  display: block;
  border: 1px solid var(--border-color);
}

/* 页脚 */
.footer {
  background: #1a1f26;
  color: rgba(255, 255, 255, 0.8);
  padding: 50px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 600;
  color: white;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  font-size: 13px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 20px;
  }

  .app-logo {
    width: 100px;
    height: 100px;
  }

  .app-title {
    font-size: 2em;
  }

  .app-slogan {
    font-size: 1.05em;
    letter-spacing: 1px;
  }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.75em;
        margin-bottom: 32px;
    }

  .container {
    padding: 0 16px;
  }

    .download-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 15px 35px;
        font-size: 16px;
    }
    
    .version-badge {
        font-size: 9px;
        padding: 2px 6px;
        margin-left: 3px;
        top: -8px;
    }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 28px 24px;
  }

  .about-content {
    padding: 32px 24px;
  }

  .screenshots-slider {
    padding: 20px 16px;
  }

  .screenshot-item {
    width: 200px;
  }

  .footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    font-size: 13px;
  }

  .footer-section h3 {
    font-size: 14px;
  }

  .footer-links a {
    font-size: 13px;
  }

  .theme-toggle,
  .back-to-top {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .theme-toggle {
    bottom: 70px;
    right: 20px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

/* 动画效果 - 更丝滑版 */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 移除will-change在动画完成后 */
.animate-on-scroll.animated {
  will-change: auto;
}

/* 加载优化 */
img {
  max-width: 100%;
  height: auto;
}

/* 选中文本样式 */
::selection {
  background: var(--primary-light);
  color: white;
}

::-moz-selection {
  background: var(--primary-light);
  color: white;
}
