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

/* 滚动行为 */
html {
    scroll-behavior: smooth;
}

/* 导航链接样式 */
.nav-link {
    @apply text-gold-dark font-medium hover:text-gold transition duration-300 relative;
}

.nav-link::after {
    content: '';
    @apply absolute bottom-0 left-0 w-0 h-0.5 bg-gold transition-all duration-300;
}

.nav-link:hover::after {
    @apply w-full;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

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

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

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

.product-card:hover {
    transform: translateY(-5px);
}

/* 金色渐变背景 */
.gold-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #F0E68C 50%, #B8860B 100%);
}

/* 金属质感按钮 */
.metal-button {
    background: linear-gradient(145deg, #D4AF37, #B8860B);
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.metal-button:hover {
    background: linear-gradient(145deg, #B8860B, #D4AF37);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* 响应式图片 */
.responsive-img {
    max-width: 100%;
    height: auto;
}

/* 移动端优化 */
@media (max-width: 640px) {
    .mobile-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 加载动画 */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #D4AF37;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表单样式优化 */
.form-input {
    @apply w-full px-4 py-3 rounded border border-gray-300 focus:border-gold focus:ring-2 focus:ring-gold-light transition duration-300;
}

/* 金色边框 */
.gold-border {
    border: 2px solid #D4AF37;
}

/* 金属质感文本 */
.metal-text {
    background: linear-gradient(to right, #D4AF37, #F0E68C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
