/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px; /* 为固定导航栏预留空间 */
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: #1E293B;
    background-color: #F8FAFC;
}

/* 链接样式 - 移除下划线 */
a, a:hover, a:focus, a:active {
    text-decoration: none !important;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 布局组件 */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: 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-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-12 { margin-top: 3rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.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; }
.pt-32 { padding-top: 8rem; }
.pb-20 { padding-bottom: 5rem; }

/* 网格布局 */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gap-8 { gap: 2rem; }

/* 文本样式 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #fff !important; }
.text-primary { color: #165DFF !important; }
.text-secondary { color: #36D399 !important; }
.text-accent { color: #FF6B35 !important; }
.text-gray-400 { color: #94A3B8 !important; }
.text-gray-500 { color: #64748B !important; }
.text-gray-600 { color: #475569 !important; }
.text-gray-800 { color: #1E293B !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.text-3xl { font-size: 1.875rem !important; }
.text-4xl { font-size: 2.25rem !important; }
.font-bold { font-weight: 700 !important; }
.font-medium { font-weight: 500 !important; }
.leading-tight { line-height: 1.25 !important; }

/* 背景样式 */
.bg-white { background-color: #fff !important; }
.bg-gray-50 { background-color: #F8FAFC !important; }
.bg-primary { background-color: #165DFF !important; }
.bg-dark { background-color: #1E293B !important; }
.bg-gradient-primary { 
    background: linear-gradient(to bottom right, rgba(22, 93, 255, 0.05), rgba(22, 93, 255, 0.1)) !important;
}

/* 边框与圆角 */
.border { border: 1px solid !important; }
.border-primary { border-color: #165DFF !important; }
.border-gray-100 { border-color: #F1F5F9 !important; }
.border-gray-200 { border-color: #E2E8F0 !important; }
.border-gray-800 { border-color: #1E293B !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-full { border-radius: 9999px !important; }
.rounded-bl-lg { border-bottom-left-radius: 0.5rem !important; }

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

/* 尺寸 */
.w-full { width: 100% !important; }
.w-10 { width: 2.5rem !important; }
.w-14 { width: 3.5rem !important; }
.w-20 { width: 5rem !important; }
.w-40 { width: 10rem !important; }
.h-10 { height: 2.5rem !important; }
.h-14 { height: 3.5rem !important; }
.h-20 { height: 5rem !important; }
.h-40 { height: 10rem !important; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-3xl { max-width: 48rem !important; }
.max-w-4xl { max-width: 56rem !important; }
.max-w-5xl { max-width: 64rem !important; }

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

/* 列表 */
.list-none { list-style: none !important; }
.space-y-3 > * + * { margin-top: 0.75rem !important; }
.space-y-4 > * + * { margin-top: 1rem !important; }
.space-x-4 > * + * { margin-left: 1rem !important; }
.space-x-6 > * + * { margin-left: 1.5rem !important; }
.space-x-8 > * + * { margin-left: 2rem !important; }
.gap-8 { gap: 2rem !important; }

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
}

/* 卡片样式 */
.card-hover {
    transition: all 0.3s ease !important;
}

.card-hover:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* 动画效果 */
.transition {
    transition: all 0.3s ease !important;
}

.rotate-180 {
    transform: rotate(180deg) !important;
}

/* 导航栏样式 */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 9999 !important;
    transition: all 0.3s ease !important;
}

/* 图片样式 */
.img-responsive {
    max-width: 100% !important;
    height: auto !important;
}

/* FAQ样式 */
.faq-toggle {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: none !important;
    border: none !important;
    text-align: left !important;
    padding: 1.5rem !important;
    font-weight: bold !important;
    font-size: 1.125rem !important;
    cursor: pointer !important;
}

.faq-content {
    padding: 0 1.5rem 1.5rem !important;
    color: #475569 !important;
}

/* 页脚样式 */
.footer-link {
    color: #94A3B8 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.footer-link:hover {
    color: white !important;
}

/* 特殊效果 */
.blur-3xl {
    filter: blur(24px) !important;
}

.transform {
    transition: transform 0.3s ease !important;
}

.rotate-1 {
    transform: rotate(1deg) !important;
}

.scale-105 {
    transform: scale(1.05) !important;
}

/* 响应式调整 */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row !important; }
    .sm\:space-y-0 > * + * { margin-top: 0 !important; }
    .sm\:px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
    .sm\:space-x-4 > * + * { margin-left: 1rem !important; }
    .sm\:space-x-6 > * + * { margin-left: 1.5rem !important; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
    .md\:block { display: block !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (min-width: 1024px) {
    .lg\:flex-row { flex-direction: row !important; }
    .lg\:w-1/2 { width: 50% !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, 1fr) !important; }
    .lg\:rotate-1 { transform: rotate(1deg) !important; }
}

/* 自定义工具类 */
.no-underline {
    text-decoration: none !important;
}

.relative {
    position: relative !important;
}

.absolute {
    position: absolute !important;
}

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

.z-50 {
    z-index: 50 !important;
}

.z-9999 {
    z-index: 9999 !important;
}

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

.top-0 {
    top: 0 !important;
}

.right-0 {
    right: 0 !important;
}

.bottom-1/4 {
    bottom: 25% !important;
}

.top-1/4 {
    top: 25% !important;
}

.-right-10 {
    right: -2.5rem !important;
}

.-left-10 {
    left: -2.5rem !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px) !important;
}

/* 伪类选择器 */
::before, ::after {
    box-sizing: border-box !important;
}

/* 确保第一个区块不会被导航栏遮挡 */
section:first-of-type {
    padding-top: 120px !important;
    padding-bottom: 80px !important;
}

/* 常见问题区块特殊样式 */
#faq {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

#faq .border {
    margin-bottom: 1rem !important;
}

#faq .faq-toggle {
    width: 100% !important;
}

/* 底部区域样式 */
footer {
    margin-top: 0 !important;
    padding-top: 60px !important;
    padding-bottom: 30px !important;
}

footer .grid {
    margin-bottom: 40px !important;
}

footer .border-t {
    padding-top: 30px !important;
    margin-top: 30px !important;
}
    