/* 主要配色与字体 */
:root {
  --primary-color: #165DFF;   /* 深蓝主色 */
  --accent-color: #FF7D00;    /* 橙色 */
  --bg-gradient: linear-gradient(135deg, #eaf1fb 0%, #b3d1ff 100%);
  --card-bg: rgba(22, 40, 80, 0.92); /* 深蓝灰半透明 */
  --card-shadow: 0 8px 32px rgba(22,93,255,0.18);
  --border-radius: 18px;
  --text-color: #f7f9fb;      /* 主文字浅色 */
  --text-secondary: #b0b8c9;  /* 次要文字 */
  --footer-bg: #0d1a36;
  --footer-text: #fff;
  --handwrite-font: 'Pacifico', cursive;
}

/* 全局背景和字体颜色 */
body {
  margin: 0;
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans', Arial, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
}

/* 顶部导航栏 */
.navbar {
  background: rgba(13,26,54,0.98);
  box-shadow: 0 2px 12px rgba(22,93,255,0.10);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
}
.logo-section {
  display: flex;
  align-items: center;
}
.logo-img {
  width: 40px;
  height: 40px;
}
.logo-text {
  font-family: var(--handwrite-font), cursive;
  font-size: 2rem;
  color: var(--primary-color);
  margin-left: 0.5rem;
  letter-spacing: 2px;
}
.nav-menu {
  display: flex;
  gap: 2rem;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.nav-link.active,
.nav-link:hover {
  color: var(--accent-color);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.download-btn {
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(255,125,0,0.08);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.download-btn:hover {
  background: linear-gradient(90deg, #ff9900, #3a7bff);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(22,93,255,0.15);
}
.lang-switcher {
  border: 1px solid #223366;
  border-radius: 8px;
  padding: 0.3rem 0.8rem;
  font-size: 1rem;
  background: #1a2a4d;
  color: var(--accent-color);
  cursor: pointer;
}

/* 首页介绍区 */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  color: var(--text-color);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}
.hero-content {
  flex: 1 1 350px;
  min-width: 300px;
}
.hero-content h1 {
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 2px 8px #165DFF44;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.hero-image {
  flex: 1 1 300px;
  text-align: right;
}
.hero-image img {
  max-width: 320px;
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px #165DFF33;
  border: 2px solid #223366;
}

/* 功能介绍区 */
.features-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  background: transparent;
}
.features-section h2 {
  text-align: center;
  color: var(--accent-color);
  margin-bottom: 2rem;
}
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.feature-card {
  background: var(--card-bg);
  color: #fff;
  border: 1px solid #223366;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 2rem 1.5rem;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 260px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 32px rgba(22,93,255,0.22);
}
.feature-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* 用户评价区 */
.reviews-section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  color: #fff;
  border: 1px solid #223366;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  box-sizing: border-box;
  width: 100%;
}
.reviews-section h2 {
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 2rem;
}
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.review-card {
  background: rgba(22,93,255,0.10);
  color: #fff;
  border-radius: var(--border-radius);
  border: 1px solid #223366;
  box-shadow: 0 2px 8px rgba(22,93,255,0.10);
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  transition: box-shadow 0.15s;
  margin: 0;
}
.review-card:hover {
  box-shadow: 0 8px 32px rgba(22,93,255,0.18);
}
.review-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.2rem;
  min-width: 0;
  width: 100%;
}
.review-header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.7rem;
}
.review-header-bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0.1rem;
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}
.review-user {
  font-weight: bold;
  color: var(--accent-color);
  font-size: 1.05rem;
  margin-bottom: 0.1rem;
  text-align: center;
  margin-left: 0;
}
.review-date {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0 0 0.2rem 0;
  text-align: center;
}
.review-content {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.9;
  display: block;
  min-height: unset;
  max-height: unset;
  white-space: pre-line;
  overflow: visible;
  text-overflow: unset;
  text-align: left;
  width: 100%;
}

/* 版本更新日志区 */
.changelog-section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  color: #fff;
  border: 1px solid #223366;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}
.changelog-section h2 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}
.changelog-list {
  list-style: none;
  padding: 0;
}
.changelog-list li {
  margin-bottom: 0.7rem;
  font-size: 1rem;
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  background: rgba(22,93,255,0.10);
  color: #fff;
  border-radius: 8px;
}

/* 联系我们、FAQ、Blog区 */
.contact-section, .faq-section, .blog-section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  color: #fff;
  border: 1px solid #223366;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}
.contact-section h2, .faq-section h2, .blog-section h2 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}
.faq-list {
  margin-top: 1rem;
}
.faq-item {
  margin-bottom: 1.2rem;
}
.faq-item h3 {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 0.3rem;
}
.faq-item p {
  margin: 0;
}
.blog-post {
  margin-bottom: 1.5rem;
}
.blog-post h3 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* 页脚Footer区 */
.footer {
  background: #0d1a36;
  color: #fff;
  padding: 2.5rem 1.5rem 1rem;
  margin-top: 3rem;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  gap: 2rem;
}
.footer-col {
  flex: 0 0 auto;
  min-width: 180px;
  margin-bottom: 1.5rem;
}
.footer-logo {
  width: 36px;
  height: 36px;
  vertical-align: middle;
}
.footer-logo-text {
  font-family: var(--handwrite-font), cursive;
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-left: 0.5rem;
  vertical-align: middle;
}
.footer-col h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 0.7rem;
}
.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--accent-color);
}
.footer-social a {
  color: #fff;
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: color 0.2s, transform 0.2s;
}
.footer-social a:hover {
  color: var(--accent-color);
  transform: scale(1.2);
}
.feedback-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feedback-form input,
.feedback-form textarea {
  border: none;
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
}
.feedback-form button {
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.feedback-form button:hover {
  background: var(--primary-color);
}
.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #b0b8c9;
}
.footer-bottom a {
  color: #b0b8c9;
  text-decoration: underline;
  margin: 0 0.5rem;
}
.footer-bottom a:hover {
  color: var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 900px) {
  .navbar-container, .hero-section, .features-section, .reviews-section, .changelog-section, .contact-section, .faq-section, .blog-section, .footer-container {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }
  .hero-image {
    text-align: center;
    margin-top: 1.5rem;
  }
  .features-list, .reviews-list {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-container {
    gap: 1rem;
  }
}
@media (max-width: 600px) {
  .navbar-container {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .footer-col {
    min-width: 120px;
  }
} 

/* 首页用户评价滚动展示模块 */
.home-reviews-carousel-section {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1.5rem 1rem 2.5rem 1rem;
  background: transparent;
}
.home-reviews-carousel {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1rem 0.5rem 1rem 0.5rem;
  scroll-behavior: smooth;
}
.home-reviews-carousel::-webkit-scrollbar {
  height: 8px;
  background: #1a2a4d;
  border-radius: 4px;
}
.home-reviews-carousel::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}
.home-reviews-carousel-card {
  background: var(--card-bg);
  color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  min-width: 320px;
  max-width: 340px;
  flex: 0 0 320px;
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #223366;
  transition: box-shadow 0.15s, transform 0.15s;
}
.home-reviews-carousel-card:hover {
  box-shadow: 0 8px 32px rgba(22,93,255,0.22);
  transform: translateY(-4px) scale(1.03);
}
.home-reviews-carousel-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.home-reviews-carousel-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}
.home-reviews-carousel-user {
  font-weight: bold;
  color: var(--accent-color);
}
.home-reviews-carousel-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-left: 0.5rem;
}
.home-reviews-carousel-content {
  margin-top: 0.5rem;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .home-reviews-carousel-card {
    min-width: 90vw;
    max-width: 95vw;
    padding: 1rem 0.5rem;
  }
} 

/* App Screenshot 轮播样式（两张并排） */
.app-screenshot-carousel {
  position: relative;
  width: 460px;
  height: 392px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 8px 32px #165DFF33;
  background: #111a2f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-screenshot-slide {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s;
}
.app-screenshot-slide.active {
  opacity: 1 !important;
  z-index: 2;
}
.app-screenshot-img {
  width: 210px;
  height: 392px;
  object-fit: cover;
  border-radius: 18px;
  margin: 0 5px;
  box-shadow: 0 4px 16px #165DFF22;
  background: #222b3a;
}
@media (max-width: 600px) {
  .app-screenshot-carousel {
    width: 90vw;
    height: 45vw;
    min-width: 160px;
    min-height: 80vw;
    max-width: 98vw;
    max-height: 98vw;
  }
  .app-screenshot-img {
    width: 44vw;
    height: 80vw;
    min-width: 70px;
    min-height: 120px;
  }
} 

/* 用户评论区首字母头像 */
.review-avatar-initial, .home-reviews-carousel-avatar-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--handwrite-font), cursive;
  font-size: 2rem;
  font-weight: bold;
  margin-right: 1rem;
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px #165DFF22;
}

/* 用户评论内容三行省略号，字体小一号，行距大一号 */
.review-content, .home-reviews-carousel-content {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.9;
  display: block;
  min-height: unset;
  max-height: unset;
  white-space: pre-line;
  overflow: visible;
  text-overflow: unset;
  width: 100%;
}

/* 标题美化 */
.features-section,
.home-reviews-carousel-section {
  text-align: center;
}

.features-section h2,
.home-reviews-carousel-section h2 {
  display: inline-block;
  background: rgba(255,255,255,0.7);
  border-radius: 1.5em;
  padding: 0.4em 1.6em;
  box-shadow: 0 2px 8px #165DFF22;
  margin-bottom: 2rem;
  font-weight: bold;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* 移动端适配 */
@media (max-width: 600px) {
  .review-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0.5rem;
    width: 100%;
  }
  .review-header {
    margin-bottom: 0.5rem;
    min-width: 0;
  }
  .review-header-top {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  .review-header-bottom {
    margin-top: 0.3rem;
  }
  .review-avatar-initial {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
  }
  .review-user {
    font-size: 0.98rem;
  }
  .review-date {
    font-size: 0.85rem;
  }
  .reviews-section {
    padding: 1rem 0.2rem;
    max-width: 100vw;
  }
}

/* Blog弹窗遮罩 */
#blog-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13,26,54,0.65);
  z-index: 9998;
  display: none;
}
/* Blog弹窗主体 */
#blog-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card-bg);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px #165DFF33;
  z-index: 9999;
  min-width: 320px;
  max-width: 95vw;
  width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  display: none;
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
}
.blog-modal-content {
  position: relative;
}
.blog-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 2rem;
  color: var(--accent-color);
  cursor: pointer;
  font-weight: bold;
  z-index: 10001;
  transition: color 0.2s;
}
.blog-modal-close:hover {
  color: #fff;
}
@media (max-width: 600px) {
  #blog-modal {
    width: 98vw;
    min-width: 0;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    border-radius: 12px;
  }
  .blog-modal-close {
    top: 0.7rem;
    right: 0.7rem;
    font-size: 1.6rem;
  }
}