html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
}

.text-gradient {
    background: linear-gradient(90deg, #0066ff, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient {
    background: linear-gradient(135deg, #0066ff, #003d99);
}

.hero-bg {
    background-image: url('https://p3-flow-imagex-sign.byteimg.com/tos-cn-i-a9rns2rl98/rc/pc/super_tool/f53a19aa51784173b86c84da6a84a592~tplv-a9rns2rl98-image.image?rcl=202512041601240C1882C83B5EF3F8C66E&rk3s=8e244e95&rrcfp=f06b921b&x-expires=1767427329&x-signature=slp3s%2BCfi1ghFY%2B%2FwJi8myzkkwA%3D');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

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

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: #0066ff;
}

.project-card {
    overflow: hidden;
    position: relative;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card img {
    transition: all 0.5s ease;
}

.team-card {
    transition: all 0.3s ease;
}

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

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #0066ff;
}

.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar.scrolled .nav-link {
    color: #2b2d3e;
}

.navbar.scrolled .nav-link:hover {
    color: #0066ff;
}

.mobile-menu {
    transition: all 0.3s ease;
    transform: translateX(-100%);
}

.mobile-menu.open {
    transform: translateX(0);
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.scroll-down {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #e5e7eb;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #0066ff;
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.2);
}

.timeline-content {
    position: relative;
    width: calc(50% - 2rem);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: calc(50% + 2rem);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 2rem;
    }

    .timeline-item::before {
        left: 2rem;
    }

    .timeline-content {
        width: calc(100% - 4rem);
        left: 4rem !important;
    }
}

/* 加载动画 */
.loader {
    border: 4px solid rgba(0, 102, 255, 0.1);
    border-left-color: #0066ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3D效果 */
.scene-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 登录注册模态框 */
.login-register-modal {
    display: none;
    position: fixed;
    z-index: 50;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.login-register-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: none;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
}

/* 修复已添加的模态框样式 */
#login-modal, #register-modal {
    display: none;
}

#login-modal:not(.hidden), #register-modal:not(.hidden) {
    display: flex;
}

.modal-button {
    transition: all 0.3s ease;
}

.modal-button:hover {
    transform: translateY(-2px);
}

/* 资讯页面样式 */
.news-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.news-card: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);
    border-color: #0066ff;
}

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

.news-card:hover .news-icon {
    transform: scale(1.1);
    color: #0066ff;
}

/* 资讯详情页面样式 */
.prose h2 {
    position: relative;
}

.prose h2:before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #0066ff, #ff6600);
    border-radius: 3px;
}

.prose h3 {
    color: #2b2d3e;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.prose ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.news-image {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-image:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 资讯分类标签 */
.news-category {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.detail-tag{
    --tw-text-opacity:1;
    color: white;
    border-radius: 12px;
    background-color: rgb(255 87 0);
    width: 170px;
    padding: 4px 6px;
}
.detail-tag:hover{
    --tw-text-opacity:1;
    color: #b9b2b2;
    border-radius: 14px;
    background-color: rgb(255 87 0);
    width: 170px;
    padding: 5px 6px;
}

.scrolled .scrolled-btn{
    color: black !important;
}

/* 会员套餐新标识样式 */
.nav-link.relative {
    display: inline-block;
    position: relative;
}

.nav-link.relative span {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.hot-tag{
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    top: -0.6rem;
    right: -1.5rem;
    font-size: 0.55rem;
    line-height: 1rem;
}