/* Home Page Styles */
.main {
  padding-top: 72px;
}

.hero {
  padding: 80px 0 1px;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  position: relative;
}

/* 装饰性背景元素 */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(52, 199, 89, 0.1) 0%,
      transparent 25%
    ),
    radial-gradient(
      circle at 90% 30%,
      rgba(45, 134, 89, 0.08) 0%,
      transparent 20%
    );
  pointer-events: none;
  z-index: -1;
}

.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  max-width: 960px;
  width: 100%;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  text-align: center;
  white-space: nowrap;
}

.title-line {
  margin-bottom: 8px;
}

.keywords-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.keywords-line.main-keywords {
  gap: 8px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    #1a365d 0%,
    #2c5282 20%,
    #2b6cb0 40%,
    #3182ce 60%,
    #2c5282 80%,
    #1a365d 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  transition: all 0.3s ease;
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

.gradient-text.keywords {
  font-size: 0.65em;
  font-weight: 500;
}

.main-keywords .gradient-text.keywords {
  font-size: 1.2em;
  font-weight: 700;
}

/* 子关键词样式 - 稍小的字体 */
.subtitle-section {
  margin-top: 30px;
  margin-bottom: 40px;
  text-align: center;
}

.sub-keywords {
  margin-top: 0;
}

.sub-keywords .gradient-text.keywords {
  font-size: 30px;
  font-weight: 600;
}

/* .sub-keywords .separator {
  color: #34c759;
  font-weight: 600;
  font-size: 1em;
} */

/* 首页关于CropSMS部分 */
.about-cropsms {
  text-align: left;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.95);
  padding: 28px 32px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid #34c759;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.about-cropsms .about-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.about-cropsms .about-description {
  font-size: 17px;
  line-height: 1.8;
  color: #2d2d2d;
  text-align: justify;
  margin: 0;
  text-indent: 2em;
}

.about-cropsms .more-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.about-cropsms .more-link:hover {
  color: #004499;
  text-decoration: underline;
}

/* 首页主图片区域 */
.hero-image-section {
  text-align: center;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  max-width: 85%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-main-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-main-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14);
}

/* 功能介绍区域 */
.features-section {
  margin-top: 48px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, #34c759, #4ecdc4);
  border-radius: 2px;
}

.features-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 24px;
  padding-left: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid #34c759;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.features-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #2d2d2d;
  margin-bottom: 12px;
  text-align: justify;
  text-indent: 2em;
}

.features-content p:last-child {
  margin-bottom: 0;
}

/* 使用流程区域 */
.workflow-section {
  margin-top: 48px;
}

.workflow-step {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.workflow-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #34c759, #4ecdc4, #34c759);
  background-size: 200% 100%;
}

.workflow-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.workflow-step:last-child {
  margin-bottom: 0;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0066cc, #0052a3);
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
}

.step-description {
  font-size: 17px;
  line-height: 1.8;
  color: #2d2d2d;
  margin-bottom: 0;
  text-align: justify;
  text-indent: 2em;
}

/* 步骤图片容器 */
.step-image-container {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
  max-width: 85%;
  padding: 12px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 8px;
}

.step-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-image-container img:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.step-image {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 85%;
  padding: 12px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 8px;
}

.step-image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-image img:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* 结尾总结区域 */
.closing-section {
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(
    135deg,
    rgba(52, 199, 89, 0.08) 0%,
    rgba(255, 255, 255, 0.95) 30%,
    rgba(255, 255, 255, 0.95) 70%,
    rgba(78, 205, 196, 0.08) 100%
  );
  border-radius: 12px;
  border: 1px solid rgba(52, 199, 89, 0.15);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.highlight-text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.welcome-text {
  font-size: 32px;
  font-weight: 600;
  color: #0066cc;
  margin-bottom: 20px;
  letter-spacing: 8px;
}

.more-link-large {
  display: inline-block;
  font-size: 18px;
  font-weight: 500;
  color: #0066cc;
  text-decoration: none;
  padding: 8px 24px;
  border: 2px solid #0066cc;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.more-link-large:hover {
  background: #0066cc;
  color: white;
}

/* 模型介绍区域 */
.model-intro-section {
  margin-top: 48px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid #0066cc;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.model-intro-title {
  font-size: 20px;
  font-weight: 600;
  color: #0066cc;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 102, 204, 0.2);
}

.model-intro-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #2d2d2d;
  margin-bottom: 16px;
  text-align: justify;
  text-indent: 2em;
}

.model-intro-section p:last-child {
  margin-bottom: 0;
}

.hero-subtitle {
  font-size: 22px;
  font-weight: 500;
  color: #515154;
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.3;
}

.logos-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin: 48px 0;
  padding: 32px 0;
}

.cropsm-text-section {
  display: flex;
  align-items: center;
  margin-left: 24px;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  background: transparent;
  padding: 16px;
  backdrop-filter: none;
  border: none;
}

.hero-logo:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.cropsm-title {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  text-align: left;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.hero-description {
  font-size: 18px;
  line-height: 1.5;
  color: #86868b;
  margin-bottom: 40px;
  font-weight: 400;
  text-align: center;
}

.download-section {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.platform-text {
  font-size: 17px;
  color: #86868b;
  margin-bottom: 24px;
  text-align: center;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 360px;
  margin: 0 auto;
}

.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
}

.platform-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.platform-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.platform-image {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.platform-item span {
  font-size: 13px;
  font-weight: 500;
  color: #515154;
  text-align: center;
}

/* Friendship Links Styles */
.friendship-links {
  margin-top: 48px;
  padding: 32px 0;
  text-align: left;
}

.friendship-title {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 24px 0;
  padding-left: 0;
}

.link-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.link-row {
  display: flex;
  justify-content: flex-start;
}

.friendship-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(45, 134, 89, 0.15);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(45, 134, 89, 0.08);
  min-width: 160px;
}

.friendship-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(45, 134, 89, 0.3);
  box-shadow: 0 6px 24px rgba(45, 134, 89, 0.15);
}

.link-text {
  font-size: 16px;
  font-weight: 500;
  background: linear-gradient(135deg, #2d8659 0%, #52c41a 50%, #73d13d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.friendship-link:hover .link-text {
  background: linear-gradient(135deg, #1d5d3e 0%, #3a8f0d 50%, #5cb326 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-container {
  position: relative;
  width: 400px;
  height: 300px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 100%);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.08);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.mockup-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 20px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mockup-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.chart-placeholder {
  height: 120px;
  background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
  border-radius: 8px;
  opacity: 0.8;
  position: relative;
  overflow: hidden;
}

.chart-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

.data-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.data-row {
  height: 24px;
  background: rgba(142, 142, 147, 0.12);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.data-row:nth-child(1) {
  width: 100%;
}
.data-row:nth-child(2) {
  width: 85%;
}
.data-row:nth-child(3) {
  width: 70%;
}

.data-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: shimmer 2s infinite;
  animation-delay: 0.5s;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 48px;
  }

  .mockup-container {
    width: 350px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .main {
    padding-top: 120px;
  }

  .hero {
    padding: 40px 0 80px;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.35;
    margin-bottom: 28px;
    white-space: normal;
  }

  .keywords-line {
    flex-wrap: wrap;
    gap: 2px;
  }

  .keywords-line.main-keywords {
    gap: 6px;
  }

  .gradient-text.keywords {
    font-size: 0.6em;
  }

  .main-keywords .gradient-text.keywords {
    font-size: 1em;
    font-weight: 600;
  }

  .sub-keywords .gradient-text.keywords {
    font-size: 0.85em;
    font-weight: 600;
  }

  /* .sub-keywords .separator {
    font-size: 0.85em;
  } */

  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 32px;
  }

  .logos-section {
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
    padding: 24px 0;
  }

  .cropsm-text-section {
    margin-left: 0;
  }

  .hero-logo {
    width: 80px;
    height: 80px;
    padding: 12px;
  }

  .cropsm-title {
    font-size: 20px;
    text-align: center;
    white-space: normal;
  }

  .hero-description {
    font-size: 16px;
  }

  .platform-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }

  .friendship-links {
    margin-top: 32px;
    padding: 24px 0;
  }

  .friendship-link {
    min-width: 140px;
    padding: 10px 20px;
  }

  .link-text {
    font-size: 14px;
  }

  .mockup-container {
    width: 300px;
    height: 200px;
  }

  .about-cropsms .about-title {
    font-size: 20px;
  }

  .about-cropsms .about-description {
    font-size: 15px;
    line-height: 1.7;
  }

  .about-cropsms {
    padding: 20px 24px;
  }

  .hero-image-section {
    margin-top: 30px;
    padding: 12px;
    max-width: 100%;
  }

  .hero-main-image {
    max-width: 100%;
    border-radius: 8px;
  }

  .step-image {
    padding: 10px;
    max-width: 100%;
  }

  .step-image img {
    max-width: 100%;
    border-radius: 6px;
  }

  .step-image-container {
    padding: 10px;
    max-width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .step-image-container img {
    max-width: 100%;
    border-radius: 6px;
  }

  .features-section,
  .workflow-section {
    margin-top: 36px;
  }

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

  .features-content {
    padding: 20px;
  }

  .features-content p {
    font-size: 17px;
  }

  .workflow-step {
    padding: 20px;
    margin-bottom: 20px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .step-title {
    font-size: 16px;
  }

  .step-description {
    font-size: 15px;
  }

  .step-image img {
    border-radius: 6px;
  }

  .closing-section {
    margin-top: 36px;
    padding: 24px;
  }

  .highlight-text {
    font-size: 16px;
  }

  .welcome-text {
    font-size: 26px;
    letter-spacing: 6px;
  }

  .more-link-large {
    font-size: 16px;
    padding: 6px 20px;
  }

  .model-intro-section {
    margin-top: 36px;
    padding: 24px;
  }

  .model-intro-title {
    font-size: 18px;
  }

  .model-intro-section p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .download-section {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

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

  .hero-description {
    font-size: 16px;
  }

  .platform-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mockup-container {
    width: 280px;
    height: 180px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .hero-title {
    color: #f2f2f7;
  }

  .hero-description {
    color: #98989d;
  }

  .platform-item {
    background: rgba(28, 28, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
  }

  .platform-item:hover {
    background: rgba(28, 28, 30, 0.9);
  }

  .platform-item span {
    color: #98989d;
  }
}
