/* 主样式文件 - 整合所有自定义样式 */

/* 导入本地字体 */
@import url('./fonts-local.css');

/* 导入FontAwesome图标 */
@import url('./fontawesome-local.css');

/* 导入TailwindCSS工具类 */
@import url('./tailwind-local.css');

/* 确保TailwindCSS正确加载的备用方案 */
@import url('https://cdn.tailwindcss.com');

/* 全局样式重置和优化 */
* {
    box-sizing: border-box;
}

.de_iv_adv {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
    /* background-color: #F8F8F8; */
    margin: 10px 0 0px;
}

/* 底部广告位 */
.postionFixed {
    width: 100%;
    min-height: 60px;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F8F8F8;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 9999;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 防止所有容器超出视口宽度 */
.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* 细致的字体样式设置 */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #1f2937;
}

h1 {
    font-weight: 200;
    letter-spacing: -0.03em;
}

h2 {
    font-weight: 300;
    letter-spacing: -0.025em;
}

h3 {
    font-weight: 400;
    letter-spacing: -0.02em;
}

p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.7;
    color: #4b5563;
}

/* 列表样式 */
ul,
ol {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.7;
}

li {
    color: #4b5563;
    margin-bottom: 0.5rem;
}

strong {
    font-weight: 500;
    color: #374151;
}

/* 导航和菜单的字体 */
nav a {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: -0.01em;
    position: relative;
}

/* 桌面端导航链接悬停效果 */
nav a:hover {
    transform: translateY(-1px);
}

/* 导航链接活跃状态指示器 */
nav a.active {
    color: #7c3aed;
    font-weight: 400;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    border-radius: 1px;
}

/* 移动端菜单样式 */
#mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    padding: 1rem;
}

#mobile-menu a {
    border-radius: 8px;
    transition: all 0.2s ease;
}

#mobile-menu a:hover {
    background-color: rgba(124, 58, 237, 0.1);
    transform: translateX(4px);
}

/* 移动端菜单动画 */
#mobile-menu.show {
    animation: slideDown 0.3s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端菜单按钮动画 */
#mobile-menu-btn {
    transition: all 0.2s ease;
}

#mobile-menu-btn:hover {
    transform: scale(1.1);
}

#mobile-menu-btn.active {
    transform: rotate(90deg);
}

/* Header粘性定位优化 */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.back-to-top:active {
    transform: translateY(0);
}

/* 链接样式 */
a {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: -0.005em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* 特殊元素的字体优化 */
.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 100;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.feature-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    letter-spacing: -0.015em;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    letter-spacing: -0.02em;
}

/* 状态和提示文本 */
.status-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: -0.005em;
}

/* 数值显示 */
.value-display {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

/* 表单样式 */
.label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: -0.005em;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.5;
    transition: border-color 0.3s ease;
    color: #1f2937;
}

.form-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: -0.005em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* 标签页按钮 */
.tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: -0.005em;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
}

.tab-button:hover {
    color: #7c3aed;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        max-width: 100%;
        width: 100%;
    }

    .card {
        padding: 1rem;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.1rem;
    }

    .text-4xl {
        font-size: 2rem;
    }

    .text-5xl {
        font-size: 2.5rem;
    }

    .md\\:text-6xl {
        font-size: 2.5rem;
    }

    .md\\:text-4xl {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        max-width: 100%;
        width: 100%;
    }

    .card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        width: 100%;
        max-width: 100%;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        width: 100%;
        max-width: 100%;
    }

    .text-xl {
        font-size: 1.125rem;
    }

    .md\\:text-2xl {
        font-size: 1.25rem;
    }
}

/* 防止移动端水平滚动的额外措施 */
@media (max-width: 768px) {

    html,
    body {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    header,
    section,
    footer {
        max-width: 100vw;
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* 备用样式 - 确保基本布局正常 */
.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-white {
    background-color: #ffffff;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-purple-100 {
    background-color: #f3e8ff;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.text-white {
    color: #ffffff;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-800 {
    color: #1f2937;
}

.text-blue-600 {
    color: #2563eb;
}

.text-green-600 {
    color: #16a34a;
}

.text-purple-600 {
    color: #9333ea;
}

.text-red-600 {
    color: #dc2626;
}

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

.flex {
    display: flex;
}

.hidden {
    display: none;
}

.grid {
    display: grid;
}

.block {
    display: block;
}

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

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

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

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-4 {
    margin-right: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.space-x-4> :not([hidden])~ :not([hidden]) {
    margin-left: 1rem;
}

.space-x-6> :not([hidden])~ :not([hidden]) {
    margin-left: 1.5rem;
}

.space-y-2> :not([hidden])~ :not([hidden]) {
    margin-top: 0.5rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

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

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

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

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

.flex-wrap {
    flex-wrap: wrap;
}

.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-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.font-medium {
    font-weight: 500;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.opacity-80 {
    opacity: 0.8;
}

.opacity-90 {
    opacity: 0.9;
}

.h-10 {
    height: 2.5rem;
}

.h-16 {
    height: 4rem;
}

.w-auto {
    width: auto;
}

.w-16 {
    width: 4rem;
}

.rounded-full {
    border-radius: 9999px;
}

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

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover\\:text-purple-600:hover {
    color: #9333ea;
}

.hover\\:bg-purple-50:hover {
    background-color: #faf5ff;
}

/* 响应式样式 */
@media (min-width: 640px) {
    .sm\\:flex-row {
        flex-direction: row;
    }

    .sm\\:gap-4 {
        gap: 1rem;
    }

    .sm\\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

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

    .md\\:hidden {
        display: none;
    }

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

    .md\\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .md\\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .md\\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

@media (min-width: 1024px) {
    .lg\\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* 确保页面基本样式正确 */
.hero-title {
    font-size: 3.75rem;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* 渐变文本版本（用于白色背景） */
.hero-title.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.feature-description {
    color: #6b7280;
    line-height: 1.6;
}

/* 确保容器正确 */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* 按钮样式增强 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }

    .feature-title {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}