/* 自定义样式 */

/* 滚动条样式 */
.scrollbar-thin {
    scrollbar-width: thin;
}

.scrollbar-track-neutral-200::-webkit-scrollbar-track {
    background: #e5e5e5;
}

.scrollbar-thumb-neutral-400::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 3px;
}

.scrollbar-track-neutral-800::-webkit-scrollbar-track {
    background: #404040;
}

.scrollbar-thumb-neutral-600::-webkit-scrollbar-thumb {
    background: #737373;
    border-radius: 3px;
}

/* 过渡效果 */
.transition-custom {
    transition: all 0.3s ease;
}

/* Feature Card 悬停效果 */
.feature-card {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* 功能特性图片轮播 */
.feature-image {
    transition: opacity 0.5s ease-in-out;
}

/* 跳过正文按钮动画 */
#the-top a {
    transition: transform 0.3s ease;
}

#the-top a:focus {
    transform: translateY(0);
}

/* 导航菜单悬停效果 */
.main-menu a:hover {
    transition: color 0.2s ease;
}

/* 移动端菜单 */
#menu-wrapper {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#menu-wrapper.visible {
    opacity: 1;
    visibility: visible;
}

/* 搜索弹窗 */
#search-wrapper {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#search-wrapper.visible {
    opacity: 1;
    visibility: visible;
}

#search-modal {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮悬停效果 */
button, .btn {
    transition: all 0.2s ease;
}

/* 新闻卡片悬停效果 */
.thumbnail_card {
    transition: transform 0.3s ease;
}

a:hover .thumbnail_card {
    transform: scale(1.02);
}

/* Logo 样式 */
.logo {
    display: inline-block;
}

/* 图标样式 */
.icon {
    display: inline-block;
    vertical-align: middle;
}

/* 页脚链接悬停 */
footer a {
    transition: color 0.2s ease;
}

/* Hero section 装饰 */
.hero-section .absolute svg {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }

    .text-6xl {
        font-size: 2.5rem !important;
    }

    .text-[40px] {
        font-size: 1.75rem !important;
    }

    .text-[60px] {
        font-size: 2.5rem !important;
    }
}

/* 图片加载优化 */
img {
    max-width: 100%;
    height: auto;
}

/* 圆角 */
.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* 阴影 */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 渐变背景 */
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

/* 背景混合模式 */
.mix-blend-normal {
    mix-blend-mode: normal;
}

/* 弹性盒子 */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* 网格 */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-10 {
    gap: 2.5rem;
}

.gap-4 {
    gap: 1rem;
}

/* 定位 */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.-z-10 {
    z-index: -10;
}

.z-30 {
    z-index: 30;
}

.z-500 {
    z-index: 500;
}

/* 间距 */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-15 { margin-bottom: 3.75rem; }
.my-20 { margin-top: 5rem; margin-bottom: 5rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-5 { margin-left: 1.25rem; }
.ml-12 { margin-left: 3rem; }
.mr-3 { margin-right: 0.75rem; }

.p-0 { padding: 0; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-4 { padding-top: 1rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pt-\[5px\] { padding-top: 5px; }
.pb-\[3px\] { padding-bottom: 3px; }
.pr-0 { padding-right: 0; }
.pl-0 { padding-left: 0; }

/* 宽度高度 */
.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-40 { width: 10rem; }
.w-48 { width: 12rem; }
.w-screen { width: 100vw; }
.h-1\/2 { height: 50%; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-screen { height: 100vh; }
.h-20 { height: 5rem; }
.min-h-0 { min-height: 0; }
.min-h-full { min-height: 100%; }
.max-w-3xl { max-width: 48rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-full { max-width: 100%; }
.max-w-2xl { max-width: 42rem; }

/* 文字 */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-\[40px\] { font-size: 40px; }
.text-\[60px\] { font-size: 60px; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.leading-7 { line-height: 1.75rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* 颜色 */
.text-gray-500 { color: #6b7280; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-slate-600 { color: #475569; }
.text-slate-800 { color: #1e293b; }
.text-neutral { color: #404040; }
.text-neutral-500 { color: #737373; }
.text-neutral-600 { color: #525252; }
.text-neutral-700 { color: #404040; }
.text-neutral-800 { color: #262626; }
.text-neutral-900 { color: #171717; }
.text-white { color: #ffffff; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-purple-600 { color: #9333ea; }
.text-red-100 { color: #fee2e2; }
.text-\[\#ff6b6b\] { color: #ff6b6b; }
.bg-white { background-color: #ffffff; }
.bg-neutral { background-color: #ffffff; }
.bg-neutral-100 { background-color: #ffffff; }
.bg-neutral-200 { background-color: #f5f5f5; }
.bg-gray-100 { background-color: #ffffff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-primary-200 { background-color: #bfdbfe; }
.bg-transparent { background-color: transparent; }
.bg-neutral-500\/50 { background-color: rgba(115, 115, 115, 0.5); }
.bg-neutral-100\/50 { background-color: rgba(245, 245, 245, 0.5); }
.bg-neutral-900\/50 { background-color: rgba(38, 38, 38, 0.5); }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-neutral-200 { border-color: #e5e5e5; }
.border-neutral-700 { border-color: #404040; }
.border-gray-200 { border-color: #e5e5e5; }
.border-primary-500 { border-color: #3b82f6; }
.border-blue-500 { border-color: #3b82f6; }

/* 圆角 */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-b-lg { border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }

/* 阴影 */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* 溢出 */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-visible { overflow: visible; }

/* 定位 */
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.-left-8 { left: -2rem; }
.-top-8 { top: -2rem; }
.-right-8 { right: -2rem; }
.-bottom-8 { bottom: -2rem; }
.top-20 { top: 5rem; }

/* 过渡 */
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-custom { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-500 { transition-duration: 500ms; }
.duration-300 { transition-duration: 300ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* 透明度 */
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }

/* 显示 */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

/* 空格 */
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem; }
.space-x-5 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.25rem; }

/* 响应式 */
@media (min-width: 640px) {
    .sm\:px-14 { padding-left: 3.5rem; padding-right: 3.5rem; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:flex-row { flex-direction: row; }
    .md\:flex-col { flex-direction: column; }
    .md\:w-\[400px\] { width: 400px; }
    .md\:w-1\/4 { width: 25%; }
    .md\:w-2\/3 { width: 66.666667%; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
    .md\:max-w-\[768px\] { max-width: 768px; }
    .md\:text-left { text-align: left; }
    .md\:text-right { text-align: right; }
    .md\:justify-start { justify-content: flex-start; }
    .md\:justify-between { justify-content: space-between; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:ml-12 { margin-left: 3rem; }
    .md\:mb-0 { margin-bottom: 0; }
    .order-1 { order: 1; }
    .order-2 { order: 2; }
}

@media (min-width: 1024px) {
    .lg\:p-\[12vh\] { padding-top: 12vh; padding-bottom: 12vh; }
}

/* 其他 */
.appearance-none { -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.cursor-default { cursor: default; }
.cursor-pointer { cursor: pointer; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.resize { resize: both; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }
