/* 基础样式 */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #FFFFFF;
    color: #0F172A;
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #81c2e7 0%, #aed6f1 100%);
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
}

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

/* 导航链接样式 */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #81c2e7;
    transition: width 0.3s ease;
}

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

/* Tailwind 自定义颜色 */
:root {
    --color-primary: #81c2e7;
    --color-primary-foreground: #000000;
    --color-secondary: #f0f9ff;
    --color-secondary-foreground: #0f172a;
    --color-background: #ffffff;
    --color-muted: #f8fafc;
    --color-foreground: #0f172a;
    --color-muted-foreground: #64748b;
    --color-border: #e2e8f0;
    --color-ring: #81c2e7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

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

::-webkit-scrollbar-thumb {
    background: #81c2e7;
    border-radius: 4px;
}

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

/* 按钮过渡效果 */
button {
    transition: all 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

/* 输入范围滑块样式 */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
    background: #E2E8F0;
    height: 0.5rem;
    border-radius: 0.5rem;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -4px;
    background-color: #81c2e7;
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
}

input[type="range"]::-moz-range-track {
    background: #E2E8F0;
    height: 0.5rem;
    border-radius: 0.5rem;
}

input[type="range"]::-moz-range-thumb {
    background-color: #81c2e7;
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
    border: none;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #000000;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 图片加载过渡 */
img {
    transition: opacity 0.3s ease;
}

img.lazy-loaded {
    opacity: 1;
}

/* 文本选择样式 */
::selection {
    background-color: #81c2e7;
    color: #000000;
}

::-moz-selection {
    background-color: #81c2e7;
    color: #000000;
}

/* 禁用状态样式 */
button:disabled,
input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 焦点样式 */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #81c2e7;
    outline-offset: 2px;
}

/* 骨架屏动画 */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f9ff 25%, #81c2e7 50%, #f0f9ff 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* 卡片阴影效果 */
.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

/* 珍珠图片特殊效果 */
.pearl-image {
    transition: all 0.5s ease;
}

.pearl-image:hover {
    transform: scale(1.05) rotate(2deg);
}

/* 滚动动画 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
}