/* 
 * 智慧零售科技官网样式
 * 基于Arco Design Pro风格开发
 */

/* 变量定义 */
:root {
  --primary-color: #165dff;
  --primary-hover: #4080ff;
  --primary-light: #e8f3ff;
  --success-color: #00b42a;
  --warning-color: #ff7d00;
  --danger-color: #f53f3f;
  --bg-color: #f2f3f5;
  --text-color: #1d2129;
  --text-color-secondary: #4e5969;
  --border-color: #e5e6eb;
  --disabled-color: #c9cdd4;
  --container-width: 1200px;
  --header-height: 70px;
  --section-spacing: 100px;
  --border-radius: 6px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  --transition-speed: 0.3s;
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
  background-color: #fff;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all var(--transition-speed);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.display-none {
  display: none;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 40px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed);
  text-decoration: none;
}

.btn i {
  margin-right: 5px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

.btn-large {
  height: 48px;
  padding: 0 32px;
  font-size: 16px;
}

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: white;
  box-shadow: var(--box-shadow);
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--text-color);
}

.logo-img {
  height: 36px;
  margin-right: 10px;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  margin: 0 15px;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 500;
  padding: 10px 0;
  position: relative;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.main-nav a.active {
  color: var(--primary-color);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* 非移动端的导航按钮 */
.nav-buttons {
  display: flex;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* 首页横幅 */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(to right, #f8faff, #f2f5fc);
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

.hero h1 {
  font-size: 38px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: var(--text-color-secondary);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

/* 演示链接区域 */
.demo-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 14px;
}

.demo-links span {
  color: var(--text-color-secondary);
  margin-right: 10px;
}

.demo-link {
  color: var(--primary-color);
  margin-right: 16px;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.demo-link:after {
  content: '';
  display: inline-block;
  height: 16px;
  width: 1px;
  background-color: var(--border-color);
  position: absolute;
  right: -8px;
}

.demo-link:last-child:after {
  display: none;
}

.demo-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.hero-image {
  flex: 1;
  max-width: 550px;
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 核心优势 */
.features {
  padding: var(--section-spacing) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-color);
}

.section-header p {
  font-size: 18px;
  color: var(--text-color-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: white;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 28px;
  border-radius: 50%;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-color);
}

.feature-card p {
  color: var(--text-color-secondary);
  line-height: 1.6;
}

/* 产品模块 */
.modules {
  padding: var(--section-spacing) 0;
  background-color: var(--bg-color);
}

.modules-tabs {
  background-color: white;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.modules-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.module-tab {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  position: relative;
}

.module-tab.active {
  color: var(--primary-color);
}

.module-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.module-content {
  display: none;
  padding: 40px;
}

.module-content.active {
  display: flex;
  align-items: center;
}

.module-image {
  flex: 1;
  max-width: 50%;
  padding-right: 40px;
}

.module-image img {
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.module-info {
  flex: 1;
}

.module-info h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-color);
}

.module-features {
  margin-bottom: 30px;
}

.module-features li {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
}

.module-features i {
  color: var(--success-color);
  margin-right: 10px;
  font-size: 16px;
}

/* 行业解决方案 */
.solutions {
  padding: var(--section-spacing) 0;
}

.solution-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.solution-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: all var(--transition-speed);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.solution-image {
  height: 200px;
  overflow: hidden;
}

.solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.solution-card:hover .solution-image img {
  transform: scale(1.05);
}

.solution-content {
  padding: 30px;
}

.solution-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-color);
}

.solution-content p {
  color: var(--text-color-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.solution-link {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.solution-link i {
  margin-left: 6px;
  transition: transform 0.3s;
}

.solution-link:hover i {
  transform: translateX(3px);
}

/* 成功案例 */
.cases {
  padding: var(--section-spacing) 0;
  background-color: var(--bg-color);
}

.case-slider {
  position: relative;
  margin-bottom: 30px;
}

.case-slide {
  display: flex;
  background-color: white;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.case-image {
  width: 100%;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-content {
  width: 60%;
  padding: 40px;
}

.case-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-color);
}

.case-company {
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.case-desc {
  color: var(--text-color-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.case-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background-color: var(--primary-color);
  width: 30px;
  border-radius: 5px;
}

/* 合作伙伴 */
.partners {
  padding: var(--section-spacing) 0;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  filter: grayscale(1);
  opacity: 0.7;
  transition: all var(--transition-speed);
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* CTA部分 */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), #3c89e8);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.cta .btn-primary {
  background-color: white;
  color: var(--primary-color);
}

.cta .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.cta .btn-outline {
  border-color: white;
  color: white;
}

.cta .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 页脚 */
.footer {
  background-color: #0e1c28;
  color: #d1d2d3;
  padding: 80px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 160px;
}

.footer-column:first-child {
  flex: 2;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 36px;
  margin-right: 10px;
}

.footer-logo span {
  font-size: 20px;
  font-weight: 600;
  color: white;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: all var(--transition-speed);
}

.help-block {
  color: #f56c6c;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-column h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul a {
  color: #d1d2d3;
  transition: all var(--transition-speed);
}

.footer-column ul a:hover {
  color: white;
  padding-left: 5px;
}

.contact-info p {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
}

.contact-info i {
  margin-top: 8px;
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  :root {
    --section-spacing: 80px;
  }

  .feature-grid,
  .solution-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .hero {
    padding: 100px 0 20px;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    max-width: 80%;
  }

  .module-content.active {
    flex-direction: column;
  }

  .module-image {
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 30px;
  }

  .case-slide {
    flex-direction: column;
  }

  .case-image,
  .case-content {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-column {
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 60px;
    --header-height: 60px;
  }

  /* 移动端字体大小调整 */
  body {
    font-size: 15px; /* 基础字体稍微缩小 */
  }

  h1 {
    font-size: 28px !important;
  }

  h2 {
    font-size: 24px !important;
  }

  h3 {
    font-size: 18px !important;
  }

  p {
    font-size: 15px !important;
  }

  .btn {
    font-size: 14px;
  }

  /* 导航菜单字体大小 */
  .logo-text {
    font-size: 18px;
  }

  /* 移动端菜单优化 - 更加协调简洁 */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 45%;
    min-width: 160px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    border-radius: 0 0 4px 4px;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
  }

  .main-nav li {
    margin: 0;
    border-bottom: 1px solid rgba(229, 230, 235, 0.3);
  }

  /* 最后一项不需要底部边框 */
  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.2s ease;
    padding-right: 25px;
    text-align: right;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background-color: rgba(22, 93, 255, 0.05);
    color: var(--primary-color);
  }

  /* 统一移动端菜单项样式 */
  .mobile-only-menu-item {
    display: block !important;
  }

  .mobile-only-menu-item a {
    padding: 10px 15px !important;
    display: block;
    font-size: 14px !important;
    font-weight: 500;
    text-align: right;
  }

  /* 确保菜单项在菜单打开时可见 */
  .main-nav.active .mobile-only-menu-item {
    display: block !important;
  }

  /* 移动端菜单激活状态 */
  .main-nav a.active::after {
    display: none;
  }

  /* 移动端的导航按钮 - 在移动端隐藏 */
  .nav-buttons {
    display: none !important;
  }

  .mobile-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 28px !important; /* 已设置，确保统一 */
  }

  .feature-card {
    background-color: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed);
    text-align: left;
  }

  /* 其他部分字体大小调整 */
  .feature-card h3 {
    font-size: 18px !important;
  }

  .feature-card p {
    font-size: 14px !important;
  }

  .section-header h2 {
    font-size: 26px !important;
  }

  .section-header p {
    font-size: 15px !important;
  }

  /* 页脚字体调整 */
  .footer {
    font-size: 14px;
  }

  .footer-column h3 {
    font-size: 16px !important;
  }

  .feature-grid,
  .solution-cards {
    grid-template-columns: 1fr;
  }

  .partner-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-large {
    height: 44px;
    padding: 0 24px;
    font-size: 15px;
  }

  .modules-nav {
    overflow-x: auto;
  }

  .module-tab {
    padding: 16px;
    white-space: nowrap;
    font-size: 15px;
  }

  .module-content {
    padding: 20px;
  }

  /* 移动端菜单强制显示 */
  .main-nav.active .contact-menu-item,
  .main-nav.active .demo-menu-item {
    display: block !important;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .partner-logos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  /* 更小设备的字体微调 */
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 26px !important;
  }

  h2 {
    font-size: 22px !important;
  }

  h3 {
    font-size: 17px !important;
  }

  .main-nav a,
  .mobile-only-menu-item a {
    padding: 8px 25px !important;
    font-size: 14px !important;
  }

  /* 减小移动菜单项的图标大小 */
  .mobile-only-menu-item a i {
    font-size: 14px;
  }

  /* 为移动端调整链接间距 */
  .footer-column ul li {
    margin-bottom: 8px;
  }

  /* 小屏幕上的菜单宽度调整 */
  .main-nav {
    width: 30%;
  }
}

/* 特小屏幕下的调整 */
@media (max-width: 360px) {
  /* 超小屏幕字体微调 */
  body {
    font-size: 13px;
  }

  h1 {
    font-size: 24px !important;
  }

  .logo-text {
    font-size: 16px;
  }

  .mobile-toggle {
    font-size: 20px;
  }

  /* 减小菜单项高度 */
  .main-nav a,
  .mobile-only-menu-item a {
    padding: 7px 15px !important;
    font-size: 13px !important;
  }

  /* 调整页脚间距 */
  .footer {
    padding: 60px 0 20px;
  }

  /* 特小屏幕下的调整 */
  .main-nav {
    width: 50%;
  }
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-hover);
}

/* 移动端专用菜单项 - 全局样式优化 */
.mobile-only-menu-item {
  display: none !important; /* 默认PC端隐藏 */
}

.mobile-only-menu-item a {
  color: var(--text-color);
}

/* 修改高亮样式，恢复颜色区分 */
.highlight-menu-item {
  font-weight: 500 !important;
  color: var(--primary-color) !important;
}

/* 小屏幕上的额外优化 */
@media (max-width: 480px) {
  .main-nav a,
  .mobile-only-menu-item a {
    padding: 8px 25px !important;
    font-size: 14px !important;
  }
}

/* 特小屏幕下的调整 */
@media (max-width: 360px) {
  /* 减小菜单项高度 */
  .main-nav a,
  .mobile-only-menu-item a {
    padding: 7px 15px !important;
    font-size: 13px !important;
  }
}
