/**
 * AIM Kids 专用样式
 *
 * @package AIMTheme
 * @since 1.0.0
 */

/* ========================================
   字体加载
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Paytone+One&display=swap');

/* ========================================
   PC 端导航栏
   ======================================== */
.aimkids-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding-top: 16px;
    pointer-events: none;
}

.aimkids-nav {
    width: 740px;
    height: 56px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #f6f6f6;
    border-radius: 100px;
    box-shadow: 0px 3.4px 3.4px rgba(44, 43, 79, 0.04),
                0px 1px 2px rgba(44, 43, 79, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 37px;
    pointer-events: auto;
}

/* Logo */
.aimkids-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.aimkids-logo img {
    width: 66px;
    height: 34px;
    object-fit: contain;
}

/* PC 端菜单 */
.aimkids-menu {
    display: flex;
    align-items: center;
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.aimkids-menu li {
    margin: 0;
    padding: 0;
}

.aimkids-menu a {
    font-family: 'Paytone One', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #d2d6d8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.aimkids-menu a:hover,
.aimkids-menu a.is-active {
    color: #d52f45;
}

/* 汉堡菜单按钮 */
.aimkids-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 20px;
    height: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.aimkids-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #d52f45;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* ========================================
   移动端样式
   ======================================== */
@media (max-width: 1023px) {
    .aimkids-nav {
        width: 355px;
        padding: 0 20px;
    }

    .aimkids-menu {
        display: none;
    }

    .aimkids-menu-toggle {
        display: flex;
    }
}

/* 更小屏幕适配 */
@media (max-width: 400px) {
    .aimkids-nav {
        width: calc(100% - 40px);
        max-width: 355px;
    }
}

/* ========================================
   移动端全屏菜单
   ======================================== */
.aimkids-mobile-menu {
    position: fixed;
    inset: 0;
    background: #d52f45;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.aimkids-mobile-menu.hidden {
    display: none;
}

/* 移动端菜单头部 */
.aimkids-mobile-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #d52f45;
    z-index: 10;
}

.aimkids-mobile-header .aimkids-logo img {
    width: 66px;
    height: 34px;
}

/* 关闭按钮 */
.aimkids-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

.aimkids-menu-close:hover {
    opacity: 0.8;
}

/* 移动端导航内容 */
.aimkids-mobile-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 80px 20px 40px;
    color: #ffffff;
}

/* 菜单分组 */
.aimkids-mobile-nav .menu-section {
    width: 245px;
    text-align: right;
    margin-bottom: 24px;
}

.aimkids-mobile-nav .menu-section h2 {
    font-family: 'Paytone One', sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 80px;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
}

.aimkids-mobile-nav .menu-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aimkids-mobile-nav .menu-section li {
    margin: 0;
    padding: 0;
}

.aimkids-mobile-nav .menu-section a {
    font-family: 'HarmonyOS Sans SC', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 12px 0;
    transition: opacity 0.2s ease;
}

.aimkids-mobile-nav .menu-section a:hover {
    opacity: 0.8;
}

/* 主菜单链接 */
.aimkids-mobile-nav .menu-link {
    font-family: 'Paytone One', sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 80px;
    color: #ffffff;
    text-decoration: none;
    display: block;
    width: 245px;
    text-align: right;
    transition: opacity 0.2s ease;
}

.aimkids-mobile-nav .menu-link:hover {
    opacity: 0.8;
}

.aimkids-mobile-nav .menu-link.is-active {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ========================================
   AIM Kids 页面 body 样式调整
   ======================================== */

body.aimkids-page.mobile-menu-open {
    overflow: hidden;
}

/* ========================================
   动画效果
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.aimkids-mobile-menu:not(.hidden) {
    animation: fadeIn 0.3s ease;
}

.aimkids-mobile-menu:not(.hidden) .aimkids-mobile-nav > * {
    animation: slideInRight 0.4s ease;
    animation-fill-mode: both;
}

.aimkids-mobile-menu:not(.hidden) .aimkids-mobile-nav > *:nth-child(1) {
    animation-delay: 0.1s;
}

.aimkids-mobile-menu:not(.hidden) .aimkids-mobile-nav > *:nth-child(2) {
    animation-delay: 0.15s;
}

.aimkids-mobile-menu:not(.hidden) .aimkids-mobile-nav > *:nth-child(3) {
    animation-delay: 0.2s;
}

.aimkids-mobile-menu:not(.hidden) .aimkids-mobile-nav > *:nth-child(4) {
    animation-delay: 0.25s;
}

/* ========================================
   AIM Kids Footer
   ======================================== */

.aimkids-footer {
    width: 100%;
}

/* 气泡背景图区域 */
.aimkids-footer-bubble {
    width: 100%;
    position: relative;
}

.aimkids-footer-bubble video {
    width: 100%;
    height: auto;
}

/* PC/移动端视频切换 */
.aimkids-footer-bubble video.aimkids-footer-bubble-pc {
    display: block;
}

.aimkids-footer-bubble video.aimkids-footer-bubble-mobile {
    display: none;
}

@media (max-width: 1023px) {
    .aimkids-footer-bubble video.aimkids-footer-bubble-pc {
        display: none;
    }

    .aimkids-footer-bubble video.aimkids-footer-bubble-mobile {
        display: block;
    }
}

/* 红色底部区域 */
.aimkids-footer-bottom {
    background-color: #d52f45;
    padding: 40px 48px 80px;
}

@media (max-width: 1023px) {
    .aimkids-footer-bottom {
        padding: 40px 20px;
    }
}

/* 容器布局 */
.aimkids-footer-container {
    max-width: 1344px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

@media (max-width: 1023px) {
    .aimkids-footer-container {
        flex-direction: column;
        gap: 80px;
    }
}

/* Logo 和标语 */
.aimkids-footer-brand {
    position: relative;
}

.aimkids-footer-logo {
    width: 306px;
    height: auto;
}

.aimkids-footer-slogan {
    font-weight: 500;
    font-size: 32px;
    line-height: 1.2;
    color: #f4f5f5;
}

/* 链接区域 */
.aimkids-footer-links {
    display: flex;
    gap: 80px;
    padding-top: 63px;
}

@media (max-width: 1023px) {
    .aimkids-footer-links {
        flex-direction: column;
        gap: 40px;
        padding-top: 0;
        width: 100%;
    }
}

/* 页面导航链接 */
.aimkids-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aimkids-footer-nav a {
    font-family: 'HarmonyOS Sans SC', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 18px;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.aimkids-footer-nav a:hover {
    opacity: 0.7;
}

/* 联系方式 */
.aimkids-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aimkids-footer-contact p {
    font-family: 'HarmonyOS Sans SC', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 18px;
    color: white;
    margin: 0;
}

.aimkids-footer-contact span {
    margin-right: 2em;
}

/* 社交图标 */
.aimkids-footer-social {
    display: flex;
    gap: 12px;
}

.aimkids-footer-social-item {
    position: relative;
    cursor: pointer;
}

.aimkids-footer-social-item svg {
    fill: white;
    color: white;
    transition: opacity 0.3s ease;
}

.aimkids-footer-social-item:hover svg {
    opacity: 0.7;
}

.aimkids-footer-social-qrcode {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.aimkids-footer-social-qrcode img {
    display: block;
    width: 120px;
    height: 120px;
    max-width: none !important;
    object-fit: contain;
}

.aimkids-footer-social-item:hover .aimkids-footer-social-qrcode {
    display: block;
}

@media (max-width: 1023px) {
    .aimkids-footer-social {
        justify-content: flex-start;
    }
}

/* ========================================
   AIM Kids Joining 页面样式
   ======================================== */

/* Header 区块 - 移动端适配 */
@media (max-width: 1023px) {
    .aimkids-joining-header > div {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    .aimkids-joining-header__title {
        transform: scale(0.6);
        transform-origin: left top;
    }

    .aimkids-joining-header__subtitle {
        transform: scale(0.8);
        transform-origin: left top;
    }
}

/* Contact 卡片 - 移动端适配 */
@media (max-width: 767px) {
    .aimkids-joining-contact__card {
        width: 100% !important;
    }
}
