/* 天津拓普锐格科技有限公司 - 通用样式 */

/* 浮动图片样式（不翻转版本） */
.floating-image {
    position: fixed;
    width: 100px;
    height: 100px;
    z-index: 998;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    animation: floatMoveNoRotate 25s infinite ease-in-out;
}

.floating-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 86, 179, 0.3));
}

/* 浮动动画 - 不翻转版本 */
@keyframes floatMoveNoRotate {
    0% {
        top: 10%;
        left: -120px;
    }
    15% {
        top: 25%;
        left: 15%;
    }
    30% {
        top: 45%;
        left: 8%;
    }
    45% {
        top: 65%;
        left: 20%;
    }
    60% {
        top: 80%;
        left: 12%;
    }
    75% {
        top: 60%;
        left: 5%;
    }
    90% {
        top: 30%;
        left: 10%;
    }
    100% {
        top: 10%;
        left: -120px;
    }
}

.floating-image:hover {
    opacity: 0.9;
}

/* 页面通用样式 */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-blue);
    transform: translateY(-5px);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .floating-image {
        width: 70px;
        height: 70px;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .floating-image {
        width: 60px;
        height: 60px;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
}

/* 导航栏显示状态 */
.nav-links.show {
    transform: translateY(0) !important;
    opacity: 1 !important;
}
