/* 普利施康生物科技 — 全局样式 */

/* Font Awesome CDN 图标 */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* 自定义动画 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out;
}

/* 导航栏滚动效果 */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 卡片悬停效果 */
.hover-card {
    transition: all 0.3s ease;
}
.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 渐变文字 */
.text-gradient {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
}
@media (min-width: 768px) {
    .btn-primary { padding: 12px 32px; font-size: 16px; }
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
}
@media (min-width: 768px) {
    .btn-outline { padding: 10px 30px; font-size: 16px; }
}
.btn-outline:hover {
    background: white;
    color: #1e40af;
}

/* 优势卡片编号 */
.advantage-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

/* 产品系列标签 */
.series-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.series-plsk680 { background: #dbeafe; color: #1e40af; }
.series-plsk700 { background: #dcfce7; color: #166534; }
.series-plsk800 { background: #fef3c7; color: #92400e; }

/* FAQ 折叠 */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}
.faq-question {
    cursor: pointer;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1f2937;
    transition: color 0.2s;
}
.faq-question:hover {
    color: #2563eb;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #6b7280;
    line-height: 1.8;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 16px;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}
.faq-icon {
    transition: transform 0.3s ease;
}

/* 轮播图 */
.carousel-slide {
    display: none;
    animation: fadeIn 0.8s ease;
}
.carousel-slide.active {
    display: block;
}

/* Toast 提示 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.toast-success { background: #10b981; }
.toast-error { background: #ef4444; }

/* 加载 spinner */
.spinner {
    border: 3px solid #e5e7eb;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== 图片预览弹窗（简洁版） ==================== */
#product-detail-modal.active {
    display: flex !important;
}
#product-detail-modal > div {
    animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
