/* index页面特有样式 */

/* 页面内容样式 */
.main-section {
    padding: 0;
}

/* 主要内容区域 */
.main-content {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 40px 20px;  /* 左右内边距改为20px，与头部导航一致 */
    gap: 60px;
    width: 1160px;
    max-width: 90vw;
    min-height: 600px;
    height: auto;
    background: linear-gradient(255.69deg, rgba(21, 11, 23, 0.6) 0%, rgba(26, 19, 60, 0.6) 100%);
    border: 1px solid #333A4C;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-radius: 24px;
    margin: 0 auto;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* 不支持backdrop-filter时的降级 */
@supports not (backdrop-filter: blur(32px)) {
    .main-content {
        background: linear-gradient(255.69deg, rgba(21, 11, 23, 0.9) 0%, rgba(26, 19, 60, 0.9) 100%) !important;
    }
}

/* 左侧视频区域 */
.video-section {
    flex: 0 0 580px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 520px;
    gap: 20px;
}

/* 视频上方旋转图标 */
.rotating-icons-top {
    position: absolute;
    top: -60px;
    left: 70%;
    transform: translateX(-50%);
    width: 264px;
    height: 264px;
    z-index: 10;
}

/* METAGOD标题样式 */
.metagod-title {
    width: 450px;
    height: 130px;
    background-image: url('../assets/pages/index/icons/mateg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    margin-top: 20px;
}

.video-container {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    height: 280px;
    flex-shrink: 0;
}

/* ECOSYSTEM标题样式 */
.ecosystem-title {
    width: 530px;
    height: 130px;
    background-image: url('../assets/pages/index/icons/ecosystem.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    margin-top: 20px;
}

#main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.video-play-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-play-btn:hover {
    transform: scale(1.1);
}

.video-play-btn img {
    width: 80px;
    height: 80px;
}

.video-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
}

.speaker-name {
    font-family: 'BlenderPro', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #FDED0E;
}

.speaker-desc {
    font-family: 'BlenderPro', sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    color: #ccc;
}

/* 旋转图标动画 */
.rotating-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

/* 中心静态图标 */
.main-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50.4px;
    height: 50.4px;
    z-index: 15;
}

.icon-1 {
    animation: rotate-slow 20s linear infinite;
}

.icon-2 {
    animation: rotate-medium 15s linear infinite reverse;
}

.icon-3 {
    animation: rotate-fast 10s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-medium {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-fast {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 右侧文字内容 */
.text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    padding-top: 20px;
}

/* 头部标题部分 */
.text-section .subtitle-section {
    flex: none;
    margin-bottom: 30px;
}

.main-subtitle {
    font-family: 'BlenderPro', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #FDED0E;
    margin-bottom: 20px;
    line-height: 1.3;
}

.subtitle-desc {
    font-family: 'BlenderPro', sans-serif;
    font-size: 1.1rem;
    color: #00F0FF;
    margin: 0;
}

/* 详情内容区域（带滚动条） */
.text-content {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}

.text-descriptions {
    flex: 1;
    min-height: 200px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 25px;
}

.main-description {
    font-family: 'BlenderPro', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

/* 自定义滚动条 */
.text-descriptions::-webkit-scrollbar {
    width: 8px;
}

.text-descriptions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.text-descriptions::-webkit-scrollbar-thumb {
    background: #FDED0E;
    border-radius: 4px;
}

.text-descriptions::-webkit-scrollbar-thumb:hover {
    background: #FDED0E;
    opacity: 0.8;
}

/* 按钮样式 */
.explore-btn {
    position: relative;
    width: 220px;
    height: 46px;
    background: #FDED0E;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: auto;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

/* 左侧外部黑色线条 */
.explore-btn::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background: #0E0E0E;
}

/* 左侧内部黑色线条 */
.explore-btn::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background: #0E0E0E;
}

.explore-btn span {
    font-family: 'BlenderPro', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 20px;
    color: #0E0E0E;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.explore-btn:hover {
    background: #00F0FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.3);
}

.explore-btn:hover::before {
    background: #0E0E0E;
}

.explore-btn:hover::after {
    background: #0E0E0E;
}

/* 主要内容响应式设计 */
@media (max-width: 1024px) {
    .main-content {
        width: 95vw;
        flex-direction: column;
        gap: 40px;
        padding: 30px 20px;  /* 左右内边距保持20px */
        min-height: auto;
        margin: 0 auto;
    }

    .video-section {
        flex: none;
        width: 100%;
        min-height: auto;
        gap: 15px;
    }

    .rotating-icons-top {
        width: 200px;
        height: 200px;
        top: -50px;
        left: 60%;
    }

    .metagod-title {
        width: 350px;
        height: 100px;
        margin-top: 15px;
    }

    .ecosystem-title {
        width: 400px;
        height: 100px;
        margin-top: 15px;
    }

    .video-container {
        height: 250px;
    }

    .text-section {
        min-height: auto;
        padding-top: 10px;
    }

    .text-descriptions {
        max-height: 250px;
        min-height: 180px;
    }

    .main-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        width: 95vw;
        gap: 30px;
        padding: 25px 20px;  /* 左右内边距保持20px */
        margin: 0 auto;
    }

    .video-section {
        gap: 12px;
    }

    .rotating-icons-top {
        width: 150px;
        height: 150px;
        top: -40px;
        left: 55%;
    }

    .metagod-title {
        width: 280px;
        height: 80px;
        margin-top: 10px;
    }

    .ecosystem-title {
        width: 320px;
        height: 80px;
        margin-top: 10px;
    }

    .video-container {
        height: 190px;
    }

    .text-descriptions {
        max-height: none;
        min-height: auto;
        overflow-y: visible;
    }

    .main-subtitle {
        font-size: 1.3rem;
    }

    .video-play-btn img {
        width: 60px;
        height: 60px;
    }

    .explore-btn {
        width: 200px;
        height: 42px;
    }

    .explore-btn span {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .main-content {
        width: 98vw;
        padding: 20px 15px;  /* 小屏幕左右内边距稍微减少 */
        gap: 25px;
        margin: 0 auto;
    }

    .video-section {
        gap: 10px;
    }

    .rotating-icons-top {
        width: 120px;
        height: 120px;
        top: -30px;
        left: 50%;
    }

    .metagod-title {
        width: 220px;
        height: 65px;
        margin-top: 8px;
    }

    .ecosystem-title {
        width: 250px;
        height: 65px;
        margin-top: 8px;
    }

    .video-container {
        height: 190px;
    }

    .text-descriptions {
        max-height: none;
        min-height: auto;
        overflow-y: visible;
    }

    .main-subtitle {
        font-size: 1.1rem;
    }

    .main-description {
        font-size: 0.9rem;
    }

    .explore-btn {
        width: 180px;
        height: 40px;
    }

    .explore-btn span {
        font-size: 16px;
    }
} 