/* MBTI测试网站 - 本地CSS样式 */

/* 基础样式重置 */
*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    line-height: inherit;
    background-color: #F8FAFC;
    font-family: 'Inter', system-ui, sans-serif;
    color: #1F2937;
}

/* 自定义颜色变量 */
:root {
    --primary: #3B82F6;
    --secondary: #8B5CF6;
    --accent: #F59E0B;
    --dark: #1E293B;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --primary-light: rgba(59, 130, 246, 0.1);
    --secondary-light: rgba(139, 92, 246, 0.1);
    --accent-light: rgba(245, 158, 11, 0.1);
}

/* 排版 */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: inherit;
}

/* 布局工具类 */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Flexbox 工具类 */
.flex {
    display: flex;
}

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

.flex-row {
    flex-direction: row;
}

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

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

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

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

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

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* Grid 工具类 */
.grid {
    display: grid;
}

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

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

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

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

/* 间距工具类 */
.m-0 {
    margin: 0;
}

.m-4 {
    margin: 1rem;
}

.mb-0 {
    margin-bottom: 0;
}

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

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

.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-0 {
    margin-top: 0;
}

.mt-2 {
    margin-top: 0.5rem;
}

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

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

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

.ml-0 {
    margin-left: 0;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-4 {
    margin-left: 1rem;
}

.ml-auto {
    margin-left: auto;
}

.mr-0 {
    margin-right: 0;
}

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

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

.mr-auto {
    margin-right: auto;
}

.my-0 {
    margin-top: 0;
    margin-bottom: 0;
}

.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.my-4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

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

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

.p-0 {
    padding: 0;
}

.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.py-0 {
    padding-top: 0;
    padding-bottom: 0;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

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

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

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

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.px-0 {
    padding-left: 0;
    padding-right: 0;
}

.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;
}

/* 文本工具类 */
.text-center {
    text-align: center;
}

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

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

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.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;
}

.font-normal {
    font-weight: 400;
}

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

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

.leading-none {
    line-height: 1;
}

.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* 颜色工具类 */
.text-white {
    color: var(--white);
}

.text-gray-50 {
    color: var(--gray-50);
}

.text-gray-100 {
    color: var(--gray-100);
}

.text-gray-200 {
    color: var(--gray-200);
}

.text-gray-300 {
    color: var(--gray-300);
}

.text-gray-400 {
    color: var(--gray-400);
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: var(--gray-700);
}

.text-gray-800 {
    color: var(--gray-800);
}

.text-gray-900 {
    color: var(--gray-900);
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-accent {
    color: var(--accent);
}

.text-dark {
    color: var(--dark);
}

.text-light {
    color: var(--light);
}

/* 背景颜色工具类 */
.bg-white {
    background-color: var(--white);
}

.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-gray-100 {
    background-color: var(--gray-100);
}

.bg-gray-200 {
    background-color: var(--gray-200);
}

.bg-gray-300 {
    background-color: var(--gray-300);
}

.bg-gray-400 {
    background-color: var(--gray-400);
}

.bg-gray-500 {
    background-color: var(--gray-500);
}

.bg-gray-600 {
    background-color: var(--gray-600);
}

.bg-gray-700 {
    background-color: var(--gray-700);
}

.bg-gray-800 {
    background-color: var(--gray-800);
}

.bg-gray-900 {
    background-color: var(--gray-900);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-accent {
    background-color: var(--accent);
}

.bg-dark {
    background-color: var(--dark);
}

.bg-light {
    background-color: var(--light);
}

.bg-primary\/5 {
    background-color: rgba(59, 130, 246, 0.05);
}

.bg-primary\/10 {
    background-color: rgba(59, 130, 246, 0.1);
}

.bg-secondary\/5 {
    background-color: rgba(139, 92, 246, 0.05);
}

.bg-secondary\/10 {
    background-color: rgba(139, 92, 246, 0.1);
}

.bg-accent\/5 {
    background-color: rgba(245, 158, 11, 0.05);
}

.bg-accent\/10 {
    background-color: rgba(245, 158, 11, 0.1);
}

.bg-white\/90 {
    background-color: rgba(255, 255, 255, 0.9);
}

.bg-black\/50 {
    background-color: rgba(0, 0, 0, 0.5);
}

/* 边框工具类 */
.border {
    border-width: 1px;
}

.border-0 {
    border-width: 0;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-l {
    border-left-width: 1px;
}

.border-r {
    border-right-width: 1px;
}

.border-gray-100 {
    border-color: var(--gray-100);
}

.border-gray-200 {
    border-color: var(--gray-200);
}

.border-gray-300 {
    border-color: var(--gray-300);
}

.border-gray-400 {
    border-color: var(--gray-400);
}

.border-gray-500 {
    border-color: var(--gray-500);
}

.border-gray-600 {
    border-color: var(--gray-600);
}

.border-gray-700 {
    border-color: var(--gray-700);
}

.border-gray-800 {
    border-color: var(--gray-800);
}

.border-primary {
    border-color: var(--primary);
}

.border-secondary {
    border-color: var(--secondary);
}

.border-accent {
    border-color: var(--accent);
}

/* 圆角工具类 */
.rounded {
    border-radius: 0.25rem;
}

.rounded-sm {
    border-radius: 0.125rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

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

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

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

.rounded-l {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.rounded-l-lg {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.rounded-r {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.rounded-r-lg {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* 阴影工具类 */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.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-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

/* 显示/隐藏工具类 */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline {
    display: inline;
}

.inline-block {
    display: inline-block;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

/* 位置工具类 */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0px;
}

.bottom-0 {
    bottom: 0px;
}

.left-0 {
    left: 0px;
}

.right-0 {
    right: 0px;
}

.top-10 {
    top: 2.5rem;
}

.top-20 {
    top: 5rem;
}

.bottom-10 {
    bottom: 2.5rem;
}

.bottom-20 {
    bottom: 5rem;
}

.left-10 {
    left: 2.5rem;
}

.right-10 {
    right: 2.5rem;
}

/* 尺寸工具类 */
.w-0 {
    width: 0px;
}

.w-1 {
    width: 0.25rem;
}

.w-2 {
    width: 0.5rem;
}

.w-4 {
    width: 1rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-20 {
    width: 5rem;
}

.w-24 {
    width: 6rem;
}

.w-32 {
    width: 8rem;
}

.w-40 {
    width: 10rem;
}

.w-48 {
    width: 12rem;
}

.w-56 {
    width: 14rem;
}

.w-64 {
    width: 16rem;
}

.w-72 {
    width: 18rem;
}

.w-80 {
    width: 20rem;
}

.w-96 {
    width: 24rem;
}

.w-auto {
    width: auto;
}

.w-full {
    width: 100%;
}

.w-screen {
    width: 100vw;
}

.w-min {
    width: min-content;
}

.w-max {
    width: max-content;
}

.h-0 {
    height: 0px;
}

.h-1 {
    height: 0.25rem;
}

.h-2 {
    height: 0.5rem;
}

.h-4 {
    height: 1rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-20 {
    height: 5rem;
}

.h-24 {
    height: 6rem;
}

.h-32 {
    height: 8rem;
}

.h-40 {
    height: 10rem;
}

.h-48 {
    height: 12rem;
}

.h-56 {
    height: 14rem;
}

.h-64 {
    height: 16rem;
}

.h-72 {
    height: 18rem;
}

.h-80 {
    height: 20rem;
}

.h-96 {
    height: 24rem;
}

.h-auto {
    height: auto;
}

.h-full {
    height: 100%;
}

.h-screen {
    height: 100vh;
}

.h-min {
    height: min-content;
}

.h-max {
    height: max-content;
}

/* 最大/最小尺寸工具类 */
.max-w-xs {
    max-width: 20rem;
}

.max-w-sm {
    max-width: 24rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-xl {
    max-width: 36rem;
}

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

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

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.max-w-full {
    max-width: 100%;
}

.max-w-none {
    max-width: none;
}

.max-h-0 {
    max-height: 0px;
}

.max-h-40 {
    max-height: 10rem;
}

.max-h-60 {
    max-height: 15rem;
}

.max-h-80 {
    max-height: 20rem;
}

.max-h-96 {
    max-height: 24rem;
}

.max-h-screen {
    max-height: 100vh;
}

.max-h-full {
    max-height: 100%;
}

.min-w-0 {
    min-width: 0px;
}

.min-w-full {
    min-width: 100%;
}

.min-h-0 {
    min-height: 0px;
}

.min-h-full {
    min-height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

/* 溢出工具类 */
.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.overflow-scroll {
    overflow: scroll;
}

.overflow-visible {
    overflow: visible;
}

/* 变换工具类 */
.transform {
    transform: translateZ(0);
}

.transform-none {
    transform: none;
}

.translate-x-0 {
    transform: translateX(0px);
}

.translate-y-0 {
    transform: translateY(0px);
}

.translate-y-1 {
    transform: translateY(-0.25rem);
}

.scale-100 {
    transform: scale(1);
}

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

.scale-110 {
    transform: scale(1.1);
}

/* 过渡工具类 */
.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.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;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-150 {
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

/* 交互工具类 */
.focus:outline-none {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus:ring-2 {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus:ring-primary\/50 {
    --tw-ring-color: rgba(59, 130, 246, 0.5);
}

.focus:ring-secondary\/50 {
    --tw-ring-color: rgba(139, 92, 246, 0.5);
}

.focus:ring-accent\/50 {
    --tw-ring-color: rgba(245, 158, 11, 0.5);
}

.focus:ring-white\/50 {
    --tw-ring-color: rgba(255, 255, 255, 0.5);
}

.focus:border-primary {
    border-color: var(--primary);
}

/* 伪类工具类 */
.hover\:text-primary:hover {
    color: var(--primary);
}

.hover\:text-white:hover {
    color: var(--white);
}

.hover\:text-gray-700:hover {
    color: var(--gray-700);
}

.hover\:text-gray-800:hover {
    color: var(--gray-800);
}

.hover\:bg-primary:hover {
    background-color: var(--primary);
}

.hover\:bg-secondary:hover {
    background-color: var(--secondary);
}

.hover\:bg-accent:hover {
    background-color: var(--accent);
}

.hover\:bg-gray-100:hover {
    background-color: var(--gray-100);
}

.hover\:bg-primary\/90:hover {
    background-color: rgba(59, 130, 246, 0.9);
}

.hover\:bg-secondary\/90:hover {
    background-color: rgba(139, 92, 246, 0.9);
}

.hover\:bg-accent\/90:hover {
    background-color: rgba(245, 158, 11, 0.9);
}

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

.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.hover\:underline:hover {
    text-decoration-line: underline;
}

/* 自定义工具类 */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-hover {
    transition: all 300ms ease;
}

.card-hover:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-0.25rem);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 500;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 9999px;
    transition: all 300ms ease;
    transform: translateZ(0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    background-color: rgba(59, 130, 246, 0.9);
    transform: scale(1.05);
}

.btn-primary:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    --tw-ring-color: rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    font-weight: 500;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 9999px;
    transition: all 300ms ease;
    transform: translateZ(0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary:hover {
    background-color: rgba(139, 92, 246, 0.9);
    transform: scale(1.05);
}

.btn-secondary:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    --tw-ring-color: rgba(139, 92, 246, 0.5);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
    font-weight: 500;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 9999px;
    transition: all 300ms ease;
    transform: translateZ(0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-accent:hover {
    background-color: rgba(245, 158, 11, 0.9);
    transform: scale(1.05);
}

.btn-accent:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    --tw-ring-color: rgba(245, 158, 11, 0.5);
}

.nav-link {
    color: var(--gray-700);
    transition: color 300ms ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0.125rem;
    width: 0;
    background-color: var(--primary);
    transition: width 300ms ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    width: 100%;
}

/* 动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* 基础显示/隐藏类 - 确保与Tailwind行为一致 */
.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

.flex {
    display: flex !important;
}

.grid {
    display: grid !important;
}

/* 定位类 */
.relative {
    position: relative !important;
}

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

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

.from-primary\/5 {
    --tw-gradient-from: rgba(59, 130, 246, 0.05) !important;
    --tw-gradient-to: rgba(59, 130, 246, 0) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.to-secondary\/5 {
    --tw-gradient-to: rgba(139, 92, 246, 0.05) !important;
}

/* 内边距类 */
.py-20 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.py-32 {
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
}

/* 布局类 */
.flex-col {
    flex-direction: column !important;
}

.flex-row {
    flex-direction: row !important;
}

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

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

.mb-10 {
    margin-bottom: 2.5rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

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

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

.max-w-lg {
    max-width: 32rem !important;
}

.max-w-md {
    max-width: 28rem !important;
}

.w-full {
    width: 100% !important;
}

/* 响应式布局类 */
.md\:flex-row {
    flex-direction: row !important;
}

.md\:flex-col {
    flex-direction: column !important;
}

.md\:w-1\/2 {
    width: 50% !important;
}

.md\:mb-0 {
    margin-bottom: 0 !important;
}

.md\:mb-4 {
    margin-bottom: 1rem !important;
}

.md\:mt-0 {
    margin-top: 0 !important;
}

.md\:mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.md\:py-32 {
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
}

.sm\:flex-row {
    flex-direction: row !important;
}

.sm\:flex-col {
    flex-direction: column !important;
}

/* 文本类 */
.text-dark {
    color: #1F2937 !important;
}

.text-gray-600 {
    color: #4B5563 !important;
}

.text-lg {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
}

.text-xl {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
}

.font-bold {
    font-weight: 700 !important;
}

.leading-tight {
    line-height: 1.25 !important;
}

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



/* 按钮类 */
.btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: white !important;
    background-color: #3B82F6 !important;
    border-radius: 0.5rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
}

.btn-primary:hover {
    background-color: #2563EB !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.btn-primary-sm {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.375rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: white !important;
    background-color: #3B82F6 !important;
    border-radius: 0.5rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
}

.btn-primary-sm:hover {
    background-color: #2563EB !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

.btn-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #3B82F6 !important;
    background-color: white !important;
    border: 2px solid #3B82F6 !important;
    border-radius: 0.5rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.btn-secondary:hover {
    background-color: #3B82F6 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* 页脚专用样式 */
.bg-dark {
    background-color: #1F2937 !important;
}

.text-white {
    color: #FFFFFF !important;
}

.text-gray-400 {
    color: #9CA3AF !important;
}

.text-gray-800 {
    color: #1F2937 !important;
}

.hover\:text-white:hover {
    color: #FFFFFF !important;
}

.hover\:bg-primary\/90:hover {
    background-color: rgba(59, 130, 246, 0.9) !important;
}

.hover\:bg-primary:hover {
    background-color: #3B82F6 !important;
}

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

/* 表单样式 */
input[type="email"],
input[type="text"],
input[type="password"],
textarea {
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #1F2937 !important;
    background-color: #FFFFFF !important;
    background-clip: padding-box !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 0.375rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none !important;
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

.rounded-l-lg {
    border-top-left-radius: 0.5rem !important;
    border-bottom-left-radius: 0.5rem !important;
}

.rounded-r-lg {
    border-top-right-radius: 0.5rem !important;
    border-bottom-right-radius: 0.5rem !important;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent !important;
    outline-offset: 2px !important;
}

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

/* 边框样式 */
.border-t {
    border-top-width: 1px !important;
}

.border-gray-800 {
    border-color: #1F2937 !important;
}

.mt-12 {
    margin-top: 3rem !important;
}

.pt-8 {
    padding-top: 2rem !important;
}

/* 间距样式补充 */
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0 !important;
    margin-right: calc(1rem * var(--tw-space-x-reverse)) !important;
    margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse))) !important;
}

.space-x-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0 !important;
    margin-right: calc(1.5rem * var(--tw-space-x-reverse)) !important;
    margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse))) !important;
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0 !important;
    margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse))) !important;
    margin-bottom: calc(0.5rem * var(--tw-space-y-reverse)) !important;
}

.gap-8 {
    gap: 2rem !important;
}

/* 图片类 */
.rounded-lg {
    border-radius: 0.5rem !important;
}

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

/* Hero区域移动端优化 */
@media (max-width: 639px) {
    /* 优化Hero区域内边距 */
    .py-20 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* 优化标题字体大小 */
    h1.text-\[\clamp\(2rem\2c 5vw\2c 3\.5rem\)\] {
        font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
        line-height: 1.2 !important;
    }
    
    /* 优化段落文本大小和行高 */
    .text-lg {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    /* 优化按钮大小和间距 */
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* 优化按钮容器间距 */
    .gap-4 {
        gap: 0.75rem !important;
    }
    
    /* 优化图片显示 */
    .max-w-md {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* 优化图片阴影，在移动端更柔和 */
    .shadow-xl {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    }
    
    /* 优化内容块间距 */
    .mb-10 {
        margin-bottom: 2rem !important;
    }
    
    .mb-8 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1rem !important;
    }
}

/* 平板端优化 */
@media (min-width: 640px) and (max-width: 767px) {
    /* 优化标题字体大小 */
    h1.text-\[\clamp\(2rem\2c 5vw\2c 3\.5rem\)\] {
        font-size: clamp(2rem, 6vw, 3rem) !important;
    }
    
    /* 优化按钮容器布局 */
    .sm\:flex-row {
        gap: 1rem !important;
    }
}

/* 间距类 */
.gap-4 {
    gap: 1rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

/* 动画类 */
.animate-float {
    animation: float 3s ease-in-out infinite !important;
}

/* 基础内边距类 */
.py-20 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* 导航栏样式优化 */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Tailwind CSS 类的本地化实现 */
.sticky {
    position: sticky !important;
}

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

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

.bg-white\/90 {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

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

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* 容器类 */
.container {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* 移动端优化：增加内边距以提高可读性 */
@media (max-width: 639px) {
    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

@media (min-width: 640px) {
    .container {
        max-width: 640px !important;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px !important;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px !important;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px !important;
    }
}

/* 内边距类 */
.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

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

/* Flexbox 类 */
.flex {
    display: flex !important;
}

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

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

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0 !important;
    margin-right: calc(0.5rem * var(--tw-space-x-reverse)) !important;
    margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse))) !important;
}

.space-x-8 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0 !important;
    margin-right: calc(2rem * var(--tw-space-x-reverse)) !important;
    margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse))) !important;
}

/* 文本类 */
.text-primary {
    color: #3B82F6 !important;
}

.text-secondary {
    color: #8B5CF6 !important;
}

.text-2xl {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
}

.font-bold {
    font-weight: 700 !important;
}

.text-gray-700 {
    color: #374151 !important;
}

/* 移动端菜单样式 */
.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

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

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0 !important;
    margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))) !important;
    margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)) !important;
}

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



.my-2 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* 移动端导航菜单 */
#mobile-menu {
    display: none;
}

#mobile-menu:not(.hidden) {
    display: block;
}

/* 重要：响应式媒体查询 - 确保与Tailwind CSS行为一致 */
@media (min-width: 640px) {
    .sm\:hidden {
        display: none !important;
    }
    .sm\:block {
        display: block !important;
    }
    .sm\:flex {
        display: flex !important;
    }
    .sm\:grid {
        display: grid !important;
    }
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .sm\:flex-row {
        flex-direction: row !important;
    }
    .sm\:flex-col {
        flex-direction: column !important;
    }
    .sm\:mb-0 {
        margin-bottom: 0 !important;
    }
    .sm\:mt-0 {
        margin-top: 0 !important;
    }
    .sm\:gap-4 {
        gap: 1rem !important;
    }
    .sm\:gap-6 {
        gap: 1.5rem !important;
    }
    .sm\:gap-8 {
        gap: 2rem !important;
    }
}

@media (min-width: 768px) {
    .md\:hidden {
        display: none !important;
    }
    .md\:block {
        display: block !important;
    }
    .md\:flex {
        display: flex !important;
    }
    .md\:grid {
        display: grid !important;
    }
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
    .md\:flex-row {
        flex-direction: row !important;
    }
    .md\:flex-col {
        flex-direction: column !important;
    }
    .md\:w-1\/2 {
        width: 50% !important;
    }
    .md\:mb-0 {
        margin-bottom: 0 !important;
    }
    .md\:mb-4 {
        margin-bottom: 1rem !important;
    }
    .md\:mt-0 {
        margin-top: 0 !important;
    }
    .md\:mx-auto {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .md\:py-32 {
        padding-top: 8rem !important;
        padding-bottom: 8rem !important;
    }
    .md\:text-xl {
        font-size: 1.25rem !important;
        line-height: 1.75rem !important;
    }
    .md\:justify-between {
        justify-content: space-between !important;
    }
    .md\:items-center {
        align-items: center !important;
    }
    .md\:gap-4 {
        gap: 1rem !important;
    }
    .md\:gap-6 {
        gap: 1.5rem !important;
    }
    .md\:gap-8 {
        gap: 2rem !important;
    }
}

@media (min-width: 1024px) {
    .lg\:hidden {
        display: none !important;
    }
    .lg\:block {
        display: block !important;
    }
    .lg\:flex {
        display: flex !important;
    }
    .lg\:grid {
        display: grid !important;
    }
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
    .lg\:flex-row {
        flex-direction: row !important;
    }
    .lg\:flex-col {
        flex-direction: column !important;
    }
    .lg\:w-1\/3 {
        width: 33.333333% !important;
    }
    .lg\:w-2\/3 {
        width: 66.666667% !important;
    }
    .lg\:mb-0 {
        margin-bottom: 0 !important;
    }
    .lg\:mt-0 {
        margin-top: 0 !important;
    }
    .lg\:mx-auto {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (min-width: 1280px) {
    .xl\:hidden {
        display: none !important;
    }
    .xl\:block {
        display: block !important;
    }
    .xl\:flex {
        display: flex !important;
    }
    .xl\:grid {
        display: grid !important;
    }
    .xl\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
    .xl\:flex-row {
        flex-direction: row !important;
    }
    .xl\:flex-col {
        flex-direction: column !important;
    }
    .xl\:w-1\/4 {
        width: 25% !important;
    }
    .xl\:w-3\/4 {
        width: 75% !important;
    }
    .xl\:mb-0 {
        margin-bottom: 0 !important;
    }
    .xl\:mt-0 {
        margin-top: 0 !important;
    }
    .xl\:mx-auto {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* 响应式断点 - 基于最小宽度，与Tailwind CSS保持一致 */
@media (min-width: 640px) {
    .sm\:hidden {
        display: none !important;
    }
    .sm\:block {
        display: block !important;
    }
    .sm\:flex {
        display: flex !important;
    }
    .sm\:grid {
        display: grid !important;
    }
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sm\:flex-row {
        flex-direction: row;
    }
    .sm\:mb-0 {
        margin-bottom: 0;
    }
    .sm\:mt-0 {
        margin-top: 0;
    }
}

@media (min-width: 768px) {
    .md\:hidden {
        display: none !important;
    }
    .md\:block {
        display: block !important;
    }
    .md\:flex {
        display: flex !important;
    }
    .md\:grid {
        display: grid !important;
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md\:flex-row {
        flex-direction: row;
    }
    .md\:flex-col {
        flex-direction: column;
    }
    .md\:w-1\/2 {
        width: 50%;
    }
    .md\:mb-0 {
        margin-bottom: 0;
    }
    .md\:mb-4 {
        margin-bottom: 1rem;
    }
    .md\:mt-0 {
        margin-top: 0;
    }
    .md\:mx-auto {
        margin-left: auto;
        margin-right: auto;
    }
    .md\:py-32 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

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

@media (min-width: 1280px) {
    .xl\\:hidden {
        display: none;
    }
    .xl\\:block {
        display: block;
    }
    .xl\\:flex {
        display: flex;
    }
    .xl\\:grid {
        display: grid;
    }
}

/* 移动端默认样式 */
.flex-col {
    flex-direction: column;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

/* 在小屏幕上隐藏，大屏幕上显示 */
.hidden {
    display: none;
}

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

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

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-primary {
    --tw-gradient-from: var(--primary);
    --tw-gradient-to: rgba(59, 130, 246, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-primary\/5 {
    --tw-gradient-from: rgba(59, 130, 246, 0.05);
    --tw-gradient-to: rgba(59, 130, 246, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-secondary {
    --tw-gradient-to: var(--secondary);
}

.to-secondary\/5 {
    --tw-gradient-to: rgba(139, 92, 246, 0.05);
}

/* 文本裁剪 */
.text-[clamp(1.8rem,4vw,2.5rem)] {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.text-[clamp(2rem,5vw,3.5rem)] {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

/* 模糊效果 */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* 表单元素 */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--gray-800);
    background-color: var(--white);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

button {
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* 列表样式 */
ul, ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.object-cover {
    object-fit: cover;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}