:root {
    --primary-color: #00e4cc;
    --bg-color: #0a0b0f;
    --text-color: #ffffff;
    --secondary-bg: #1a1b1f;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 11, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 32px;
}

.logo-text {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 500;
}

/* 汉堡菜单按钮 */
/* .menu-toggle {
    display: none;
} */

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* 移动端菜单 */
/* .mobile-menu {
    display: none;
} */

.mobile-menu.show {
    display: flex;
}

.mobile-menu a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background-color: rgba(0, 228, 204, 0.1);
    color: var(--primary-color);
}

/* Hero 区域 */
.hero {
    height: 33vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(10, 11, 15, 0.9), rgba(10, 11, 15, 0.7)),
                url('../img/hero-bg.jpg') center/cover no-repeat;
    padding-top: 60px;
}

.hero h1 {
    font-size: 2rem;
    margin: 1rem;
    background: linear-gradient(45deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
}

/* 语言切换按钮 */
.language-switch {
    display: flex;
    gap: 0.3rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 32px;
    text-align: center;
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* 轮播区域 */
.carousel {
    width: 100%;
    padding: 0;
    background: var(--bg-color);
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
    padding: 0;
    margin: 0;
}

.carousel-item {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

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

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

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    pointer-events: auto;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: var(--primary-color);
}

/* 区块通用样式 */
.section-header {
    padding: 2.5rem 1rem 1.5rem;
    text-align: center;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.section-desc {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 90%;
}

/* 视频卡片网格 */
.showcase-grid {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.video-card {
    background: var(--secondary-bg);
    border-radius: 12px;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    position: relative;
}

.video-card video,
.video-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background-color: #000;
}

.video-info {
    padding: 1rem;
}

.video-info h3 {
    margin: 0 0 0.8rem;
    font-size: 1.2rem;
}

.video-info p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.video-info p::-webkit-scrollbar {
    width: 4px;
}

.video-info p::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.video-info p::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

/* AI音乐区块 */
.transform-card {
    background: var(--secondary-bg);
    border-radius: 12px;
    overflow: hidden;
    margin: 1rem;
}

.transform-before,
.transform-after {
    padding: 1rem;
}

.text-prompt {
    background: rgba(0, 228, 204, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.text-prompt h4 {
    margin: 0 0 0.5rem;
    color: var(--primary-color);
}

.text-prompt p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #888;
}

.music-player {
    margin-top: 1rem;
}

.music-info {
    margin-bottom: 0.8rem;
}

.music-info h3 {
    margin: 0 0 0.3rem;
    font-size: 1.2rem;
}

.music-info p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

audio {
    width: 100%;
    margin-top: 0.5rem;
}

/* 页脚样式 */
footer {
    background: var(--secondary-bg);
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 100%;
}

.footer-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.footer-row a {
    color: #888;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.footer-beian {
    font-size: 0.8rem;
}

.footer-beian a {
    color: #666;
    text-decoration: none;
}

/* 添加区块底部按钮样式 */
.section-footer {
    padding: 1.5rem 1rem;
    margin-top: 1.5rem;
    position: relative;
    text-align: center;
}

.section-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: rgba(0, 228, 204, 0.3);
}

.section-footer .btn-primary {
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

/* 区块分隔样式 */
.video-models,
.ai-video,
.ai-music,
.novel-comics,
.digital-human {
    position: relative;
    margin-top: 2rem;
    padding-top: 1rem;
}

/* 添加顶部分隔线和渐变效果 */
.video-models::before,
.ai-video::before,
.ai-music::before,
.novel-comics::before,
.digital-human::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(0, 228, 204, 0),
        rgba(0, 228, 204, 0.5),
        rgba(0, 228, 204, 0)
    );
}

/* 添加区块背景色交替效果 */
.ai-video,
.digital-human {
    background-color: rgba(26, 27, 31, 0.5);
    padding-bottom: 2rem;
}

/* 调整区块内边距，使分隔更明显 */
.section-header {
    padding: 2.5rem 1rem 1.5rem; /* 增加上下内边距 */
}

/* 为区块标题添加装饰线 */
.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

/* 调整区块底部按钮区域的样式 */
.section-footer {
    padding: 1.5rem 1rem;
    margin-top: 1.5rem;
    position: relative;
    text-align: center;
}

/* 添加按钮区域的顶部装饰 */
.section-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: rgba(0, 228, 204, 0.3);
}

/* AI写作区块样式 */
.ai-writing {
    position: relative;
    margin-top: 2rem;
    padding-top: 1rem;
}

.ai-writing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(0, 228, 204, 0),
        rgba(0, 228, 204, 0.5),
        rgba(0, 228, 204, 0)
    );
}

.writing-result {
    padding: 1rem;
    background: rgba(0, 228, 204, 0.05);
    border-radius: 8px;
}

.writing-result h3 {
    margin: 0 0 0.8rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.writing-result p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #888;
}

/* 更新区块背景色交替效果 */
.ai-video,
.ai-music {
    background-color: rgba(26, 27, 31, 0.5);
    padding-bottom: 2rem;
}

/* AI写作区块样式补充 */
.ai-writing .showcase-grid:first-child {
    margin-bottom: 0;  /* 减少第一个网格的底部间距 */
}

.ai-writing .showcase-grid:last-of-type {
    margin-top: 1rem;  /* 调整第二个网格的顶部间距 */
}

.ai-writing .video-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* 视频播放覆盖层样式 */
.video-card {
    position: relative;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.3s;
}

.play-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 0 20px 35px;
    border-color: transparent transparent transparent #ffffff;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.play-overlay:hover::after {
    opacity: 1;
}

/* 完全隐藏视频默认控件 */
video::-webkit-media-controls {
    display: none;
}

video::-webkit-media-controls-enclosure {
    display: none;
}

video::-webkit-media-controls-panel {
    display: none;
}

/* 确保视频可以点击 */
.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 视频加载动画样式 */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    z-index: 1;
    display: none; /* 默认隐藏 */
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 视频加载中的状态 */
.video-card.loading .loading-spinner {
    display: block;
}

.video-card.loading .play-overlay {
    display: none;
} 