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

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

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
}

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

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

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

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

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

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

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

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

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

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

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

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

.invisible {
    visibility: hidden;
}

.visible {
    visibility: visible;
}

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

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

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

.hidden {
    display: none;
}

.fixed {
    position: fixed;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

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

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

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

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

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-screen {
    height: 100vh;
}

.flex {
    display: flex;
}

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

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

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

.space-x-8 > * + * {
    margin-left: 2rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

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

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

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

.p-4 {
    padding: 1rem;
}

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

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

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

.pt-2 {
    padding-top: 0.5rem;
}

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

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

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

.block {
    display: block;
}

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

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

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

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

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

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

.border-gray-700 {
    border-color: #374151;
}

/* 响应式工具类 */
.md\:hidden {
    display: none;
}

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

@media (max-width: 767px) {
    .md\:flex {
        display: none;
    }
}

/* 颜色变量 */
:root {
    --color-primary: #1a202c;
    --color-secondary: #c9a86a;
    --color-accent: #e53e3e;
    --color-neutral: #f7fafc;
    --color-dark: #171923;
    --color-gray-50: #f9fafb;
    --color-gray-800: #1f2937;
    --color-gray-700: #374151;
    --color-gray-200: #e5e7eb;
}

/* 字体类 */
.font-display {
    font-family: 'Montserrat', 'Arial', sans-serif;
}

.font-sans {
    font-family: 'Inter', 'system-ui', 'Helvetica', sans-serif;
}

.text-white {
    color: #ffffff;
}

.text-gray-200 {
    color: #e5e7eb;
}

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

.text-gray-50 {
    color: #f9fafb;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-700 {
    background-color: #374151;
}

.bg-opacity-95 {
    background-opacity: 0.95;
}

/* 字体大小类 */
.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

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

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

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

.text-3xl {
    font-size: 1.875rem;
}

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

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

/* 动画效果 */
.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* 响应式字体大小 */
.text-clamp-lg {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.text-clamp-md {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.text-clamp-sm {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .text-clamp-lg {
        font-size: 2.5rem;
    }
    .text-clamp-md {
        font-size: 1.8rem;
    }
    .text-clamp-sm {
        font-size: 1rem;
    }
}

/* 表单样式增强 */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.2);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #a88e5b;
}

/* 额外工具类 */
.hover\:text-secondary:hover {
    color: var(--color-secondary);
}

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

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

/* 布局辅助类 */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* 覆盖元素特定样式 */
a {
    color: inherit;
    text-decoration: none;
}

i {
    display: inline-block;
    font-style: normal;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
    display: block;