/* Swiss Style Grid (瑞士平面设计风) Theme - High Performance Optimized */
:root {
  --swi-bg: #f4f4f0;
  --swi-surface: #ffffff;
  --swi-card: #eaeaea;
  --swi-red: #ff2020;
  --swi-dark-red: #d01010;
  --swi-black: #111111;
  --swi-text: #111111;
  --swi-muted: #555555;
  --swi-border: #111111;
  --swi-grid-line: #d2d2c8;
}

* {
  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, "Helvetica Neue", "Arial", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--swi-bg);
  color: var(--swi-text);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s 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: var(--swi-surface);
  border-bottom: 3px solid var(--swi-black);
  will-change: transform;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--swi-black);
  text-transform: uppercase;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--swi-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 800;
  color: var(--swi-black);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
  background: var(--swi-black);
  color: #ffffff;
  border-color: var(--swi-black);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 2px solid var(--swi-black);
  text-transform: uppercase;
  will-change: transform;
}

.btn-primary {
  background: var(--swi-red);
  color: #ffffff;
  border-color: var(--swi-black);
}

.btn-primary:hover {
  background: var(--swi-black);
  color: var(--swi-red);
}

.btn-outline {
  background: var(--swi-surface);
  color: var(--swi-black);
}

.btn-outline:hover {
  background: var(--swi-black);
  color: #ffffff;
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: var(--swi-surface);
  border-bottom: 3px solid var(--swi-black);
}

.swi-tag {
  display: inline-block;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--swi-black);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--swi-black);
}

.hero-title span {
  color: var(--swi-red);
  border-bottom: 4px solid var(--swi-black);
  display: inline-block;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--swi-muted);
  max-width: 780px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

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

.swi-card {
  background: var(--swi-surface);
  border: 2px solid var(--swi-black);
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.swi-card:hover {
  transform: translate3d(-4px, -4px, 0);
  box-shadow: 6px 6px 0px var(--swi-black);
}

.swi-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--swi-black);
  content-visibility: auto;
}

.swi-card-label {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  background: var(--swi-black);
  padding: 6px;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

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

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

.section-title h2 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--swi-black);
  text-transform: uppercase;
  display: inline-block;
  border-bottom: 3px solid var(--swi-red);
  padding-bottom: 6px;
}

.section-title p {
  color: var(--swi-muted);
  font-size: 16px;
  font-weight: 700;
  margin-top: 12px;
}

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

.feature-card {
  background: var(--swi-bg);
  border: 2px solid var(--swi-black);
  padding: 30px 24px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.feature-card:hover {
  background: var(--swi-surface);
  transform: translate3d(-3px, -3px, 0);
  box-shadow: 5px 5px 0px var(--swi-black);
}

.feature-number {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  background: var(--swi-red);
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 900;
  color: var(--swi-black);
  margin-bottom: 10px;
}

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

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

.blog-card {
  background: var(--swi-surface);
  border: 2px solid var(--swi-black);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.blog-card:hover {
  transform: translate3d(-3px, -3px, 0);
  box-shadow: 6px 6px 0px var(--swi-red);
}

.blog-date {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  background: var(--swi-black);
  padding: 4px 10px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.blog-card h3 {
  font-size: 21px;
  font-weight: 900;
  color: var(--swi-black);
  margin-bottom: 12px;
}

.blog-card p {
  font-size: 14px;
  font-weight: 600;
  color: var(--swi-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.blog-link {
  font-size: 14px;
  font-weight: 900;
  color: var(--swi-red);
  letter-spacing: 0.5px;
}

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

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

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

.faq-item {
  background: var(--swi-surface);
  border: 2px solid var(--swi-black);
  padding: 24px 30px;
  border-left: 6px solid var(--swi-red);
}

.faq-question {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--swi-black);
}

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

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

.download-card {
  background: var(--swi-surface);
  border: 2px solid var(--swi-black);
  padding: 36px 24px;
  text-align: center;
  transition: transform 0.2s ease;
}

.download-card:hover {
  transform: translate3d(-3px, -3px, 0);
  box-shadow: 6px 6px 0px var(--swi-black);
}

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

.download-card h3 {
  font-size: 21px;
  font-weight: 900;
  color: var(--swi-black);
  margin-bottom: 12px;
}

.download-card p {
  font-size: 14px;
  font-weight: 600;
  color: var(--swi-muted);
  margin-bottom: 24px;
}

.download-web-banner {
  background: var(--swi-black);
  color: #ffffff;
  border: 2px solid var(--swi-red);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.download-web-banner h3 {
  font-size: 22px;
  color: var(--swi-red);
  margin-bottom: 8px;
}

.download-web-banner p {
  color: #cccccc;
  font-size: 14px;
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--swi-black);
  color: #ffffff;
  padding: 70px 0 30px;
  border-top: 5px solid var(--swi-red);
}

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

.footer-col h4 {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--swi-red);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-col p {
  font-size: 14px;
  color: #aaaaaa;
  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: #aaaaaa;
  font-weight: 700;
}

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

.footer-copyright {
  border-top: 1px solid #333333;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #777777;
  font-weight: 700;
}

@media (max-width: 992px) {
  .swi-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;
  }
}
