/**
 * 柚子视界 PC 端首页主样式
 * @description 页面整体布局、区块样式与响应式基础
 * @author MJ
 * @date 2025-03-03
 */

/* ========== 设计令牌 ========== */
:root {
  --color-primary: #E98F36;
  --color-primary-light: #f5b876;
  --color-text: #222;
  --color-text-secondary: #555;
  --color-border: #e0e0e0;
  --color-bg-section: #f8f9fa;
  --color-footer-bg: #4a4a4a;
  --color-footer-text: #fff;
  /* 字号：官网偏大一号，提升可读性与正式感 */
  --font-size-base: 16px;
  --font-size-body: 15px;
  --font-size-small: 14px;
  --font-size-title: 20px;
  --font-size-section: 22px;
  --line-height-body: 1.75;
  --line-height-title: 1.4;
  --spacing-section: 56px;
  --spacing-block: 28px;
  --content-max-width: 1200px;
  --header-height: 80px;
  --footer-min-height: 150px;
  --radius-card: 8px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ========== 基础与布局 ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  padding-top: var(--header-height);
  padding-bottom: var(--footer-min-height);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: var(--line-height-body);
  background: #fff;
}

/* ========== 顶部导航 ========== */
.header {
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: #fff;
  box-shadow: 0 1px 0 var(--color-border);
}

.header-logo {
  width: 200px;
  height: 64px;
  margin-left: clamp(24px, 4%, 48px);
  object-fit: contain;
}

.header-logo-cf {
  width: 56px;
  height: 56px;
  margin-left: clamp(24px, 4%, 48px);
  object-fit: contain;
}

/* ========== 主内容区 ========== */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--spacing-section) 24px var(--spacing-section);
}

.content-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: var(--spacing-block) 16px;
  margin: 0;
  border-top: 1px solid var(--color-border);
}

.content-item:first-of-type {
  border-top: none;
}

/* ========== 关于我们 ========== */
.about {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-block);
}

.about-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 280px;
  max-width: 55%;
  line-height: var(--line-height-body);
}

.about-title {
  font-size: var(--font-size-section);
  font-weight: 600;
  line-height: var(--line-height-title);
  margin-bottom: 14px;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.about-detail {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  text-align: justify;
}

.about-image {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

/* ========== 介绍区块（多段） ========== */
.intro {
  flex-direction: column;
  padding: var(--spacing-block) 32px;
  background: var(--color-bg-section);
  border-radius: var(--radius-card);
  margin: 0 0 16px;
  border: none;
  box-shadow: var(--shadow-card);
}

.intro:nth-of-type(even) {
  background: #fff;
  box-shadow: none;
  border: 1px solid var(--color-border);
}

.intro-title {
  font-size: var(--font-size-title);
  font-weight: 600;
  text-align: center;
  line-height: var(--line-height-title);
  margin-bottom: 10px;
  color: var(--color-text);
}

.intro-content {
  font-size: var(--font-size-body);
  text-align: center;
  max-width: 640px;
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
  margin: 0;
}

/* ========== 内容接入流程 ========== */
.step {
  flex-direction: column;
  align-items: stretch;
  padding: var(--spacing-block) 0;
}

.step-title {
  font-size: var(--font-size-section);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--spacing-block);
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.step-item-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-block);
  margin-top: 0;
  position: relative;
}

.step-item {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  padding: 20px 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.step-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-card);
}

.step-item-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-index {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.item-title-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 36px;
  color: var(--color-text);
}

.item-content {
  margin-top: 12px;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
}

/* ========== 联系方式 ========== */
.contact {
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: var(--spacing-block) 24px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
  padding: 24px 20px;
  border-radius: var(--radius-card);
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-item:hover {
  background: var(--color-bg-section);
  transform: translateY(-2px);
}

.contact-item-icon-container {
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: rgba(233, 143, 54, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-item:hover .contact-item-icon-container {
  border-color: var(--color-primary-light);
  background: rgba(233, 143, 54, 0.12);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.contact-item-title {
  font-size: 16px;
  font-weight: 600;
  margin-top: 14px;
  color: var(--color-text);
}

.contact-item-mail {
  font-size: var(--font-size-body);
  margin-top: 8px;
  color: var(--color-text-secondary);
}

/* ========== 投资方 ========== */
.investment {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: var(--spacing-block) 24px;
  background: var(--color-bg-section);
  border-radius: var(--radius-card);
  border: none;
}

.investment-header {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-card);
  object-fit: contain;
  background: #fff;
  padding: 8px;
  box-shadow: var(--shadow-card);
}

.investment-content {
  flex: 1;
  min-width: 280px;
  max-width: 70%;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
  margin: 0;
}

/* ========== 页脚 ========== */
.bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  min-height: var(--footer-min-height);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px clamp(24px, 4%, 48px);
  background-color: var(--color-footer-bg);
  z-index: 100;
}

.bottom-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.bottom-text {
  color: var(--color-footer-text);
  font-size: var(--font-size-small);
  font-weight: 500;
  margin: 0;
  opacity: 0.95;
}

.bottom-address-label {
  margin-top: 12px;
}

.bottom-link {
  color: var(--color-footer-text);
  text-decoration: none;
  opacity: 0.95;
}

.bottom-link:hover {
  text-decoration: underline;
  opacity: 1;
}

.bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin: 0;
}

.img-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.guohui {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ========== 中等屏幕微调 ========== */
@media (max-width: 900px) {
  .about-content {
    max-width: 100%;
  }

  .about-image {
    max-width: 100%;
  }

  .step-item {
    max-width: 100%;
  }

  .investment-content {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  :root {
    --spacing-section: 32px;
    --spacing-block: 20px;
  }

  .bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .bottom-right {
    align-items: flex-start;
  }
}
