/* Tailwind 配置 - 这个需要在HTML中通过script标签保留 */
/* 自定义工具类 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .card-hover {
        transition: all 0.3s ease;
    }
    .card-hover:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .gradient-mask {
        mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    }
}

/* 全局样式 */
body {
    font-family: 'Inter', sans-serif;
    background-color: white;
    color: #1f2937;
}

/* 主题颜色变量 */
:root {
    --primary-color: #663399;
    --secondary-color: #47208F;
}

/* 导航栏样式 */
#navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

/* 移动设备导航栏增强样式 */
.mobile-navbar {
    background-color: transparent;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    width: 100%;
    left: 0;
    right: 0;
    position: fixed;
    top: 0;
    z-index: 50;
    box-shadow: none;
    /* 确保导航栏在移动设备上始终固定 */
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-navbar nav {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* 移动端菜单样式增强 */
#mobile-menu {
    position: absolute;
    width: 100%;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform-origin: top;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scaleY(0);
    z-index: 40;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: scaleY(1);
}

/* 移动端菜单项样式 */
#mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark-color, #1f2937);
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

#mobile-menu a:hover {
    background-color: #f9fafb;
    color: var(--primary-color, #47208F);
    padding-left: 1.25rem;
}

#mobile-menu a:last-child {
    border-bottom: none;
}

/* 移动端菜单按钮样式 */
#menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 确保PC端完全隐藏汉堡菜单按钮 */
@media (min-width: 768px) {
    #menu-toggle {
        display: none !important;
        visibility: hidden;
        opacity: 0;
    }
}

/* 移动端返回顶部按钮 */
.mobile-back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
}

/* 英雄区样式 */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero .absolute.inset-0 {
    z-index: 10;
}

#hero .absolute.inset-0:first-child {
    background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color));
    opacity: 0.9;
}

#hero .absolute.inset-0 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* 选项卡样式 */
.tab-btn {
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: #47208F;
    color: white;
}

.tab-pane {
    transition: all 0.3s ease;
}

.tab-pane.hidden {
    display: none;
}

/* 返回顶部按钮 */
#back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #47208F;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 50;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .md\:flex {
        display: none;
    }
    .md\:hidden {
        display: block;
    }
}

@media (min-width: 769px) {
    .md\:hidden {
        display: none;
    }
    .md\:flex {
        display: flex;
    }
}