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

/* 基础变量定义 */
:root {
    --primary: #1677ff;
    --primary-hover: #4096ff;
    --primary-bg: #f0f5ff;
    /* 浅蓝背景 */
    --secondary: #0958d9;
    --success: #52c41a;
    --warning: #faad14;
    --danger: #ff4d4f;
    --dark: #001529;
    /* 更深邃的深色 */
    --text-main: #1f1f1f;
    --text-secondary: #666666;
    --light-gray: #f7f8fa;
    /* 更高级的浅灰 */
    --white: #ffffff;
    --border: #ebeef5;
    /* 弥散光感阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(22, 119, 255, 0.12);
    /* 带色相的阴影 */
    --radius: 12px;
    /* 更大的圆角 */
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.8;
    /* 增加行高 */
    color: var(--text-main);
    background: var(--white);
    overflow-x: hidden;
    font-size: 15px;
    /* 稍微加大字号 */
    -webkit-font-smoothing: antialiased;
    /* 字体抗锯齿 */
}

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

/* 导航栏样式 - Premium Style */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    /* 强毛玻璃效果 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Add padding to body to prevent content hiding behind fixed header */
body {
    padding-top: 70px;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    height: 70px;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary) !important;
    text-decoration: none !important;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.navbar-brand .label {
    font-size: 14px;
    margin-left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    vertical-align: middle;
}

/* Banner区域 - Premium Style */
.banner {
    /* 科技感渐变 + 噪点纹理 */
    background: radial-gradient(circle at 10% 20%, rgb(22, 119, 255) 0%, rgb(9, 88, 217) 90%);
    padding: 120px 0 100px;
    /* 加大间距 */
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Banner 背景装饰 */
.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+');
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.description {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.description h1 {
    font-size: 48px;
    /* 更大气的标题 */
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.description h2 {
    font-size: 22px;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.description .btn {
    display: inline-block;
    padding: 0;
    border: none;
    background: none;
}

.description .btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 48px;
    background: var(--white);
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    /* 悬浮感阴影 */
}

.description .btn a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    background: var(--white);
}

.version {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    margin: 32px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    font-weight: 500;
}

.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: 100px 0;
    position: relative;
    background: var(--white);
}

section h3 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--dark);
    letter-spacing: -0.01em;
}

/* Global Card Style - Premium */
.col-xs-3,
#func .grid>div,
#morefunc .window li {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    top: 0;
}

.col-xs-3:hover,
#func .grid>div:hover,
#morefunc .window li:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

/* Global Icon Style */
.col-xs-3 img,
#func .grid .icon,
#morefunc .window li img {
    background: var(--primary-bg);
    padding: 16px;
    border-radius: 20px;
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 24px;
    transition: transform 0.4s ease;
}

.col-xs-3:hover img,
#func .grid>div:hover .icon,
#morefunc .window li:hover img {
    transform: scale(1.1) rotate(3deg);
}

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

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

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

#intro h3:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

#intro .detail {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 auto 60px;
    max-width: 800px;
}

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

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

#func h3 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 80px;
    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: center;
    gap: 30px;
}

#func .grid>div {
    width: calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0;
}

#func .grid .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--primary-bg);
    margin-bottom: 24px;
}

#func .grid .icon img {
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    margin: 0;
}

#func .grid h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 16px 0;
    text-align: center;
    width: 100%;
    position: relative;
}

#func .grid h3:after {
    display: none;
}

#func .grid p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    width: 100%;
}

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

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

#morefunc h3 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 80px;
    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);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#morefunc .window li h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--dark);
    text-align: center;
}

#morefunc .window li .detail {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

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

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

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

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

#experience .window {
    display: flex;
    justify-content: center;
    gap: 30px;
}

#experience ul li {
    justify-content: center;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

#experience .col-xs-3 {
    width: 25%;
    padding: 0;
    margin: 0;
    /* Reset styles to inherit from global card */
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

#experience .col-xs-3:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

#experience .col-xs-3 h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--dark);
    position: relative;
    text-align: center;
}

#experience .col-xs-3 .detail {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

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

#success img {
    max-width: 180px;
    margin: 20px 40px;
    display: inline-block;
    vertical-align: middle;
    filter: grayscale(100%);
    /* 灰色滤镜 */
    opacity: 0.6;
    transition: all 0.3s ease;
}

#success img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* 页脚样式 - Premium Style */
#footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 40px;
    text-align: center;
    font-size: 14px;
}

.footer-detail {
    opacity: 1;
    line-height: 2;
    max-width: 800px;
    margin: 0 auto;
}

.footer-detail a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 10px;
}

.footer-detail a:hover {
    color: var(--white);
}

/* 动画元素 */
.inrto_animal {
    position: relative;
    width: 260px;
    height: 200px;
    margin: 60px auto;
}

.inrto_animal img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: rotate 30s linear infinite;
}

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

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

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

    to {
        transform: rotate(360deg);
    }
}

.inrto_animal:hover img {
    animation-play-state: paused;
}

/* 数据统计区域 */
#stats {
    padding: 60px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    font-family: "DIN Alternate", "Roboto", sans-serif;
}

.stat-item .label {
    font-size: 16px;
    color: var(--text-secondary);
}

/* 工作流程区域 */
#workflow {
    padding: 120px 0;
    background: var(--white);
    text-align: center;
}

#workflow h3 {
    font-size: 36px;
    margin-bottom: 80px;
    color: var(--dark);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.step-num {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 30px;
    position: relative;
}

.step h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark);
}

.step p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-arrow {
    font-size: 30px;
    color: var(--border);
    margin-top: 15px;
    font-weight: 300;
}

/* 底部 CTA 区域 */
#cta {
    padding: 100px 0;
    background: radial-gradient(circle at 50% 50%, #1677ff 0%, #003eb3 100%);
    color: var(--white);
    text-align: center;
}

.cta-box h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary,
.btn-outline {
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    background: var(--white);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* 动画定义 - Silky Smooth */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 119, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(22, 119, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 119, 255, 0);
    }
}

/* Banner 进场动画 */
.description h1 {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    /* 初始隐藏 */
}

.description h2 {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
    opacity: 0;
}

.description .group {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
    opacity: 0;
}

/* 软件截图悬浮动画 */
#software {
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* 按钮丝滑交互 */
.description .btn a {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* 弹性效果 */
}

.description .btn a:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.description .btn a:active {
    transform: translateY(-2px) scale(0.98);
}

/* 卡片丝滑交互 */
.col-xs-3,
#func .grid>div,
#morefunc .window li,
.card-item {
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* 更加平滑 */
}

.col-xs-3:hover,
#func .grid>div:hover,
#morefunc .window li:hover,
.card-item:hover {
    transform: translateY(-12px);
    /* 加大上浮距离 */
    box-shadow: 0 20px 40px rgba(22, 119, 255, 0.15);
    /* 更柔和的大阴影 */
}

/* 图标微动效 */
.col-xs-3:hover img,
#func .grid>div:hover .icon,
#morefunc .window li:hover img,
.card-item:hover img {
    transform: scale(1.15) rotate(5deg);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 底部Banner文字 */
.banner-text {
    background: var(--white);
    padding: 20px 60px;
    border-radius: 100px;
    color: var(--primary);
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 12px 32px rgba(22, 119, 255, 0.15);
    border: 1px solid rgba(22, 119, 255, 0.1);
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    animation: pulse-soft 3s infinite;
}

.banner-text:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 48px rgba(22, 119, 255, 0.25);
    animation: none;
}

.banner-text::after {
    content: '→';
    margin-left: 12px;
    font-size: 1.2em;
    transition: transform 0.3s ease;
    position: static;
    transform: none;
}

.banner-text:hover::after {
    transform: translateX(8px);
}

.gg {
    margin-top: 60px;
    text-align: center;
}

/* 移除旧的动画定义，防止冲突 */
.inrto_animal img {
    animation: none;
    /* 重新定义 */
}

.inrto_animal .mask img {
    animation: none;
}

/* 重新定义旋转动画，更慢更优雅 */
.inrto_animal img {
    animation: rotate 40s linear infinite;
}

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

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

    to {
        transform: rotate(360deg);
    }
}

/* Grid Layout - CSS Grid */
.grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    padding: 0 15px;
    justify-content: center;
}

/* 重新定义 card-item 样式以匹配新结构 */
.card-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    /* width: calc(33.333% - 20px);  Removed for Grid */
    width: 100%;
    /* Fill grid cell */
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    /* Equal height */
}

.card-item .icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--primary-bg);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-item .icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin: 0;
    padding: 0;
    background: none;
}

/* 针对直接包含图片的卡片 (Experience Section) */
.card-item>img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 24px;
    transition: transform 0.5s ease;
}

.card-item:hover>img {
    transform: scale(1.1) rotate(5deg);
}

.card-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--dark);
}

.card-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

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

@media (max-width: 1024px) {
    #experience .window {
        flex-direction: column;
        align-items: center;
    }

    #experience .col-xs-3 {
        width: 80%;
        /* 平板上加宽 */
        margin-bottom: 20px;
    }
}

@media (max-width: 992px) {

    .col-xs-3,
    #func .grid>div,
    #morefunc .window li {
        width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .description h1 {
        font-size: 32px;
    }

    .description h2 {
        font-size: 18px;
    }

    .grid,
    #func .grid,
    #morefunc .window,
    #experience .window {
        flex-direction: column;
        gap: 20px;
    }

    .col-xs-3,
    #func .grid>div,
    #morefunc .window li,
    #experience .col-xs-3 {
        width: 100%;
        margin: 0;
    }

    section {
        padding: 60px 0;
    }

    #success img {
        max-width: 120px;
        margin: 10px;
    }

    .banner {
        padding: 100px 0 60px;
    }
}

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

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

/* Scroll Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* 延迟显示，用于列表项 */
.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}

.reveal-delay-400 {
    transition-delay: 0.4s;
}

.reveal-delay-500 {
    transition-delay: 0.5s;
}

/* 摸鱼办悬浮窗 */
#game-dock {
    position: fixed;
    right: 30px;
    bottom: 100px;
    z-index: 9999;
}

.dock-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff9c6e 0%, #ff7a45 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 122, 69, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: float 4s ease-in-out infinite;
}

.dock-toggle .icon {
    font-size: 24px;
    margin-bottom: -2px;
}

.dock-toggle .text {
    font-size: 10px;
    color: white;
    font-weight: bold;
}

.dock-toggle:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 12px 32px rgba(255, 122, 69, 0.6);
}

.dock-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 160px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom right;
}

/* 修复悬浮间隙问题：增加透明桥接层 */
.dock-menu::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}

#game-dock:hover .dock-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.game-item {
    display: flex;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    color: var(--dark);
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.game-item:last-child {
    margin-bottom: 0;
}

.game-item:hover {
    background: var(--primary-bg);
    transform: translateX(-4px);
}

.game-icon {
    font-size: 20px;
    margin-right: 12px;
}

.game-name {
    font-size: 14px;
    font-weight: 600;
}