/* Imported from index.html */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('../fonts/noto-regular/result.css');
@import url('../fonts/noto-bold/result.css');

/* 全局盒模型重置，防止布局挤压 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans SC Regular', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #050505;
    color: #ededed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c4b5fd;
}

/* --- 头部样式 --- */
header {
    padding: 20px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    background: #050505;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #e879f9, #9333ea);
    border-radius: 8px;
}

nav a {
    font-size: 16px;
    margin-right: 32px;
}

nav a:hover {
    color: #fff;
}

nav a.active {
    color: #fff;
    font-weight: 600;
}

/* --- 主体布局 --- */
.main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    padding: 60px 40px;
    max-width: 1200px; 
    width: 100%;
    margin: 0 auto;
    align-items: center;
}

.main-compact {
    grid-template-columns: auto auto;
    justify-content: center;
    max-width: 1200px;
}

/* 左侧内容 */
.left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px; 
    padding-top: 0;
}

.tag {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d8b4fe;
    font-size: 16px;
    margin-bottom: 24px;
}

.tag::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid #d8b4fe;
    border-radius: 50%;
}

h1 {
    font-family: 'Noto Sans SC Bold', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 32px 0;
    white-space: nowrap;
}

.description {
    font-size: 20px;
    color: #a1a1a1;
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 520px;
}

/* 按钮组 */
.buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.btn-primary {
    background: #8b5cf6;
    color: #fff;
    font-family: 'Noto Sans SC Bold', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 100px;
}

.btn-primary:hover {
    background: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.btn-secondary {
    color: #a1a1a1;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-secondary:hover {
    color: #fff;
}

/* 右侧区域 */
.right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    min-width: 0;
}

.right-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dashboard-container {
    background: #0a0a0a;
    border-radius: 24px;
    padding: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    width: 100%;
}

/* 轮播图样式 */
.image-carousel {
    position: relative;
    width: 100%;
    /* 根据截图效果，这里保持16:9比例可能更好，如果需要正方形改为 1 / 1 */
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    border-radius: 16px;
    background-color: #000;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    display: none;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 2;
    pointer-events: none;
}

.carousel-prev, .carousel-next {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    pointer-events: auto;
}

.carousel-prev:hover, .carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 【关键修复】轮播图指示器样式 */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    /* 修复：添加 align-items: center 防止子元素被拉伸 */
    align-items: center; 
    gap: 8px;
    z-index: 2;
}

.indicator {
    width: 8px;
    height: 8px;
    /* 修复：清除默认内边距，防止变形 */
    padding: 0; 
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    /* 防止被flex容器挤压或拉伸 */
    flex-shrink: 0; 
}

.indicator.active {
    background: rgba(255, 255, 255, 1);
}

/* 页脚 */
footer {
    padding: 60px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.download-buttons .btn-primary {
    justify-content: center;
    width: 100%;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    margin-bottom: 6px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle span:last-child {
    margin-bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-header {
    display: contents;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    header {
        padding: 20px;
        flex-direction: column;
        position: relative;
    }

    .nav-left {
        width: 100%;
        flex-direction: column;
        gap: 0;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #050505;
        padding-top: 20px;
        margin-top: 20px;
        border-top: 1px solid #222;
    }

    nav.active {
        display: flex;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        margin-right: 0;
        border-bottom: 1px solid #222;
    }

    nav a:last-child {
        border-bottom: none;
    }

    .main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
        max-width: 100%;
    }

    .right-grid {
        grid-template-columns: 1fr;
    }

    .left {
        text-align: center;
        align-items: center;
        min-width: 0;
    }

    .tag {
        justify-content: center;
    }

    h1 {
        font-size: 40px;
        white-space: normal;
    }

    .description {
        margin: 0 auto 32px auto;
        font-size: 16px;
    }

    .buttons {
        justify-content: center;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .dashboard-container {
        padding: 15px;
    }

    footer {
        padding: 40px 20px;
        flex-direction: column;
        gap: 40px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations */
.left .tag {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.1s;
}

.left h1 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

.left .description {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

.left .buttons {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.4s;
}

.dashboard-container {
    opacity: 0;
    animation: fadeInScale 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.3s;
}