/* pages.css - 完整统一样式文件 - 包含所有页面的CSS样式 */

/* ==================
   CSS变量定义
   ================== */
:root {
    --primary: #2563eb;
    --secondary: #0ea5e9;
    --accent: #38bdf8;
    --matching-primary: #3b82f6;
    --matching-secondary: #60a5fa;
    --material-primary: #10b981;
    --material-secondary: #84cc16;
    --teaching-primary: #3b82f6;
    --teaching-secondary: #06b6d4;
    --education-primary: #2563eb;
    --education-secondary: #0ea5e9;
    --primary-blue: #2563eb;
    --accent-blue: #3b82f6;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --animation-delay: 0.1s;
    --product-card-hover-scale: 1.05;
    --product-card-lift: -12px;
    --feature-card-tilt-x: 15;
    --feature-card-tilt-y: 15;
    --particle-count-desktop: 25;
    --particle-count-mobile: 15;
}

/* ==================
   基础颜色类
   ================== */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.text-education-primary { color: var(--education-primary); }
.text-education-secondary { color: var(--education-secondary); }
.bg-education-primary { background-color: var(--education-primary); }
.bg-education-secondary { background-color: var(--education-secondary); }

/* 基础背景和文本颜色 */
.bg-light { background-color: #f8fafc; }
.text-dark { color: #1e293b; }

/* ==================
   页面专用渐变背景
   ================== */

/* 首页专用样式 */
.hero-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
}

/* 首页专用样式 - 匹配 slate-white-blue 背景 */
.hero-gradient.home {
    background: linear-gradient(135deg, #64748b 0%, #3b82f6 50%, #0ea5e9 100%);
}

/* 新闻页面专用样式 - 匹配 blue-white-purple 背景 */
.hero-gradient.news {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}

/* 教学页面专用样式 - 匹配 slate-white-blue 背景 */
.hero-gradient.teaching {
    background: linear-gradient(135deg, #64748b 0%, #3b82f6 50%, #0ea5e9 100%);
}

/* 材料页面专用样式 - 匹配 green-emerald-teal 背景 */
.hero-gradient.material {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #14b8a6 100%);
}

/* 匹配页面专用样式 - 匹配 pink-purple-orange 背景 */
.hero-gradient.matching {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #f97316 100%);
}

/* 品牌页面专用样式 - 蓝紫橙 */
.brand-hero-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #f97316 100%);
}

.brand-hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
}

/* 联系页面专用样式 */
.contact-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}

/* 联系页面横幅渐变 */
.contact-hero-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}

/* 教育页面专用样式 */
.education-gradient {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
}

/* 教育页面横幅渐变 */
.education-hero-gradient {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #8b5cf6 100%);
}

/* 匹配页面专用样式 */
.matching-gradient {
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
}

/* 材料页面专用样式 */
.material-gradient {
    background: linear-gradient(135deg, #059669 0%, #0891b2 50%, #7c3aed 100%);
}

/* 教学页面专用样式 */
.teaching-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #10b981 100%);
}

/* 匹配页面特殊渐变 */
.hero-gradient.matching {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #f97316 100%);
}

/* 新闻详情页面专用样式 */
.hero-gradient-detail {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
}

/* 材料页面特殊渐变 */
.hero-gradient.material {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
}

/* ==================
   通用文字和阴影样式
   ================== */

.text-shadow-custom {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

/* ==================
   动画效果
   ================== */

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

.home-floating-1 {
    animation-delay: 1s;
}

.home-floating-2 {
    animation-delay: 2s;
}

.home-floating-3 {
    animation-delay: 3s;
}

.brand-floating-1 {
    animation-delay: 0.5s;
}

.brand-floating-2 {
    animation-delay: 1.5s;
}

.brand-floating-3 {
    animation-delay: 2.5s;
}

.contact-floating-1 {
    animation-delay: 1s;
}

.contact-floating-2 {
    animation-delay: 2s;
}

.contact-floating-3 {
    animation-delay: 3s;
}

.education-floating-1 {
    animation-delay: 1s;
}

.education-floating-2 {
    animation-delay: 2s;
}

.education-floating-3 {
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

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

/* Wow.js替代类 */
.wow {
    visibility: hidden;
}

.wow.animated {
    visibility: visible;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes bounceInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    60% {
        opacity: 1;
        transform: translateX(10px);
    }
    80% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes bounceInDown {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    60% {
        opacity: 1;
        transform: translateY(10px);
    }
    80% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes bounceInUp {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* 动画类 */
.fadeIn { animation-name: fadeIn; }
.fadeInUp { animation-name: fadeInUp; }
.fadeInDown { animation-name: fadeInDown; }
.bounceInLeft { animation-name: bounceInLeft; }
.bounceInDown { animation-name: bounceInDown; }
.bounceInUp { animation-name: bounceInUp; }

/* 动画持续时间 */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

/* 动画延迟类 */
.animate-delay-02 { animation-delay: 0.2s; }
.animate-delay-04 { animation-delay: 0.4s; }
.animate-delay-06 { animation-delay: 0.6s; }
.animate-delay-08 { animation-delay: 0.8s; }
.animate-delay-10 { animation-delay: 1s; }
.animate-delay-12 { animation-delay: 1.2s; }
.animate-delay-14 { animation-delay: 1.4s; }

/* ==================
   卡片样式系统
   ================== */

/* 基础卡片 */
.feature-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 服务卡片 */
.service-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

/* 教育服务卡片 */
.education-service-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 教育自定义列表 */
.education-custom-list {
    list-style: none;
    padding: 0;
}

.education-custom-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.education-custom-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* 教育图片悬停效果 */
.education-image-hover {
    transition: all 0.3s ease;
}

.education-image-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 场景卡片 */
.scenario-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

/* 产品卡片 */
.product-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6, #f97316);
    z-index: 5;
}

/* 品牌页面样式 */
.section-title {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    background: linear-gradient(to right, #2563eb, #7c3aed);
}

.stats-counter {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    transition: all 0.3s ease;
}

.stats-counter:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(59, 130, 246, 0.3);
}

/* 产品卡片变体 */
.product-card.material-page {
    background-color: white;
    border-radius: 0.75rem;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.product-card.material-page:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.product-card.material-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, transparent, rgba(59, 130, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card.material-page:hover::before {
    opacity: 1;
}

/* 产品遮罩层 */
.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 新闻分类卡片 */
.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

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

.category-count {
    transition: all 0.3s ease;
}

/* 材料卡片 */
.material-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.material-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.material-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669, #047857);
}

/* 新闻卡片 */
.news-card {
    transition: none;
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

/* 新闻详情卡片 */
.news-detail-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: none;
    position: relative;
    overflow: hidden;
}

.news-detail-card:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.news-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1d4ed8);
}

/* 推荐阅读卡片 */
.related-news-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.related-news-card:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.related-news-card .arrow-icon {
    transition: all 0.3s ease;
}

.related-news-card:hover .arrow-icon {
    color: #3b82f6;
    transform: translateX(4px);
}

/* 实验卡片 */
.experiment-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

/* 联系卡片 */
.contact-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

/* 联系页面特性卡片 */
.contact-feature-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.contact-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.contact-feature-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    transform: scale(0);
    transition: transform 0.3s ease;
}

.contact-feature-card:hover .contact-feature-card-bg {
    transform: scale(1);
}

/* FAQ样式 */
.faq-item {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-button {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-button:hover {
    background: #f8fafc;
}

.faq-button i {
    transition: transform 0.3s ease;
}

.faq-button[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-content p {
    padding: 1.5rem 0;
    color: #475569;
    line-height: 1.75;
}

/* 联系页面粒子动画 */
.contact-particle-1 {
    animation: particle-float 8s ease-in-out infinite;
    animation-delay: 0s;
}

.contact-particle-2 {
    animation: particle-float 10s ease-in-out infinite;
    animation-delay: 1s;
}

.contact-particle-3 {
    animation: particle-float 12s ease-in-out infinite;
    animation-delay: 2s;
}

.contact-particle-4 {
    animation: particle-float 9s ease-in-out infinite;
    animation-delay: 3s;
}

.contact-particle-5 {
    animation: particle-float 11s ease-in-out infinite;
    animation-delay: 4s;
}

.contact-particle-6 {
    animation: particle-float 13s ease-in-out infinite;
    animation-delay: 5s;
}

.contact-particle-7 {
    animation: particle-float 8.5s ease-in-out infinite;
    animation-delay: 6s;
}

.contact-particle-8 {
    animation: particle-float 10.5s ease-in-out infinite;
    animation-delay: 7s;
}

.contact-particle-9 {
    animation: particle-float 11.5s ease-in-out infinite;
    animation-delay: 8s;
}

/* 教育页面粒子动画 */
.education-particle-1 {
    animation: particle-float 8s ease-in-out infinite;
    animation-delay: 0s;
}

.education-particle-2 {
    animation: particle-float 10s ease-in-out infinite;
    animation-delay: 1s;
}

.education-particle-3 {
    animation: particle-float 12s ease-in-out infinite;
    animation-delay: 2s;
}

.education-particle-4 {
    animation: particle-float 9s ease-in-out infinite;
    animation-delay: 3s;
}

.education-particle-5 {
    animation: particle-float 11s ease-in-out infinite;
    animation-delay: 4s;
}

.education-particle-6 {
    animation: particle-float 13s ease-in-out infinite;
    animation-delay: 5s;
}

.education-particle-7 {
    animation: particle-float 8.5s ease-in-out infinite;
    animation-delay: 6s;
}

.education-particle-8 {
    animation: particle-float 10.5s ease-in-out infinite;
    animation-delay: 7s;
}

.education-particle-9 {
    animation: particle-float 11.5s ease-in-out infinite;
    animation-delay: 8s;
}

/* ==================
   徽章和标签样式
   ================== */

.product-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 12px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.product-badge.alternate {
    position: absolute;
    top: 0;
    right: 0;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-bottom-left-radius: 0.5rem;
    transform: translateX(1rem);
    opacity: 0;
    transition: all 0.5s ease;
}

.product-card:hover .product-badge.alternate {
    transform: translateX(0);
    opacity: 1;
}

.category-badge {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

/* ==================
   模态框样式
   ================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 1001;
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-image-container {
    overflow: auto;
    max-height: calc(95vh - 120px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0 0 1rem 1rem;
}

.modal-image-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.modal-image-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.modal-image-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.modal-image-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

#modalImage {
    max-width: 100%;
    max-height: calc(95vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

#modalImage.loading {
    opacity: 0.7;
}

/* 模态框背景模糊增强 */
.modal-overlay {
    backdrop-filter: blur(8px);
}

/* ==================
   标签页样式
   ================== */

.material-type-btn {
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.material-type-btn:hover {
    border-bottom-color: #10b981;
}

.version-tab {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.version-tab-active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.grade-tab {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    cursor: pointer;
}

.grade-tab-active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ==================
   图片样式和效果
   ================== */

.image-hover {
    transition: all 0.3s ease;
}

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

.material-image {
    transition: all 0.3s ease;
    cursor: pointer;
}

.material-image:hover {
    transform: scale(1.05);
}

.material-image.loading {
    opacity: 0.7;
    filter: blur(1px);
}

.material-image.error {
    opacity: 0.5;
    filter: grayscale(100%);
}

.material-image.error::after {
    content: '⚠️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #ef4444;
}

/* ==================
   加载动画
   ================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-detail {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #10b981;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

/* ==================
   粒子动画
   ================== */

.particle {
    position: absolute;
    border-radius: 50%;
    animation: particle-float 8s linear infinite;
}

.particle-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ==================
   新闻内容样式
   ================== */

.news-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.news-content .indented {
    text-indent: 2em;
    margin-bottom: 1.5rem;
}

.news-content .spaced-paragraph {
    margin-bottom: 2rem;
}

.news-content .centered {
    text-align: center;
    margin-bottom: 1rem;
}

.news-content .bold {
    font-weight: 600;
}

/* 新闻卡片进入动画 */
.news-card-enter {
    animation: cardEnter 0.5s ease-out forwards;
}

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

.news-item-wrapper {
    animation-delay: calc(var(--item-index) * var(--animation-delay));
}

.news-link-icon {
    transition: transform 0.3s ease;
}

.news-link:hover .news-link-icon {
    transform: translateX(4px);
}

/* 搜索关键词高亮样式 */
.search-highlight {
    background-color: #fef08a;
    color: #713f12;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

/* ==================
   产品横幅样式
   ================== */

.product-banner {
    position: relative;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.95), rgba(59, 130, 246, 1));
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    margin: 2rem 0;
}

.product-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background-color: white;
    opacity: 0.05;
    border-radius: 50%;
    margin-right: -12rem;
    margin-top: -12rem;
}

.product-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 16rem;
    height: 16rem;
    background-color: white;
    opacity: 0.05;
    border-radius: 50%;
    margin-left: -8rem;
    margin-bottom: -8rem;
}

/* ==================
   特性图标样式
   ================== */

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(139, 92, 246, 0.05));
    transform: scale(0);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card-bg {
    transform: scale(1);
}

/* ==================
   内容容器样式
   ================== */

.product-content {
    padding: 1.25rem;
    position: relative;
    z-index: 10;
}

/* ==================
   回到顶部按钮
   ================== */

#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top:hover {
    transform: translateY(-2px);
}

/* ==================
   焦点样式和无障碍
   ================== */

.focus-visible:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.focus-visible.brand:focus-visible {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
}

.focus-visible.matching:focus-visible {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
}

.focus-visible.material:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.focus-visible.teaching:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* ==================
   边框和阴影扩展
   ================== */

.border-3 {
    border-width: 3px;
}

.shadow-3xl {
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

/* backdrop-blur 扩展（备用，Tailwind CDN已提供） */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}



/* ==================
   滚动条样式
   ================== */

::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==================
   平滑滚动
   ================== */

html {
    scroll-behavior: smooth;
}

/* ==================
   Tailwind工具类补充（themes.css内容）
   ================== */

/* 字体和文本 */
.font-sans {
    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";
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 布局 */
.flex {
    display: flex;
}

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

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

.items-start {
    align-items: flex-start;
}

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

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

.flex-shrink-0 {
    flex-shrink: 0;
}

/* 间距 */
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1rem;
}

.space-x-4 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 1rem;
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1.5rem;
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

/* 边框 */
.rounded {
    border-radius: 0.25rem;
}

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

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

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

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

.rounded-3xl {
    border-radius: 1.5rem;
}

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

.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

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

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

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

/* 颜色 */
.bg-white {
    background-color: white;
}

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

.bg-slate-50 {
    background-color: #f8fafc;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-purple-100 {
    background-color: #f3e8ff;
}

.bg-pink-100 {
    background-color: #fdf2f8;
}

.bg-orange-100 {
    background-color: #fed7aa;
}

.text-white {
    color: white;
}

.text-slate-600 {
    color: #475569;
}

.text-slate-700 {
    color: #334155;
}

.text-slate-800 {
    color: #1e293b;
}

.text-blue-500 {
    color: #3b82f6;
}

.text-blue-600 {
    color: #2563eb;
}

.text-blue-700 {
    color: #1d4ed8;
}

.text-green-500 {
    color: #10b981;
}

.text-purple-500 {
    color: #8b5cf6;
}

.text-purple-600 {
    color: #9333ea;
}

.text-purple-700 {
    color: #7c3aed;
}

.text-orange-500 {
    color: #f97316;
}

.text-pink-600 {
    color: #db2777;
}

.text-pink-700 {
    color: #be185d;
}

.text-yellow-200 {
    color: #fef08a;
}

.text-yellow-300 {
    color: #fde047;
}

.text-pink-200 {
    color: #fbcfe8;
}

/* 尺寸 */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

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

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

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

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

/* 定位 */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.top-0 {
    top: 0px;
}

.left-0 {
    left: 0px;
}

.right-0 {
    right: 0px;
}

.bottom-0 {
    bottom: 0px;
}

.top-4 {
    top: 1rem;
}

.left-4 {
    left: 1rem;
}

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

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

/* 过渡效果 */
.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-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

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

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

/* Hover状态 */
.hover\:bg-white:hover {
    background-color: white;
}

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

.hover\:bg-white\/10:hover {
    background-color: rgba(255,255, 255, 0.1);
}

.hover\:text-blue-600:hover {
    color: #2563eb;
}

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

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

/* 透明度 */
.opacity-0 {
    opacity: 0;
}

.opacity-5 {
    opacity: 0.05;
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-90 {
    opacity: 0.9;
}

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

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

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

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

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

.text-white\/60 {
    color: rgba(255, 255, 255, 0.6);
}

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

/* 显示 */
.block {
    display: block;
}

.hidden {
    display: none;
}

.overflow-hidden {
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: initial;
    margin: initial;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* 网格 */
.grid {
    display: grid;
}

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

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

/* ==================
   响应式优化
   ================== */

@media (min-width: 768px) and (max-width: 1024px) {
    .news-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    :root {
        --product-card-lift: -8px;
        --feature-card-tilt-x: 10;
        --feature-card-tilt-y: 10;
    }
    
    .news-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news-card {
        padding: 1rem;
    }
    
    .product-card:hover {
        transform: translateY(-8px);
    }
    
    .search-highlight {
        background-color: #fef3c7;
    }
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

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

/* ==================
   减少动画（无障碍）
   ================== */

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .feature-card,
    .product-badge,
    .feature-icon,
    .floating-animation,
    .slide-up,
    .news-card-enter {
        animation: none !important;
        transition: none !important;
    }
    
    .product-card:hover {
        transform: none !important;
    }
    
    .feature-card:hover {
        transform: none !important;
    }
    
    .service-card:hover {
        transform: none !important;
    }
    
    .scenario-card:hover {
        transform: none !important;
    }
    
    .experiment-card:hover {
        transform: none !important;
    }
    
    .material-card:hover {
        transform: none !important;
    }
    
    .news-card:hover {
        transform: none !important;
    }
    
    .news-detail-card:hover {
        transform: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==================
   导航栏样式 (navbar.css)
   ================== */

/* 导航栏变量定义 */
:root {
    --navbar-bg: #ffffff;
    --navbar-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --navbar-height: 4rem;
    --navbar-primary-color: #2563eb;
    --navbar-primary-dark: #1d4ed8;
    --navbar-text-color: #1f2937;
    --navbar-text-light: #6b7280;
    --navbar-hover-bg: #eff6ff;
    --navbar-active-bg: #dbeafe;
    --navbar-border-color: #e5e7eb;
    --navbar-transition-duration: 0.2s;
    --navbar-transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础导航栏样式 */
.navbar {
    background-color: var(--navbar-bg);
    box-shadow: var(--navbar-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-height);
    transition: transform var(--navbar-transition-duration) var(--navbar-transition-timing);
}

/* 防止导航栏加载时闪烁 */
#header-container {
    /* 移除过渡效果,避免切换页面时闪烁 */
    /* transition: opacity 0.3s ease-in-out; */
    /* 确保在JS加载前有基本样式 */
    min-height: 4rem;
}

#header-container[style*="opacity: 0"] {
    pointer-events: none;
}

/* 防止导航链接激活时闪烁 */
.nav-link.active,
.mobile-nav-link.active {
    transition: color 0.2s ease-in-out, font-weight 0.2s ease-in-out;
}

/* 滚动隐藏导航栏效果 */
.navbar.navbar-hidden {
    transform: translateY(-100%);
}

/* 移动端禁用滚动隐藏 */
@media (max-width: 767px) {
    .navbar.navbar-hidden {
        transform: translateY(0);
    }
}

.navbar-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo 样式 */
.navbar-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.navbar-logo {
    display: block;
    line-height: 0;
}

.navbar-logo img {
    height: 2.25rem;
    width: auto;
    object-fit: contain;
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    transition: transform var(--navbar-transition-duration) ease-in-out;
}

.navbar-logo img {
    height: 2.25rem;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    transition: transform var(--navbar-transition-duration) ease-in-out;
}

.navbar-logo:hover img {
    transform: scale(1.05);
}

/* 桌面端导航菜单 */
.desktop-menu {
    display: none;
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

/* 导航链接基础样式 */
.nav-link,
.mobile-nav-link {
    color: var(--navbar-text-color);
    text-decoration: none;
    /* 移除通用的 transition: all，避免切换页面时闪烁 */
    transition: color var(--navbar-transition-duration) var(--navbar-transition-timing);
    font-weight: 500;
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* 桌面端导航链接样式 */
.nav-link {
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    /* 移除 transform 过渡，避免切换页面时闪烁 */
}

.nav-link:hover {
    color: var(--navbar-primary-color);
    /* transform: translateY(-1px); */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--navbar-primary-color), var(--navbar-primary-dark));
    border-radius: 2px;
    transition: width 0.3s var(--navbar-transition-timing);
}

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

/* 选中状态样式 */
.nav-link.active,
.mobile-nav-link.active {
    color: var(--navbar-primary-color);
    font-weight: 600;
}

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

/* 移动端导航链接样式 */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

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

.mobile-nav-link.active {
    color: var(--navbar-primary-color);
    font-weight: 600;
}

/* 移动端菜单按钮 */
.mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color var(--navbar-transition-duration) ease-in-out;
}

.mobile-menu-button:hover,
.mobile-menu-button:focus {
    background-color: var(--navbar-hover-bg);
    outline: none;
}

.mobile-menu-button:focus-visible {
    box-shadow: 0 0 0 2px var(--navbar-primary-color);
}

/* 汉堡图标 */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 1.5rem;
    height: 1.5rem;
    position: relative;
}

.hamburger-line {
    display: block;
    height: 2px;
    width: 1.5rem;
    background-color: var(--navbar-text-color);
    border-radius: 1px;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

.hamburger-line:nth-child(2) {
    margin: 0.3rem 0;
}

/* 汉堡图标动画 */
.mobile-menu-button[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(0.5rem) rotate(45deg);
}

.mobile-menu-button[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-0.5rem) rotate(-45deg);
}

/* 移动端菜单 */
.mobile-menu {
    background-color: var(--navbar-bg);
    box-shadow: var(--navbar-shadow);
    border-top: 1px solid var(--navbar-border-color);
    max-height: 70vh;
    overflow-y: auto;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
}

.mobile-menu-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }
}

/* 导航栏平滑过渡效果 */
@media (prefers-reduced-motion: no-preference) {

    .nav-link,
    .mobile-nav-link,
    .mobile-menu-button {
        transition-property: color, background-color, transform;
    }
}