/* Card Stack Swipe (手势可滑动卡片) Theme - High Performance */
:root {
  --swipe-bg: #f3f4f6;
  --swipe-surface: #ffffff;
  --swipe-card: #ffffff;
  --swipe-primary: #0088cc;
  --swipe-primary-hover: #006699;
  --swipe-accent: #24a1de;
  --swipe-heading: #111827;
  --swipe-text: #374151;
  --swipe-muted: #6b7280;
  --swipe-border: #e5e7eb;
  --swipe-radius: 16px;
  --swipe-shadow: 0 10px 25px -5px rgba(0, 136, 204, 0.15);
  --swipe-shadow-lg: 0 20px 35px -10px rgba(17, 24, 39, 0.2);
}

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

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--swipe-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  will-change: transform;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--swipe-heading);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--swipe-primary) 0%, var(--swipe-accent) 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--swipe-text);
  padding: 8px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--swipe-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--swipe-primary);
  border-radius: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s ease;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, var(--swipe-primary) 0%, var(--swipe-accent) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.45);
}

.btn-outline {
  background: var(--swipe-surface);
  color: var(--swipe-heading);
  border: 1px solid var(--swipe-border);
}

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

/* Card Stack Swipe Container */
.swipe-stack-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 10px 40px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--swipe-primary) transparent;
}

.swipe-stack-container::-webkit-scrollbar {
  height: 6px;
}

.swipe-stack-container::-webkit-scrollbar-thumb {
  background: var(--swipe-primary);
  border-radius: 10px;
}

.swipe-card-item {
  flex: 0 0 320px;
  scroll-snap-align: center;
  background: var(--swipe-surface);
  border: 1px solid var(--swipe-border);
  border-radius: var(--swipe-radius);
  padding: 24px;
  box-shadow: var(--swipe-shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  will-change: transform;
  cursor: grab;
}

.swipe-card-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--swipe-shadow-lg);
  border-color: var(--swipe-primary);
}

.swipe-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--swipe-primary);
  background: rgba(0, 136, 204, 0.1);
  border-radius: 20px;
  margin-bottom: 12px;
}

.swipe-card-item h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--swipe-heading);
  margin-bottom: 10px;
}

.swipe-card-item p {
  font-size: 14px;
  color: var(--swipe-muted);
  line-height: 1.6;
}

/* Hero Section */
.hero {
  padding: 60px 0 45px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--swipe-bg) 100%);
  border-bottom: 1px solid var(--swipe-border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--swipe-primary);
  background: rgba(0, 136, 204, 0.08);
  border: 1px solid rgba(0, 136, 204, 0.2);
  border-radius: 30px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  color: var(--swipe-heading);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--swipe-primary);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--swipe-muted);
  max-width: 780px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Hero Showcase Grid */
.hero-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.hero-card {
  background: var(--swipe-surface);
  border: 1px solid var(--swipe-border);
  border-radius: var(--swipe-radius);
  padding: 12px;
  box-shadow: var(--swipe-shadow);
  transition: all 0.25s ease;
  will-change: transform;
}

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

.hero-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  content-visibility: auto;
}

.hero-card-caption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--swipe-heading);
}

/* Sections */
.section {
  padding: 65px 0;
  border-bottom: 1px solid var(--swipe-border);
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

.section-panel {
  background: var(--swipe-surface);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--swipe-heading);
  margin-bottom: 10px;
}

.section-title p {
  font-size: 15px;
  color: var(--swipe-muted);
}

/* 3x3 Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--swipe-bg);
  border: 1px solid var(--swipe-border);
  border-radius: var(--swipe-radius);
  padding: 28px 24px;
  transition: all 0.25s ease;
}

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

.feature-num {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.15) 0%, rgba(36, 161, 222, 0.15) 100%);
  color: var(--swipe-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--swipe-heading);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--swipe-muted);
  line-height: 1.6;
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--swipe-surface);
  border: 1px solid var(--swipe-border);
  border-radius: var(--swipe-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}

.blog-card:hover {
  box-shadow: var(--swipe-shadow);
  border-color: var(--swipe-primary);
  transform: translateY(-3px);
}

.blog-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--swipe-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--swipe-heading);
  margin-bottom: 10px;
}

.blog-card p {
  font-size: 14px;
  color: var(--swipe-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.blog-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--swipe-primary);
}

.blog-link:hover {
  color: var(--swipe-primary-hover);
  text-decoration: underline;
}

.more-wrapper {
  text-align: center;
  margin-top: 36px;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--swipe-bg);
  border: 1px solid var(--swipe-border);
  border-radius: var(--swipe-radius);
  padding: 24px 28px;
}

.faq-question {
  font-size: 17px;
  font-weight: 800;
  color: var(--swipe-heading);
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 14px;
  color: var(--swipe-muted);
  line-height: 1.7;
}

/* Download Page Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.download-card {
  background: var(--swipe-surface);
  border: 1px solid var(--swipe-border);
  border-radius: var(--swipe-radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}

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

.download-card-icon {
  font-size: 40px;
  margin-bottom: 14px;
}

.download-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--swipe-heading);
  margin-bottom: 10px;
}

.download-card p {
  font-size: 14px;
  color: var(--swipe-muted);
  margin-bottom: 22px;
}

.download-web-banner {
  background: var(--swipe-heading);
  color: #ffffff;
  border-radius: var(--swipe-radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.download-web-banner h3 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 6px;
}

.download-web-banner p {
  color: #9ca3af;
  font-size: 14px;
}

/* Footer */
.footer {
  background: #111827;
  color: #9ca3af;
  padding: 60px 0 30px;
  border-top: 4px solid var(--swipe-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-col p {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: #9ca3af;
}

.footer-col ul li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

@media (max-width: 992px) {
  .hero-showcase, .features-grid, .download-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .download-web-banner {
    flex-direction: column;
    text-align: center;
  }
}
