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

:root {
  --blue-primary: #3370ff;
  --blue-hover: #2860e0;
  --text-primary: #1a1a1a;
  --text-secondary: #666;
  --text-light: #999;
  --bg-page: #f5f5f5;
  --bg-white: #fff;
  --bg-nav: rgba(255, 255, 255, 0.92);
  --border-color: #e8e8e8;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-nav: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --cdn: https://lf-flow-web-cdn.doubao.com/obj/flow-doubao/doubao/desktop_online_web/static/image;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ========== NAV ========== */
.nav-wrapper {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50px;
  padding: 8px 8px 8px 16px;
  box-shadow: var(--shadow-nav);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-right: 8px;
  flex-shrink: 0;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo span {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.nav-links a.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* ========== 下载条与 msn 接口按钮（.dl-btn + .js-download） ========== */
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  border: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dl-item-info {
  flex: 1;
  min-width: 0;
}

.dl-item-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.dl-item-meta {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-download {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--blue-primary);
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
  white-space: nowrap;
  margin-left: 4px;
}

.nav-download.dl-btn {
  gap: 6px;
}

.nav-download.dl-btn i {
  font-size: 13px;
  opacity: 0.95;
}

.nav-download:hover {
  background: var(--blue-hover);
}

/* ========== HERO ========== */
.hero {
  text-align: center;
  padding: 140px 20px 40px;
  background: var(--bg-page);
}

.hero-kicker {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-primary);
  letter-spacing: 0.06em;
  text-transform: none;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
}

.hero-dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px 20px;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

.hero-dl-item {
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: var(--bg-white);
  padding: 20px 20px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

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

.hero-actions.hero-dl-grid {
  display: grid;
}

.hero-actions.hero-dl-grid .hero-web-link {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 8px;
}

.cta-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  background: var(--blue-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(51, 112, 255, 0.3);
}

.btn-download:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(51, 112, 255, 0.4);
}

.btn-download .apple-icon {
  width: 20px;
  height: 20px;
}

.hero-web-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 0;
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-web-link:hover {
  color: var(--text-primary);
}

.hero-web-link .arrow {
  transition: transform 0.2s;
}

.hero-web-link:hover .arrow {
  transform: translateX(3px);
}

/* ========== APP MOCKUP ========== */
.app-mockup-section {
  padding: 20px 20px 60px;
  display: flex;
  justify-content: center;
}

.app-mockup-img {
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  display: block;
}

/* ========== FEATURES SECTION ========== */
/* ========== 核心能力网格 ========== */
.capabilities-section {
  padding: 72px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.cap-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cap-card:hover {
  border-color: rgba(51, 112, 255, 0.35);
  box-shadow: 0 8px 32px rgba(51, 112, 255, 0.08);
}

.cap-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.cap-card > p:first-of-type {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cap-tags span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(51, 112, 255, 0.08);
  color: var(--blue-primary);
  font-weight: 500;
}

.features-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== FEATURES TABS ========== */
.features-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-white);
  border-radius: 50px;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.tab-btn:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.tab-btn.active {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #fff;
  font-weight: 500;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeUp 0.4s ease;
}

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

/* ========== FEATURE CARDS ========== */
.feature-card {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
  padding: 40px;
  background: var(--bg-white);
  border-radius: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.feature-card:last-child {
  margin-bottom: 0;
}

.feature-card.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
  min-width: 280px;
}

.feature-number {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 8px;
}

.feature-text h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

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

.feature-visual {
  flex: 1.2;
  min-width: 280px;
}

.feature-visual img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

/* ========== 翻译 / 检索 说明区 ========== */
.insight-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 20px;
}

.insight-section.light {
  background: var(--bg-white);
  border-block: 1px solid var(--border-color);
  max-width: none;
  padding-left: max(20px, calc(50vw - 600px));
  padding-right: max(20px, calc(50vw - 600px));
}

.insight-section.light .section-header,
.insight-section .section-header {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.insight-list {
  list-style: none;
  max-width: 1200px;
  margin: 0 auto 20px;
  display: grid;
  gap: 20px;
}

.insight-list.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.insight-list li {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.insight-list strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.insight-list span {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.lang-note {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
}

.insight-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.insight-item {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.insight-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.insight-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========== 下载三栏 ========== */
.download-cards-section {
  padding: 72px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.dl-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.dl-card-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dl-card-row .dl-item-info {
  flex: none;
}

.dl-btn-block {
  width: 100%;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 15px;
  background: var(--blue-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(51, 112, 255, 0.25);
}

.dl-btn-block:hover {
  background: var(--blue-hover);
  color: #fff;
  transform: translateY(-1px);
}

.dl-btn-outline {
  background: transparent;
  color: var(--blue-primary);
  border: 2px solid var(--blue-primary);
  box-shadow: none;
}

.dl-btn-outline:hover {
  background: rgba(51, 112, 255, 0.08);
  color: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: none;
}

.trust-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.trust-badges li::before {
  content: "✓ ";
  color: var(--blue-primary);
  font-weight: 700;
}

/* ========== BOTTOM CTA ========== */
.cta-section {
  text-align: center;
  padding: 80px 20px 60px;
  background: var(--bg-page);
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.cta-dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 320px));
  gap: 20px;
  justify-content: center;
  margin: 0 auto;
  max-width: 720px;
}

.cta-dl-item {
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: var(--bg-white);
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

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

/* ========== FOOTER ========== */
.footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 40px 40px 28px;
  font-size: 13px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto 36px;
}

.footer-col h4 {
  color: #e8e8e8;
  font-size: 14px;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: #aaa;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-info span {
  white-space: nowrap;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-dl-grid {
    grid-template-columns: 1fr;
  }

  .cta-dl-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid,
  .insight-list.three-cols,
  .insight-cards,
  .download-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .feature-card {
    flex-direction: column !important;
    gap: 30px;
    padding: 24px;
  }

  .feature-text,
  .feature-visual {
    min-width: unset;
    width: 100%;
  }

  .feature-text h3 {
    font-size: 24px;
  }

  .nav-links {
    display: none;
  }

  .cta-section h2 {
    font-size: 26px;
  }

  .footer {
    padding: 32px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-info {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 26px;
  }

  .btn-download {
    padding: 12px 28px;
    font-size: 16px;
  }
}
