/* 米菓互动官网自定义样式 */

/* 品牌色彩定义 */
:root {
  --primary-blue: #0041A3;
  --secondary-orange: #FF6C36;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --bg-light: #f8fafc;
  --bg-dark: #1a1a1a;
}

/* 字体导入和设置 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
}

/* 英文内容使用Poppins字体 */
.font-en {
  font-family: 'Poppins', sans-serif;
}

/* 中文内容使用思源黑体 */
.font-zh {
  font-family: 'Noto Sans SC', sans-serif;
}

/* 品牌色彩类 */
.text-primary {
  color: var(--primary-blue);
}

.text-secondary {
  color: var(--secondary-orange);
}

.bg-primary {
  background-color: var(--primary-blue);
}

.bg-secondary {
  background-color: var(--secondary-orange);
}

/* 渐变背景 */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-blue), #0052cc);
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-orange), #ff8c5a);
}

/* CTA按钮样式 */
.btn-primary {
  background: var(--primary-blue);
  color: white;
  padding: 12px 32px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #003082;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 65, 163, 0.3);
}

.btn-secondary {
  background: var(--secondary-orange);
  color: white;
  padding: 12px 32px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 108, 54, 0.3);
}

/* 光斑效果 */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-glow:hover::before {
  left: 100%;
}

/* 悬浮卡片效果 */
.card-hover {
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 滚动视差容器 */
.parallax-container {
  position: relative;
  overflow: hidden;
}

/* 动态计数器样式 */
.counter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
}

/* 导航样式 */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 悬浮联系按钮 */
.contact-float {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--secondary-orange);
  color: white;
  padding: 15px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(255, 108, 54, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.contact-float:hover {
  background: #e55a2b;
  transform: translateY(-50%) scale(1.05);
}

/* 汉堡菜单样式 */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* 移动端样式 */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 2.5rem 0;
  }
  
  .contact-float {
    right: 20px;
    bottom: 20px;
    top: auto;
    transform: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: initial;
    text-orientation: initial;
    font-size: 0.9rem;
  }
}

/* 动画效果增强 */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 发光文字效果 */
.glow-text {
  color: var(--primary-blue);
  text-shadow: 0 0 10px rgba(0, 65, 163, 0.5);
}

/* Footer样式 */
.footer-dark {
  background: var(--bg-dark);
  color: #ffffff;
}

.footer-dark a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-dark a:hover {
  color: var(--secondary-orange);
}

/* 首页底部CTA全屏渐变蓝条和hover伪3D光效 */
.final-cta-section {
    background: linear-gradient(135deg, #0041A3 0%, #0066CC 50%, #0041A3 100%);
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.final-cta-section .btn-secondary {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 108, 54, 0.3);
}

.final-cta-section .btn-secondary:hover {
    transform: translateY(-5px) rotateX(10deg) rotateY(5deg);
    box-shadow: 
        0 20px 40px rgba(255, 108, 54, 0.4),
        0 0 20px rgba(255, 108, 54, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: pulse-glow 2s infinite;
}

.final-cta-section .btn-secondary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FF6C36, #FF8E5A, #FF6C36);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.final-cta-section .btn-secondary:hover::before {
    opacity: 1;
    animation: border-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 
            0 20px 40px rgba(255, 108, 54, 0.4),
            0 0 20px rgba(255, 108, 54, 0.6),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 25px 50px rgba(255, 108, 54, 0.6),
            0 0 30px rgba(255, 108, 54, 0.8),
            inset 0 0 30px rgba(255, 255, 255, 0.3);
    }
}

@keyframes border-glow {
    0%, 100% { background: linear-gradient(45deg, #FF6C36, #FF8E5A, #FF6C36); }
    50% { background: linear-gradient(45deg, #FF8E5A, #FFB07A, #FF8E5A); }
}

/* 客户案例墙左右排版样式优化 */
.cases-section .filter-btn.active {
    background: #0041A3;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 65, 163, 0.3);
}

.cases-section .filter-btn:not(.active):hover {
    background: #f3f4f6;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.case-example {
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.case-example:hover {
    border-color: #0041A3;
    box-shadow: 0 8px 25px rgba(0, 65, 163, 0.15);
    transform: translateY(-5px);
}

/* 产品模块页面样式 */
.product-module {
    min-height: 100vh;
}

.module-nav-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.module-nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.module-nav-item.active {
    border: 2px solid var(--primary-blue);
    background: linear-gradient(135deg, rgba(0, 65, 163, 0.1), rgba(0, 65, 163, 0.05));
}

/* 返回导航链接样式 */
.product-module a[href="#products"] {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.product-module a[href="#products"]:hover {
    background: rgba(0, 65, 163, 0.1);
    transform: translateX(-5px);
}

/* 导航高亮状态增强 */
.nav-link.active {
    /* background: linear-gradient(135deg, var(--primary-blue), #0066CC); */
    /* color: white !important;
    box-shadow: 0 4px 15px rgba(0, 65, 163, 0.3); */
    transform: translateY(-1px);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

/* 移动端导航高亮 */
@media (max-width: 768px) {
    .nav-link.active {
        border-left: 4px solid var(--primary-blue);
        background: rgba(0, 65, 163, 0.1);
    }
}

/* 页面切换动画 */
.page, .product-module {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.page:not([style*="display: none"]), 
.product-module:not([style*="display: none"]) {
    opacity: 1;
    transform: translateY(0);
}

/* 模块按钮样式统一 */
.module-nav-item .btn-primary,
.module-nav-item .btn-secondary {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.module-nav-item .btn-primary:hover,
.module-nav-item .btn-secondary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 资源卡片对齐优化 */
.resource-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resource-card h3 {
    flex-shrink: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-card p {
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
}

.resource-card .text-center {
    margin-top: auto;
}

/* 客户评价头像圆形确保 */
.testimonial-card .flex.items-center .w-12.h-12 {
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0;
    background-color: #e5e7eb;
    display: block;
}

/* 通用头像圆形样式 */
.w-12.h-12.rounded-full {
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0;
}

/* 指标卡片对齐优化 */
.metrics-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

.metrics-item {
  display: flex;
  flex-direction: column;
  text-align: center;
  min-height: 4rem;
}

.metrics-value {
  flex-shrink: 0;
  margin-bottom: 0.5rem;
}

.metrics-label {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}