/* page.css - 页面内容样式 */
body {
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* 主内容区 */
main {
    margin-top: 80px;
    /* padding: 2rem 5%; */
}

/* 3D作品展示区 - 4x1垂直排列 */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 3rem 0;
}

.project {
    background: #fff;
    /* border: 1px solid #000; */
    padding: 30px 60px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: row;
}

/* 不同项目的背景色 */
.project:nth-child(1) {
    background: #1a2332;
}

.project:nth-child(2) {
    background: #f4f1ea;
}

.project:nth-child(3) {
    background: #2A3B35;
    color: #f0fdf4;
}

.project:nth-child(4) {
    background: #eef1f5;
}

.project-info {
    width: 30%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* border-right: 1px solid #f0f0f0; */
}

.project-info h3 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 不同项目的标题颜色 */
.project:nth-child(1) .project-info h3 {
    color: #ffffff;
}

.project:nth-child(2) .project-info h3 {
    color: #000000;
}

.project:nth-child(3) .project-info h3 {
    color: #f0fdf4;
}

.project:nth-child(4) .project-info h3 {
    color: #2A3B35;
}

.project-info p {
    color: #777;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* 不同项目的描述文字颜色 */
.project:nth-child(1) .project-info p {
    color: #ffffff;
}

.project:nth-child(2) .project-info p {
    color: #555;
}

.project:nth-child(3) .project-info p {
    color: #f0fdf4;
}

.project:nth-child(4) .project-info p {
    color: #555;
}

.project-content {
    position: relative;
    width: 70%;
    height: 600px;
    overflow: hidden;
}

.project iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #f8f9fa;
    pointer-events: auto;
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.annotation-btn {
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid #4b5563;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    letter-spacing: 0.6px;
}

/* 不同项目的注释按钮样式 */
.project:nth-child(2) .annotation-btn {
    border: 1px solid #000000;
    color: #000000;
}

.project:nth-child(3) .annotation-btn {
    border: 1px solid rgba(212, 163, 115, 0.4);
    color: #d4a373;
}

.project:nth-child(4) .annotation-btn {
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #000000;
}

.annotation-btn:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.08);
}

.annotation-btn:active {
    transform: scale(0.97);
}

.detail-btn {
    background-color: #ffffff;
    color: #111827;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

/* 不同项目的详情按钮样式 */
.project:nth-child(2) .detail-btn {
    background-color: #2d3436;
    color: #ffffff;
}

.project:nth-child(3) .detail-btn {
    background-color: #d4a373;
    color: #2A3B35;
}

.project:nth-child(4) .detail-btn {
    background-color: #000000;
    color: #ffffff;
}

.detail-btn:hover {
    box-shadow:
        0 12px 20px -3px rgba(255, 255, 255, 0.3),
        0 6px 15px -2px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    background-color: #f3f4f6;
}

.detail-btn:active {
    transform: scale(0.98);
}

/* 注释面板 */
.annotation-panel {
    position: absolute;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    overflow-y: auto;
    transition: right 0.4s ease;
    z-index: 10;
    border-left: 1px solid #000;
}

.annotation-panel.active {
    right: 0;
}

.annotation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.annotation-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.annotation-content {
    margin-bottom: 1.5rem;
}

.annotation-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f5f5f5;
}

.annotation-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.annotation-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #4a6cf7;
}

.annotation-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* 页脚 */
footer {
    background-color: #f8f9fa;
    padding: 3rem 5%;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.footer-links a {
    margin: 0 1rem;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4a6cf7;
}

.copyright {
    color: #888;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* 加载动画 */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(74, 108, 247, 0.2);
    border-top: 4px solid #4a6cf7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 几何装饰元素 */
.geometric-shape {
    position: absolute;
    z-index: -1;
    opacity: 0.03;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #4a6cf7 0%, #6a11cb 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-2 {
    bottom: 10%;
    right: 5%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #4a6cf7 0%, #6a11cb 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .project {
        flex-direction: column;
        margin-right: 0;
    }

    .project-info,
    .project-content {
        width: 100%;
    }

    .project-content {
        height: 400px;
    }

    .annotation-panel {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    main {
        padding: 2rem 0;
    }

    .project {
        margin: 0 0;
        border-left: none;
        border-right: none;
        border-radius: 0;
        padding: 0;
    }
}