/* 自定义工具类样式 */

/* ========== 通用样式 ========== */

/* 导航栏阴影效果 */
.nav-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 渐变文字效果 */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(90deg, #1E3A8A, #3B82F6);
}

/* 卡片悬浮动画 */
.card-hover {
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(30, 58, 138, 0.15);
}

/* 滚动渐显动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Product.html 专用样式 ========== */

/* 功能列表项悬浮效果 */
.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(8px);
}

/* 标签页内容切换 */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========== news.html 专用样式 ========== */

/* 资讯日期标签 */
.news-date {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(30, 58, 138, 0.9);
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 0 0 0 8px;
}

/* ========== newsdetailpage.html 专用样式 ========== */

/* 新闻内容区域样式 */
.news-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 0.5rem;
}

.news-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.news-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: #1E3A8A;
}

/* ========== 主题颜色变量 ========== */

:root {
    --color-primary: #1E3A8A;
    --color-secondary: #3B82F6;
    --color-dark: #1F2937;
    --color-light: #F9FAFB;
}
