/* =========================================================
   麦洛迪 App Web 官网 - 全局样式
   设计说明：
   - 以品牌主色 #f4b238（麦洛迪金）与 #421e0e（麦香棕）为核心
   - 整体走简约留白风格，适配 PC / 平板 / 手机
   - 图片统一引用 public/ 目录下的现有素材
   ========================================================= */

/* ---------- 基础变量与重置 ---------- */
:root {
  --primary: #f4b238;
  --primary-dark: #e09f1f;
  --brown: #421e0e;
  --brown-light: #764a23;
  --text: #1f1f1f;
  --text-secondary: #666666;
  --bg: #ffffff;
  --bg-soft: #faf8f5;
  --border: #ece8e3;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(66, 30, 14, 0.08);
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brown);
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-list {
  display: flex;
  gap: 40px;
  list-style: none;
  font-size: 0.95rem;
}

.nav-list a {
  position: relative;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--brown);
}

.nav-list a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px 0;
  background: var(--brown);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- 通用标题 ---------- */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--brown);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Hero 首屏 ---------- */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(244, 178, 56, 0.15);
  color: var(--brown);
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  color: var(--brown);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary-dark);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(244, 178, 56, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(244, 178, 56, 0.45);
}

.btn-outline {
  margin-left: 16px;
  border: 2px solid var(--brown);
  color: var(--brown);
  background: transparent;
}

.btn-outline:hover {
  background: var(--brown);
  color: #fff;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-media img {
  max-height: 460px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(66, 30, 14, 0.12));
}

/* ---------- App 双端预览 ---------- */
.app-preview {
  padding: 80px 0;
  background: #fff;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: start;
}

.preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: 280px;
  padding: 12px;
  background: var(--brown);
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  z-index: 2;
}

.phone-frame img {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  background: #f5f5f5;
}

.preview-caption {
  margin-top: 24px;
  text-align: center;
}

.preview-caption h4 {
  color: var(--brown);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.preview-caption p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- 特性卡片 ---------- */
.features {
  padding: 80px 0;
  background: var(--bg-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(244, 178, 56, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--brown);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------- 应用展示 ---------- */
.showcase {
  padding: 80px 0;
  background: #fff;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.showcase-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.showcase-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s;
}

.showcase-item:hover img {
  transform: scale(1.03);
}

.showcase-caption {
  padding: 20px;
  text-align: center;
}

.showcase-caption h4 {
  color: var(--brown);
  margin-bottom: 6px;
}

.showcase-caption p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------- 运营端能力 ---------- */
.management {
  padding: 80px 0;
  background: var(--bg-soft);
}

.management-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.management-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.management-item:hover {
  transform: translateY(-4px);
}

.management-item img {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.management-item span {
  font-size: 0.9rem;
  color: var(--brown);
  font-weight: 500;
}

/* ---------- CTA ---------- */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta p {
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #1a120b;
  color: rgba(255, 255, 255, 0.65);
  padding: 40px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--primary);
}

/* 页脚 ICP 备案信息 */
.icp-line {
  margin-top: 12px;
  width: 100%;
  text-align: center;
}

.icp-line a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.icp-line a:hover {
  color: var(--primary);
}

/* ---------- 关于我们页 ---------- */
.about-hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.about-hero h1 {
  font-size: 2.5rem;
  color: var(--brown);
  text-align: center;
}

.about-section {
  padding: 60px 0;
}

.about-section:nth-child(even) {
  background: var(--bg-soft);
}

.about-section h2 {
  color: var(--brown);
  font-size: 1.75rem;
  margin-bottom: 20px;
  text-align: center;
}

.about-section .lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

/* 品牌故事时间线 */
.brand-story-content {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.9;
}

.brand-story-content p {
  margin-bottom: 16px;
}

/* 核心优势 */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.advantage-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}

.advantage-card h3 {
  color: var(--brown);
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.advantage-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 资质证照 */
.qualification-card {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.qualification-card h3 {
  color: var(--brown);
  margin-bottom: 24px;
  text-align: center;
}

.info-list {
  list-style: none;
}

.info-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-secondary);
  min-width: 110px;
  font-size: 0.9rem;
}

.info-value {
  color: var(--brown);
  font-weight: 500;
}

/* 联系我们页 */
.contact-card {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.contact-card h3 {
  color: var(--brown);
  margin-bottom: 16px;
  text-align: center;
  font-size: 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-value {
  text-align: center;
  margin-bottom: 8px;
}

.contact-value a {
  color: var(--primary-dark);
  font-size: 1.4rem;
  font-weight: 700;
}

.contact-value a:hover {
  color: var(--brown);
}

.contact-tip {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .management-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    display: block;
    padding: 14px 0;
  }

  .nav-toggle {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .btn-outline {
    margin-left: 0;
  }

  .feature-grid,
  .showcase-grid,
  .about-grid,
  .preview-grid,
  .advantage-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    width: 240px;
  }

  .management-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
