/*
Theme Name: Alitrain
Theme URI: https://www.waimao88.com/
Description: 专业的外贸工具主题
Version: 2.0
*/

/* 基础变量定义 */
:root {
    --primary: #1677ff;
    --secondary: #0958d9;
    --success: #52c41a;
    --warning: #faad14;
    --danger: #ff4d4f;
    --dark: #1f1f1f;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --border: #e5e5e5;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 8px;
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

/* 布局容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏样式 */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 100;
}

.navbar-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Banner区域 */
.banner {
    background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
    padding: 60px 0;
    color: var(--white);
    text-align: center;
    position: relative;
}

.description {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.description h1 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.description h2 {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.version {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    margin: 20px 0;
}

.navbar-toggle .icon-bar{
  background: var(--primary);


}

/* 屏幕宽度小于900px时，隐藏导航栏 */
@media (max-width: 900px) {
  #menu-main{
    display: inline-block !important;
    height: auto !important;
  }
    .nav-pills>li{
        display: block;
        margin: 0 10px;
        padding: 0;
        border-radius: 0;
        float: inherit;
    }
}


/* 内容区域通用样式 */
section {
    padding: 50px 0;
    position: relative;
    background: var(--white);
}

section h3 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark);
}

/* 功能展示区域 */
.grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 15px;
}

.col-xs-3 {
    width: calc(25% - 30px);  /* 四列布局，减去间距 */
    margin: 15px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.col-xs-3 img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(22, 119, 255, 0.1);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.col-xs-3 h3 {
    font-size: 18px;
    margin: 15px 0;
    color: var(--dark);
}

.col-xs-3 .detail {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.col-xs-3:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.col-xs-3:hover img {
    transform: scale(1.1);
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .col-xs-3 {
        width: calc(33.333% - 30px);  /* 三列布局 */
    }
}

@media (max-width: 992px) {
    .col-xs-3 {
        width: calc(50% - 30px);  /* 两列布局 */
    }
}

@media (max-width: 576px) {
    .col-xs-3 {
        width: 100%;  /* 单列布局 */
        margin: 10px 15px;
    }
    
    .grid {
        gap: 15px;
    }
}

/* 认证展示区域 */
#success {
    background: var(--light-gray);
    text-align: center;
}

#success img {
    max-width: 180px;
    margin: 15px;
    display: inline-block;
    vertical-align: middle;
}

/* 页脚样式 */
#footer {
    background: var(--dark);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

.footer-detail {
    font-size: 14px;
    opacity: 0.8;
}

.footer-detail a {
    color: var(--white);
    text-decoration: none;
}

/* 响应式优化 */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .description h1 {
        font-size: 24px;
    }
    
    .description h2 {
        font-size: 16px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 30px 0;
    }
    
    .col-xs-3, .col-xs-4 {
        padding: 20px;
    }
    
    #success img {
        max-width: 140px;
        margin: 10px;
    }
}

/* 工具类 */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

#menu-main{
  display: flex;
  height: 70px;
  justify-content: center;
  align-items: center;
}

.navbar-brand{
  padding: 0;
}

/* 神器介绍区域 */
#intro {
    padding: 80px 0;
    background: var(--white);
}

#intro .intro {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

#intro h3 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

#intro h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

#intro .detail {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    margin: 0 auto 40px;
    max-width: 800px;
}

.inrto_animal {
    position: relative;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inrto_animal img {
    max-width: 100%;
    height: auto;
}

/* 特色功能区域 */
#func {
    padding: 80px 0;
    background: var(--light-gray);
}

#func .intro {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

#func h3 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark);
    position: relative;
}

#func h3:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

/* 功能卡片网格布局 */
#func .grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* margin: 0 -15px; */
}

/* 功能卡片 */
#func .grid > div {
    width: calc(33.333% - 30px);
    /* margin: 15px; */
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 图标容器 */
#func .grid .icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 119, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* 图标 */
#func .grid .icon img {
    width: 30px;
    height: 30px;
}

/* 标题 */
#func .grid h3 {
    font-size: 20px;
    color: var(--dark);
    margin: 15px 0;
    text-align: center;
    width: 100%;
    position: relative;
}

/* 描述文字 */
#func .grid p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
    width: 100%;
}

/* 悬停效果 */
#func .grid > div:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

#func .grid > div:hover .icon {
    transform: scale(1.1);
}

/* 响应式布局 */
@media (max-width: 992px) {
    #func .grid > div {
        width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    #func .grid > div {
        width: 100%;
        margin: 15px 0;
    }
    
    #func h3 {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

/* 更多功能区域样式 */
#morefunc {
    padding: 80px 0;
    background: var(--white);
}

#morefunc .intro {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

#morefunc h3 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark);
    position: relative;
}

#morefunc h3:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

/* 功能卡片布局 */
#morefunc .window {
    display: flex;
    justify-content: center;  /* 居中对齐 */
    gap: 30px;  /* 卡片之间的间距 */
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

#morefunc .window li {
    width: calc(33.333% - 20px);  /* 三等分减去间距 */
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 图标样式 */
#morefunc .window li img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(22, 119, 255, 0.1);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* 标题样式 */
#morefunc .window li h3 {
    font-size: 20px;
    margin: 15px 0;
    color: var(--dark);
    text-align: center;
}

/* 描述文字样式 */
#morefunc .window li .detail {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* 悬停效果 */
#morefunc .window li:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

#morefunc .window li:hover img {
    transform: scale(1.1);
}

/* 响应式布局 */
@media (max-width: 992px) {
    #morefunc .window li {
        width: calc(50% - 20px);  /* 两列布局 */
    }
}

@media (max-width: 768px) {
    #morefunc {
        padding: 50px 0;
    }

    #morefunc h3 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    #morefunc .window li {
        width: 100%;  /* 单列布局 */
        margin-bottom: 20px;
    }

    #morefunc .window li img {
        width: 50px;
        height: 50px;
    }
}

/* 和谐的体验区域 */
#experience {
    padding: 80px 0;
    background: var(--white);
}

#experience .intro {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

#experience h3 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

#experience h3:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

/* 体验卡片布局 */
#experience .window {
    display: flex;
    /* margin: 0 -15px;
    flex-wrap: wrap; */
}

/* 宽度小于1024px时，显示两列 */
@media (max-width: 1024px) {
    #experience .window {
        flex-direction: column;
    }
}

#experience  ul li{
     justify-content: center;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}
/* 修正col-xs-3的宽度 */
#experience .col-xs-3 {
    width: 25%;  /* 四等分 */
    padding: 0 15px;
    margin-bottom: 30px;
}

/* 卡片内容样式 */
#experience .col-xs-3 {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

#experience .col-xs-3:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* 图标样式 */
#experience .col-xs-3 img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(22, 119, 255, 0.1);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

#experience .col-xs-3:hover img {
    transform: scale(1.1);
}

/* 标题样式 */
#experience .col-xs-3 h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: var(--dark);
    position: relative;
}

/* 描述文字样式 */
#experience .col-xs-3 .detail {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
    margin-top: 5px;
}

/* 响应式优化 */
@media (max-width: 1024px) {
    #experience .col-xs-3 {
        width: 50%;  /* 平板上显示两列 */
    }
}

@media (max-width: 768px) {
    #experience {
        padding: 50px 0;
    }

    #experience h3 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    #experience .col-xs-3 {
        width: 100%;  /* 手机上显示单列 */
    }
}



/* ... existing code ... */

.inrto_animal {
  position: relative;
  width: 230px;
  height: 182px;
  margin: 20px auto;
}

.inrto_animal img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.inrto_animal .mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

/* 添加旋转动画 */
.inrto_animal img {
  animation: rotate 20s linear infinite;
}

.inrto_animal .mask img {
  animation: rotate 15s linear infinite reverse;
}

@keyframes rotate {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}

/* 悬停时暂停动画 */
.inrto_animal:hover img {
  animation-play-state: paused;
}


.banner-text {
    background: white;
    padding: 20px 40px;
    border-radius: 50px;
    color: var(--primary);
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(22, 119, 255, 0.15);
    border: 2px solid var(--primary);
    display: inline-block;
    position: relative;
}

.banner-text::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
}
@keyframes shine {
    to {
        left: 100%;
    }
}