/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #172b4d;
  background-color: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部导航 */
.header {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  gap: 15px;
}

.nav-right-section {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
}

.logo-image {
  display: block;
  height: 30px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: #172b4d;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
  padding: 8px 0;
}

.nav-link:hover {
  color: #0052cc;
}

/* 语言切换器 */
.language-switcher {
  position: relative;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #DFE1E6;
  border-radius: 6px;
  color: #172b4d;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-btn:hover {
  background: #f3f4f6;
  border-color: #0052cc;
}

.language-btn i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.language-switcher.active .language-btn i {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid #DFE1E6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.language-switcher.active .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: block;
  padding: 10px 16px;
  color: #172b4d;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid #f3f4f6;
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background: #f3f4f6;
  color: #0052cc;
}

.language-option:first-child {
  border-radius: 8px 8px 0 0;
}

.language-option:last-child {
  border-radius: 0 0 8px 8px;
}

/* Hero 区域 */
.hero {
  background: white;
  padding: 60px 0 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.hero-left {
  text-align: left;
}

.hero-title {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -2px;
}

.hero-description {
  color: #42526e;
  margin-bottom: 40px;
}

.hero-illustration {
}

.hero-illustration-image {
  width: 250px;
  object-fit: contain;
}

/* .hero-right {
  padding-top: 54px;
} */

.section-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #42526e;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: white;
  border: 1px solid #DFE1E6;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  box-shadow: 0 4px 12px rgba(65, 105, 225, 0.15);
  transform: translateY(-2px);
}

.card-icon {
  margin-bottom: 8px;
  display: flex;
}
.card-icon-image {
  width: 40px;
  height: 40px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #172b4d;
  line-height: normal;
}

.card-desc {
  font-size: 12px;
  color: #7a869a;
  margin-bottom: 8px;
}

.card-footer {
  line-height: normal;
}

.card-btn-blue {
  display: inline-block; /* 让 a 标签像按钮一样 */
  text-decoration: none; /* 去掉下划线 */
  background-color: #fff;
  color: #0052cc; /* 蓝字 */
  border: 1px solid #0052cc; /* 蓝边 */
  border-radius: 4px; /* 圆角 */
  padding: 2px 8px; /* 内边距 */
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-btn-blue:hover {
  background-color: #0052cc; /* 悬停时蓝底白字 */
  color: #fff;
  text-decoration: none; /* 悬停时仍保持无下划线 */

}

/* 安装包介绍 */
.download-section {
  padding: 80px 0;
  background: #ffffff;
}

.download-platforms {
  margin-bottom: 32px;
}

.download-platforms .platform-tabs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.platform-tabs-wrapper {
  border-bottom: 1px solid #DFE1E6;
  margin: 0 48px;
}

.platform-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #64748b;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.platform-tab-image {
  font-size: 16px;
}

.platform-tab:hover {
  color: #0052cc;
}

.platform-tab.active {
  color: #0052cc;
  border-color: #0052cc;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
}

.download-info {
  max-width: 480px;
}

.download-title {
  font-size: 34px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.download-desc {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 48px;
}

.download-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid #0052cc;
  font-size: 16px;
  font-weight: 600;
  color: #0052cc;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.download-btn.primary {
  background: #0052cc;
  color: #ffffff;
}

.download-btn:hover {
  background: #2684FF;
  color: #ffffff;
}

.download-btn:hover {
  border-color: #2684FF;
}

.download-arrow {
  font-size: 14px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  font-size: 12px;
  color: rgba(0,0,0,.4);
  margin-bottom: 24px;
}

.download-desc {
  font-size: 14px;
}


.download-version {
  font-weight: 500;
  color: #6b7280;
}

.download-beta {
  color: #0052cc;
  text-decoration: none;
  white-space: nowrap;
}

.download-beta:hover {
  text-decoration: underline;
}

.download-preview {
  flex: 1;
  display: flex;
  justify-content: center;
}

.download-view {
  width: 100%;
  max-width: 700px;
  overflow: hidden;
}

.download-image {
  width: 100%;
  display: block;
  border-radius: 18px;
}

@media (max-width: 1024px) {
  .download-panel {
    flex-direction: column;
    padding: 32px;
    gap: 32px;
    text-align: center;
  }

  .download-info {
    max-width: 100%;
  }

  .download-actions {
    justify-content: center;
  }

  .download-meta {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .download-section {
    padding: 56px 0;
  }

  .platform-tab {
    font-size: 14px;
    padding: 10px 12px;
  }

  .download-panel {
    padding: 24px;
  }

  .platform-tabs-wrapper {
    margin: 0 24px;
  }


  .download-title {
    font-size: 28px;
  }

  .download-desc {
    font-size: 14px;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
  }

  .download-meta {
    flex-direction: column;
    gap: 8px;
  }
}


/* 社区活动 */
.community-events {
  padding: 20px 0;
  background: white;
}

.section-title {
  text-align: center;
  font-size: 48px;
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 15px;
  letter-spacing: -1.5px;
}

.section-description {
  text-align: center;
  color: #6b7280;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 50px;
  line-height: 1.8;
}

.calendar-wrapper {
  padding: 40px;
}

.calendar-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: -30px;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.calendar-nav {
  background: white;
  border: 1px solid transparent;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  transition: all 0.3s;
  color: #6b7280;
}

.calendar-nav:hover {
  background: #f3f4f6;
  /* border-color: #9ca3af; */
  color: #374151;
}

.calendars {
  display: flex;
  gap: 60px;
  justify-content: center;
  align-items: flex-start;
}

.calendar {
  flex: 1;
  max-width: 450px;
}

.calendar-month {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #2c3e50;
}

/* 日历表格基础 */
.calendar-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 8px 8px;
  table-layout: fixed;
}

.calendar-table th {
  padding: 10px 8px;
  font-weight: 600;
  color: #6b7280;
  font-size: 13px;
  text-transform: uppercase;
}

.calendar-table td {
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  height: 36px;
  border-radius: 8px;
}

.calendar-table td:empty {
  background: transparent;
  border: none;
  cursor: default;
}

.calendar-table td:hover:not(:empty) {
  background: #f3f4f6;
}

/* 整体事件线浅蓝底 */
.calendar-table td.range {
  background: #e7f0ff;
  color: #1b3a7a;
}

/* 中间段（默认圆角轻微） */
.calendar-table td.range-mid {
  border-radius: 6px;
}

/* 左端：深蓝圆角 */
.calendar-table td.range-start {
  background: #1f6aff;
  color: #fff;
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}

/* 右端：深蓝圆角 */
.calendar-table td.range-end {
  background: #1f6aff;
  color: #fff;
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

/* 单独日期（只有一个事件日） */
.calendar-table td.range-single {
  background: #1f6aff;
  color: #fff;
  border-radius: 999px;
}

/* 选中态 */
.calendar-table td.selected {
  background: #1f6aff !important;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
}

/* AI 提问区域 */
.ai-question {
  padding: 32px 0;
}

.question-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 24px;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 50px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ai-icon {
  font-size: 24px;
}

.question-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 15px;
  outline: none;
  color: #172b4d;
}

.question-input::placeholder {
  color: #999;
}

.send-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #42526e;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all 0.3s;
}

.send-btn:hover {
  background: #e0e0e0;
  color: #0052cc;
}

.service-icons {
  display: flex;
  gap: 16px;
  margin: 0 auto;
  overflow-x: auto;
  padding-bottom: 8px;
}

.service-icons::-webkit-scrollbar {
  height: 6px;
}

.service-icons::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.service-icons::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.service-icons::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.service-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 8px;
  min-width: 140px;
  flex-shrink: 0;
}

.service-icon:hover {
  background: #f8f9fa;
}

.service-icon span {
  font-size: 12px;
  color: #7a869a;
  text-align: center;
}

/* 产品卡片 */
.products {
  padding: 32px 0;
  background: white;
}

.products .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-card {
  background: white;
  border-radius: 4px;
  padding: 24px;
  border: 1px solid #DFE1E6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-height: 250px;
}

.product-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #DFE1E6;
  margin-bottom: 12px;
}

.product-icon {
  flex-shrink: 0;
}

.product-icon-image {
  width: 40px;
  height: 40px;
}

.product-content {
  flex: 1;
}

.product-title {
  font-size: 14px;
  font-weight: bold;
  color: #172b4d;
  /* margin-bottom: 2px; */
}

.product-desc {
  font-size: 12px;
  color: #42526e;
}

.product-link {
  color: #0052cc;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
  display: inline-block;
  white-space: nowrap;
}

.product-link:hover {
  text-decoration: underline;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.loading-tags {
  color: #999;
  font-size: 14px;
  font-style: italic;
  padding: 10px;
  text-align: center;
  width: 100%;
}

.product-tags .tag {
  text-decoration: none;
  background: #f3f5f7;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #42526e;
  transition: all 0.3s;
  cursor: pointer;
  display: inline-block;
}

/* 可点击的标签 - 蓝色样式 */
.product-tags .tag[href] {
  color: #0052cc;
  background: #dfeaff;
  
}

.product-tags .tag[href]:hover {
  background: #0052cc;
  color: #ffffff;
}

/* 禁用状态 */
.product-tags .tag.disabled {
  /* background: #e4e6ea;
  color: #a5adba; */
  cursor: not-allowed;
  opacity: 0.6;
}

.product-tags .tag.disabled:hover {
  /* background: #e4e6ea;
  color: #a5adba;
  transform: none;
  box-shadow: none; */
}

/* 页脚 */
.footer {
  background: #172b4d;
  color: #999;
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid #DFE1E6;
}

.footer p {
  margin: 0;
  font-size: 14px;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-left {
    text-align: center;
  }

  /* .hero-title {
    font-size: 42px;
  } */

  .hero-illustration {
    justify-content: center;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calendars {
    gap: 30px;
  }

  .section-title {
    font-size: 36px;
  }

  .products .container {
    grid-template-columns: 1fr;
  }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  /* 移动端导航 */
  .mobile-menu-btn {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    display: none;
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
    max-height: 300px;
  }

  .nav-link {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  /* 移动端布局调整 */
  .nav-wrapper {
    flex-wrap: wrap;
  }

  .nav-right-section {
    order: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }

  .language-switcher {
    order: 1;
  }

  .mobile-menu-btn {
    order: 2;
  }

  .language-btn {
    padding: 6px 10px;
    font-size: 13px;
  }

  .language-dropdown {
    right: 0;
    min-width: 120px;
  }

  .language-option {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Hero 区域 */
  .hero {
    padding: 30px 0;
  }

  /* .hero-title {
    font-size: 32px;
  } */

  .hero-illustration svg {
    width: 150px;
    height: 150px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .feature-card {
    padding: 16px;
  }

  /* 社区活动 */
  .community-events {
    padding: 16x 0;
  }

  .download-panel {
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    text-align: center;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .section-description {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .section-description br {
    display: none;
  }

  .calendar-wrapper {
    padding: 20px;
  }

  .calendar-nav-header {
    margin-bottom: -30px;
  }

  .calendars {
    flex-direction: column;
    gap: 30px;
    width: 100%;
  }

  .calendar {
    width: 100%;
  }

  .calendar-month {
    font-size: 16px;
  }

  .calendar-table th,
  .calendar-table td {
    padding: 8px 4px;
    font-size: 13px;
  }

  .calendar-nav {
    width: 35px;
    height: 35px;
  }

  /* AI 提问 */
  .ai-question {
    padding: 16px 0;
  }

  .question-box {
    padding: 15px 18px;
    margin-bottom: 30px;
  }

  .question-input {
    font-size: 14px;
  }

  .service-icons {
    gap: 8px;
    overflow-x: auto;
  }

  .service-icon {
    padding: 12px;
  }

  .service-icon svg {
    width: 28px;
    height: 28px;
  }

  .service-icon span {
    font-size: 12px;
  }

  /* 产品卡片 */
  .products {
    padding: 16px 0;
  }

  .products .container {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: 16px;
  }

  /* .product-title {
    font-size: 18px;
  }

  .product-desc {
    font-size: 13px;
  } */

  .product-tags {
    gap: 8px;
  }

  .tag {
    padding: 5px 12px;
    font-size: 12px;
  }

  /* 页脚 */
  .footer {
    padding: 20px 0;
  }

  .footer p {
    font-size: 13px;
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  /* .hero-title {
    font-size: 26px;
  } */

  .section-title {
    font-size: 24px;
  }

  .calendar-table th,
  .calendar-table td {
    padding: 6px 2px;
    font-size: 12px;
  }

  .product-icon svg {
    width: 32px;
    height: 32px;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* .feature-card, */
.product-card {
  animation: fadeIn 0.5s ease-out;
}

/* 滚动行为 */
html {
  scroll-behavior: smooth;
}
