
/* 动态背景层 */
.background-layer {
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,45,85,0.03) 0%, transparent 70%);
    transition: transform 0.3s ease-out;
    z-index: 0;
}

/* 头部区域 */
.header-container {
    position: relative;
    height: 160px;
    margin-bottom: 30px;
    overflow: hidden;
}

.header-content {
    position: relative;
    height: 100%;
    transition: transform 0.3s ease-out;
}

.header-image {
    width: 100%;
    height: 100%;
    filter: brightness(0.7) contrast(1.2);
    object-fit: cover;
    transform: scale(1.1);
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 30px;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.header-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    background: rgba(255,45,85,0.3);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    display: inline-block;
    max-width: 70%;
}

.header-decoration {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
}
/* 添加这些样式 */
#headerTitle, #headerSubtitle {
    position: absolute;
    z-index: 2;
    color: white;
    left: 20px;
}

#headerTitle {
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    margin: 0;
}

#headerSubtitle {
    top: calc(50% + 30px);
    font-size: 14px;
}
.decoration-circle {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255,45,85,0.3);
    border-radius: 50%;
    position: relative;
}

.decoration-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border: 1px dashed rgba(255,45,85,0.2);
    border-radius: 50%;
}

.decoration-line {
    position: absolute;
    top: 50%;
    left: -100px;
    width: 100px;
    height: 1px;
    background: linear-gradient(to left, rgba(255,45,85,0.3), transparent);
}

/* 功能网格布局 */
.function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

.function-item {
    position: relative;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: rgba(30,30,30,0.7);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
    cursor: pointer;
}

.function-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.function-item.active {
    transform: scale(0.98);
    background: rgba(255,45,85,0.1);
}

.item-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,45,85,0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.function-item.active .item-bg {
    opacity: 1;
}

.function-icon {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    filter: drop-shadow(0 0 8px rgba(255,45,85,0.3));
    transition: all 0.3s;
}

.function-item:hover .function-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(255,45,85,0.5));
}

.function-text {
    flex: 1;
}

.function-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    display: block;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.function-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    display: block;
}

.function-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-icon {
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(255,255,255,0.5);
    border-right: 2px solid rgba(255,255,255,0.5);
    transform: rotate(45deg);
    transition: all 0.3s;
}

.function-item:hover .arrow-icon {
    transform: rotate(45deg) translate(3px, -3px);
    border-color: #FF2D55;
}

/* 底部装饰 */
.footer-decoration {
    position: relative;
    height: 40px;
    margin-top: 30px;
}

.tech-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,45,85,0.3), transparent);
}

.tech-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 5px;
    background: radial-gradient(circle, rgba(255,45,85,0.5) 0%, transparent 70%);
}

/* 加载动画 */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(18,18,18,0.9);
    z-index: 100;
}

.loading-spinner {
    display: flex;
    margin-bottom: 20px;
}

.spinner-dot {
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background-color: #FF2D55;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.spinner-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-text {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* 公告弹窗样式 */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    display: none;
}

.announcement-container {
    width: 80%;
    max-width: 500px;
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 45, 85, 0.3);
    box-shadow: 0 0 20px rgba(255, 45, 85, 0.2);
}

.announcement-header {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.announcement-title {
    font-size: 18px;
    font-weight: bold;
    color: #FF2D55;
    display: block;
    text-align: center;
}

.announcement-content {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.announcement-footer {
    display: flex;
    justify-content: flex-end;
}

.confirm-btn {
    padding: 8px 20px;
    background-color: #FF2D55;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.confirm-btn:hover {
    background-color: rgba(255, 45, 85, 0.8);
}

/* 动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    }
    40% { 
        transform: scale(1);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header-container {
        height: 120px;
    }
    
    
    .header-subtitle {
        font-size: 12px;
    }
    
    .function-grid {
        grid-template-columns: 1fr;
    }
    
    .function-item {
        height: 80px;
    }
}

/* 确保视频网格在移动端有适当的间距 */
@media (max-width: 768px) {
    .video-grid {
        gap: 10px;
        padding: 0 10px;
    }
    
    .video-item {
        width: calc(50% - 5px);
        margin-bottom: 10px;
    }
    
    .works-section {
        padding: 15px;
    }
}
