* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    background: url('BGtest.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: -1;
}

/* 毛玻璃效果容器 */
main {
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.3);
}

/* 毛玻璃渐变效果 */
main::before,
main::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 100px;
    pointer-events: none;
}

main::before {
    top: -100px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

main::after {
    bottom: -100px;
    background: linear-gradient(to top, transparent, rgba(0,0,0,0.3));
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.logo {
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    max-width: 90%;
    max-height: 50vh;
    object-fit: contain;
}

.logo .logo-bg {
    position: absolute;
    z-index: -1;
    /* 可以根据需要调整背景图片的大小和位置 */
    max-width: 140%;
    max-height: 80vh;
}

/* 边角料元素样式 */
.corner-asset {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.corner-asset video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Focus动画样式 */
.focus-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 20;
    animation: fadeOut 3s ease forwards;
    opacity: 0;
}

.focus-animation.active {
    opacity: 1;
    animation: fadeOut 3s ease forwards;
}

.focus-animation img {
    max-width: 80%;
    max-height: 80vh;
    object-fit: contain;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

main {
    padding: 20px 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    filter: brightness(0.7);
}

.portfolio-item:hover {
    transform: translateY(0);
    box-shadow: none;
    filter: brightness(1);
}

.portfolio-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-align: center;
    color: #ffffff;
    margin: 0;
}

.portfolio-overlay a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    text-decoration: none;
}

/* 创作诤言样式 */
.philosophy-section {
    padding: 100px 20px;
    margin: 120px 0;
    position: relative;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 2s ease, transform 2s ease;
}

.philosophy-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.philosophy-content h2 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 60px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 2s ease, transform 2s ease;
    transform: translateY(30px);
}

.philosophy-content.visible h2 {
    opacity: 0.9;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.philosophy-text p {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 30px;
    opacity: 0;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: opacity 2s ease, transform 2s ease;
}

.philosophy-content.visible .philosophy-text p {
    opacity: 0.8;
    transform: translateY(0);
}

.philosophy-content.visible .philosophy-text p:nth-child(1) {
    transition-delay: 0.4s;
}

.philosophy-content.visible .philosophy-text p:nth-child(2) {
    transition-delay: 0.6s;
}

.philosophy-content.visible .philosophy-text p:nth-child(3) {
    transition-delay: 0.8s;
}

.philosophy-content.visible .philosophy-text p:nth-child(4) {
    transition-delay: 1s;
}

.philosophy-content.visible .philosophy-text p:nth-child(5) {
    transition-delay: 1.2s;
}

.philosophy-content.visible .philosophy-text p:nth-child(6) {
    transition-delay: 1.4s;
}

.philosophy-content.visible .philosophy-text p:nth-child(7) {
    transition-delay: 1.6s;
}

.philosophy-content.visible .philosophy-text p:nth-child(8) {
    transition-delay: 1.8s;
}

.philosophy-text p:first-child {
    font-style: italic;
    font-size: 1.3rem;
    margin-bottom: 40px;
}

footer {
    text-align: center;
    padding: 60px 20px;
    background-color: #050505;
    margin-top: 80px;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.6;
    letter-spacing: 2px;
}

/* 鼠标点击特效 */
.click-effect {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: clickEffect 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
}

@keyframes clickEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
        letter-spacing: 5px;
    }
    
    header p {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    main {
        padding: 40px 20px;
    }
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 分类按钮动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 初始状态 */
.portfolio-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}