/* ========================================
   SmartStor 首页样式
   版本: 2.0.0
   更新: 2026-03-08
   ======================================== */

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

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
  color: var(--text-primary);
  background: var(--bg-secondary);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* 头部导航 */
header {
  background: linear-gradient(90deg, #0a3d62, #1e90ff);
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100vw;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo img {
  height: 36px;
  width: 36px;
  margin-right: 10px;
  border-radius: 50%;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

nav a {
  color: #fff;
  padding: 8px 15px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  border-radius: 4px;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffd700;
}

.menu-toggle {
  display: none;
}

/* Banner区域 */
.banner {
  background: linear-gradient(135deg, #1e90ff, #0a3d62);
  color: #fff;
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.banner h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.banner .subtitle {
  font-size: 20px;
  margin-bottom: 15px;
  opacity: 0.95;
  font-weight: 400;
}

/* 社交证明 */
.social-proof {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 35px 0 40px;
  flex-wrap: wrap;
}

.proof-item {
  text-align: center;
}

.proof-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.proof-label {
  display: block;
  font-size: 14px;
  opacity: 0.9;
}

/* CTA按钮组 */
.cta-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn {
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-height: 48px;
}

.btn-primary {
  background: #ffd700;
  color: #0a3d62;
}

.btn-primary:hover {
  background: #fff;
  color: #1e90ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid #fff;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: #fff;
  color: #1e90ff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* 信任徽章 */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  opacity: 0.7;
  flex-wrap: wrap;
}

.trust-badge {
  height: 50px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

/* 区块样式 */
section {
  padding: 80px 20px;
  text-align: center;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

section.bg-white {
  background: #fff;
}

section.bg-gray {
  background: var(--bg-secondary);
}

.section-header {
  max-width: 800px;
  margin: 0 auto 50px;
  padding: 0 15px;
}

section h2 {
  font-size: 36px;
  margin-bottom: 15px;
  color: var(--text-primary);
  font-weight: 700;
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #1e90ff, #0a3d62);
  margin: 20px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 15px;
}

/* 卡片网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 15px;
}

.card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text-primary);
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--color-primary);
}

.card:active {
  transform: translateY(-3px);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* 客户案例区块 */
.customers-section {
  background: #fff;
  padding: 80px 20px;
}

.customer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin: 40px 0 60px;
  opacity: 0.6;
}

.customer-logo {
  height: 50px;
  padding: 10px 20px;
  background: var(--bg-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s;
}

.customer-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* 客户证言 */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: 12px;
  border-left: 4px solid var(--color-primary);
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  font-size: 48px;
  color: var(--color-primary);
  opacity: 0.2;
  position: absolute;
  top: -10px;
  left: -10px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-primary);
  font-weight: 600;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.author-title {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 对比优势区块 */
.comparison-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 80px 20px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.comparison-table {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.comparison-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border-light);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-cell {
  padding: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.comparison-cell:first-child {
  text-align: left;
  font-weight: 600;
}

.comparison-cell--highlight {
  background: var(--color-primary-light);
  font-weight: 600;
}

.badge-recommended {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

/* 底部 */
footer {
  background: #0a3d62;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

footer a {
  color: #ffd700;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s;
  word-wrap: break-word;
}

footer a:hover {
  color: #fff;
}

footer p {
  margin: 10px 0;
  word-wrap: break-word;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: 0.4s;
  }

  nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #0a3d62;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    z-index: 1001;
  }

  nav.active {
    max-height: 500px;
    opacity: 1;
  }

  nav a {
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .banner {
    padding: 60px 20px 40px;
  }

  .banner h1 {
    font-size: 32px;
  }

  .banner .subtitle {
    font-size: 16px;
  }

  .social-proof {
    flex-direction: column;
    gap: 25px;
  }

  .cta-group {
    flex-direction: column;
  }

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

  section {
    padding: 60px 15px;
  }

  section h2 {
    font-size: 28px;
    word-wrap: break-word;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .comparison-header,
  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-cell {
    border-bottom: 1px solid var(--border-light);
    justify-content: flex-start;
    text-align: left;
    padding: 15px;
    word-wrap: break-word;
  }

  .comparison-cell:first-child {
    background: var(--bg-secondary);
  }

  .comparison-table {
    margin: 0 10px;
    width: calc(100% - 20px);
  }
}

@media (max-width: 480px) {
  .banner {
    padding: 50px 15px 30px;
  }

  .banner h1 {
    font-size: 24px;
    line-height: 1.3;
    word-wrap: break-word;
  }

  .banner .subtitle {
    font-size: 14px;
    word-wrap: break-word;
  }

  .proof-number {
    font-size: 28px;
  }

  section {
    padding: 50px 10px;
  }

  section h2 {
    font-size: 22px;
    word-wrap: break-word;
  }

  .card {
    padding: 20px 15px;
  }

  .grid {
    padding: 0 5px;
    gap: 15px;
  }

  .comparison-table {
    margin: 0 5px;
    width: calc(100% - 10px);
  }

  .comparison-cell {
    padding: 12px;
    font-size: 14px;
  }
}

/* 遮罩层 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}
